Хранилища Subversion OpenInventory

Редакция

Редакция 65 | Редакция 71 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | 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
 
65 pingvin 42
    DelegateForClassesTable classTableDelegate;
43
 
51 pingvin 44
    void addNewClass(); //   
54 pingvin 45
    void addNewClass_new();
62 pingvin 46
    void addNewField(); //     
51 pingvin 47
 
48
private slots:
49
 
59 pingvin 50
    void on_pushButton_clicked();           //    " "
51
    void on_pushButton_2_clicked();         //    " "
52
    void on_pushButton_3_clicked();         //    " "
53
    void on_pushButton_4_clicked();         //    " "
63 pingvin 54
    void on_pushButton_5_clicked();         //    "  "
65 pingvin 55
    void on_action_ID_triggered(bool is_checked);          //     " ID"
56
    void on_action_showAlias_triggered(bool is_checked);     //     " "
57
    void on_action_showInstance_triggered(bool is_checked); // ...   
55 pingvin 58
    void on_tableView_clicked(const QModelIndex & index );
62 pingvin 59
    void on_myModel_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
60
    void on_modelForDescription_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
68 pingvin 61
    void on_action_removeAllClasses(); //   
62
    void removeClass(int class_row); //   ,      class_row
25 pingvin 63
};
64
 
65
#endif // CLASSEDITOR_H