summaryrefslogtreecommitdiff
path: root/ui/viewframe.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-03-20 15:59:37 -0400
committerBrian Potchik <brian@vector35.com>2019-03-20 15:59:37 -0400
commitbc226a8d813b48042581b745068771f6817753ed (patch)
treee9ea93db7e451770718e696b93c53113f5dce462 /ui/viewframe.h
parent8e943538fcfaed733e813175db8ba8d8f6fdcc91 (diff)
Add data sensitivity to dock widget system.
Diffstat (limited to 'ui/viewframe.h')
-rw-r--r--ui/viewframe.h9
1 files changed, 3 insertions, 6 deletions
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<QString, QPointer<QWidget>> m_extendedViewCache;
+ std::map<QString, std::map<QString, QPointer<QWidget>>> m_extViewCache;
std::map<QString, QWidget*> m_viewCache;
std::stack<BinaryNinja::Ref<HistoryEntry>> m_back, m_forward;
bool m_graphViewPreferred = false;
std::vector<QString> 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();