From a0fdaba9b0e03c28be3a8c9514952338c91ec578 Mon Sep 17 00:00:00 2001 From: kat Date: Wed, 18 May 2022 03:21:16 -0400 Subject: Add Split + Navigate Feature --- ui/uicontext.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'ui/uicontext.h') diff --git a/ui/uicontext.h b/ui/uicontext.h index 6a139dd6..070f59cb 100644 --- a/ui/uicontext.h +++ b/ui/uicontext.h @@ -303,10 +303,23 @@ class BINARYNINJAUIAPI UIContext \param widget Widget to display in the tab (optionally a ViewFrame) */ virtual void createTabForWidget(const QString& name, QWidget* widget) = 0; + + /*! + * Open a new window with the same file context and Navigate to a given location + * @param location + */ + virtual void splitToNewWindowAndNavigateToLocation(uint64_t location) = 0; + + /*! + * Open a new tab with the same file context and Navigate to a given location + * @param location + */ + virtual void splitToNewTabAndNavigateToLocation(uint64_t location) = 0; + /*! - Open a new pane in the active tab - \param pane Pane widget to open - \param primaryDirection Primary axis for content in pane (determines default split direction) + Open a new pane in the active tab + \param pane Pane widget to open + \param primaryDirection Primary axis for content in pane (determines default split direction) */ virtual void openPane(Pane* pane, Qt::Orientation primaryDirection = Qt::Vertical) = 0; /*! -- cgit v1.3.1