diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /ui/stackview.h | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'ui/stackview.h')
| -rw-r--r-- | ui/stackview.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/ui/stackview.h b/ui/stackview.h index 34e83950..c2e31a11 100644 --- a/ui/stackview.h +++ b/ui/stackview.h @@ -27,18 +27,17 @@ class BINARYNINJAUIAPI CreateStackVariableDialog : public QDialog //! Automatically update/sanitize the offset and name fields after input. void autoFillFields(); - protected: + protected: void accept() override; - public: - CreateStackVariableDialog( - QWidget* parent, BinaryViewRef data, FunctionRef func, int64_t initialOffset = 0); + public: + CreateStackVariableDialog(QWidget* parent, BinaryViewRef data, FunctionRef func, int64_t initialOffset = 0); }; //! A single line in the stack view. class StackViewLine { - public: + public: enum class Type { Variable, @@ -49,12 +48,10 @@ class StackViewLine }; //! Create a new line for a variable. - static StackViewLine variable( - int64_t offset, const BinaryNinja::VariableNameAndType& vnat, PlatformRef plat); + static StackViewLine variable(int64_t offset, const BinaryNinja::VariableNameAndType& vnat, PlatformRef plat); //! Create a new line for a struct or array member. - static StackViewLine member( - int64_t offset, const BinaryNinja::VariableNameAndType& vnat, PlatformRef plat); + static StackViewLine member(int64_t offset, const BinaryNinja::VariableNameAndType& vnat, PlatformRef plat); //! Create a new line for a struct offset reference. static StackViewLine offsetRef(int64_t base, uint64_t offset, size_t size); @@ -128,7 +125,7 @@ class StackViewLine //! Indent this line's content. void indent(size_t levels = 1); - private: + private: StackViewLine(StackViewLine::Type type, int64_t offset); StackViewLine::Type m_type; @@ -184,12 +181,12 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View //! Find the end of a stack void given a start offset. int64_t findVoidEnd(int64_t start) const; - protected: + protected: void paintEvent(QPaintEvent* event) override; void mousePressEvent(QMouseEvent* event) override; void mouseDoubleClickEvent(QMouseEvent* event) override; - public: + public: StackView(ViewFrame* view, BinaryViewRef data); //! Refresh the stack view's content. @@ -252,7 +249,7 @@ class BINARYNINJAUIAPI StackViewSidebarWidget : public SidebarWidget StackView* m_stackView; QWidget* m_header; - public: + public: StackViewSidebarWidget(ViewFrame* view, BinaryViewRef data); void refresh(); @@ -263,7 +260,7 @@ class BINARYNINJAUIAPI StackViewSidebarWidget : public SidebarWidget class BINARYNINJAUIAPI StackViewSidebarWidgetType : public SidebarWidgetType { - public: + public: StackViewSidebarWidgetType(); SidebarWidget* createWidget(ViewFrame* frame, BinaryViewRef data) override; }; |
