mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 21:06:10 +00:00
899d64c6f8
* button added, dialog todo * WIP EditFunctionDialog * dialog retrieving function parameters, but not yet setting them * minor fixups, ok button not working * wire everything up and add calling convention selection * fixup Cutter.pro
78 lines
1.6 KiB
C++
78 lines
1.6 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::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);
|
|
}
|
|
|
|
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();
|
|
}
|