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/syncgroup.h | |
| parent | 4290b90509c6b9b1cf4fa38e780f1aff5ad453e1 (diff) | |
Add recreateViewFrames API for sync/rebase
Diffstat (limited to 'ui/syncgroup.h')
| -rw-r--r-- | ui/syncgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/syncgroup.h b/ui/syncgroup.h index 5a9828f9..ff4fd9d0 100644 --- a/ui/syncgroup.h +++ b/ui/syncgroup.h @@ -6,6 +6,7 @@ class BINARYNINJAUIAPI SyncGroup { std::set<ViewFrame*> m_members; + ViewFrame* m_lastSyncFrame = nullptr; int m_id; public: @@ -13,10 +14,12 @@ public: void addMember(ViewFrame* frame); void removeMember(ViewFrame* frame); + void replaceMember(ViewFrame* oldFrame, ViewFrame* newFrame); bool isEmpty() const; int identifier() const { return m_id; } bool contains(ViewFrame* frame) const; const std::set<ViewFrame*>& members() const { return m_members; } + ViewFrame* lastSyncFrame() const { return m_lastSyncFrame; } void syncLocation(ViewFrame* frame, View* view, const ViewLocation& location); @@ -33,6 +36,7 @@ public: SyncGroupWidget(ViewFrame* frame); void updateStatus(); + void setViewFrame(ViewFrame* frame); private Q_SLOTS: void handleClick(); |
