Added context menu icons for reference view (#1808)
* Added context menu icons for reference view * Add context menu icons to source view * Upload context menu icons * Upload context menu icons * Update stdtable to include copy item icon for columns in copy menu
This commit is contained in:
parent
ca27de0dd7
commit
dbb6e7e322
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 740 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue