2018-03-09 15:05:40 +00:00
|
|
|
#include "R2PluginsDialog.h"
|
|
|
|
#include "ui_R2PluginsDialog.h"
|
|
|
|
|
|
|
|
#include "Cutter.h"
|
|
|
|
#include "utils/Helpers.h"
|
|
|
|
|
|
|
|
R2PluginsDialog::R2PluginsDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::R2PluginsDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
for (auto plugin : Core()->getRBinPluginDescriptions()) {
|
|
|
|
QTreeWidgetItem *item = new QTreeWidgetItem();
|
2018-03-09 15:05:40 +00:00
|
|
|
item->setText(0, plugin.name);
|
|
|
|
item->setText(1, plugin.description);
|
|
|
|
item->setText(2, plugin.license);
|
|
|
|
item->setText(3, plugin.type);
|
|
|
|
ui->RBinTreeWidget->addTopLevelItem(item);
|
|
|
|
}
|
|
|
|
qhelpers::adjustColumns(ui->RBinTreeWidget, 0);
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
for (auto plugin : Core()->getRIOPluginDescriptions()) {
|
|
|
|
QTreeWidgetItem *item = new QTreeWidgetItem();
|
2018-03-09 15:05:40 +00:00
|
|
|
item->setText(0, plugin.name);
|
|
|
|
item->setText(1, plugin.description);
|
|
|
|
item->setText(2, plugin.license);
|
|
|
|
item->setText(3, plugin.permissions);
|
|
|
|
ui->RIOTreeWidget->addTopLevelItem(item);
|
|
|
|
}
|
|
|
|
qhelpers::adjustColumns(ui->RIOTreeWidget, 0);
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
for (auto plugin : Core()->getRCorePluginDescriptions()) {
|
|
|
|
QTreeWidgetItem *item = new QTreeWidgetItem();
|
2018-03-09 15:05:40 +00:00
|
|
|
item->setText(0, plugin.name);
|
|
|
|
item->setText(1, plugin.description);
|
|
|
|
ui->RCoreTreeWidget->addTopLevelItem(item);
|
|
|
|
}
|
|
|
|
qhelpers::adjustColumns(ui->RCoreTreeWidget, 0);
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
for (auto plugin : Core()->getRAsmPluginDescriptions()) {
|
|
|
|
QTreeWidgetItem *item = new QTreeWidgetItem();
|
2018-03-11 08:39:31 +00:00
|
|
|
item->setText(0, plugin.name);
|
|
|
|
item->setText(1, plugin.architecture);
|
|
|
|
item->setText(2, plugin.cpus);
|
|
|
|
item->setText(3, plugin.version);
|
|
|
|
item->setText(4, plugin.description);
|
|
|
|
item->setText(5, plugin.license);
|
|
|
|
item->setText(6, plugin.author);
|
2018-03-09 15:05:40 +00:00
|
|
|
ui->RAsmTreeWidget->addTopLevelItem(item);
|
|
|
|
}
|
2018-03-11 08:39:31 +00:00
|
|
|
qhelpers::adjustColumns(ui->RAsmTreeWidget, 0);
|
2018-06-26 07:40:08 +00:00
|
|
|
|
|
|
|
for (CutterPlugin *plugin : Core()->getCutterPlugins()) {
|
|
|
|
QTreeWidgetItem *item = new QTreeWidgetItem();
|
|
|
|
item->setText(0, plugin->name);
|
|
|
|
item->setText(1, plugin->description);
|
|
|
|
item->setText(2, plugin->version);
|
|
|
|
item->setText(3, plugin->author);
|
|
|
|
ui->CutterTreeWidget->addTopLevelItem(item);
|
|
|
|
}
|
2018-03-09 15:05:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
R2PluginsDialog::~R2PluginsDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|