diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2022-01-21 18:55:04 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2022-01-22 01:31:11 -0500 |
| commit | 510b311eccca4d6409b1c9743814eb9070670f50 (patch) | |
| tree | b9ee82c56faf8f72787a02cf7cc0586a2c38e05c /ui/pane.h | |
| parent | 4290b90509c6b9b1cf4fa38e780f1aff5ad453e1 (diff) | |
Add recreateViewFrames API for sync/rebase
Diffstat (limited to 'ui/pane.h')
| -rw-r--r-- | ui/pane.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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<SyncGroup*, ViewLocation>& 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<SyncGroup*, ViewLocation>& locations); + Q_SIGNALS: void paneClosed(Pane* pane); void currentChanged(Pane* pane); @@ -343,6 +353,8 @@ public: bool closeRequest(); void closing(); + void recreateViewFrames(std::map<SyncGroup*, ViewLocation>& locations); + static void registerActions(); Q_SIGNALS: |
