2017-03-29 10:18:37 +00:00
|
|
|
#include "flagswidget.h"
|
|
|
|
#include "ui_flagswidget.h"
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
FlagsWidget::FlagsWidget(MainWindow *main, QWidget *parent) :
|
|
|
|
QDockWidget(parent),
|
|
|
|
ui(new Ui::FlagsWidget)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
|
|
|
// Radare core found in:
|
|
|
|
this->main = main;
|
|
|
|
|
|
|
|
this->flagsTreeWidget = ui->flagsTreeWidget;
|
|
|
|
this->flagspaceCombo = ui->flagspaceCombo;
|
|
|
|
}
|
|
|
|
|
|
|
|
FlagsWidget::~FlagsWidget()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FlagsWidget::on_flagsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column)
|
|
|
|
{
|
2017-04-09 17:09:35 +00:00
|
|
|
QNOTUSED(column);
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
QString offset = item->text(2);
|
|
|
|
QString name = item->text(3);
|
|
|
|
this->main->seek(offset, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
void FlagsWidget::on_flagspaceCombo_currentTextChanged(const QString &arg1)
|
|
|
|
{
|
2017-04-09 17:09:35 +00:00
|
|
|
QNOTUSED(arg1);
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
this->main->refreshFlags();
|
|
|
|
}
|