summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAlexander Khosrowshahi <alexk@vector35.com>2025-08-19 17:46:35 -0400
committerJordan <github@psifertex.com>2025-10-24 11:53:38 -0400
commitb86fb197a6e0a3daedc365332c76b52d915f5315 (patch)
treed3618cbea443491bc7fad8d732aac467145ec960 /ui
parent4e3ef2ce073efe0cf1c7b744e720202afe7e294e (diff)
Add functions for saving StringsView column state
Diffstat (limited to 'ui')
-rw-r--r--ui/stringsview.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/stringsview.h b/ui/stringsview.h
index 7be62922..1df0d5f7 100644
--- a/ui/stringsview.h
+++ b/ui/stringsview.h
@@ -186,6 +186,11 @@ class BINARYNINJAUIAPI StringsView : public TableViewBase, public View, public F
QPointer<QHeaderView> m_horizontalHeader;
QPointer<QHeaderView> m_verticalHeader;
+ QTimer m_headerSaveDebounce;
+
+ void restoreHeaderState() const;
+ void saveHeaderState() const;
+ void scheduleSaveHeaderState();
public:
StringsView(BinaryViewRef data, StringsContainer* container);
@@ -218,6 +223,7 @@ class BINARYNINJAUIAPI StringsView : public TableViewBase, public View, public F
void toggleIncludeOnlyReferenced() const { m_list->toggleIncludeOnlyReferenced(); };
void toggleIncludeOnlyFromCurrentFunction() const { m_list->toggleIncludeOnlyFromCurrentFunction(); };
+ void resetColumnLayout() const;
void resetFilterOptions();
void copyText();