-
Notifications
You must be signed in to change notification settings - Fork 6
/
openshowvardock.h
120 lines (96 loc) · 2.64 KB
/
openshowvardock.h
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#ifndef OPENSHOWVARDOCK_H
#define OPENSHOWVARDOCK_H
#include <QMainWindow>
#include "CTreeVar.h"
#include "insertvar.h"
#include "variabledb.h"
#include "cvarsgrid.h"
#include "robotvaredit.h"
#include "listvarxml.h"
#include "CLog.h"
QT_BEGIN_NAMESPACE
class QAction;
class QListWidget;
class QMenu;
class QTextEdit;
QT_END_NAMESPACE
class OpenShowVarDock : public QMainWindow
{
Q_OBJECT
public:
OpenShowVarDock();
~OpenShowVarDock();
private slots:
void newVar();
void deleteVar();
void addGraph();
void on_editVar();
void about();
void on_insertVar(const QString *varName);
void on_refVarAct(const QString &text);
void on_refVarDatabaseAct(int i);
void on_readVarAct(bool checked);
void on_onTopAct(bool checked);
void on_log(bool checked);
void on_writeVariable(const QByteArray &varname, const QByteArray &value, const QHostAddress &varip);
void on_saveVar();
void on_openVar();
void on_clearList();
void on_itemClicked(QTreeWidgetItem *item, int column);
void on_itemDoubleClicked(QTreeWidgetItem *item, int column);
void closeEvent(QCloseEvent * event);
void insertNew(const QString &variabile, const QString &robotip);
void insertClose(const bool &visible);
void on_editVarClose(const bool &visible);
void lettura();
void updateGraph();
private:
void createActions();
void createMenus();
void createToolBars();
void createStatusBar();
void splitvaluetoview(QTreeWidgetItem *item, QString varname, QString varvalue);
void editVar(QTreeWidgetItem * item);
void addCombo(QTreeWidgetItem *child);
void toBinary(int value, QString *binary);
void toHex(int value, QString *binary);
QDockWidget *dockInsertVar;
VariableDB* database;
InsertVar* insertVar;
QTimer qtimeLettura;
QTimer timeUpdateGraph;
QTreeWidget *treeWidget;
QTextEdit *textEdit;
QListWidget *customerList;
QListWidget *paragraphsList;
QMenu *robotMenu;
QMenu *editMenu;
QMenu *viewMenu;
QMenu *helpMenu;
QToolBar *robotToolBar;
QToolBar *editToolBar;
QAction *aboutAct;
QAction *aboutQtAct;
QAction *quitAct;
QAction *newVarAct;
QAction* readVarAct;
QAction* onTopAct;
QComboBox *refVarAct;
QSpinBox* refVarDatabaseAct;
QAction *deleteVarAct;
QAction *addGraphAct;
QAction *editVarAct;
QAction *saveVarAct;
QAction *openVarAct;
QAction *clearListAct;
QAction* logAct;
ListVarXml listVar;
//grafico
QList<CVarsGrid*> m_gridList;
QByteArray graphVarName;
QHostAddress graphVarIP;
//log
CLog* cLog;
bool saveLog;
};
#endif