cutter/src/widgets/flagswidget.cpp
Hugo Teso ca821e1064 First code commit
First commit with the app code
2017-03-29 12:18:37 +02:00

35 lines
733 B
C++

#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)
{
QString offset = item->text(2);
QString name = item->text(3);
this->main->seek(offset, name);
}
void FlagsWidget::on_flagspaceCombo_currentTextChanged(const QString &arg1)
{
this->main->refreshFlags();
}