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