GUI: update the sidebar while in the settings dialog
This commit is contained in:
parent
9aa1ae95ed
commit
f9ab7c7723
|
|
@ -730,6 +730,7 @@ BRIDGE_IMPEXP void GuiUpdateAllViews()
|
|||
GuiUpdateBreakpointsView();
|
||||
GuiUpdateDumpView();
|
||||
GuiUpdateThreadView();
|
||||
GuiupdateSideBar();
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdateRegisterView()
|
||||
|
|
@ -966,6 +967,11 @@ BRIDGE_IMPEXP void GuiAddStatusBarMessage(const char* msg)
|
|||
_gui_sendmessage(GUI_ADD_MSG_TO_STATUSBAR, (void*)msg, 0);
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiupdateSideBar()
|
||||
{
|
||||
_gui_sendmessage(GUI_UPDATE_SIDEBAR, 0, 0);
|
||||
}
|
||||
|
||||
//Main
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -608,7 +608,9 @@ enum GUIMSG
|
|||
GUI_AUTOCOMPLETE_DELCMD, // param1=const char* cmd, param2=ununsed
|
||||
GUI_AUTOCOMPLETE_CLEARALL, // param1=ununsed, param2=unused
|
||||
GUI_SCRIPT_ENABLEHIGHLIGHTING, // param1=bool enable, param2=unused
|
||||
GUI_ADD_MSG_TO_STATUSBAR // param1=const char* msg, param2=unused
|
||||
GUI_ADD_MSG_TO_STATUSBAR, // param1=const char* msg, param2=unused
|
||||
GUI_UPDATE_SIDEBAR, // param1=unused, param2=unused
|
||||
GUI_REPAINT_REGISTER_VIEW // param1=unused, param2=unused
|
||||
};
|
||||
|
||||
//GUI structures
|
||||
|
|
@ -677,6 +679,7 @@ BRIDGE_IMPEXP void GuiAutoCompleteAddCmd(const char* cmd);
|
|||
BRIDGE_IMPEXP void GuiAutoCompleteDelCmd(const char* cmd);
|
||||
BRIDGE_IMPEXP void GuiAutoCompleteClearAll();
|
||||
BRIDGE_IMPEXP void GuiAddStatusBarMessage(const char* msg);
|
||||
BRIDGE_IMPEXP void GuiupdateSideBar();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -352,6 +352,11 @@ void Bridge::emitAutoCompleteClearAll()
|
|||
emit autoCompleteClearAll();
|
||||
}
|
||||
|
||||
void Bridge::emitUpdateSideBar()
|
||||
{
|
||||
emit updateSideBar();
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
Static Functions
|
||||
************************************************************************************/
|
||||
|
|
@ -702,6 +707,12 @@ __declspec(dllexport) void* _gui_sendmessage(GUIMSG type, void* param1, void* pa
|
|||
}
|
||||
break;
|
||||
|
||||
case GUI_UPDATE_SIDEBAR:
|
||||
{
|
||||
Bridge::getBridge()->emitUpdateSideBar();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public:
|
|||
void emitAutoCompleteDelCmd(const QString cmd);
|
||||
void emitAutoCompleteClearAll();
|
||||
void emitAddMsgToStatusBar(QString msg);
|
||||
void emitUpdateSideBar();
|
||||
|
||||
//Public variables
|
||||
void* winId;
|
||||
|
|
@ -133,6 +134,7 @@ signals:
|
|||
void autoCompleteDelCmd(const QString cmd);
|
||||
void autoCompleteClearAll();
|
||||
void addMsgToStatusBar(QString msg);
|
||||
void updateSideBar();
|
||||
|
||||
private:
|
||||
QMutex mBridgeMutex;
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ void AppearanceDialog::colorInfoListInit()
|
|||
colorInfoListAppend("Background", "RegistersBackgroundColor", "");
|
||||
colorInfoListAppend("Selection", "RegistersSelectionColor", "");
|
||||
colorInfoListAppend("Modified Registers", "RegistersModifiedColor", "");
|
||||
colorInfoListAppend("Name of Labels", "RegistersLabelColor", "");
|
||||
colorInfoListAppend("Register Names", "RegistersLabelColor", "");
|
||||
colorInfoListAppend("Extra Information", "RegistersExtraInfoColor", "");
|
||||
|
||||
colorInfoListAppend("Instructions:", "", "");
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ CPUWidget::CPUWidget(QWidget *parent) :QWidget(parent), ui(new Ui::CPUWidget)
|
|||
connect(mDisas,SIGNAL(repainted()),mSideBar,SLOT(repaint()));
|
||||
connect(mDisas,SIGNAL(selectionChanged(int_t)),mSideBar,SLOT(setSelection(int_t)));
|
||||
connect(Bridge::getBridge(),SIGNAL(dbgStateChanged(DBGSTATE)),mSideBar,SLOT(debugStateChangedSlot(DBGSTATE)));
|
||||
connect(Bridge::getBridge(),SIGNAL(updateSideBar()),mSideBar,SLOT(repaint()));
|
||||
|
||||
QSplitter* splitter = new QSplitter(this);
|
||||
splitter->addWidget(mSideBar);
|
||||
|
|
|
|||
Loading…
Reference in New Issue