diff options
| author | Brian Potchik <brian@vector35.com> | 2019-05-14 14:44:44 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-05-14 14:44:44 -0400 |
| commit | a8b00d8ea6c6e0b5c39c08ef28da4abf06610e09 (patch) | |
| tree | 54150252056ae9e109b7d6b151cf1b51aa0aa4c4 /ui/viewframe.h | |
| parent | 62cf046e921ff8917ad542bc8f6974ed4ee63bd9 (diff) | |
Add dynamic dock widget support for UI plugins.
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h index 8abb63fa..d08fa38e 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -10,6 +10,7 @@ #include <stack> #include <utility> #include <vector> +#include "dockhandler.h" #include "filecontext.h" #include "viewtype.h" #include "action.h" @@ -79,8 +80,9 @@ public: void setBinaryDataNavigable(bool navigable) { m_binaryDataNavigable = navigable; } virtual bool closeRequest() { return true; } - virtual void closing() {} - virtual void updateFonts() {} + virtual void closing() { } + virtual void updateFonts() { } + virtual void updateTheme() { } virtual void undo(); virtual void redo(); @@ -161,11 +163,12 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget Q_OBJECT private: - QWidget* createView(const QString& typeName, ViewType* type, BinaryViewRef data, bool createExtendedViews = true); + QWidget* createView(const QString& typeName, ViewType* type, BinaryViewRef data, bool createDynamicWidgets = true); HistoryEntry* getHistoryEntry(); FileContext* m_context; BinaryViewRef m_data; + DockHandler* m_docks; QWidget* m_view; QWidget* m_viewContainer; QVBoxLayout* m_viewLayout; @@ -187,7 +190,7 @@ protected: void setView(QWidget* view); public: - explicit ViewFrame(QWidget* parent, FileContext* file, const QString& type, bool createExtendedViews = false); + explicit ViewFrame(QWidget* parent, FileContext* file, const QString& type, bool createDynamicWidgets = false); virtual ~ViewFrame(); FileContext* getFileContext() const { return m_context; } @@ -227,7 +230,6 @@ public: void closing(); void updateFonts(); - void updateOffset(uint64_t offset); void updateTheme(); void addHistoryEntry(); void back(); |
