AutomationInspectorWidget.hpp
1 #pragma once
2 #include <Process/Inspector/ProcessInspectorWidgetDelegate.hpp>
3 
4 #include <Automation/AutomationModel.hpp>
5 
6 #include <score/command/Dispatchers/CommandDispatcher.hpp>
7 
8 #include <Color/GradientModel.hpp>
9 
10 class QLabel;
11 class QWidget;
12 class QCheckBox;
13 
14 namespace score
15 {
16 struct DocumentContext;
17 }
18 namespace State
19 {
20 struct Address;
21 class UnitWidget;
22 }
23 namespace Device
24 {
25 struct FullAddressAccessorSettings;
26 class AddressAccessorEditWidget;
27 }
28 namespace Explorer
29 {
30 class DeviceExplorerModel;
31 }
32 class QDoubleSpinBox;
33 
34 namespace Automation
35 {
36 class ProcessModel;
37 class InspectorWidget final
38  : public Process::InspectorWidgetDelegate_T<Automation::ProcessModel>
39 {
40 public:
41  explicit InspectorWidget(
42  const ProcessModel& object, const score::DocumentContext& context,
43  QWidget* parent);
44 
45 private:
46  void on_addressChange(const Device::FullAddressAccessorSettings& newText);
47  void on_minValueChanged();
48  void on_maxValueChanged();
49  void on_tweenChanged();
50 
52  QCheckBox* m_tween{};
53  QDoubleSpinBox *m_minsb{}, *m_maxsb{};
54 
55  CommandDispatcher<> m_dispatcher;
56 };
57 }
58 
59 namespace Gradient
60 {
61 class ProcessModel;
62 class InspectorWidget final
63  : public Process::InspectorWidgetDelegate_T<Gradient::ProcessModel>
64 {
65 public:
66  explicit InspectorWidget(
67  const ProcessModel& object, const score::DocumentContext& context,
68  QWidget* parent);
69 
70 private:
71  void on_tweenChanged();
72 
73  QCheckBox* m_tween{};
74 
75  CommandDispatcher<> m_dispatcher;
76 };
77 }
Definition: AutomationInspectorWidget.hpp:39
Definition: AutomationModel.hpp:36
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
Definition: AddressAccessorEditWidget.hpp:26
Definition: ProcessInspectorWidgetDelegate.hpp:13
Namespace related to the Automation process.
Definition: AutomationColors.cpp:8
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: AddressSettings.hpp:131
Definition: DocumentContext.hpp:18