diff --git a/src/core/MainWindow.ui b/src/core/MainWindow.ui index 0cf17945..9601194e 100644 --- a/src/core/MainWindow.ui +++ b/src/core/MainWindow.ui @@ -51,10 +51,10 @@ - 2024 - 127 - 151 - 312 + 339 + 101 + 187 + 399 @@ -201,7 +201,7 @@ - Qt::DefaultContextMenu + Qt::ContextMenuPolicy::DefaultContextMenu Main toolbar @@ -216,7 +216,7 @@ - Qt::ToolButtonIconOnly + Qt::ToolButtonStyle::ToolButtonIconOnly TopToolBarArea @@ -257,7 +257,7 @@ - New Window + New window Ctrl+N @@ -283,7 +283,7 @@ - Map File + Map file Ctrl+M @@ -291,7 +291,7 @@ - Save Project + Save project Ctrl+S @@ -348,11 +348,11 @@ - + :/img/icons/arrow_left.svg:/img/icons/arrow_left.svg - Undo Seek + Undo seek Go back @@ -360,11 +360,11 @@ - + :/img/icons/arrow_right.svg:/img/icons/arrow_right.svg - Redo Seek + Redo seek @@ -374,16 +374,17 @@ true + + + :/lock + :/unlock:/lock + - Unlock Panels + Unlock panels Toggle panel locks - - - :/lock:/unlock:/unlock - false @@ -393,7 +394,7 @@ false - + :/img/icons/themes.svg:/img/icons/themes.svg @@ -403,12 +404,12 @@ false - QAction::PreferencesRole + QAction::MenuRole::PreferencesRole - + :/img/icons/tabs.svg:/img/icons/tabs.svg @@ -420,7 +421,7 @@ - + :/img/icons/spin.svg:/img/icons/spin.svg @@ -432,7 +433,7 @@ true - Show Tabs at the Top + Show tabs at the top Toggle tab position @@ -565,7 +566,7 @@ true - + :/img/icons/cloud.svg:/img/icons/cloud.svg @@ -645,7 +646,7 @@ true - + :/img/icons/down.svg:/img/icons/down.svg @@ -662,7 +663,7 @@ - Reset Settings + Reset settings Reset settings @@ -689,7 +690,7 @@ - Refresh Contents + Refresh contents Refresh contents @@ -729,7 +730,7 @@ - Save Project As... + Save project as... @@ -747,7 +748,7 @@ - Analyze Program + Analyze program @@ -757,32 +758,32 @@ - Apply Signature From File + Apply signature from file - Create New Signature File + Create new signature file - Add Hexdump + Add hexdump - Add Decompiler + Add decompiler - Add Disassembly + Add disassembly - Add Graph + Add graph @@ -798,24 +799,24 @@ - Zoom In + Zoom in Ctrl++ - Qt::ApplicationShortcut + Qt::ShortcutContext::ApplicationShortcut - Zoom Out + Zoom out Ctrl+- - Qt::ApplicationShortcut + Qt::ShortcutContext::ApplicationShortcut @@ -826,7 +827,7 @@ Ctrl+= - Qt::ApplicationShortcut + Qt::ShortcutContext::ApplicationShortcut @@ -880,7 +881,7 @@ - + diff --git a/src/menus/DecompilerContextMenu.cpp b/src/menus/DecompilerContextMenu.cpp index 1de95217..ee77b8af 100644 --- a/src/menus/DecompilerContextMenu.cpp +++ b/src/menus/DecompilerContextMenu.cpp @@ -27,7 +27,7 @@ DecompilerContextMenu::DecompilerContextMenu(QWidget *parent, MainWindow *mainWi actionCopyInstructionAddress(tr("Copy instruction address (
)"), this), actionCopyReferenceAddress(tr("Copy address of [flag] (
)"), this), actionShowInSubmenu(tr("Show in"), this), - actionAddComment(tr("Add Comment"), this), + actionAddComment(tr("Add comment"), this), actionDeleteComment(tr("Delete comment"), this), actionRenameThingHere(tr("Rename function at cursor"), this), actionDeleteName(tr("Delete "), this), @@ -163,10 +163,10 @@ void DecompilerContextMenu::aboutToShowSlot() actionAddComment.setVisible(true); if (comment.isEmpty()) { actionDeleteComment.setVisible(false); - actionAddComment.setText(tr("Add Comment")); + actionAddComment.setText(tr("Add comment")); } else { actionDeleteComment.setVisible(true); - actionAddComment.setText(tr("Edit Comment")); + actionAddComment.setText(tr("Edit comment")); } } else { actionShowInSubmenu.setVisible(false); diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index fbadfeca..ec58e3ba 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -86,11 +86,11 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent, MainWindow *main copySeparator = addSeparator(); - initAction(&actionAddComment, tr("Add Comment"), SLOT(on_actionAddComment_triggered()), + initAction(&actionAddComment, tr("Add comment"), SLOT(on_actionAddComment_triggered()), getCommentSequence()); addAction(&actionAddComment); - initAction(&actionSetFunctionVarTypes, tr("Re-type Local Variables"), + initAction(&actionSetFunctionVarTypes, tr("Re-type local variables"), SLOT(on_actionSetFunctionVarTypes_triggered()), getRetypeSequence()); addAction(&actionSetFunctionVarTypes); @@ -137,7 +137,7 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent, MainWindow *main SLOT(on_actionXRefsForVariables_triggered()), QKeySequence(Qt::SHIFT | Qt::Key_X)); addAction(&actionXRefsForVariables); - initAction(&actionDisplayOptions, tr("Show Options"), SLOT(on_actionDisplayOptions_triggered()), + initAction(&actionDisplayOptions, tr("Show options"), SLOT(on_actionDisplayOptions_triggered()), getDisplayOptionsSequence()); addSeparator(); @@ -204,11 +204,11 @@ void DisassemblyContextMenu::addSetBaseMenu() setBaseMenu->addAction(&actionSetBaseHexadecimal); connect(&actionSetBaseHexadecimal, &QAction::triggered, this, [this] { setBase("h"); }); - initAction(&actionSetBasePort, tr("Network Port")); + initAction(&actionSetBasePort, tr("Network port")); setBaseMenu->addAction(&actionSetBasePort); connect(&actionSetBasePort, &QAction::triggered, this, [this] { setBase("p"); }); - initAction(&actionSetBaseIPAddr, tr("IP Address")); + initAction(&actionSetBaseIPAddr, tr("IP address")); setBaseMenu->addAction(&actionSetBaseIPAddr); connect(&actionSetBaseIPAddr, &QAction::triggered, this, [this] { setBase("i"); }); @@ -287,7 +287,7 @@ void DisassemblyContextMenu::addSetToDataMenu() setToDataMenu->addAction(&actionSetToDataEx); auto switchAction = new QAction(this); - initAction(switchAction, "Switch Data", SLOT(on_actionSetToData_triggered()), + initAction(switchAction, "Switch data", SLOT(on_actionSetToData_triggered()), getSetToDataSequence()); } @@ -299,14 +299,14 @@ void DisassemblyContextMenu::addEditMenu() SLOT(on_actionEditInstruction_triggered())); editMenu->addAction(&actionEditInstruction); - initAction(&actionNopInstruction, tr("Nop Instruction"), + initAction(&actionNopInstruction, tr("Nop instruction"), SLOT(on_actionNopInstruction_triggered())); editMenu->addAction(&actionNopInstruction); initAction(&actionEditBytes, tr("Bytes"), SLOT(on_actionEditBytes_triggered())); editMenu->addAction(&actionEditBytes); - initAction(&actionJmpReverse, tr("Reverse Jump"), SLOT(on_actionJmpReverse_triggered())); + initAction(&actionJmpReverse, tr("Reverse jump"), SLOT(on_actionJmpReverse_triggered())); editMenu->addAction(&actionJmpReverse); } @@ -572,10 +572,10 @@ void DisassemblyContextMenu::aboutToShowSlot() if (comment.isNull() || comment.isEmpty()) { actionDeleteComment.setVisible(false); - actionAddComment.setText(tr("Add Comment")); + actionAddComment.setText(tr("Add comment")); } else { actionDeleteComment.setVisible(true); - actionAddComment.setText(tr("Edit Comment")); + actionAddComment.setText(tr("Edit comment")); } actionCopy.setVisible(canCopy); @@ -729,7 +729,7 @@ void DisassemblyContextMenu::on_actionEditInstruction_triggered() return; } EditInstructionDialog e(EDIT_TEXT, parentForDialog()); - e.setWindowTitle(tr("Edit Instruction at %1").arg(RzAddressString(offset))); + e.setWindowTitle(tr("Edit instruction at %1").arg(RzAddressString(offset))); QString oldInstructionOpcode = Core()->getInstructionOpcode(offset); QString oldInstructionBytes = Core()->getInstructionBytes(offset); @@ -779,7 +779,7 @@ void DisassemblyContextMenu::on_actionEditBytes_triggered() return; } EditInstructionDialog e(EDIT_BYTES, parentForDialog()); - e.setWindowTitle(tr("Edit Bytes at %1").arg(RzAddressString(offset))); + e.setWindowTitle(tr("Edit bytes at %1").arg(RzAddressString(offset))); QString oldBytes = Core()->getInstructionBytes(offset); e.setInstruction(oldBytes); diff --git a/src/menus/FlirtContextMenu.cpp b/src/menus/FlirtContextMenu.cpp index cd573af0..b1b25539 100644 --- a/src/menus/FlirtContextMenu.cpp +++ b/src/menus/FlirtContextMenu.cpp @@ -11,8 +11,8 @@ FlirtContextMenu::FlirtContextMenu(QWidget *parent, MainWindow *mainWindow) : QMenu(parent), mainWindow(mainWindow) { - actionCopyLine = new QAction(tr("Copy Line"), this); - actionApplySignature = new QAction(tr("Apply Signature File"), this); + actionCopyLine = new QAction(tr("Copy line"), this); + actionApplySignature = new QAction(tr("Apply signature file"), this); connect(actionCopyLine, &QAction::triggered, this, &FlirtContextMenu::onActionCopyLine); connect(actionApplySignature, &QAction::triggered, this,