载入中...
搜索中...
未找到
UiThemeEditor.h
浏览该文件的文档.
45 [[nodiscard]] ui_editing::Result<void> configureWorkspace(editor::EditorWorkspace& workspace) const;
48 [[nodiscard]] ui_editing::Result<void> createFromPreset(std::string id, std::string name, std::string preset);
53 [[nodiscard]] ui_editing::Result<void> setToken(const std::string& path, const ui_editing::EditorValue& value);
In-process authority for a single editable runtime or document target.
Definition EditingAuthority.h:36
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:19
Composition model shared by project-specific developer and runtime editors.
Definition EditorWorkspace.h:43
Local transaction coordinator backed by an injected edit authority.
Definition EditorTransactionService.h:48
bool canUndo() const noexcept override
True when one or more committed transactions can be compensated.
Definition EditorTransactionService.h:77
bool canRedo() const noexcept override
True when one or more compensated transactions can be reapplied.
Definition EditorTransactionService.h:79
Serializable catalog of named UI themes with one active publication slot.
Definition UiTheme.h:60
const ObjectId & activeId() const noexcept
Active publication id; empty only if the catalog failed to seed.
Definition UiTheme.h:93
const std::vector< UiThemeAsset > & themes() const noexcept
Borrow authored themes in catalog order.
Definition UiTheme.h:91
Builds a Theme copy for a catalog revision without touching runtime globals.
Definition UiTheme.h:173
Publishes the active catalog theme through ui::setGlobalTheme.
Definition UiTheme.h:184
Workspace controller for one authored UI theme catalog.
Definition UiThemeEditor.h:30
ui_editing::Result< void > duplicateSelected(std::string id, std::string name)
Definition UiThemeEditor.cpp:120
ui_editing::Result< void > deleteSelected()
Definition UiThemeEditor.cpp:129
ui_editing::Result< void > configureWorkspace(editor::EditorWorkspace &workspace) const
Install Themes / Preview / Inspector panels.
Definition UiThemeEditor.cpp:30
UiThemeEditor & operator=(const UiThemeEditor &)=delete
const ui_editing::UiThemeCatalogTarget & target() const noexcept
Borrow the authoritative theme catalog.
Definition UiThemeEditor.h:39
ui_editing::Result< void > setToken(const std::string &path, const ui_editing::EditorValue &value)
Definition UiThemeEditor.cpp:149
ui_editing::Result< void > setActiveSelected()
Definition UiThemeEditor.cpp:137
ui_editing::Result< editor::TransactionReceipt > redo()
Definition UiThemeEditor.cpp:166
ui_editing::Result< void > applyPreviewHost(const std::string &hostName)
Copy the selected theme onto a live UIHost without changing globalTheme.
Definition UiThemeEditor.cpp:174
ui_editing::Result< void > createFromPreset(std::string id, std::string name, std::string preset)
Definition UiThemeEditor.cpp:109
ui_editing::Result< void > resetSelectedToBase()
Definition UiThemeEditor.cpp:145
ui_editing::Result< editor::TransactionReceipt > undo()
Definition UiThemeEditor.cpp:156
float getColorChannel(const std::string &path, int channel) const
Returns the color channel.
Definition UiThemeEditor.cpp:212
UiThemeEditor(const UiThemeEditor &)=delete
ui_editing::Result< void > selectTheme(std::string id)
Definition UiThemeEditor.cpp:102
Definition UiEditorModule.cpp:6
Revision-bound Theme copy used by gallery hosts without mutating globalTheme.
Definition UiTheme.h:163
Revision documentRevision
Definition UiTheme.h:165