MIDIProtocolSettingsWidget.hpp
1 #pragma once
2 #include <Device/Protocol/DeviceSettings.hpp>
3 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
4 
5 #include <ossia/protocols/midi/midi.hpp>
6 
7 #include <verdigris>
8 
9 namespace State
10 {
11 class AddressFragmentLineEdit;
12 }
13 namespace score
14 {
15 class ComboBox;
16 }
17 class QCheckBox;
18 class QRadioButton;
19 class QWidget;
20 class QLineEdit;
21 
22 namespace Protocols
23 {
25 {
26  W_OBJECT(MIDIInputSettingsWidget)
27 
28 public:
29  MIDIInputSettingsWidget(QWidget* parent = nullptr);
30 
31 private:
32  Device::DeviceSettings getSettings() const override;
33 
34  void setSettings(const Device::DeviceSettings& settings) override;
35 
37  QCheckBox* m_createWhole{};
38  QCheckBox* m_virtualPort{};
39  Device::DeviceSettings m_current;
40 };
42 {
43  W_OBJECT(MIDIOutputSettingsWidget)
44 
45 public:
46  MIDIOutputSettingsWidget(QWidget* parent = nullptr);
47 
48 private:
49  Device::DeviceSettings getSettings() const override;
50 
51  void setSettings(const Device::DeviceSettings& settings) override;
52 
54  QCheckBox* m_createWhole{};
55  QCheckBox* m_virtualPort{};
56  Device::DeviceSettings m_current;
57 };
58 }
Definition: ProtocolSettingsWidget.hpp:22
Definition: MIDIProtocolSettingsWidget.hpp:25
Definition: MIDIProtocolSettingsWidget.hpp:42
Definition: AddressFragmentLineEdit.hpp:9
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DeviceSettings.hpp:20