mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +00:00
Add emu.str in Preferences->Metadata (#1369)
This commit is contained in:
parent
e709a35723
commit
a2eb0011f4
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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">
|
||||||
@ -53,11 +53,11 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="indentCheckBox">
|
<widget class="QCheckBox" name="indentCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Indent disassembly based on reflines depth (asm.indent)</string>
|
<string>Indent disassembly based on reflines depth (asm.indent)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="describeCheckBox">
|
<widget class="QCheckBox" name="describeCheckBox">
|
||||||
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user