score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
UnitWidget.hpp
1
#pragma once
2
#include <State/Address.hpp>
3
#include <State/Unit.hpp>
4
5
#include <QWidget>
6
7
#include <score_lib_state_export.h>
8
9
#include <verdigris>
10
11
class
QPushButton;
12
class
QColumnView;
13
class
QComboBox;
14
class
QHBoxLayout;
15
class
QMenuView;
16
class
QPushutton;
17
class
QModelIndex;
18
19
namespace
State
20
{
21
class
SCORE_LIB_STATE_EXPORT
UnitWidget
:
public
QWidget
22
{
23
W_OBJECT(
UnitWidget
)
24
public
:
25
UnitWidget
(Qt::Orientation, QWidget* parent);
26
UnitWidget
(
const
State::Unit
& u, Qt::Orientation, QWidget* parent);
27
28
State::Unit
unit()
const
;
29
void
setUnit(
const
State::Unit
&);
30
31
public
:
32
void
unitChanged(
const
State::Unit
& arg_1)
33
E_SIGNAL(SCORE_LIB_STATE_EXPORT, unitChanged, arg_1)
34
35
private
:
36
void
on_dataspaceChanged(
const
State::Unit
&);
37
38
QLayout* m_layout{};
39
QComboBox* m_dataspace{};
40
QComboBox* m_unit{};
41
};
42
43
class
SCORE_LIB_STATE_EXPORT
DestinationQualifierWidget
:
public
QWidget
44
{
45
W_OBJECT(
DestinationQualifierWidget
)
46
public
:
47
DestinationQualifierWidget
(QWidget* parent);
48
49
void
chooseQualifier();
50
51
public
:
52
void
qualifiersChanged(
const
State::DestinationQualifiers
& arg_1)
53
E_SIGNAL(SCORE_LIB_STATE_EXPORT, qualifiersChanged, arg_1)
54
55
private
:
56
void
on_unitChanged(
const
QModelIndex& idx);
57
58
QMenuView* m_unitMenu{};
59
State::DestinationQualifiers
m_qualifier;
60
};
61
}
State::DestinationQualifierWidget
Definition
UnitWidget.hpp:44
State::UnitWidget
Definition
UnitWidget.hpp:22
State
Utilities for OSSIA data structures.
Definition
DeviceInterface.hpp:33
State::DestinationQualifiers
Definition
Address.hpp:24
State::Unit
Definition
Unit.hpp:18