From bc226a8d813b48042581b745068771f6817753ed Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 20 Mar 2019 15:59:37 -0400 Subject: Add data sensitivity to dock widget system. --- ui/viewframe.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ui/viewframe.h') diff --git a/ui/viewframe.h b/ui/viewframe.h index 402c95c9..6217fffa 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -157,7 +157,7 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget Q_OBJECT private: - QWidget* createView(const QString& typeName, ViewType* type, BinaryViewRef data); + QWidget* createView(const QString& typeName, ViewType* type, BinaryViewRef data, bool createExtendedViews = true); HistoryEntry* getHistoryEntry(); FileContext* m_context; @@ -165,15 +165,12 @@ private: QWidget* m_view; QWidget* m_viewContainer; QVBoxLayout* m_viewLayout; - std::map> m_extendedViewCache; + std::map>> m_extViewCache; std::map m_viewCache; std::stack> m_back, m_forward; bool m_graphViewPreferred = false; std::vector m_viewTypePriority; - FunctionsView* m_funcs = nullptr; - FeatureMap* m_featureMap = nullptr; - UIActionHandler m_actionHandler; protected: @@ -190,7 +187,6 @@ public: virtual ~ViewFrame(); FileContext* getFileContext() const { return m_context; } - FunctionsView* getFunctionsView() const { return m_funcs; } QString getTabName(); QString getShortFileName(); @@ -220,6 +216,7 @@ public: bool navigateToFunction(FunctionRef func, uint64_t offset, bool updateInfo = true); bool goToReference(BinaryViewRef data, FunctionRef func, uint64_t source, uint64_t target); QString getTypeForView(QWidget* view); + QString getDataTypeForView(const QString& type); QString getDataTypeForView(QWidget* view); bool closeRequest(); -- cgit v1.3.1