2018-10-22 09:16:56 +00:00
|
|
|
#include "EditFunctionDialog.h"
|
|
|
|
#include "ui_EditFunctionDialog.h"
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
EditFunctionDialog::EditFunctionDialog(QWidget *parent)
|
|
|
|
: QDialog(parent), ui(new Ui::EditFunctionDialog)
|
2018-10-22 09:16:56 +00:00
|
|
|
{
|
|
|
|
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::getStackSizeText()
|
|
|
|
{
|
|
|
|
QString ret = ui->stackSizeLineEdit->text();
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
void EditFunctionDialog::setStackSizeText(const QString &stackSize)
|
|
|
|
{
|
|
|
|
ui->stackSizeLineEdit->setText(stackSize);
|
|
|
|
}
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
void EditFunctionDialog::setCallConList(const QStringList &callConList)
|
|
|
|
{
|
2018-10-22 09:16:56 +00:00
|
|
|
ui->callConComboBox->addItems(callConList);
|
|
|
|
}
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
void EditFunctionDialog::setCallConSelected(const QString &selected)
|
|
|
|
{
|
2018-10-22 09:16:56 +00:00
|
|
|
ui->callConComboBox->setCurrentText(selected);
|
|
|
|
}
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
QString EditFunctionDialog::getCallConSelected()
|
|
|
|
{
|
2018-10-22 09:16:56 +00:00
|
|
|
return ui->callConComboBox->currentText();
|
|
|
|
}
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
void EditFunctionDialog::on_buttonBox_accepted() {}
|
2018-10-22 09:16:56 +00:00
|
|
|
|
|
|
|
void EditFunctionDialog::on_buttonBox_rejected()
|
|
|
|
{
|
|
|
|
close();
|
|
|
|
}
|