ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
propertycontrolcommand.h
Go to the documentation of this file.
1
23
24#ifndef PROPERTYCONTROLCOMMAND_H
25#define PROPERTYCONTROLCOMMAND_H
26
27#include <peak/peak.hpp>
28
29#include <QHBoxLayout>
30#include <QLabel>
31#include <QObject>
32#include <QPushButton>
33#include <QString>
34#include <QWidget>
35
36
37class PropertyControlCommand : public QWidget
38{
39 Q_OBJECT
40
41public:
43 std::string name, std::shared_ptr<peak::core::NodeMap> nodeMap, QObject* parent = nullptr);
44 bool isEnabled();
45 QHBoxLayout* getLayout();
46
47
48private:
49 std::shared_ptr<peak::core::NodeMap> m_nodemapRemoteDevice;
50 std::string m_nodeName;
51
52 QHBoxLayout* m_layout = nullptr;
53 QLabel* m_label = nullptr;
54 QPushButton* m_button = nullptr;
56
57signals:
59 void messageBoxTrigger(QString messageTitle, QString messageText);
61
62public slots:
63 void setEnabled(bool enabled);
64 void execute();
65};
66
67#endif // PROPERTYCONTROLCOMMAND_H
QPushButton * m_button
Definition propertycontrolcommand.h:54
std::string m_nodeName
Definition propertycontrolcommand.h:50
QLabel * m_label
Definition propertycontrolcommand.h:53
PropertyControlCommand(std::string name, std::shared_ptr< peak::core::NodeMap > nodeMap, QObject *parent=nullptr)
Definition propertycontrolcommand.cpp:28
QHBoxLayout * getLayout()
Definition propertycontrolcommand.cpp:79
std::shared_ptr< peak::core::NodeMap > m_nodemapRemoteDevice
Definition propertycontrolcommand.h:49
QHBoxLayout * m_layout
Definition propertycontrolcommand.h:52
bool isEnabled()
Definition propertycontrolcommand.cpp:74
void messageBoxTrigger(QString messageTitle, QString messageText)
bool m_enabled
Definition propertycontrolcommand.h:55
void setEnabled(bool enabled)
Definition propertycontrolcommand.cpp:67
void execute()
Definition propertycontrolcommand.cpp:48