AuboCaps  0.6.0
program_node_view.h
Go to the documentation of this file.
1 #ifndef AUBO_SCOPE_PROGRAM_NODE_VIEW_H
2 #define AUBO_SCOPE_PROGRAM_NODE_VIEW_H
3 
6 
7 namespace arcs {
8 namespace aubo_scope {
9 typedef long WidgetHandle;
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  */
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,
34 };
35 
36 } // namespace aubo_scope
37 } // namespace arcs
38 
39 #endif // AUBO_SCOPE_PROGRAM_NODE_VIEW_H
std::shared_ptr< ContributionProvider< T >> ContributionProviderPtr
ARCS_CLASS_FORWARD(GripForceCapability)
API for a program node View which defines the UI for the corresponding ProgramNodeContribution.
virtual ~ProgramNodeView()=default
virtual void buildUi(WidgetHandle panel, ContributionProviderPtr< ProgramNodeContribution > provider)=0
Build the UI for the corresponding ProgramNodeContribution on the provided panel. ...