summaryrefslogtreecommitdiff
path: root/ui/hexeditor.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2021-11-18 13:52:25 -0500
committerRusty Wagner <rusty.wagner@gmail.com>2022-01-10 15:25:18 -0700
commit7f6e54fdc8ff4a06fdcd3c510a37add337f04bac (patch)
tree60cce5955fcc05fc84f35f9662d49c7e0790dde1 /ui/hexeditor.h
parentd9661f34eec6855d495a10eaafc2a8e2679756a7 (diff)
Refactor main area to use pane system
Diffstat (limited to 'ui/hexeditor.h')
-rw-r--r--ui/hexeditor.h16
1 files changed, 16 insertions, 0 deletions
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<uint64_t, uint64_t> getSelectionRange();
bool isSelectionActive();