-
Notifications
You must be signed in to change notification settings - Fork 0
/
mabiturtablewindow.h
79 lines (58 loc) · 1.68 KB
/
mabiturtablewindow.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
#ifndef MABITURTABLEWINDOW_H
#define MABITURTABLEWINDOW_H
#include <QMainWindow>
#include <QMessageBox>
#include <QtSql>
#include <QtPrintSupport/QPrinter>
#include <QPainter>
#include <QLineEdit>
#include <QLabel>
#include <QPushButton>
#include "maddspecdialog.h"
#include "maddabiturdocsdialog.h"
#include "maddexamdialog.h"
#include "precompileconstants.h"
#include "maddabiturdialog.h"
#include "maddabiturmarkdialog.h"
namespace Ui {
class mAbiturTableWindow;
}
class mAbiturTableWindow : public QMainWindow
{
Q_OBJECT
public:
explicit mAbiturTableWindow(QWidget *parent = 0);
~mAbiturTableWindow();
public slots:
void addRowButton();
void addRow(QList <QVariant> &);
void deleteRowButton();
void editRowButton();
void editRow(QList <QVariant> &);
void copyRowButton();
void changeSubTable (int index);
void abiturChanged();
void print();
void search();
void delSearch();
private:
Ui::mAbiturTableWindow *ui; // ui
QSqlRelationalTableModel * ptm; // ptr to main table model
QSqlTableModel * pptm;
QComboBox * tableSwitcher;
QSqlRelationalTableModel * pstm; // sub table model
QSqlTableModel * ppstm; // sub table model for editing
QVector <int> hci; // hidden column index
QVector <int> sci; // showed column index
QVector <QString> ehci; // ex
QVector <QString> esci;
QVector <QString> dhci; // docs
QVector <QString> dsci;
QVector <QString> shci; // specs
QVector <QString> ssci;
QLineEdit * searchLineEdit;
QLabel * searchLabel;
QPushButton * delFilter;
enum sunWinType { none = -1, exams = 0, documents, specialities, marks } swt;
};
#endif // MABITURTABLEWINDOW_H