-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdialog.h
More file actions
98 lines (86 loc) · 1.95 KB
/
Copy pathdialog.h
File metadata and controls
98 lines (86 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef DIALOG_H
#define DIALOG_H
#include <QWidget>
#include "server.h"
QT_BEGIN_NAMESPACE
class QComboBox;
class QLineEdit;
class QLabel;
class QPushButton;
QT_END_NAMESPACE
/**
* \class Dialog
*
* \brief The Dialog class is the base class of dialog windows.
*
* The dialog window is a top-level window used for server tasks and communications with the field element clients.
* Singleton pattern: only one instance of the class should created.
*/
class Dialog : public QWidget
{
Q_OBJECT
public:
/**
* @brief Global access point to the Singleton.
* @return Pointer to the static instance.
*/
static Dialog& getInstance();
/**
* @brief Set the text of the text label.
* @param text - text of the label.
*
*/
void setTextLabel(QString text);
/**
* @brief Gets DQ Button state
* @return Bool: True is pushed
*
*/
bool getDQButtonState(void);
private:
/**
* @brief Constructor
*
*
* Constructor sets up connection with db and opens it
* @param path - absolute path to db file
*/
Dialog(QWidget *parent = 0);
/**
* @brief Destructor
*
* Close the db connection
*/
Dialog(const Dialog&);
//slots:
void networkInterface(void);
void setNetworkInterface(void);
void close(void);
private:
QComboBox *hostCombo;
QLineEdit *portLineEdit;
QPushButton *setIpPortButton;
QLabel *hostLabel;
QLabel *portLabel;
/**
* @brief label - is used for displaying text
*/
QLabel *statusLabel;
/**
* @brief label - is used for displaying text
*/
QLabel *messageLabel;
/**
* @brief button - is used for close the dialog window
*/
QPushButton *quitButton;
/**
* @brief button - is used for start and stop of data acquisition
*/
QPushButton *dqButton;
/**
* @brief server - creates the server instance
*/
EtaNetServer server;
};
#endif