3 #if __has_include(<QQmlEngine>)
4 #include <Device/Protocol/DeviceInterface.hpp>
5 #include <Device/Protocol/DeviceSettings.hpp>
6 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
8 #include <Explorer/DefaultProtocolFactory.hpp>
13 operator<<(QDataStream& st,
const std::vector<ossia::net::node_base*>& p)
17 inline QDataStream& operator>>(QDataStream& st, std::vector<ossia::net::node_base*>& p)
21 Q_DECLARE_METATYPE(std::vector<ossia::net::node_base*>)
22 W_REGISTER_ARGTYPE(std::vector<ossia::net::node_base*>)
26 class Mapper :
public QObject
30 struct MapperSpecificSettings
37 SCORE_CONCRETE(
"910e2d87-a087-430d-b725-c988fe2bea01")
40 ~MapperProtocolFactory();
43 QString prettyName() const noexcept override;
44 QString category() const noexcept override;
45 QUrl manual() const noexcept override;
48 getEnumerators(const
score::DocumentContext& ctx) const override;
50 Device::DeviceInterface* makeDevice(
51 const
Device::DeviceSettings& settings,
52 const Explorer::DeviceDocumentPlugin& plugin,
53 const
score::DocumentContext& ctx) override;
55 const
Device::DeviceSettings& defaultSettings() const noexcept override;
57 Device::ProtocolSettingsWidget* makeSettingsWidget() override;
59 QVariant makeProtocolSpecificSettings(const
VisitorVariant& visitor) const override;
61 void serializeProtocolSpecificSettings(
62 const QVariant& data, const
VisitorVariant& visitor) const override;
64 bool checkCompatibility(
65 const
Device::DeviceSettings& a,
66 const
Device::DeviceSettings& b) const noexcept override;
69 class MapperProtocolSettingsWidget : public
Device::ProtocolSettingsWidget
72 MapperProtocolSettingsWidget(QWidget* parent =
nullptr);
83 QTextEdit* m_codeEdit{};
87 Q_DECLARE_METATYPE(Protocols::MapperSpecificSettings)
88 W_REGISTER_ARGTYPE(Protocols::MapperSpecificSettings)
Definition: DefaultProtocolFactory.hpp:10
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DeviceSettings.hpp:20
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26