diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2021-08-13 16:21:20 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2021-10-04 18:55:01 -0600 |
| commit | c80d3d99b9e11c4120cd3a36349d8161f01c7a24 (patch) | |
| tree | e1a5ed642b638f0a4e4d770b35a86f0c04bda5c4 /ui/viewframe.h | |
| parent | 072021568045f1bceb39b3dc217235c5eebc37a9 (diff) | |
Custom tab widget for tear-away tabs
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h index d64dcc0a..1445c780 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -309,7 +309,6 @@ private: bool m_fileContentsLock = true; // file contents protection from accidental modification in the UI ClickableStateLabel* m_fileContentsLockStatus; BinaryViewRef m_data; - DockHandler* m_docks; QWidget* m_view = nullptr; QWidget* m_viewContainer; QVBoxLayout* m_viewLayout; @@ -318,6 +317,10 @@ private: std::list<BinaryNinja::Ref<HistoryEntry>> m_back, m_forward; bool m_graphViewPreferred = false; std::vector<QString> m_viewTypePriority; + QStackedWidget* m_featureMapContainer; + std::map<BinaryViewRef, FeatureMap*> m_featureMaps; + QSplitter* m_featureMapSplitter; + bool m_rightSideFeatureMap = true; UIActionHandler m_actionHandler; @@ -345,7 +348,7 @@ public: void setFileContentsLocked(bool enable); QWidget* getFileContentsLockStatus(); - DockHandler* getDockHandler() const { return m_docks; } + DockHandler* getDockHandler(); QString getTabName(); QString getShortFileName(); @@ -367,9 +370,10 @@ public: bool isGraphViewPreferred() { return m_graphViewPreferred; } void setGraphViewPreferred(bool graphViewPreferred) { m_graphViewPreferred = graphViewPreferred; } void focus(); - void closeFeatureMap(bool recreate = false); - QWidget* createFeatureMap(); + void createFeatureMap(); + void recreateFeatureMaps(); void refreshFeatureMap(); + void updateFeatureMapLocation(const ViewLocation& location); QWidget* getExtendedView(const QString& name, bool create = false); @@ -463,7 +467,7 @@ public Q_SLOTS: virtual void compile(); private Q_SLOTS: - void deleteFeatureMap(bool recreate); + void splitterMoved(int pos, int idx); Q_SIGNALS: void notifyCloseFeatureMap(bool recreate); |
