Loading...
Searching...
No Matches
MCUProtocolSettingsWidget.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
9namespace libremidi
10{
11class observer;
12struct input_port;
13struct output_port;
14}
15namespace State
16{
17class AddressFragmentLineEdit;
18}
19namespace score
20{
21class ComboBox;
22}
23class QCheckBox;
24class QRadioButton;
25class QWidget;
26class QLineEdit;
27
28namespace Protocols
29{
31{
32 W_OBJECT(MCUSettingsWidget)
33
34public:
35 explicit MCUSettingsWidget(QWidget* parent = nullptr);
37
38private:
39 Device::DeviceSettings getSettings() const override;
40
41 void setSettings(const Device::DeviceSettings& settings) override;
42
44 QComboBox* m_midiin{};
45 QComboBox* m_midiout{};
46 Device::DeviceSettings m_current;
47
48 std::unique_ptr<libremidi::observer> m_observer{};
49
50 std::vector<libremidi::input_port> m_ins;
51 std::vector<libremidi::output_port> m_outs;
52};
53}
Definition ProtocolSettingsWidget.hpp:22
Definition MCUProtocolSettingsWidget.hpp:31
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