diff options
| author | Brian Potchik <brian@vector35.com> | 2022-11-03 17:02:51 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-10 16:19:13 -0500 |
| commit | 53472825d1c445ef0aefebb1b72daf76ca2ded83 (patch) | |
| tree | f586147bf8bfe607371f53cb4d2c5704e137fb41 | |
| parent | f647755655df27af2e5b55af12e19d06acb76930 (diff) | |
Add ability to restore layouts and locations for all sync/no-sync groups.
| -rw-r--r-- | ui/pane.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -333,6 +333,8 @@ class BINARYNINJAUIAPI SplitPaneContainer : public QWidget void applyPersistedLayout(const QVariantMap&); #ifndef BINARYNINJAUI_BINDINGS + QVariantMap serializeLayout(); + void deserializeLayout(const QVariantMap& layout, std::map<ViewFrame*, ViewLocation>& locations); void recreateViewFrames(std::map<SyncGroup*, ViewLocation>& locations); #endif @@ -372,6 +374,8 @@ class BINARYNINJAUIAPI SplitPaneWidget : public QWidget UIActionHandler m_actionHandler; + std::map<ViewFrame*, ViewLocation> m_locations; + void bindActions(); public: @@ -412,6 +416,9 @@ class BINARYNINJAUIAPI SplitPaneWidget : public QWidget void closing(); #ifndef BINARYNINJAUI_BINDINGS + void applyInitialLocationState(); + QVariantMap serializeLayout(); + void deserializeLayout(const QVariantMap& layout); void recreateViewFrames(std::map<SyncGroup*, ViewLocation>& locations); #endif |
