Редакция 61 | Редакция 63 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
25 | pingvin | 1 | #ifndef CLASSEDITOR_H |
2 | #define CLASSEDITOR_H |
||
3 | |||
4 | #include <QMainWindow> |
||
5 | #include "mysql.h" |
||
50 | pingvin | 6 | #include "mymodel.h" |
61 | pingvin | 7 | #include "modelfordescriptiontable.h" |
25 | pingvin | 8 | |
45 | pingvin | 9 | #include <QTreeView> |
38 | pingvin | 10 | |
45 | pingvin | 11 | |
25 | pingvin | 12 | namespace Ui { |
13 | class ClassEditor; |
||
14 | } |
||
15 | |||
16 | class ClassEditor : public QMainWindow { |
||
17 | Q_OBJECT |
||
18 | public: |
||
19 | ClassEditor(QWidget *parent = 0); |
||
20 | ~ClassEditor(); |
||
21 | |||
22 | protected: |
||
23 | void changeEvent(QEvent *e); |
||
24 | |||
25 | private: |
||
26 | Ui::ClassEditor *ui; |
||
27 | MySql sql; |
||
28 | SettingsDialog settdialog; |
||
33 | pingvin | 29 | TableField *field; |
38 | pingvin | 30 | SqlTable *table; |
62 | pingvin | 31 | QModelIndex currIndexOfClassesTable; // |
32 | QString currClassID; // |
||
45 | pingvin | 33 | |
56 | pingvin | 34 | QSqlTableModel* model; |
61 | pingvin | 35 | // QSqlTableModel* modelForDescription; |
36 | ModelForDescriptionTable* modelForDescription; |
||
37 | |||
56 | pingvin | 38 | QTableView* tableForDescription; |
50 | pingvin | 39 | MyModel* mymodel; |
51 | pingvin | 40 | |
41 | void addNewClass(); // |
||
54 | pingvin | 42 | void addNewClass_new(); |
62 | pingvin | 43 | void addNewField(); // |
51 | pingvin | 44 | |
45 | private slots: |
||
46 | |||
59 | pingvin | 47 | void on_pushButton_clicked(); // " " |
48 | void on_pushButton_2_clicked(); // " " |
||
49 | void on_pushButton_3_clicked(); // " " |
||
50 | void on_pushButton_4_clicked(); // " " |
||
55 | pingvin | 51 | void on_tableView_clicked(const QModelIndex & index ); |
62 | pingvin | 52 | void on_myModel_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight ); |
53 | void on_modelForDescription_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight ); |
||
51 | pingvin | 54 | |
25 | pingvin | 55 | }; |
56 | |||
57 | #endif // CLASSEDITOR_H |