Loading...
Searching...
No Matches
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>
7class QWidget;
8
9namespace score
10{
11struct DocumentContext;
12}
13namespace State
14{
15struct AddressAccessor;
16}
17namespace Device
18{
19struct FullAddressAccessorSettings;
20}
21namespace Process
22{
23class AddressAccessorEditWidget;
24}
25namespace Explorer
26{
27class DeviceExplorerModel;
28}
29class QDoubleSpinBox;
30
31namespace Mapping
32{
33class ProcessModel;
35{
36public:
37 explicit InspectorWidget(
38 const ProcessModel& object, const score::DocumentContext& context,
39 QWidget* parent);
40
41private:
42 void on_sourceAddressChange(const Device::FullAddressAccessorSettings& newText);
43 void on_sourceMinValueChanged();
44 void on_sourceMaxValueChanged();
45
46 void on_targetAddressChange(const Device::FullAddressAccessorSettings& newText);
47 void on_targetMinValueChanged();
48 void on_targetMaxValueChanged();
49
50 Process::AddressAccessorEditWidget* m_sourceLineEdit{};
51 QDoubleSpinBox *m_sourceMin{}, *m_sourceMax{};
52
53 Process::AddressAccessorEditWidget* m_targetLineEdit{};
54 QDoubleSpinBox *m_targetMin{}, *m_targetMax{};
55
56 CommandDispatcher<> m_dispatcher;
57};
58}
The CommandDispatcher class.
Definition CommandDispatcher.hpp:13
Definition MappingInspectorWidget.hpp:35
Definition MappingModel.hpp:27
Definition AddressAccessorEditWidget.hpp:28
Definition ProcessInspectorWidgetDelegate.hpp:13
Manipulation of Devices from Qt.
Definition AddressSettings.cpp:14
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1324
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