score
Home
Classes
Namespaces
Files
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>
14
namespace
Device
15
{
16
class
DeviceInterface;
17
class
DeviceList;
18
}
19
namespace
Process
20
{
21
class
Port;
22
class
SCORE_LIB_PROCESS_EXPORT
AudioPortComboBox
final :
public
QComboBox
23
{
24
W_OBJECT(
AudioPortComboBox
)
25
public
:
26
AudioPortComboBox
(
27
const
State::Address
& rootAddress,
const
Device::Node
& node, QWidget* parent);
28
29
void
setAddress(
const
State::Address
& addr);
30
31
const
Device::FullAddressSettings
& address()
const
;
32
33
void
addressChanged(
const
Device::FullAddressSettings
& arg_1)
34
E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, addressChanged, arg_1)
35
36
private
:
37
const
State::Address
m_root;
38
Device::FullAddressSettings
m_address;
39
std::vector<QString> m_child;
40
};
41
42
SCORE_LIB_PROCESS_EXPORT
43
QComboBox* makeAddressCombo(
44
State::Address
root,
const
Device::Node
& out_node,
const
Process::Port
& port,
45
const
score::DocumentContext
& ctx, QWidget* parent);
46
47
SCORE_LIB_PROCESS_EXPORT
48
QComboBox* makeDeviceCombo(
49
std::function<
bool
(
Device::DeviceInterface
&)> condition,
Device::DeviceList
& devices,
50
const
Process::Port
& port,
const
score::DocumentContext
& ctx, QWidget* parent);
51
/*
52
class SCORE_LIB_PROCESS_EXPORT MidiPortComboBox final : public QComboBox
53
{
54
W_OBJECT(MidiPortComboBox)
55
public:
56
MidiPortComboBox(
57
const std::vector<QString>& devices,
58
QWidget* parent);
59
60
void setDevice(const QString& dev);
61
62
const QString& device() const;
63
64
void deviceChanged(const QString& arg_1)
65
W_SIGNAL(deviceChanged, arg_1)
66
67
private:
68
QString m_device;
69
std::vector<QString> m_available;
70
};*/
71
}
Device::DeviceInterface
Definition
DeviceInterface.hpp:66
Device::DeviceList
The DeviceList class.
Definition
DeviceList.hpp:26
Process::AudioPortComboBox
Definition
AudioPortComboBox.hpp:23
Process::Port
Definition
Port.hpp:102
TreeNode< DeviceExplorerNode >
Device
Manipulation of Devices from Qt.
Definition
AddressSettings.cpp:14
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