From 70bbb18a9444824a8ec2b9a7ff57fc848e017b6e Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 26 Jan 2026 14:23:12 -0500 Subject: Add regex and case sensitivity options to FilterEdit --- ui/symbollist.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/symbollist.h') diff --git a/ui/symbollist.h b/ui/symbollist.h index 1bc4a6dd..6f196ddf 100644 --- a/ui/symbollist.h +++ b/ui/symbollist.h @@ -229,6 +229,7 @@ class BINARYNINJAUIAPI SymbolListModel : public QAbstractItemModel, public Binar std::unique_ptr> m_oldCurSyms; NamedObject m_currentSym; std::string m_filter; + FilterOptions m_filterOptions; int m_maxWidth = 32; std::mutex m_updateMutex; @@ -290,7 +291,7 @@ class BINARYNINJAUIAPI SymbolListModel : public QAbstractItemModel, public Binar bool hasSymbols() const; int getMaximumWidth() const { return m_maxWidth; } - void setFilter(const std::string& filter); + void setFilter(const std::string& filter, FilterOptions options); void showExportedDataVars(bool show) { m_showExportedDataVars = show; } void showExportedFunctions(bool show) { m_showExportedFunctions = show; } void showLocalFunctions(bool show) { m_showLocalFunctions = show; } @@ -348,6 +349,7 @@ class BINARYNINJAUIAPI SymbolList : public QListView, public FilterTarget bool m_showLocalDataVars; bool m_showImports; std::string m_filter; + FilterOptions m_filterOptions; SymbolListModel::NamedObject m_index; SymbolListModel::NamedObject m_topIndex; @@ -361,7 +363,7 @@ class BINARYNINJAUIAPI SymbolList : public QListView, public FilterTarget virtual void scrollToCurrentItem() override; virtual void ensureSelection() override; virtual void activateSelection() override; - virtual void setFilter(const std::string& filter) override; + virtual void setFilter(const std::string& filter, FilterOptions options) override; bool hasSymbols(); -- cgit v1.3.1