diff --git a/src/gui/Src/BasicView/ReferenceView.cpp b/src/gui/Src/BasicView/ReferenceView.cpp index 6b9b2cb6..e2e27e7b 100644 --- a/src/gui/Src/BasicView/ReferenceView.cpp +++ b/src/gui/Src/BasicView/ReferenceView.cpp @@ -56,33 +56,34 @@ ReferenceView::ReferenceView(bool sourceView, QWidget* parent) : SearchListView( void ReferenceView::setupContextMenu() { - mFollowAddress = new QAction(tr("&Follow in Disassembler"), this); + QIcon disassembler = DIcon(ArchValue("processor32.png", "processor64.png")); + mFollowAddress = new QAction(disassembler, tr("&Follow in Disassembler"), this); connect(mFollowAddress, SIGNAL(triggered()), this, SLOT(followAddress())); - mFollowDumpAddress = new QAction(tr("Follow in &Dump"), this); + mFollowDumpAddress = new QAction(DIcon("dump.png"), tr("Follow in &Dump"), this); connect(mFollowDumpAddress, SIGNAL(triggered()), this, SLOT(followDumpAddress())); mFollowApiAddress = new QAction(tr("Follow &API Address"), this); connect(mFollowApiAddress, SIGNAL(triggered()), this, SLOT(followApiAddress())); - mToggleBreakpoint = new QAction(tr("Toggle Breakpoint"), this); + mToggleBreakpoint = new QAction(DIcon("breakpoint_toggle.png"), tr("Toggle Breakpoint"), this); mToggleBreakpoint->setShortcutContext(Qt::WidgetWithChildrenShortcut); addAction(mToggleBreakpoint); mList->addAction(mToggleBreakpoint); mSearchList->addAction(mToggleBreakpoint); connect(mToggleBreakpoint, SIGNAL(triggered()), this, SLOT(toggleBreakpoint())); - mToggleBookmark = new QAction(tr("Toggle Bookmark"), this); + mToggleBookmark = new QAction(DIcon("bookmark_toggle.png"), tr("Toggle Bookmark"), this); mToggleBookmark->setShortcutContext(Qt::WidgetWithChildrenShortcut); addAction(mToggleBookmark); mList->addAction(mToggleBookmark); mSearchList->addAction(mToggleBookmark); connect(mToggleBookmark, SIGNAL(triggered()), this, SLOT(toggleBookmark())); - mSetBreakpointOnAllCommands = new QAction(tr("Set breakpoint on all commands"), this); + mSetBreakpointOnAllCommands = new QAction(DIcon("breakpoint_seton_all_commands.png"), tr("Set breakpoint on all commands"), this); connect(mSetBreakpointOnAllCommands, SIGNAL(triggered()), this, SLOT(setBreakpointOnAllCommands())); - mRemoveBreakpointOnAllCommands = new QAction(tr("Remove breakpoint on all commands"), this); + mRemoveBreakpointOnAllCommands = new QAction(DIcon("breakpoint_remove_all_commands.png"), tr("Remove breakpoint on all commands"), this); connect(mRemoveBreakpointOnAllCommands, SIGNAL(triggered()), this, SLOT(removeBreakpointOnAllCommands())); mSetBreakpointOnAllApiCalls = new QAction(tr("Set breakpoint on all api calls"), this); diff --git a/src/gui/Src/BasicView/StdTable.cpp b/src/gui/Src/BasicView/StdTable.cpp index 155c8541..872a9324 100644 --- a/src/gui/Src/BasicView/StdTable.cpp +++ b/src/gui/Src/BasicView/StdTable.cpp @@ -686,7 +686,7 @@ void StdTable::setupCopyMenu(QMenu* copyMenu) QString title = mCopyTitles.at(i); if(!title.length()) //skip empty copy titles continue; - QAction* mCopyAction = new QAction(title, copyMenu); + QAction* mCopyAction = new QAction(DIcon("copy_item.png"), title, copyMenu); mCopyAction->setObjectName(QString::number(i)); connect(mCopyAction, SIGNAL(triggered()), this, SLOT(copyEntrySlot())); copyMenu->addAction(mCopyAction); @@ -723,7 +723,7 @@ void StdTable::setupCopyMenu(MenuBuilder* copyMenu) QString title = mCopyTitles.at(i); if(!title.length()) //skip empty copy titles continue; - QAction* action = new QAction(title, menu); + QAction* action = new QAction(DIcon("copy_item.png"), title, menu); action->setObjectName(QString::number(i)); connect(action, SIGNAL(triggered()), this, SLOT(copyEntrySlot())); menu->addAction(action); diff --git a/src/gui/Src/Gui/SourceView.cpp b/src/gui/Src/Gui/SourceView.cpp index 64aaeb3d..97f77aea 100644 --- a/src/gui/Src/Gui/SourceView.cpp +++ b/src/gui/Src/Gui/SourceView.cpp @@ -28,8 +28,8 @@ SourceView::SourceView(QString path, int line, QWidget* parent) mSearchList->disassembleAtSlot(0, cip); mMenuBuilder = new MenuBuilder(this); - mMenuBuilder->addAction(makeAction(tr("Open source file"), SLOT(openSourceFileSlot()))); - mMenuBuilder->addAction(makeAction(tr("Show source file in directory"), SLOT(showInDirectorySlot()))); + mMenuBuilder->addAction(makeAction(DIcon("source.png"), tr("Open source file"), SLOT(openSourceFileSlot()))); + mMenuBuilder->addAction(makeAction(DIcon("source_show_in_folder.png"), tr("Show source file in directory"), SLOT(showInDirectorySlot()))); mMenuBuilder->loadFromConfig(); } diff --git a/src/gui/images/copy_item.png b/src/gui/images/copy_item.png new file mode 100644 index 00000000..63ac2c4f Binary files /dev/null and b/src/gui/images/copy_item.png differ diff --git a/src/gui/images/source_show_in_folder.png b/src/gui/images/source_show_in_folder.png new file mode 100644 index 00000000..134dbf31 Binary files /dev/null and b/src/gui/images/source_show_in_folder.png differ diff --git a/src/gui/images/thread-setname.png b/src/gui/images/thread-setname.png index ec9b3a65..def94377 100644 Binary files a/src/gui/images/thread-setname.png and b/src/gui/images/thread-setname.png differ