Default selection → inspector panel activation for a mounted host. 更多...
#include <EditorSelectionRouter.h>
Public 成员函数 | |
| EditorSelectionRouter (EditorHost &host) | |
| const std::string & | channel () const |
| Host selection channel. | |
| Result< std::string > | select (const SelectionItem &item, bool additive=false) |
| Apply a selection and activate a matching inspector panel. | |
| Result< void > | clear () |
| Clear the host channel selection. | |
详细描述
Default selection → inspector panel activation for a mounted host.
Routes selection changes on the host channel to the first visible inspector panel whose capability matches a mounted package selectionDomain / capability.
在文件 EditorSelectionRouter.h 第 21 行定义.
构造及析构函数说明
◆ EditorSelectionRouter()
|
explicit |
在文件 EditorSelectionRouter.cpp 第 7 行定义.
成员函数说明
◆ channel()
| const std::string & eve::editor::EditorSelectionRouter::channel | ( | ) | const |
Host selection channel.
在文件 EditorSelectionRouter.cpp 第 9 行定义.
◆ clear()
| Result< void > eve::editor::EditorSelectionRouter::clear | ( | ) |
Clear the host channel selection.
在文件 EditorSelectionRouter.cpp 第 46 行定义.
引用了 channel(), eve::editor::EditorWorkspace::clearSelection() , 以及 eve::editor::EditorHost::workspace().
◆ select()
| Result< std::string > eve::editor::EditorSelectionRouter::select | ( | const SelectionItem & | item, |
| bool | additive = false |
||
| ) |
Apply a selection and activate a matching inspector panel.
- 返回
- Applied with the activated panel id (empty when none matched).
在文件 EditorSelectionRouter.cpp 第 11 行定义.
引用了 eve::editor::EditorWorkspace::activatePanel(), channel(), count, eve::editor::EditorWorkspace::getPanelCapability(), eve::editor::EditorWorkspace::getPanelContext(), eve::editor::EditorWorkspace::getPanelCount(), eve::editor::EditorWorkspace::getPanelId(), eve::editor::EditorWorkspace::getPanelVisible(), index, selected, eve::editor::EditorWorkspace::selectItem(), eve::editing::SelectionItem::type , 以及 eve::editor::EditorHost::workspace().
该类的文档由以下文件生成:
- src/modules/editor/EditorSelectionRouter.h
- src/modules/editor/EditorSelectionRouter.cpp