GUI: undocumented AsciiSeparator setting https://i.imgur.com/Ri7Czrg.png
This commit is contained in:
parent
31e0985713
commit
b5b76310d4
|
@ -35,7 +35,7 @@ Disassembly::Disassembly(QWidget* parent) : AbstractTableView(parent), mDisassem
|
|||
|
||||
mCodeFoldingManager = nullptr;
|
||||
duint setting;
|
||||
if(BridgeSettingGetUint("GUI", "DisableBranchDestinationPreview", &setting))
|
||||
if(BridgeSettingGetUint("Gui", "DisableBranchDestinationPreview", &setting))
|
||||
mPopupEnabled = !setting;
|
||||
else
|
||||
mPopupEnabled = true;
|
||||
|
|
|
@ -57,9 +57,9 @@ void HexDump::updateColors()
|
|||
void HexDump::updateFonts()
|
||||
{
|
||||
duint setting;
|
||||
if(BridgeSettingGetUint("GUI", "NonprintReplaceCharacter", &setting))
|
||||
if(BridgeSettingGetUint("Gui", "NonprintReplaceCharacter", &setting))
|
||||
mNonprintReplace = QChar(uint(setting));
|
||||
if(BridgeSettingGetUint("GUI", "NullReplaceCharacter", &setting))
|
||||
if(BridgeSettingGetUint("Gui", "NullReplaceCharacter", &setting))
|
||||
mNullReplace = QChar(uint(setting));
|
||||
setFont(ConfigFont("HexDump"));
|
||||
invalidateCachedFont();
|
||||
|
|
|
@ -1897,7 +1897,7 @@ void CPUDisassembly::togglePreviewSlot()
|
|||
if(mPopupEnabled == true)
|
||||
ShowDisassemblyPopup(0, 0, 0);
|
||||
mPopupEnabled = !mPopupEnabled;
|
||||
BridgeSettingSetUint("GUI", "DisableBranchDestinationPreview", !mPopupEnabled);
|
||||
BridgeSettingSetUint("Gui", "DisableBranchDestinationPreview", !mPopupEnabled);
|
||||
}
|
||||
|
||||
void CPUDisassembly::analyzeModuleSlot()
|
||||
|
|
|
@ -22,6 +22,10 @@ CPUDump::CPUDump(CPUDisassembly* disas, CPUMultiDump* multiDump, QWidget* parent
|
|||
mDisas = disas;
|
||||
mMultiDump = multiDump;
|
||||
|
||||
duint setting;
|
||||
if(BridgeSettingGetUint("Gui", "AsciiSeparator", &setting))
|
||||
mAsciiSeparator = setting & 0xF;
|
||||
|
||||
setView((ViewEnum_t)ConfigUint("HexDump", "DefaultView"));
|
||||
|
||||
connect(this, SIGNAL(selectionUpdated()), this, SLOT(selectionUpdatedSlot()));
|
||||
|
@ -506,7 +510,7 @@ void CPUDump::hexAsciiSlot()
|
|||
|
||||
wColDesc.isData = true; //hex byte
|
||||
wColDesc.itemCount = 16;
|
||||
wColDesc.separator = 4;
|
||||
wColDesc.separator = mAsciiSeparator ? mAsciiSeparator : 4;
|
||||
dDesc.itemSize = Byte;
|
||||
dDesc.byteMode = HexByte;
|
||||
wColDesc.data = dDesc;
|
||||
|
@ -540,7 +544,7 @@ void CPUDump::hexUnicodeSlot()
|
|||
|
||||
wColDesc.isData = true; //hex byte
|
||||
wColDesc.itemCount = 16;
|
||||
wColDesc.separator = 4;
|
||||
wColDesc.separator = mAsciiSeparator ? mAsciiSeparator : 4;
|
||||
dDesc.itemSize = Byte;
|
||||
dDesc.byteMode = HexByte;
|
||||
wColDesc.data = dDesc;
|
||||
|
@ -578,7 +582,7 @@ void CPUDump::hexCodepageSlot()
|
|||
|
||||
wColDesc.isData = true; //hex byte
|
||||
wColDesc.itemCount = 16;
|
||||
wColDesc.separator = 4;
|
||||
wColDesc.separator = mAsciiSeparator ? mAsciiSeparator : 4;
|
||||
dDesc.itemSize = Byte;
|
||||
dDesc.byteMode = HexByte;
|
||||
wColDesc.data = dDesc;
|
||||
|
@ -608,7 +612,7 @@ void CPUDump::hexLastCodepageSlot()
|
|||
|
||||
wColDesc.isData = true; //hex byte
|
||||
wColDesc.itemCount = 16;
|
||||
wColDesc.separator = 4;
|
||||
wColDesc.separator = mAsciiSeparator ? mAsciiSeparator : 4;
|
||||
dDesc.itemSize = Byte;
|
||||
dDesc.byteMode = HexByte;
|
||||
wColDesc.data = dDesc;
|
||||
|
|
|
@ -120,6 +120,7 @@ private:
|
|||
GotoDialog* mGotoOffset = nullptr;
|
||||
CPUDisassembly* mDisas;
|
||||
CPUMultiDump* mMultiDump;
|
||||
int mAsciiSeparator = 0;
|
||||
|
||||
enum ViewEnum_t
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue