From 85a3a322e029cb28cc2cda913fd2ccccfe0b9d3b Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sun, 14 Jul 2019 21:04:54 -0400 Subject: Pass through ability to show imports/exports/etc --- ui/symbollist.h | 10 ++++++++++ ui/symbolsview.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/ui/symbollist.h b/ui/symbollist.h index e1edb6b5..dd3d9d3c 100644 --- a/ui/symbollist.h +++ b/ui/symbollist.h @@ -279,6 +279,16 @@ public: virtual bool canCopy(); void find(); + bool getShowExports() const { return m_list->getShowExports(); } + bool getShowImports() const { return m_list->getShowImports(); } + bool getShowFunctions() const { return m_list->getShowFunctions(); } + bool getShowDataVars() const { return m_list->getShowDataVars(); } + + void toggleExports() { m_list->toggleExports(); } + void toggleImports() { m_list->toggleImports(); } + void toggleFunctions() { m_list->toggleFunctions(); } + void toggleDataVars() { m_list->toggleDataVars(); } + protected: virtual void focusOutEvent(QFocusEvent* event) override; virtual void keyPressEvent(QKeyEvent* event) override; diff --git a/ui/symbolsview.h b/ui/symbolsview.h index 694f3ea4..93e0dd51 100644 --- a/ui/symbolsview.h +++ b/ui/symbolsview.h @@ -33,6 +33,16 @@ public: virtual void OnBinaryDataInserted(BinaryNinja::BinaryView* data, uint64_t offset, size_t len) override; virtual void OnBinaryDataRemoved(BinaryNinja::BinaryView* data, uint64_t offset, uint64_t len) override; + bool getShowExports() const { return m_funcList->getShowExports(); } + bool getShowImports() const { return m_funcList->getShowImports(); } + bool getShowFunctions() const { return m_funcList->getShowFunctions(); } + bool getShowDataVars() const { return m_funcList->getShowDataVars(); } + + void toggleExports() { m_funcList->toggleExports(); } + void toggleImports() { m_funcList->toggleImports(); } + void toggleFunctions() { m_funcList->toggleFunctions(); } + void toggleDataVars() { m_funcList->toggleDataVars(); } + protected: virtual void contextMenuEvent(QContextMenuEvent* event) override; virtual void notifyFontChanged() override; -- cgit v1.3.1