GUI: more GUI icons (#775)
This commit is contained in:
parent
3cb1fd6b09
commit
6df9712ae3
|
@ -271,19 +271,19 @@ void HexDump::historyClear()
|
||||||
void HexDump::setupCopyMenu()
|
void HexDump::setupCopyMenu()
|
||||||
{
|
{
|
||||||
// Copy -> Data
|
// Copy -> Data
|
||||||
mCopySelection = new QAction(tr("&Selection"), this);
|
mCopySelection = new QAction(QIcon(":/icons/images/copy_selection.png"), tr("&Selection"), this);
|
||||||
connect(mCopySelection, SIGNAL(triggered(bool)), this, SLOT(copySelectionSlot()));
|
connect(mCopySelection, SIGNAL(triggered(bool)), this, SLOT(copySelectionSlot()));
|
||||||
mCopySelection->setShortcutContext(Qt::WidgetShortcut);
|
mCopySelection->setShortcutContext(Qt::WidgetShortcut);
|
||||||
addAction(mCopySelection);
|
addAction(mCopySelection);
|
||||||
|
|
||||||
// Copy -> Address
|
// Copy -> Address
|
||||||
mCopyAddress = new QAction(tr("&Address"), this);
|
mCopyAddress = new QAction(QIcon(":/icons/images/copy_address.png"), tr("&Address"), this);
|
||||||
connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddressSlot()));
|
connect(mCopyAddress, SIGNAL(triggered()), this, SLOT(copyAddressSlot()));
|
||||||
mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
|
mCopyAddress->setShortcutContext(Qt::WidgetShortcut);
|
||||||
addAction(mCopyAddress);
|
addAction(mCopyAddress);
|
||||||
|
|
||||||
// Copy -> RVA
|
// Copy -> RVA
|
||||||
mCopyRva = new QAction("&RVA", this);
|
mCopyRva = new QAction(QIcon(":/icons/images/copy_address.png"), "&RVA", this);
|
||||||
connect(mCopyRva, SIGNAL(triggered()), this, SLOT(copyRvaSlot()));
|
connect(mCopyRva, SIGNAL(triggered()), this, SLOT(copyRvaSlot()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ void CPUDump::setupContextMenu()
|
||||||
mBinaryMenu->addAction(mBinaryPasteIgnoreSizeAction);
|
mBinaryMenu->addAction(mBinaryPasteIgnoreSizeAction);
|
||||||
|
|
||||||
//Binary->Save To a File
|
//Binary->Save To a File
|
||||||
mBinarySaveToFile = new QAction(tr("Save To a File"), this);
|
mBinarySaveToFile = new QAction(QIcon(":/icons/images/binary_save.png"), tr("Save To a File"), this);
|
||||||
mBinarySaveToFile->setShortcutContext(Qt::WidgetShortcut);
|
mBinarySaveToFile->setShortcutContext(Qt::WidgetShortcut);
|
||||||
this->addAction(mBinarySaveToFile);
|
this->addAction(mBinarySaveToFile);
|
||||||
connect(mBinarySaveToFile, SIGNAL(triggered()), this, SLOT(binarySaveToFileSlot()));
|
connect(mBinarySaveToFile, SIGNAL(triggered()), this, SLOT(binarySaveToFileSlot()));
|
||||||
|
@ -311,15 +311,15 @@ void CPUDump::setupContextMenu()
|
||||||
mHexMenu = new QMenu(tr("&Hex"), this);
|
mHexMenu = new QMenu(tr("&Hex"), this);
|
||||||
mHexMenu->setIcon(QIcon(":/icons/images/hex.png"));
|
mHexMenu->setIcon(QIcon(":/icons/images/hex.png"));
|
||||||
//Hex->Ascii
|
//Hex->Ascii
|
||||||
mHexAsciiAction = new QAction("&ASCII", this);
|
mHexAsciiAction = new QAction(QIcon(":/icons/images/ascii.png"), "&ASCII", this);
|
||||||
connect(mHexAsciiAction, SIGNAL(triggered()), this, SLOT(hexAsciiSlot()));
|
connect(mHexAsciiAction, SIGNAL(triggered()), this, SLOT(hexAsciiSlot()));
|
||||||
mHexMenu->addAction(mHexAsciiAction);
|
mHexMenu->addAction(mHexAsciiAction);
|
||||||
//Hex->Unicode
|
//Hex->Unicode
|
||||||
mHexUnicodeAction = new QAction(tr("&Extended ASCII"), this);
|
mHexUnicodeAction = new QAction(QIcon(":/icons/images/ascii-extended.png"), tr("&Extended ASCII"), this);
|
||||||
connect(mHexUnicodeAction, SIGNAL(triggered()), this, SLOT(hexUnicodeSlot()));
|
connect(mHexUnicodeAction, SIGNAL(triggered()), this, SLOT(hexUnicodeSlot()));
|
||||||
mHexMenu->addAction(mHexUnicodeAction);
|
mHexMenu->addAction(mHexUnicodeAction);
|
||||||
//Hex->Codepage
|
//Hex->Codepage
|
||||||
mHexCodepageAction = new QAction(tr("&Codepage..."), this);
|
mHexCodepageAction = new QAction(QIcon(":/icons/images/codepage.png"), tr("&Codepage..."), this);
|
||||||
connect(mHexCodepageAction, SIGNAL(triggered()), this, SLOT(hexCodepageSlot()));
|
connect(mHexCodepageAction, SIGNAL(triggered()), this, SLOT(hexCodepageSlot()));
|
||||||
mHexMenu->addAction(mHexCodepageAction);
|
mHexMenu->addAction(mHexCodepageAction);
|
||||||
|
|
||||||
|
@ -327,15 +327,15 @@ void CPUDump::setupContextMenu()
|
||||||
mTextMenu = new QMenu(tr("&Text"), this);
|
mTextMenu = new QMenu(tr("&Text"), this);
|
||||||
mTextMenu->setIcon(QIcon(":/icons/images/strings.png"));
|
mTextMenu->setIcon(QIcon(":/icons/images/strings.png"));
|
||||||
//Text->Ascii
|
//Text->Ascii
|
||||||
mTextAsciiAction = new QAction(tr("&ASCII"), this);
|
mTextAsciiAction = new QAction(QIcon(":/icons/images/ascii.png"), tr("&ASCII"), this);
|
||||||
connect(mTextAsciiAction, SIGNAL(triggered()), this, SLOT(textAsciiSlot()));
|
connect(mTextAsciiAction, SIGNAL(triggered()), this, SLOT(textAsciiSlot()));
|
||||||
mTextMenu->addAction(mTextAsciiAction);
|
mTextMenu->addAction(mTextAsciiAction);
|
||||||
//Text->Unicode
|
//Text->Unicode
|
||||||
mTextUnicodeAction = new QAction(tr("&Extended ASCII"), this);
|
mTextUnicodeAction = new QAction(QIcon(":/icons/images/ascii-extended.png"), tr("&Extended ASCII"), this);
|
||||||
connect(mTextUnicodeAction, SIGNAL(triggered()), this, SLOT(textUnicodeSlot()));
|
connect(mTextUnicodeAction, SIGNAL(triggered()), this, SLOT(textUnicodeSlot()));
|
||||||
mTextMenu->addAction(mTextUnicodeAction);
|
mTextMenu->addAction(mTextUnicodeAction);
|
||||||
//Hex->Codepage
|
//Hex->Codepage
|
||||||
mTextCodepageAction = new QAction(tr("&Codepage..."), this);
|
mTextCodepageAction = new QAction(QIcon(":/icons/images/codepage.png"), tr("&Codepage..."), this);
|
||||||
connect(mTextCodepageAction, SIGNAL(triggered()), this, SLOT(textCodepageSlot()));
|
connect(mTextCodepageAction, SIGNAL(triggered()), this, SLOT(textCodepageSlot()));
|
||||||
mTextMenu->addAction(mTextCodepageAction);
|
mTextMenu->addAction(mTextCodepageAction);
|
||||||
|
|
||||||
|
@ -343,39 +343,39 @@ void CPUDump::setupContextMenu()
|
||||||
mIntegerMenu = new QMenu(tr("&Integer"), this);
|
mIntegerMenu = new QMenu(tr("&Integer"), this);
|
||||||
mIntegerMenu->setIcon(QIcon(":/icons/images/integer.png"));
|
mIntegerMenu->setIcon(QIcon(":/icons/images/integer.png"));
|
||||||
//Integer->Signed short
|
//Integer->Signed short
|
||||||
mIntegerSignedShortAction = new QAction("Signed short (16-bit)", this);
|
mIntegerSignedShortAction = new QAction(QIcon(":/icons/images/word.png"), "Signed short (16-bit)", this);
|
||||||
connect(mIntegerSignedShortAction, SIGNAL(triggered()), this, SLOT(integerSignedShortSlot()));
|
connect(mIntegerSignedShortAction, SIGNAL(triggered()), this, SLOT(integerSignedShortSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerSignedShortAction);
|
mIntegerMenu->addAction(mIntegerSignedShortAction);
|
||||||
//Integer->Signed long
|
//Integer->Signed long
|
||||||
mIntegerSignedLongAction = new QAction("Signed long (32-bit)", this);
|
mIntegerSignedLongAction = new QAction(QIcon(":/icons/images/dword.png"), "Signed long (32-bit)", this);
|
||||||
connect(mIntegerSignedLongAction, SIGNAL(triggered()), this, SLOT(integerSignedLongSlot()));
|
connect(mIntegerSignedLongAction, SIGNAL(triggered()), this, SLOT(integerSignedLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerSignedLongAction);
|
mIntegerMenu->addAction(mIntegerSignedLongAction);
|
||||||
//Integer->Signed long long
|
//Integer->Signed long long
|
||||||
mIntegerSignedLongLongAction = new QAction("Signed long long (64-bit)", this);
|
mIntegerSignedLongLongAction = new QAction(QIcon(":/icons/images/qword.png"), "Signed long long (64-bit)", this);
|
||||||
connect(mIntegerSignedLongLongAction, SIGNAL(triggered()), this, SLOT(integerSignedLongLongSlot()));
|
connect(mIntegerSignedLongLongAction, SIGNAL(triggered()), this, SLOT(integerSignedLongLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerSignedLongLongAction);
|
mIntegerMenu->addAction(mIntegerSignedLongLongAction);
|
||||||
//Integer->Unsigned short
|
//Integer->Unsigned short
|
||||||
mIntegerUnsignedShortAction = new QAction("Unsigned short (16-bit)", this);
|
mIntegerUnsignedShortAction = new QAction(QIcon(":/icons/images/word.png"), "Unsigned short (16-bit)", this);
|
||||||
connect(mIntegerUnsignedShortAction, SIGNAL(triggered()), this, SLOT(integerUnsignedShortSlot()));
|
connect(mIntegerUnsignedShortAction, SIGNAL(triggered()), this, SLOT(integerUnsignedShortSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerUnsignedShortAction);
|
mIntegerMenu->addAction(mIntegerUnsignedShortAction);
|
||||||
//Integer->Unsigned long
|
//Integer->Unsigned long
|
||||||
mIntegerUnsignedLongAction = new QAction("Unsigned long (32-bit)", this);
|
mIntegerUnsignedLongAction = new QAction(QIcon(":/icons/images/dword.png"), "Unsigned long (32-bit)", this);
|
||||||
connect(mIntegerUnsignedLongAction, SIGNAL(triggered()), this, SLOT(integerUnsignedLongSlot()));
|
connect(mIntegerUnsignedLongAction, SIGNAL(triggered()), this, SLOT(integerUnsignedLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerUnsignedLongAction);
|
mIntegerMenu->addAction(mIntegerUnsignedLongAction);
|
||||||
//Integer->Unsigned long long
|
//Integer->Unsigned long long
|
||||||
mIntegerUnsignedLongLongAction = new QAction("Unsigned long long (64-bit)", this);
|
mIntegerUnsignedLongLongAction = new QAction(QIcon(":/icons/images/qword.png"), "Unsigned long long (64-bit)", this);
|
||||||
connect(mIntegerUnsignedLongLongAction, SIGNAL(triggered()), this, SLOT(integerUnsignedLongLongSlot()));
|
connect(mIntegerUnsignedLongLongAction, SIGNAL(triggered()), this, SLOT(integerUnsignedLongLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerUnsignedLongLongAction);
|
mIntegerMenu->addAction(mIntegerUnsignedLongLongAction);
|
||||||
//Integer->Hex short
|
//Integer->Hex short
|
||||||
mIntegerHexShortAction = new QAction("Hex short (16-bit)", this);
|
mIntegerHexShortAction = new QAction(QIcon(":/icons/images/word.png"), "Hex short (16-bit)", this);
|
||||||
connect(mIntegerHexShortAction, SIGNAL(triggered()), this, SLOT(integerHexShortSlot()));
|
connect(mIntegerHexShortAction, SIGNAL(triggered()), this, SLOT(integerHexShortSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerHexShortAction);
|
mIntegerMenu->addAction(mIntegerHexShortAction);
|
||||||
//Integer->Hex long
|
//Integer->Hex long
|
||||||
mIntegerHexLongAction = new QAction("Hex long (32-bit)", this);
|
mIntegerHexLongAction = new QAction(QIcon(":/icons/images/dword.png"), "Hex long (32-bit)", this);
|
||||||
connect(mIntegerHexLongAction, SIGNAL(triggered()), this, SLOT(integerHexLongSlot()));
|
connect(mIntegerHexLongAction, SIGNAL(triggered()), this, SLOT(integerHexLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerHexLongAction);
|
mIntegerMenu->addAction(mIntegerHexLongAction);
|
||||||
//Integer->Hex long long
|
//Integer->Hex long long
|
||||||
mIntegerHexLongLongAction = new QAction("Hex long long (64-bit)", this);
|
mIntegerHexLongLongAction = new QAction(QIcon(":/icons/images/qword.png"), "Hex long long (64-bit)", this);
|
||||||
connect(mIntegerHexLongLongAction, SIGNAL(triggered()), this, SLOT(integerHexLongLongSlot()));
|
connect(mIntegerHexLongLongAction, SIGNAL(triggered()), this, SLOT(integerHexLongLongSlot()));
|
||||||
mIntegerMenu->addAction(mIntegerHexLongLongAction);
|
mIntegerMenu->addAction(mIntegerHexLongLongAction);
|
||||||
|
|
||||||
|
@ -383,15 +383,15 @@ void CPUDump::setupContextMenu()
|
||||||
mFloatMenu = new QMenu(tr("&Float"), this);
|
mFloatMenu = new QMenu(tr("&Float"), this);
|
||||||
mFloatMenu->setIcon(QIcon(":/icons/images/float.png"));
|
mFloatMenu->setIcon(QIcon(":/icons/images/float.png"));
|
||||||
//Float->float
|
//Float->float
|
||||||
mFloatFloatAction = new QAction("&Float (32-bit)", this);
|
mFloatFloatAction = new QAction(QIcon(":/icons/images/32bit-float.png"), "&Float (32-bit)", this);
|
||||||
connect(mFloatFloatAction, SIGNAL(triggered()), this, SLOT(floatFloatSlot()));
|
connect(mFloatFloatAction, SIGNAL(triggered()), this, SLOT(floatFloatSlot()));
|
||||||
mFloatMenu->addAction(mFloatFloatAction);
|
mFloatMenu->addAction(mFloatFloatAction);
|
||||||
//Float->double
|
//Float->double
|
||||||
mFloatDoubleAction = new QAction("&Double (64-bit)", this);
|
mFloatDoubleAction = new QAction(QIcon(":/icons/images/64bit-float.png"), "&Double (64-bit)", this);
|
||||||
connect(mFloatDoubleAction, SIGNAL(triggered()), this, SLOT(floatDoubleSlot()));
|
connect(mFloatDoubleAction, SIGNAL(triggered()), this, SLOT(floatDoubleSlot()));
|
||||||
mFloatMenu->addAction(mFloatDoubleAction);
|
mFloatMenu->addAction(mFloatDoubleAction);
|
||||||
//Float->long double
|
//Float->long double
|
||||||
mFloatLongDoubleAction = new QAction("&Long double (80-bit)", this);
|
mFloatLongDoubleAction = new QAction(QIcon(":/icons/images/80bit-float.png"), "&Long double (80-bit)", this);
|
||||||
connect(mFloatLongDoubleAction, SIGNAL(triggered()), this, SLOT(floatLongDoubleSlot()));
|
connect(mFloatLongDoubleAction, SIGNAL(triggered()), this, SLOT(floatLongDoubleSlot()));
|
||||||
mFloatMenu->addAction(mFloatLongDoubleAction);
|
mFloatMenu->addAction(mFloatLongDoubleAction);
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ void CPUDump::setupContextMenu()
|
||||||
connect(mAddressAction, SIGNAL(triggered()), this, SLOT(addressSlot()));
|
connect(mAddressAction, SIGNAL(triggered()), this, SLOT(addressSlot()));
|
||||||
|
|
||||||
//Disassembly
|
//Disassembly
|
||||||
mDisassemblyAction = new QAction(tr("&Disassembly"), this);
|
mDisassemblyAction = new QAction(QIcon(":/icons/images/processor-cpu.png"), tr("&Disassembly"), this);
|
||||||
connect(mDisassemblyAction, SIGNAL(triggered()), this, SLOT(disassemblySlot()));
|
connect(mDisassemblyAction, SIGNAL(triggered()), this, SLOT(disassemblySlot()));
|
||||||
mDisassemblyAction->setEnabled(false); // If this is implemented remove this line.
|
mDisassemblyAction->setEnabled(false); // If this is implemented remove this line.
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 520 B |
|
@ -247,5 +247,6 @@
|
||||||
<file>images/memmap_set_page_memory_rights.png</file>
|
<file>images/memmap_set_page_memory_rights.png</file>
|
||||||
<file>images/runtouser.png</file>
|
<file>images/runtouser.png</file>
|
||||||
<file>images/undo.png</file>
|
<file>images/undo.png</file>
|
||||||
|
<file>images/binary_save.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Loading…
Reference in New Issue