GUI: configuration in HexEditDialog
This commit is contained in:
parent
b53cb5449e
commit
4521f1f837
|
|
@ -507,6 +507,12 @@ void AppearanceDialog::colorInfoListInit()
|
|||
colorInfoListAppend("Selected Addresses", "StackSelectedAddressColor", "StackSelectedAddressBackgroundColor");
|
||||
colorInfoListAppend("Labels", "StackLabelColor", "StackLabelBackgroundColor");
|
||||
|
||||
colorInfoListAppend("HexEdit:", "", "");
|
||||
colorInfoListAppend("Text", "HexEditTextColor", "");
|
||||
colorInfoListAppend("Wildcards", "HexEditWildcardColor", "");
|
||||
colorInfoListAppend("Background", "HexEditBackgroundColor", "");
|
||||
colorInfoListAppend("Selection", "HexEditSelectionColor", "");
|
||||
|
||||
colorInfoListAppend("Other:", "", "");
|
||||
colorInfoListAppend("Current Thread", "ThreadCurrentColor", "ThreadCurrentBackgroundColor");
|
||||
colorInfoListAppend("Memory Map Breakpoint", "MemoryMapBreakpointColor", "MemoryMapBreakpointBackgroundColor");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "HexEditDialog.h"
|
||||
#include "ui_HexEditDialog.h"
|
||||
#include "QHexEdit/QHexEdit.h"
|
||||
#include "Configuration.h"
|
||||
|
||||
HexEditDialog::HexEditDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
|
|
@ -22,6 +23,11 @@ HexEditDialog::HexEditDialog(QWidget *parent) :
|
|||
//setup hex editor
|
||||
mHexEdit = new QHexEdit(this);
|
||||
mHexEdit->setHorizontalSpacing(6);
|
||||
mHexEdit->setOverwriteMode(true);
|
||||
mHexEdit->setTextColor(ConfigColor("HexEditTextColor"));
|
||||
mHexEdit->setWildcardColor(ConfigColor("HexEditWildcardColor"));
|
||||
mHexEdit->setBackgroundColor(ConfigColor("HexEditBackgroundColor"));
|
||||
mHexEdit->setSelectionColor(ConfigColor("HexEditSelectionColor"));
|
||||
connect(mHexEdit, SIGNAL(dataChanged()), this, SLOT(dataChangedSlot()));
|
||||
mHexEdit->setData(QByteArray(1,0));
|
||||
ui->scrollArea->setWidget(mHexEdit);
|
||||
|
|
|
|||
|
|
@ -127,6 +127,11 @@ Configuration::Configuration() : QObject()
|
|||
defaultColors.insert("StackLabelColor", QColor("#FF0000"));
|
||||
defaultColors.insert("StackLabelBackgroundColor", Qt::transparent);
|
||||
|
||||
defaultColors.insert("HexEditTextColor", QColor("#000000"));
|
||||
defaultColors.insert("HexEditWildcardColor", QColor("#FF0000"));
|
||||
defaultColors.insert("HexEditBackgroundColor", QColor("#FFF8F0"));
|
||||
defaultColors.insert("HexEditSelectionColor", QColor("#C0C0C0"));
|
||||
|
||||
defaultColors.insert("ThreadCurrentColor", QColor("#FFFFFF"));
|
||||
defaultColors.insert("ThreadCurrentBackgroundColor", QColor("#000000"));
|
||||
defaultColors.insert("MemoryMapBreakpointColor", QColor("#FFFBF0"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue