Add emu.str in Preferences->Metadata (#1369)

This commit is contained in:
Romeu Gomes 2019-03-24 22:08:49 +00:00 committed by Itay Cohen
parent e709a35723
commit a2eb0011f4
3 changed files with 21 additions and 6 deletions

View File

@ -42,6 +42,7 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
qhelpers::setCheckedWithoutSignals(ui->fcnlinesCheckBox, Config()->getConfigBool("asm.lines.fcn")); qhelpers::setCheckedWithoutSignals(ui->fcnlinesCheckBox, Config()->getConfigBool("asm.lines.fcn"));
qhelpers::setCheckedWithoutSignals(ui->flgoffCheckBox, Config()->getConfigBool("asm.flags.offset")); qhelpers::setCheckedWithoutSignals(ui->flgoffCheckBox, Config()->getConfigBool("asm.flags.offset"));
qhelpers::setCheckedWithoutSignals(ui->emuCheckBox, Config()->getConfigBool("asm.emu")); qhelpers::setCheckedWithoutSignals(ui->emuCheckBox, Config()->getConfigBool("asm.emu"));
qhelpers::setCheckedWithoutSignals(ui->emuStrCheckBox, Config()->getConfigBool("emu.str"));
qhelpers::setCheckedWithoutSignals(ui->varsumCheckBox, Config()->getConfigBool("asm.var.summary")); qhelpers::setCheckedWithoutSignals(ui->varsumCheckBox, Config()->getConfigBool("asm.var.summary"));
qhelpers::setCheckedWithoutSignals(ui->sizeCheckBox, Config()->getConfigBool("asm.size")); qhelpers::setCheckedWithoutSignals(ui->sizeCheckBox, Config()->getConfigBool("asm.size"));
@ -183,6 +184,12 @@ void AsmOptionsWidget::on_emuCheckBox_toggled(bool checked)
triggerAsmOptionsChanged(); triggerAsmOptionsChanged();
} }
void AsmOptionsWidget::on_emuStrCheckBox_toggled(bool checked)
{
Config()->setConfig("emu.str", checked);
triggerAsmOptionsChanged();
}
void AsmOptionsWidget::on_cmtrightCheckBox_toggled(bool checked) void AsmOptionsWidget::on_cmtrightCheckBox_toggled(bool checked)
{ {
Config()->setConfig("asm.cmt.right", checked); Config()->setConfig("asm.cmt.right", checked);

View File

@ -43,6 +43,7 @@ private slots:
void on_fcnlinesCheckBox_toggled(bool checked); void on_fcnlinesCheckBox_toggled(bool checked);
void on_flgoffCheckBox_toggled(bool checked); void on_flgoffCheckBox_toggled(bool checked);
void on_emuCheckBox_toggled(bool checked); void on_emuCheckBox_toggled(bool checked);
void on_emuStrCheckBox_toggled(bool checked);
void on_cmtrightCheckBox_toggled(bool checked); void on_cmtrightCheckBox_toggled(bool checked);
void on_cmtcolSpinBox_valueChanged(int value); void on_cmtcolSpinBox_valueChanged(int value);
void on_varsumCheckBox_toggled(bool checked); void on_varsumCheckBox_toggled(bool checked);

View File

@ -17,7 +17,7 @@
<item> <item>
<widget class="QTabWidget" name="asmOptionsTab"> <widget class="QTabWidget" name="asmOptionsTab">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="asmStyleTab"> <widget class="QWidget" name="asmStyleTab">
<attribute name="title"> <attribute name="title">
@ -239,6 +239,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="emuStrCheckBox">
<property name="text">
<string>Show only strings if any in the asm.emu output (emu.str)</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="sizeCheckBox"> <widget class="QCheckBox" name="sizeCheckBox">
<property name="text"> <property name="text">