From 112b1ed7e58e8cb14ecba18bba74fc3bde372431 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 15 Aug 2025 14:11:55 -0400 Subject: Add a modal dialog option for cross references --- ui/xrefstate.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ui/xrefstate.h') diff --git a/ui/xrefstate.h b/ui/xrefstate.h index e81be4a0..56b46881 100644 --- a/ui/xrefstate.h +++ b/ui/xrefstate.h @@ -1,14 +1,22 @@ #pragma once +#include #include "binaryninjaapi.h" #include "uicontext.h" +#include "viewframe.h" class SplitPaneContainer; class SplitPaneWidget; class BINARYNINJAUIAPI CrossReferenceState { - std::map> m_curXref; + struct Selection + { + SelectionInfoForXref selectionInfo; + std::optional previousDialogSelection; + }; + + std::map> m_selections; SplitPaneContainer* m_currentContainer = nullptr; QString m_currentDataType; @@ -16,6 +24,7 @@ public: CrossReferenceState(); std::optional getCurrentSelection() const; + std::optional getPreviousDialogSelection() const; void updateCrossReferences(ViewFrame* frame, const SelectionInfoForXref& selection); void beginNavigationForCrossReference(ViewFrame* frame, const SelectionInfoForXref& selection); @@ -25,6 +34,8 @@ public: void newPinnedTab(); void newPinnedPane(); + void modalDialog(); + void focusSidebar(); void bindActions(UIContext* context); }; -- cgit v1.3.1