MappingInspectorWidget.hpp
1 #pragma once
2 #include <Process/Inspector/ProcessInspectorWidgetDelegate.hpp>
3 
4 #include <Mapping/MappingModel.hpp>
5 
6 #include <score/command/Dispatchers/CommandDispatcher.hpp>
7 class QWidget;
8 
9 namespace score
10 {
11 struct DocumentContext;
12 }
13 namespace State
14 {
15 struct AddressAccessor;
16 }
17 namespace Device
18 {
19 struct FullAddressAccessorSettings;
20 class AddressAccessorEditWidget;
21 }
22 namespace Explorer
23 {
24 class DeviceExplorerModel;
25 }
26 class QDoubleSpinBox;
27 
28 namespace Mapping
29 {
30 class ProcessModel;
32 {
33 public:
34  explicit InspectorWidget(
35  const ProcessModel& object, const score::DocumentContext& context,
36  QWidget* parent);
37 
38 private:
39  void on_sourceAddressChange(const Device::FullAddressAccessorSettings& newText);
40  void on_sourceMinValueChanged();
41  void on_sourceMaxValueChanged();
42 
43  void on_targetAddressChange(const Device::FullAddressAccessorSettings& newText);
44  void on_targetMinValueChanged();
45  void on_targetMaxValueChanged();
46 
47  Device::AddressAccessorEditWidget* m_sourceLineEdit{};
48  QDoubleSpinBox *m_sourceMin{}, *m_sourceMax{};
49 
50  Device::AddressAccessorEditWidget* m_targetLineEdit{};
51  QDoubleSpinBox *m_targetMin{}, *m_targetMax{};
52 
53  CommandDispatcher<> m_dispatcher;
54 };
55 }
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
Definition: AddressAccessorEditWidget.hpp:26
Definition: MappingInspectorWidget.hpp:32
Definition: MappingModel.hpp:27
Definition: ProcessInspectorWidgetDelegate.hpp:13
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