summaryrefslogtreecommitdiff
path: root/ui/stackview.h
diff options
context:
space:
mode:
authorJon Palmisciano <jp@jonpalmisc.com>2022-08-03 12:02:52 -0400
committerJon Palmisciano <jp@jonpalmisc.com>2022-08-03 18:10:59 -0400
commit810c0f858e3734077d3df8acd4458d03e09c82ce (patch)
tree089960e10cca0a86f342868f28f5a972f5fca2af /ui/stackview.h
parentbad3587b2bf2de021ab8dbe7779630673c3bd3c7 (diff)
Add more type actions to Stack View
- Invert integer sign - Cycle integer size - Cycle float size - Create 32- and 64-bit floats - Make pointer
Diffstat (limited to 'ui/stackview.h')
-rw-r--r--ui/stackview.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/stackview.h b/ui/stackview.h
index c2e31a11..85f6f169 100644
--- a/ui/stackview.h
+++ b/ui/stackview.h
@@ -219,9 +219,20 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View
//! Show the "Create Variable" dialog.
void showCreateVariableDialog();
- //! Create an integer of the given size at the cursor position.
+ //! Create an integer of the given size at the cursor position. Pass `0`
+ //! for `size` to cycle through integer sizes automatically.
void quickCreateIntegerAtCursor(size_t size);
+ //! Toggle the sign of the integer at the cursor position.
+ void quickInvertIntegerSignAtCursor();
+
+ //! Create an float of the given size at the cursor position. Pass `0`
+ //! for `size` to cycle through float sizes automatically.
+ void quickCreateFloatAtCursor(size_t size);
+
+ //! Create a pointer the cursor.
+ void quickCreatePointerAtCursor();
+
//! Create an array at the cursor, spanning until the next stack variable.
void quickCreateArrayAtCursor();