diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-11-14 11:17:45 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-11-14 11:17:45 -0500 |
| commit | 60d3b2710fe19562575807aba006987b4629295e (patch) | |
| tree | 777c18cb2d35a1fc53ba019e62fcbacc1041d325 /ui/typeview.h | |
| parent | 9912e2bdbc73c4984b94c1f8854ad7b960f5b252 (diff) | |
Revert "Show filtered/total count in search"
This reverts commit 78a4c923fe3fd5790e03e2c963e0a519d8c2b93b.
Diffstat (limited to 'ui/typeview.h')
| -rw-r--r-- | ui/typeview.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/ui/typeview.h b/ui/typeview.h index 8744ffa7..1aa89cc8 100644 --- a/ui/typeview.h +++ b/ui/typeview.h @@ -18,7 +18,6 @@ #include "menus.h" #include "xreflist.h" #include "clickablelabel.h" -#include "filter.h" #define TYPE_VIEW_UPDATE_CHECK_INTERVAL 200 @@ -222,9 +221,6 @@ class BINARYNINJAUIAPI TypeView : public QAbstractScrollArea, public View, publi virtual void setNavigationMode(std::string mode) override; virtual std::vector<std::string> getNavigationModes() override; - size_t getUnfilteredTypeCount() const { return m_allTypeLines.size(); } - size_t getFilteredTypeCount() const { return m_typeLines.size(); } - uint64_t findMatchingLine(const BinaryNinja::QualifiedName& name, uint64_t offset, size_t& cursorOffset); bool navigateToType(const std::string& name, uint64_t offset = 0); @@ -291,9 +287,6 @@ class BINARYNINJAUIAPI TypeView : public QAbstractScrollArea, public View, publi virtual void mouseDoubleClickEvent(QMouseEvent* event) override; virtual void scrollContentsBy(int dx, int dy) override; - Q_SIGNALS: - void updateCount(); - private Q_SLOTS: void copySelection(); void selectAll(); @@ -362,13 +355,31 @@ class TypeViewType : public ViewType \ingroup typeview */ -class BINARYNINJAUIAPI TypeFilter : public QWidget, public FilterTarget +class BINARYNINJAUIAPI TypeFilterEdit : public QLineEdit +{ + Q_OBJECT + + public: + TypeFilterEdit(QWidget* parent); + + protected: + virtual void keyPressEvent(QKeyEvent* event) override; + + Q_SIGNALS: + void focusView(); +}; + +/*! + + \ingroup typeview +*/ +class BINARYNINJAUIAPI TypeFilter : public QWidget { Q_OBJECT TypesContainer* m_container; ClickableIcon* m_showSystemTypes; - FilterEdit* m_textFilter; + TypeFilterEdit* m_textFilter; bool MatchesAutoFilter(BinaryViewRef data, const BinaryNinja::QualifiedName& name); bool MatchesTextFilter(const std::vector<BinaryNinja::TypeDefinitionLine>& lines); @@ -389,15 +400,6 @@ class BINARYNINJAUIAPI TypeFilter : public QWidget, public FilterTarget bool areAutoTypesVisible(); void setShowAutoTypes(bool showAutoTypes); void clearTextFilter(); - void setRightText(const QString& text); - - protected: - void setFilter(const std::string& filter) override; - void scrollToFirstItem() override; - void scrollToCurrentItem() override; - void selectFirstItem() override; - void activateFirstItem() override; - void closeFilter() override; }; /*! |
