AuboStudio SDK
0.6.3
program_node_view.h
浏览该文件的文档.
1
#ifndef AUBO_SCOPE_PROGRAM_NODE_VIEW_H
2
#define AUBO_SCOPE_PROGRAM_NODE_VIEW_H
3
4
#include <
aubo_caps/contribution/program/program_node_contribution.h
>
5
#include <
aubo_caps/contribution/contribution_provider.h
>
6
7
namespace
arcs
{
8
namespace
aubo_scope
{
9
typedef
long
WidgetHandle
;
10
ARCS_CLASS_FORWARD
(
ProgramNodeView
);
11
12
/**
13
* \chinese
14
* 程序节点视图
15
* 程序节点视图的 API,定义了对应 {@link ProgramNodeContribution} 的 UI。
16
* {@link ProgramNodeView} 实例是多个贡献之间的共享实体。
17
* \endchinese
18
* \english
19
* ProgramNodeView
20
* API for a program node View which defines the UI for the corresponding {@link
21
* ProgramNodeContribution}. The instance of {@link ProgramNodeView} is a
22
* shared entity between several contributions.
23
* \endenglish
24
*/
25
class
ProgramNodeView
26
{
27
public
:
28
virtual
~ProgramNodeView
() =
default
;
29
30
/**
31
* \chinese
32
* 在提供的面板上为对应的 ProgramNodeContribution 构建 UI。使用贡献进行
33
* 逻辑和数据模型操作。
34
*
35
* @param panel 构建 UI 的面板
36
* @param provider 当前选中的对应程序节点贡献的提供者
37
* \endchinese
38
* \english
39
* Build the UI for the corresponding {@link ProgramNodeContribution} on the
40
* provided panel. Use the contribution for your logic and data model
41
* manipulations.
42
*
43
* @param panel the panel to build the UI on
44
* @param provider the provider for corresponding program node contribution
45
* currently selected (in the program tree)
46
* \endenglish
47
*/
48
virtual
void
buildUi
(
49
WidgetHandle
panel,
50
ContributionProviderPtr<ProgramNodeContribution>
provider) = 0;
51
};
52
53
}
// namespace aubo_scope
54
}
// namespace arcs
55
56
#endif
// AUBO_SCOPE_PROGRAM_NODE_VIEW_H
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::ProgramNodeView
\chinese 程序节点视图 程序节点视图的 API,定义了对应 ProgramNodeContribution 的 UI。 ProgramNodeView 实例是多个贡献之间的共享实体。 \endc...
定义
program_node_view.h:26
arcs::aubo_scope::ProgramNodeView::~ProgramNodeView
virtual ~ProgramNodeView()=default
arcs::aubo_scope::ProgramNodeView::buildUi
virtual void buildUi(WidgetHandle panel, ContributionProviderPtr< ProgramNodeContribution > provider)=0
\chinese 在提供的面板上为对应的 ProgramNodeContribution 构建 UI。使用贡献进行 逻辑和数据模型操作。
contribution_provider.h
arcs::aubo_scope
定义
contribution_provider.h:8
arcs::aubo_scope::WidgetHandle
long WidgetHandle
定义
program_node_view.h:9
arcs::aubo_scope::ContributionProviderPtr
std::shared_ptr< ContributionProvider< T > > ContributionProviderPtr
定义
contribution_provider.h:53
arcs
定义
contribution_provider.h:7
program_node_contribution.h
include
aubo_caps
contribution
program
program_node_view.h
制作者
1.16.1