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 * API for a program node View which defines the UI for the corresponding {@link
14 * ProgramNodeContribution}. The instance of {@link SwingProgramNodeView} is a
15 * shared entity between several contributions.
16 */
17 class ProgramNodeView
18 {
19 public:
20 virtual ~ProgramNodeView() = default;
21
22 /**
23 * Build the UI for the corresponding {@link ProgramNodeContribution} on the
24 * provided panel. Use the contribution for your logic and data model
25 * manipulations.
26 *
27 * @param panel the panel to build the UI on
28 * @param provider the provider for corresponding program node contribution
29 * currently selected (in the program tree)
30 */
31 virtual void buildUi(
32 WidgetHandle panel,
33 ContributionProviderPtr<ProgramNodeContribution> provider) = 0;
34 };
35
36 } // namespace aubo_scope
37 } // namespace arcs
38
39 #endif // AUBO_SCOPE_PROGRAM_NODE_VIEW_H
arcs::aubo_scope::ProgramNodeView
API for a program node View which defines the UI for the corresponding {}.
Definition: program_node_view.h:18
arcs::aubo_scope::ProgramNodeView::~ProgramNodeView
virtual ~ProgramNodeView()=default
arcs::aubo_scope::ProgramNodeView::buildUi
virtual void buildUi(WidgetHandle panel, ContributionProviderPtr< ProgramNodeContribution > provider)=0
Build the UI for the corresponding ProgramNodeContribution on the provided panel.
contribution_provider.h
arcs::aubo_scope::WidgetHandle
long WidgetHandle
Definition: program_node_view.h:9
arcs::aubo_scope::ContributionProviderPtr
std::shared_ptr< ContributionProvider< T > > ContributionProviderPtr
Definition: contribution_provider.h:36
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7
program_node_contribution.h