Хранилища Subversion OpenInventory

Редакция

Редакция 71 | Редакция 76 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | 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; //   
72 pingvin 34
    QString currInctanceTable; //  -    
45 pingvin 35
 
56 pingvin 36
    QSqlTableModel* model;
61 pingvin 37
   // QSqlTableModel* modelForDescription;
38
    ModelForDescriptionTable* modelForDescription;
39
 
72 pingvin 40
    QSqlTableModel* Inctance_model;
41
 
56 pingvin 42
    QTableView* tableForDescription;
50 pingvin 43
    MyModel* mymodel;
51 pingvin 44
 
72 pingvin 45
    QTableView* tableForInstance; //    -  
46
    QTableView tableForInstance_new; //    -  
71 pingvin 47
 
65 pingvin 48
    DelegateForClassesTable classTableDelegate;
49
 
71 pingvin 50
  //  void addNewClass(); //   
54 pingvin 51
    void addNewClass_new();
62 pingvin 52
    void addNewField(); //     
51 pingvin 53
 
54
private slots:
55
 
59 pingvin 56
    void on_pushButton_clicked();           //    " "
57
    void on_pushButton_2_clicked();         //    " "
58
    void on_pushButton_3_clicked();         //    " "
59
    void on_pushButton_4_clicked();         //    " "
63 pingvin 60
    void on_pushButton_5_clicked();         //    "  "
65 pingvin 61
    void on_action_ID_triggered(bool is_checked);          //     " ID"
62
    void on_action_showAlias_triggered(bool is_checked);     //     " "
63
    void on_action_showInstance_triggered(bool is_checked); // ...   
55 pingvin 64
    void on_tableView_clicked(const QModelIndex & index );
62 pingvin 65
    void on_myModel_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
66
    void on_modelForDescription_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
68 pingvin 67
    void on_action_removeAllClasses(); //   
68
    void removeClass(int class_row); //   ,      class_row
25 pingvin 69
};
70
 
71
#endif // CLASSEDITOR_H