cutter/src/dialogs/EditFunctionDialog.cpp

78 lines
1.6 KiB
C++
Raw Normal View History

#include "EditFunctionDialog.h"
#include "ui_EditFunctionDialog.h"
EditFunctionDialog::EditFunctionDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::EditFunctionDialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
}
EditFunctionDialog::~EditFunctionDialog() {}
QString EditFunctionDialog::getNameText()
{
QString ret = ui->nameLineEdit->text();
return ret;
}
void EditFunctionDialog::setNameText(const QString &name)
{
ui->nameLineEdit->setText(name);
}
QString EditFunctionDialog::getStartAddrText()
{
QString ret = ui->startLineEdit->text();
return ret;
}
void EditFunctionDialog::setStartAddrText(const QString &startAddr)
{
ui->startLineEdit->setText(startAddr);
}
QString EditFunctionDialog::getEndAddrText()
{
QString ret = ui->endLineEdit->text();
return ret;
}
void EditFunctionDialog::setEndAddrText(const QString &endAddr)
{
ui->endLineEdit->setText(endAddr);
}
QString EditFunctionDialog::getStackSizeText()
{
QString ret = ui->stackSizeLineEdit->text();
return ret;
}
void EditFunctionDialog::setStackSizeText(const QString &stackSize)
{
ui->stackSizeLineEdit->setText(stackSize);
}
2019-03-23 10:54:34 +00:00
void EditFunctionDialog::setCallConList(const QStringList &callConList) {
ui->callConComboBox->addItems(callConList);
}
2019-03-23 10:54:34 +00:00
void EditFunctionDialog::setCallConSelected(const QString &selected) {
ui->callConComboBox->setCurrentText(selected);
}
QString EditFunctionDialog::getCallConSelected() {
return ui->callConComboBox->currentText();
}
void EditFunctionDialog::on_buttonBox_accepted()
{
}
void EditFunctionDialog::on_buttonBox_rejected()
{
close();
}