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
11class QPushButton;
12class QColumnView;
13class QComboBox;
14class QHBoxLayout;
15class QMenuView;
16class QPushutton;
17class QModelIndex;
18
19namespace State
20{
21class SCORE_LIB_STATE_EXPORT UnitWidget : public QWidget
22{
23 W_OBJECT(UnitWidget)
24public:
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
31public:
32 void unitChanged(const State::Unit& arg_1)
33 E_SIGNAL(SCORE_LIB_STATE_EXPORT, unitChanged, arg_1)
34
35private:
36 void on_dataspaceChanged(const State::Unit&);
37
38 QLayout* m_layout{};
39 QComboBox* m_dataspace{};
40 QComboBox* m_unit{};
41};
42
43class SCORE_LIB_STATE_EXPORT DestinationQualifierWidget : public QWidget
44{
46public:
47 DestinationQualifierWidget(QWidget* parent);
48
49 void chooseQualifier();
50
51public:
52 void qualifiersChanged(const State::DestinationQualifiers& arg_1)
53 E_SIGNAL(SCORE_LIB_STATE_EXPORT, qualifiersChanged, arg_1)
54
55private:
56 void on_unitChanged(const QModelIndex& idx);
57
58 QMenuView* m_unitMenu{};
60};
61}
Definition UnitWidget.hpp:44
Definition UnitWidget.hpp:22
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:33
Definition Address.hpp:24
Definition Unit.hpp:18