Loading...
Searching...
No Matches
AudioPortComboBox.hpp
1#pragma once
2#include <State/Address.hpp>
3
4#include <Device/Address/AddressSettings.hpp>
5#include <Device/Node/DeviceNode.hpp>
6
7#include <score/document/DocumentContext.hpp>
8
9#include <QComboBox>
10
11#include <score_lib_process_export.h>
12
13#include <verdigris>
14namespace Process
15{
16class Port;
17class SCORE_LIB_PROCESS_EXPORT AudioPortComboBox final : public QComboBox
18{
19 W_OBJECT(AudioPortComboBox)
20public:
22 const State::Address& rootAddress, const Device::Node& node, QWidget* parent);
23
24 void setAddress(const State::Address& addr);
25
26 const Device::FullAddressSettings& address() const;
27
28 void addressChanged(const Device::FullAddressSettings& arg_1)
29 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, addressChanged, arg_1)
30
31private:
32 const State::Address m_root;
34 std::vector<QString> m_child;
35};
36
37SCORE_LIB_PROCESS_EXPORT
38QWidget* makeAddressCombo(
39 State::Address root, const Device::Node& out_node, const Process::Port& port,
40 const score::DocumentContext& ctx, QWidget* parent);
41
42SCORE_LIB_PROCESS_EXPORT
43QWidget* makeDeviceCombo(
44 QStringList devices, const Process::Port& port, const score::DocumentContext& ctx,
45 QWidget* parent);
46/*
47class SCORE_LIB_PROCESS_EXPORT MidiPortComboBox final : public QComboBox
48{
49 W_OBJECT(MidiPortComboBox)
50public:
51 MidiPortComboBox(
52 const std::vector<QString>& devices,
53 QWidget* parent);
54
55 void setDevice(const QString& dev);
56
57 const QString& device() const;
58
59 void deviceChanged(const QString& arg_1)
60 W_SIGNAL(deviceChanged, arg_1)
61
62private:
63 QString m_device;
64 std::vector<QString> m_available;
65};*/
66}
Definition AudioPortComboBox.hpp:18
Definition Port.hpp:102
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1324
Definition AddressSettings.hpp:62
The Address struct.
Definition Address.hpp:58
Definition DocumentContext.hpp:18