From 510b311eccca4d6409b1c9743814eb9070670f50 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 21 Jan 2022 18:55:04 -0500 Subject: Add recreateViewFrames API for sync/rebase --- ui/pane.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ui/pane.h') diff --git a/ui/pane.h b/ui/pane.h index 077f6d85..0fe3e8ec 100644 --- a/ui/pane.h +++ b/ui/pane.h @@ -13,6 +13,7 @@ class FeatureMap; class PaneHeader; class CloseButton; class TabDragIndicator; +class SyncGroup; class BINARYNINJAUIAPI Pane: public QWidget { @@ -23,6 +24,7 @@ class BINARYNINJAUIAPI Pane: public QWidget PaneHeader* m_header = nullptr; CloseButton* m_closeButton = nullptr; bool m_active = false; + QVBoxLayout* m_layout = nullptr; public: Pane(QWidget* widget); @@ -41,6 +43,8 @@ public: virtual Qt::Orientation defaultSplitDirection() const { return Qt::Horizontal; } virtual void setDefaultSplitDirection(Qt::Orientation orientation); + void setWidget(QWidget* widget); + protected: void init(PaneHeader* header); @@ -141,6 +145,9 @@ public: virtual void focus() override; virtual QString title() override; + void recreateViewFrame(std::map& locations); + void sendViewChange(); + private Q_SLOTS: void viewChanged(ViewFrame* frame); void viewChangeRequested(QString type); @@ -182,6 +189,7 @@ public: void updateStatus(); Qt::Orientation defaultSplitDirection() const; void setDefaultSplitDirection(Qt::Orientation orientation); + void setViewFrame(ViewFrame* frame); Q_SIGNALS: void viewChanged(QString type); @@ -274,6 +282,8 @@ public: void open(Pane* pane, Qt::Orientation primaryDirection = Qt::Vertical); + void recreateViewFrames(std::map& locations); + Q_SIGNALS: void paneClosed(Pane* pane); void currentChanged(Pane* pane); @@ -343,6 +353,8 @@ public: bool closeRequest(); void closing(); + void recreateViewFrames(std::map& locations); + static void registerActions(); Q_SIGNALS: -- cgit v1.3.1