From 2c312c8d5bca189241377c564ff5e9fb35fe9de2 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 7 Nov 2020 17:37:22 -0500 Subject: Improved view location preservation when duplicating existing views in the UI. --- ui/linearview.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/linearview.h') diff --git a/ui/linearview.h b/ui/linearview.h index ec3ad3fe..fc91106a 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -126,7 +126,7 @@ class BINARYNINJAUIAPI LinearView: public QAbstractScrollArea, public View, publ SettingsRef m_settings; DisassemblySettingsRef m_options; - BNFunctionGraphType m_type; + BNFunctionGraphType m_ilViewType; InstructionEdit* m_instrEdit; @@ -320,8 +320,10 @@ public: virtual HighlightTokenState getHighlightTokenState() override { return m_highlight; } + BNFunctionGraphType getILViewType() { return m_ilViewType; }; + void setILViewType(BNFunctionGraphType ilViewType); + void toggleOption(BNDisassemblyOption option); - void setViewType(BNFunctionGraphType type); virtual bool goToReference(FunctionRef func, uint64_t source, uint64_t target) override; QFont getFont() override { return m_render.getFont(); } -- cgit v1.3.1