-
Notifications
You must be signed in to change notification settings - Fork 0
/
position.h
executable file
·67 lines (56 loc) · 1.21 KB
/
position.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
#ifndef POSITION_H
#define POSITION_H
#include<qapplication.h>
#include<qdatatable.h>
#include<qsqlselectcursor.h>
#include<qsqldatabase.h>
#include<qmessagebox.h>
#include<qstring.h>
#include<qstringlist.h>
#include<qmap.h>
#include<qvgroupbox.h>
#include<qhbox.h>
#include<qpushbutton.h>
#include<qsqlquery.h>
#include<iostream>
typedef QMap<QString, int> orderMap;
class Position : public QVGroupBox
{
Q_OBJECT
public:
Position(int a, QString b, QWidget *parent = 0, const char *name = 0);
QString getName(){ return positionName;}
public slots:
void up();
void down();
void top();
void remove();
void rebuild();
signals:
void changed();
private:
QSqlSelectCursor * cursor;
int positionID;
QString positionIDStr;
int limit;
QString positionName;
QString buildTablequery;
QString fetchTablequery;
QHBox *tableBox;
QDataTable * table;
QHBox *buttonBox;
QPushButton *upButton;
QPushButton *downButton;
QPushButton *topButton;
QPushButton *deleteButton;
QPushButton *addButton;
QPushButton *rebuildButton;
void testQuery();
void SqlBomb(QString a, QString b);
void refreshTable();
void buildTable();
void rebuildAssignmentsTable();
void setBuildTableQuery();
void setFetchTableQuery();
};
#endif