score
Home
Classes
Namespaces
Files
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>
14
namespace
Process
15
{
16
class
Port;
17
class
SCORE_LIB_PROCESS_EXPORT
AudioPortComboBox
final :
public
QComboBox
18
{
19
W_OBJECT(
AudioPortComboBox
)
20
public
:
21
AudioPortComboBox
(
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
31
private
:
32
const
State::Address
m_root;
33
Device::FullAddressSettings
m_address;
34
std::vector<QString> m_child;
35
};
36
37
SCORE_LIB_PROCESS_EXPORT
38
QWidget* makeAddressCombo(
39
State::Address
root,
const
Device::Node
& out_node,
const
Process::Port
& port,
40
const
score::DocumentContext
& ctx, QWidget* parent);
41
42
SCORE_LIB_PROCESS_EXPORT
43
QWidget* makeDeviceCombo(
44
QStringList devices,
const
Process::Port
& port,
const
score::DocumentContext
& ctx,
45
QWidget* parent);
46
/*
47
class SCORE_LIB_PROCESS_EXPORT MidiPortComboBox final : public QComboBox
48
{
49
W_OBJECT(MidiPortComboBox)
50
public:
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
62
private:
63
QString m_device;
64
std::vector<QString> m_available;
65
};*/
66
}
Process::AudioPortComboBox
Definition:
AudioPortComboBox.hpp:18
Process::Port
Definition:
Port.hpp:102
TreeNode< DeviceExplorerNode >
Process
Base classes and tools to implement processes and layers.
Definition:
JSONVisitor.hpp:1324
Device::FullAddressSettings
Definition:
AddressSettings.hpp:62
State::Address
The Address struct.
Definition:
Address.hpp:58
score::DocumentContext
Definition:
DocumentContext.hpp:18