From 810c0f858e3734077d3df8acd4458d03e09c82ce Mon Sep 17 00:00:00 2001 From: Jon Palmisciano Date: Wed, 3 Aug 2022 12:02:52 -0400 Subject: Add more type actions to Stack View - Invert integer sign - Cycle integer size - Cycle float size - Create 32- and 64-bit floats - Make pointer --- ui/stackview.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ui/stackview.h') 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(); -- cgit v1.3.1