Loading...
Searching...
No Matches
AddressAccessorEditWidget.hpp
1#pragma once
2#include <Device/Address/AddressSettings.hpp>
3
4#include <QWidget>
5
6#include <score_lib_process_export.h>
7
8#include <verdigris>
9
10class QLineEdit;
11namespace score
12{
13struct DocumentContext;
14}
15namespace State
16{
17class DestinationQualifierWidget;
18}
19namespace Device
20{
21class NodeBasedItemModel;
22}
23namespace Process
24{
25template <typename Parent_T>
26class AddressAccessorLineEdit;
27class SCORE_LIB_PROCESS_EXPORT AddressAccessorEditWidget final : public QWidget
28{
30public:
31 AddressAccessorEditWidget(const score::DocumentContext& ctx, QWidget* parent);
32
33 void setAddress(const State::AddressAccessor& addr);
34 void setFullAddress(Device::FullAddressAccessorSettings&& addr);
35
36 const Device::FullAddressAccessorSettings& address() const;
37
38 QString addressString() const;
39
40 void dragEnterEvent(QDragEnterEvent* event) override;
41 void dropEvent(QDropEvent*) override;
42
43public:
44 void addressChanged(const Device::FullAddressAccessorSettings& arg_1)
45 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, addressChanged, arg_1)
46
47private:
48 void customContextMenuEvent(const QPoint& p);
49 void startLearn();
50
55};
56}
Definition NodeBasedItemModel.hpp:18
Definition AddressAccessorEditWidget.hpp:28
Definition AddressLineEdit.hpp:98
Definition UnitWidget.hpp:44
Manipulation of Devices from Qt.
Definition AddressSettings.cpp:14
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1324
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:33
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition AddressSettings.hpp:131
Definition Address.hpp:108
Definition DocumentContext.hpp:18