mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
Rename a context menu item (#2267)
This commit is contained in:
parent
e88ad82968
commit
4685f4faaf
@ -69,11 +69,11 @@ Rename Flag/Function/Variable
|
|||||||
|
|
||||||
**Shortcut:** :kbd:`Shift` + :kbd:`N`
|
**Shortcut:** :kbd:`Shift` + :kbd:`N`
|
||||||
|
|
||||||
Re-type function local variables
|
Re-type Local Variables
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
**Description:** Rename or set the types of the function's variables and arguments.
|
**Description:** Rename or set the types of the function's variables and arguments.
|
||||||
|
|
||||||
**Steps:** Right click anywhere inside a function and then choose ``Re-type function local vars``.
|
**Steps:** Right click anywhere inside a function and then choose ``Re-type Local Variables``.
|
||||||
|
|
||||||
**Shortcut:** :kbd:`Y`
|
**Shortcut:** :kbd:`Y`
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent, MainWindow *main
|
|||||||
SLOT(on_actionRenameUsedHere_triggered()), getRenameUsedHereSequence());
|
SLOT(on_actionRenameUsedHere_triggered()), getRenameUsedHereSequence());
|
||||||
addAction(&actionRenameUsedHere);
|
addAction(&actionRenameUsedHere);
|
||||||
|
|
||||||
initAction(&actionSetFunctionVarTypes, tr("Re-type function local vars"),
|
initAction(&actionSetFunctionVarTypes, tr("Re-type Local Variables"),
|
||||||
SLOT(on_actionSetFunctionVarTypes_triggered()), getRetypeSequence());
|
SLOT(on_actionSetFunctionVarTypes_triggered()), getRetypeSequence());
|
||||||
addAction(&actionSetFunctionVarTypes);
|
addAction(&actionSetFunctionVarTypes);
|
||||||
|
|
||||||
@ -860,7 +860,7 @@ void DisassemblyContextMenu::on_actionSetFunctionVarTypes_triggered()
|
|||||||
RAnalFunction *fcn = Core()->functionIn(offset);
|
RAnalFunction *fcn = Core()->functionIn(offset);
|
||||||
|
|
||||||
if (!fcn) {
|
if (!fcn) {
|
||||||
QMessageBox::critical(this, tr("Re-type function local vars"),
|
QMessageBox::critical(this, tr("Re-type Local Variables"),
|
||||||
tr("You must be in a function to define variable types."));
|
tr("You must be in a function to define variable types."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user