GUI: updated icons for analysis (thanks to @mrfearless)
This commit is contained in:
parent
eaceadb260
commit
31511c6baa
|
@ -407,20 +407,15 @@ void CPUDisassembly::setupRightClickContextMenu()
|
|||
|
||||
mMenuBuilder->addSeparator();
|
||||
|
||||
|
||||
MenuBuilder* analysisMenu = new MenuBuilder(this);
|
||||
|
||||
|
||||
analysisMenu->addAction(makeShortcutAction(tr("Analyze single function"), SLOT(analyzeSingleFunctionSlot()), "ActionAnalyzeSingleFunction"));
|
||||
analysisMenu->addAction(makeShortcutAction(tr("Remove analysis from module"), SLOT(removeAnalysisModuleSlot()), "ActionRemoveAnalysisFromModule"));
|
||||
|
||||
analysisMenu->addAction(makeShortcutAction(QIcon(":/icons/images/analysis_single_function.png"), tr("Analyze single function"), SLOT(analyzeSingleFunctionSlot()), "ActionAnalyzeSingleFunction"));
|
||||
analysisMenu->addAction(makeShortcutAction(QIcon(":/icons/images/remove_analysis_from_module.png"), tr("Remove analysis from module"), SLOT(removeAnalysisModuleSlot()), "ActionRemoveAnalysisFromModule"));
|
||||
analysisMenu->addSeparator();
|
||||
|
||||
analysisMenu->addAction(makeShortcutAction(tr("Remove analysis from selection"), SLOT(removeAnalysisSelectionSlot()), "ActionRemoveAnalysisFromSelection"));
|
||||
analysisMenu->addAction(makeShortcutAction(QIcon(":/icons/images/remove_analysis_from_selection.png"), tr("Remove analysis from selection"), SLOT(removeAnalysisSelectionSlot()), "ActionRemoveAnalysisFromSelection"));
|
||||
|
||||
QMenu* encodeTypeMenu = makeMenu(tr("Treat selection head as"));
|
||||
|
||||
QMenu* encodeTypeRangeMenu = makeMenu(tr("Treat selection as"));
|
||||
QMenu* encodeTypeMenu = makeMenu(tr("Treat selection &head as"));
|
||||
QMenu* encodeTypeRangeMenu = makeMenu(tr("Treat &selection as"));
|
||||
|
||||
const char* strTable[] = {"Code", "Byte", "Word", "Dword", "Fword", "Qword", "Tbyte", "Oword", "",
|
||||
"Float", "Double", "Long Double", "",
|
||||
|
@ -434,6 +429,12 @@ void CPUDisassembly::setupRightClickContextMenu()
|
|||
nullptr, nullptr, nullptr
|
||||
};
|
||||
|
||||
const char* iconTable[] = {"cmd", "byte", "word", "dword", "fword", "qword", "tbyte", "oword", nullptr,
|
||||
"float", "double", nullptr, nullptr,
|
||||
"ascii", "unicode", nullptr,
|
||||
"mmword", "xmm", "ymm"
|
||||
};
|
||||
|
||||
ENCODETYPE enctypeTable[] = {enc_code, enc_byte, enc_word, enc_dword, enc_fword, enc_qword, enc_tbyte, enc_oword, enc_middle,
|
||||
enc_real4, enc_real8, enc_real10 , enc_middle,
|
||||
enc_ascii, enc_unicode, enc_middle,
|
||||
|
@ -452,28 +453,29 @@ void CPUDisassembly::setupRightClickContextMenu()
|
|||
else
|
||||
{
|
||||
QAction* action;
|
||||
QIcon icon;
|
||||
if(iconTable[i])
|
||||
icon = QIcon(QString(":/icons/images/treat_selection_as_%1.png").arg(iconTable[i]));
|
||||
if(shortcutTable[i])
|
||||
action = makeShortcutAction(tr(strTable[i]), SLOT(setEncodeTypeRangeSlot()), shortcutTable[i]);
|
||||
action = makeShortcutAction(icon, tr(strTable[i]), SLOT(setEncodeTypeRangeSlot()), shortcutTable[i]);
|
||||
else
|
||||
action = makeAction(tr(strTable[i]), SLOT(setEncodeTypeRangeSlot()));
|
||||
action = makeAction(icon, tr(strTable[i]), SLOT(setEncodeTypeRangeSlot()));
|
||||
action->setData(enctypeTable[i]);
|
||||
encodeTypeRangeMenu->addAction(action);
|
||||
action = makeAction(tr(strTable[i]), SLOT(setEncodeTypeSlot()));
|
||||
action = makeAction(icon, tr(strTable[i]), SLOT(setEncodeTypeSlot()));
|
||||
action->setData(enctypeTable[i]);
|
||||
encodeTypeMenu->addAction(action);
|
||||
}
|
||||
}
|
||||
|
||||
analysisMenu->addMenu(encodeTypeMenu);
|
||||
analysisMenu->addMenu(encodeTypeRangeMenu);
|
||||
analysisMenu->addMenu(encodeTypeMenu);
|
||||
|
||||
mMenuBuilder->addMenu(makeMenu(QIcon(":/icons/images/analyzesinglefunction.png"), tr("Analysis")), analysisMenu);
|
||||
mMenuBuilder->addMenu(makeMenu(QIcon(":/icons/images/analysis.png"), tr("Analysis")), analysisMenu);
|
||||
mMenuBuilder->addSeparator();
|
||||
|
||||
|
||||
mMenuBuilder->addAction(makeShortcutAction(QIcon(":/icons/images/compile.png"), tr("Assemble"), SLOT(assembleSlot()), "ActionAssemble"));
|
||||
|
||||
|
||||
removeAction(mMenuBuilder->addAction(makeShortcutAction(QIcon(":/icons/images/patch.png"), tr("Patches"), SLOT(showPatchesSlot()), "ViewPatches"))); //prevent conflicting shortcut with the MainWindow
|
||||
mMenuBuilder->addAction(makeShortcutAction(QIcon(":/icons/images/yara.png"), tr("&Yara..."), SLOT(yaraSlot()), "ActionYara"));
|
||||
mMenuBuilder->addSeparator();
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 610 B |
Binary file not shown.
Before Width: | Height: | Size: 752 B |
|
@ -96,10 +96,27 @@
|
|||
<file>images/helpmnemonic.png</file>
|
||||
<file>images/handles.png</file>
|
||||
<file>images/dump.png</file>
|
||||
<file>images/analyzesinglefunction.png</file>
|
||||
<file>images/xrefs.png</file>
|
||||
<file>images/codepage.png</file>
|
||||
<file>images/traceinto.png</file>
|
||||
<file>images/traceover.png</file>
|
||||
<file>images/analysis_single_function.png</file>
|
||||
<file>images/remove_analysis_from_module.png</file>
|
||||
<file>images/remove_analysis_from_selection.png</file>
|
||||
<file>images/treat_selection_as_ascii.png</file>
|
||||
<file>images/treat_selection_as_byte.png</file>
|
||||
<file>images/treat_selection_as_cmd.png</file>
|
||||
<file>images/treat_selection_as_dword.png</file>
|
||||
<file>images/treat_selection_as_float.png</file>
|
||||
<file>images/treat_selection_as_fword.png</file>
|
||||
<file>images/treat_selection_as_mmword.png</file>
|
||||
<file>images/treat_selection_as_oword.png</file>
|
||||
<file>images/treat_selection_as_qword.png</file>
|
||||
<file>images/treat_selection_as_tbyte.png</file>
|
||||
<file>images/treat_selection_as_unicode.png</file>
|
||||
<file>images/treat_selection_as_word.png</file>
|
||||
<file>images/treat_selection_as_xmm.png</file>
|
||||
<file>images/treat_selection_as_ymm.png</file>
|
||||
<file>images/analysis.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue