CableInspector.hpp
1 #pragma once
2 #include <Inspector/InspectorWidgetBase.hpp>
3 #include <Inspector/InspectorWidgetFactoryInterface.hpp>
4 
5 #include <score/plugins/Interface.hpp>
6 #include <score/selection/SelectionDispatcher.hpp>
7 
8 #include <QComboBox>
9 
10 namespace Process
11 {
12 class Cable;
13 }
14 namespace Dataflow
15 {
17 {
18  QComboBox m_cableType;
19  QWidget m_portList;
20  score::SelectionDispatcher m_selectionDispatcher;
21 
22 public:
24  const Process::Cable& cable, const score::DocumentContext& ctx, QWidget* parent);
25 };
26 
28 {
29  SCORE_CONCRETE("4b1a99aa-016e-440f-8ba6-24b961cff532")
30 public:
32 
33  QWidget* make(
34  const InspectedObjects& sourceElements, const score::DocumentContext& doc,
35  QWidget* parent) const override;
36 
37  bool matches(const InspectedObjects& objects) const override;
38 };
39 }
Definition: CableInspector.hpp:28
QWidget * make(const InspectedObjects &sourceElements, const score::DocumentContext &doc, QWidget *parent) const override
makeWidget Makes a widget for the inspector from an object
Definition: CableInspector.cpp:101
Definition: CableInspector.hpp:17
The InspectorWidgetBase class Set the global structuration for an inspected element.
Definition: InspectorWidgetBase.hpp:37
The InspectorWidgetFactoryInterface class.
Definition: InspectorWidgetFactoryInterface.hpp:32
Definition: Cable.hpp:38
The SelectionDispatcher class.
Definition: SelectionDispatcher.hpp:15
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ObjectMatches.hpp:6
Definition: DocumentContext.hpp:18