1
0
Fork 0

GUI: fixed a bug with shortcut contexts

LAUNCHER: fixed a clean compile bug (removed bridge inclusion)
EXE: removed unused include
This commit is contained in:
Mr. eXoDia 2014-08-01 23:27:00 +02:00
parent 5fec262354
commit f6c1cae989
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <windows.h> #include <windows.h>
#include "resource.h"
#include "..\x64_dbg_bridge\bridgemain.h" #include "..\x64_dbg_bridge\bridgemain.h"
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)

View File

@ -5,18 +5,24 @@ RegistersView::RegistersView(QWidget * parent) : QAbstractScrollArea(parent), mV
{ {
// precreate ContextMenu Actions // precreate ContextMenu Actions
wCM_Increment = new QAction(tr("Increment"),this); wCM_Increment = new QAction(tr("Increment"),this);
wCM_Increment->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_Increment); this->addAction(wCM_Increment);
wCM_Decrement = new QAction(tr("Decrement"),this); wCM_Decrement = new QAction(tr("Decrement"),this);
wCM_Decrement->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_Decrement); this->addAction(wCM_Decrement);
wCM_Zero = new QAction(tr("Zero"),this); wCM_Zero = new QAction(tr("Zero"),this);
wCM_Zero->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_Zero); this->addAction(wCM_Zero);
wCM_SetToOne = new QAction(tr("Set to 1"),this); wCM_SetToOne = new QAction(tr("Set to 1"),this);
wCM_SetToOne->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_SetToOne); this->addAction(wCM_SetToOne);
wCM_Modify = new QAction(tr("Modify Value"),this); wCM_Modify = new QAction(tr("Modify Value"),this);
wCM_Modify->setShortcut(QKeySequence(Qt::Key_Enter)); wCM_Modify->setShortcut(QKeySequence(Qt::Key_Enter));
wCM_ToggleValue = new QAction(tr("Toggle"),this); wCM_ToggleValue = new QAction(tr("Toggle"),this);
wCM_ToggleValue->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_ToggleValue); this->addAction(wCM_ToggleValue);
wCM_CopyToClipboard = new QAction(tr("Copy Value to Clipboard"),this); wCM_CopyToClipboard = new QAction(tr("Copy Value to Clipboard"),this);
wCM_CopyToClipboard->setShortcutContext(Qt::WidgetShortcut);
this->addAction(wCM_CopyToClipboard); this->addAction(wCM_CopyToClipboard);
wCM_FollowInDisassembly = new QAction(tr("Follow in Disassembler"),this); wCM_FollowInDisassembly = new QAction(tr("Follow in Disassembler"),this);
wCM_FollowInDump = new QAction(tr("Follow in Dump"),this); wCM_FollowInDump = new QAction(tr("Follow in Dump"),this);

View File

@ -51,7 +51,7 @@
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>$(SolutionDir)bin\x32\x32_bridge.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ProgramDatabaseFile>$(TargetDir)$(TargetName).pdb</ProgramDatabaseFile> <ProgramDatabaseFile>$(TargetDir)$(TargetName).pdb</ProgramDatabaseFile>
<AdditionalManifestDependencies> <AdditionalManifestDependencies>
</AdditionalManifestDependencies> </AdditionalManifestDependencies>