mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-06 03:55:27 +00:00
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#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::getStackSizeText()
|
|
{
|
|
QString ret = ui->stackSizeLineEdit->text();
|
|
return ret;
|
|
}
|
|
|
|
void EditFunctionDialog::setStackSizeText(const QString &stackSize)
|
|
{
|
|
ui->stackSizeLineEdit->setText(stackSize);
|
|
}
|
|
|
|
void EditFunctionDialog::setCallConList(const QStringList &callConList)
|
|
{
|
|
ui->callConComboBox->addItems(callConList);
|
|
}
|
|
|
|
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();
|
|
}
|