Owns the current UI-side workspace snapshot and revision lifecycle.
More...
#include <WorkspaceStore.h>
Owns the current UI-side workspace snapshot and revision lifecycle.
Definition at line 23 of file WorkspaceStore.h.
◆ WorkspaceStore()
| ui::WorkspaceStore::WorkspaceStore |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
Creates an empty workspace store.
- Parameters
-
| parent | Optional Qt parent. |
Definition at line 51 of file WorkspaceStore.cpp.
◆ applyDeletionImpact()
Applies deletion side effects to the stored snapshot.
- Parameters
-
| impact | Deletion impact reported by the core workspace writer. |
Definition at line 69 of file WorkspaceStore.cpp.
◆ currentPath()
| QString ui::WorkspaceStore::currentPath |
( |
| ) |
const |
Returns the current workspace path.
- Returns
- Current path as a Qt string, or empty when no file is open.
Definition at line 100 of file WorkspaceStore.cpp.
◆ dataRevision()
| int ui::WorkspaceStore::dataRevision |
( |
| ) |
const |
|
inlinenoexcept |
Returns the current data revision.
- Returns
- Monotonic revision incremented on snapshot changes.
Definition at line 72 of file WorkspaceStore.h.
◆ dataRevisionChanged
| void ui::WorkspaceStore::dataRevisionChanged |
( |
| ) |
|
|
signal |
◆ loadFromState()
Loads a fresh workspace snapshot.
- Parameters
-
| snapshot | Snapshot returned by the core workspace reader. |
Definition at line 63 of file WorkspaceStore.cpp.
◆ setWorkspacePorts()
Binds core workspace ports used by workspace roles.
- Parameters
-
| writer | Workspace writer port or nullptr. |
| reader | Workspace reader port or nullptr. |
Definition at line 53 of file WorkspaceStore.cpp.
◆ snapshot()
Returns the current snapshot.
- Returns
- Stored workspace snapshot.
Definition at line 58 of file WorkspaceStore.h.
◆ WorkspaceCommands
◆ WorkspaceSelectors
The documentation for this class was generated from the following files: