AuboStudio SDK  0.6.3
installation_node_view.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
2#define AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
3
6
7typedef long WidgetHandle;
8
9namespace arcs {
10namespace aubo_scope {
12
13/**
14 * \chinese
15 * 安装节点视图
16 * 安装节点视图的 API,定义了对应 {@link InstallationNodeContribution} 的 UI。
17 *
18 * @param <C> 表示此视图实现 UI 的 {@link InstallationNodeContribution} 类型
19 * 的(通用)类型参数
20 * \endchinese
21 * \english
22 * InstallationNodeView
23 * API for an installation node View which defines the UI for the corresponding
24 * {@link InstallationNodeContribution}
25 *
26 * @param <C> the (generic) type parameter for the interface representing the
27 * type of the
28 * {@link InstallationNodeContribution} for which this view
29 * implements the UI
30 * \endenglish
31 */
33{
34public:
35 virtual ~InstallationNodeView() = default;
36
37 /**
38 * \chinese
39 * 在提供的面板上为对应的 InstallationNodeContribution 构建 UI。使用贡献进行
40 * 逻辑和数据模型操作。
41 *
42 * @param panel 构建 UI 的面板
43 * @param contribution 对应的安装节点贡献
44 * \endchinese
45 * \english
46 * Build the UI for the corresponding {@link InstallationNodeContribution}
47 * on the provided panel. Use the contribution for your logic and data model
48 * manipulations.
49 *
50 * @param panel the panel to build the UI on
51 * @param contribution the corresponding installation node contribution
52 * \endenglish
53 */
54 virtual void buildUi(WidgetHandle panel,
55 InstallationNodeContributionPtr contribution) = 0;
56};
57
58} // namespace aubo_scope
59} // namespace arcs
60
61#endif // AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 安装节点视图 安装节点视图的 API,定义了对应 InstallationNodeContribution 的 UI。
virtual void buildUi(WidgetHandle panel, InstallationNodeContributionPtr contribution)=0
\chinese 在提供的面板上为对应的 InstallationNodeContribution 构建 UI。使用贡献进行 逻辑和数据模型操作。