blob: 59927f21e953ce28853b13e2666bb53119af5a6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "gotosymboldialog.h"
#include "ui_gotosymboldialog.h"
GoToSymbolDialog::GoToSymbolDialog(QWidget *parent, QStringList &symlist) :
QDialog(parent),
ui(new Ui::GoToSymbolDialog)
{
ui->setupUi(this);
connect(ui->pushShowProg, SIGNAL(clicked()), this, SLOT(show_prog()));
connect(ui->pushShowMem, SIGNAL(clicked()), this, SLOT(show_mem()));
connect(ui->pushClose, SIGNAL(clicked()), this, SLOT(close()));
ui->listSymbols->addItems(symlist);
}
GoToSymbolDialog::~GoToSymbolDialog()
{
delete ui;
}
void GoToSymbolDialog::show_prog() {
std::uint32_t address = 0;
emit obtain_value_for_name(address, ui->listSymbols->currentItem()->text());
emit program_focus_addr(address);
}
void GoToSymbolDialog::show_mem() {
std::uint32_t address = 0;
emit obtain_value_for_name(address, ui->listSymbols->currentItem()->text());
emit memory_focus_addr(address);
}
|