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
6
7namespace arcs {
8namespace aubo_scope {
9typedef long WidgetHandle;
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 */
26{
27public:
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,
51};
52
53} // namespace aubo_scope
54} // namespace arcs
55
56#endif // AUBO_SCOPE_PROGRAM_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,定义了对应 ProgramNodeContribution 的 UI。 ProgramNodeView 实例是多个贡献之间的共享实体。 \endc...
virtual ~ProgramNodeView()=default
virtual void buildUi(WidgetHandle panel, ContributionProviderPtr< ProgramNodeContribution > provider)=0
\chinese 在提供的面板上为对应的 ProgramNodeContribution 构建 UI。使用贡献进行 逻辑和数据模型操作。
std::shared_ptr< ContributionProvider< T > > ContributionProviderPtr