Call-local presentation adapter over the authoritative audio editor. @ownership Borrows editor until this adapter is destroyed; editor must outlive it. @thread Owner thread. No callbacks or retained UI state. 更多...
#include <AudioSourcePresentation.h>
Public 成员函数 | |
| AudioSourcePresentation (AudioSourceEditor &source) | |
| Borrow an editor for synchronous presentation calls. | |
| editor::WorkspacePresentationState | state () const override |
| Snapshot of document revision, selection/playhead context and history availability. | |
| editor::PropertySchema | schema () const override |
| Owning schema; field identity is its canonical property path. | |
| editor::PropertyReadResult | read (const editor::PropertyPath &path) const override |
| Read a field for the current selection without mutation. | |
| editor::Result< void > | write (const editor::PropertyPath &path, const editor::EditorValue &value) override |
| Commit one validated field through the domain's existing transaction path. | |
| editor::Result< void > | action (std::string_view id) override |
| Execute a domain action, including undo/redo on its sole history backend. | |
Public 成员函数 继承自 eve::editor::IWorkspacePresentationSource | |
| virtual | ~IWorkspacePresentationSource ()=default |
详细描述
Call-local presentation adapter over the authoritative audio editor. @ownership Borrows editor until this adapter is destroyed; editor must outlive it. @thread Owner thread. No callbacks or retained UI state.
在文件 AudioSourcePresentation.h 第 13 行定义.
构造及析构函数说明
◆ AudioSourcePresentation()
|
inlineexplicit |
Borrow an editor for synchronous presentation calls.
在文件 AudioSourcePresentation.h 第 16 行定义.
成员函数说明
◆ action()
|
overridevirtual |
Execute a domain action, including undo/redo on its sole history backend.
实现了 eve::editor::IWorkspacePresentationSource.
在文件 AudioSourcePresentation.cpp 第 34 行定义.
引用了 eve::Result< T >::failure(), eve::audio_editor::AudioSourceEditor::isPlaying(), eve::audio_editor::AudioSourceEditor::pause(), eve::audio_editor::AudioSourceEditor::play(), eve::audio_editor::AudioSourceEditor::redo(), result, eve::audio_editor::AudioSourceEditor::stop() , 以及 eve::audio_editor::AudioSourceEditor::undo().
◆ read()
|
overridevirtual |
Read a field for the current selection without mutation.
实现了 eve::editor::IWorkspacePresentationSource.
在文件 AudioSourcePresentation.cpp 第 23 行定义.
◆ schema()
|
overridevirtual |
Owning schema; field identity is its canonical property path.
实现了 eve::editor::IWorkspacePresentationSource.
在文件 AudioSourcePresentation.cpp 第 8 行定义.
引用了 eve::audio_editor::AudioSourceEditor::duration(), eve::editing::PropertySchema::properties, schema(), eve::audio_editing::AudioSourceTarget::schema() , 以及 eve::audio_editor::AudioSourceEditor::target().
◆ state()
|
overridevirtual |
Snapshot of document revision, selection/playhead context and history availability.
实现了 eve::editor::IWorkspacePresentationSource.
在文件 AudioSourcePresentation.cpp 第 4 行定义.
引用了 eve::audio_editor::AudioSourceEditor::canRedo(), eve::audio_editor::AudioSourceEditor::canUndo(), eve::audio_editor::AudioSourceEditor::isPlaying(), eve::audio_editor::AudioSourceEditor::revision(), eve::audio_editor::AudioSourceEditor::target() , 以及 eve::audio_editing::AudioSourceTarget::targetId().
◆ write()
|
overridevirtual |
Commit one validated field through the domain's existing transaction path.
实现了 eve::editor::IWorkspacePresentationSource.
在文件 AudioSourcePresentation.cpp 第 26 行定义.
引用了 descriptor, eve::editing::PropertySchema::find(), path, schema(), eve::audio_editor::AudioSourceEditor::setProperty() , 以及 value.
该类的文档由以下文件生成:
- src/modules/audio/editor/AudioSourcePresentation.h
- src/modules/audio/editor/AudioSourcePresentation.cpp
Public 成员函数 继承自