From 7f6e54fdc8ff4a06fdcd3c510a37add337f04bac Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Thu, 18 Nov 2021 13:52:25 -0500 Subject: Refactor main area to use pane system --- ui/hexeditor.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ui/hexeditor.h') diff --git a/ui/hexeditor.h b/ui/hexeditor.h index 08baf21d..0374f51d 100644 --- a/ui/hexeditor.h +++ b/ui/hexeditor.h @@ -41,6 +41,7 @@ public: virtual void updateFonts() override; virtual StatusBarWidget* getStatusBarWidget() override; + virtual QWidget* getHeaderOptionsWidget() override; virtual void followPointer(); @@ -67,6 +68,19 @@ private: HexEditor* m_editor; }; + class HexEditorOptionsIconWidget: public QWidget + { + public: + HexEditorOptionsIconWidget(HexEditor* parent); + + private: + HexEditor* m_view; + ContextMenuManager* m_contextMenuManager; + Menu m_menu; + + void showMenu(); + }; + class HexEditorStatusBarWidget: public StatusBarWidget { public: @@ -108,7 +122,9 @@ private: void setCursorPos(uint64_t pos); void repositionCaret(); void updateCaret(); + void bindActions(); + static void addOptionsMenuActions(Menu& menu); std::pair getSelectionRange(); bool isSelectionActive(); -- cgit v1.3.1