[go: up one dir, main page]

Menu

[a70f78]: / src / cvarsgrid.h  Maximize  Restore  History

Download this file

64 lines (39 with data), 1.2 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
#ifndef CVARSGRID_H
#define CVARSGRID_H
#include "CGridField.h"
#include "variabledb.h"
#include "cvarsgridlinelegend.h"
#include <QtXml>
class CVarsGrid : public QWidget {
Q_OBJECT
private:
CGridField m_field;
QList<CGridLine*> m_lines;
QStringList m_linesVar;
QStringList m_linesIP;
QList<CVarsGridLineLegend*> m_legends;
VariableDB* m_dbVar;
QVBoxLayout* m_legendsLayout;
QLabel m_dragHere;
QMutex m_mutexUpdate;
QToolBar m_mainToolbar;
QAction* m_maintoolMarkDot;
QAction* m_maintoolBall;
QAction* m_maintoolClear;
public:
CVarsGrid( VariableDB* );
~CVarsGrid();
void addVar(const QString& , const QString& );
void removeVar( const QString& );
void update();
void mouseReleaseEvent( QMouseEvent* eve );
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent *event);
void loadFromXml( QDomElement* );
const QDomElement& saveToXml( QDomElement* );
static const QList<CVarsGrid*>& loadAllFromXml( const QString& file , VariableDB* vardb );
static void saveAllToXml(const QList<CVarsGrid*>& list , const QString& file );
public slots:
void menuTrig( QAction* );
};
#endif // CVARSGRID_H