Subversion Repositories OpenInventory

Rev

Rev 105 | Rev 107 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 105 Rev 106
Line 51... Line 51...
51
    void changeEvent(QEvent *e);
51
    void changeEvent(QEvent *e);
52
52
53
private:
53
private:
54
    Ui::MainWindow *ui;
54
    Ui::MainWindow *ui;
55
55
-
 
56
    QList<QTreeWidgetItem *> root_items_list;
56
    QStandardItemModel *model;
57
    QStandardItemModel *model;
57
    QStandardItem *item;
58
    QStandardItem *item;
58
    QTreeWidgetItem *rootItem1, *rootItem2;
59
    QTreeWidgetItem *rootItem1, *rootItem2;
59
    void openBase();
60
    void openBase();
60
    bool readModel();
61
    bool readModel();
Line 71... Line 72...
71
    void addChildsItems(QTreeWidgetItem *perent_class_item); // äîáîâëÿåì ê ýëåìåíòó äåðåâà â êà÷åñòâå äî÷åðíèõ ýëåìåíòîâ âñå êëàññû, äëÿ êîòîðûõ êëàññ ýëåìåíòà ÿâëÿåòñÿ êîíòåéíåðîì
72
    void addChildsItems(QTreeWidgetItem *perent_class_item); // äîáîâëÿåì ê ýëåìåíòó äåðåâà â êà÷åñòâå äî÷åðíèõ ýëåìåíòîâ âñå êëàññû, äëÿ êîòîðûõ êëàññ ýëåìåíòà ÿâëÿåòñÿ êîíòåéíåðîì
72
    QStringList classChields(QString class_id);
73
    QStringList classChields(QString class_id);
73
    QMap <QString, QString> getClassList(); // ïîëó÷àåì ñïèñîê êëàññîâ
74
    QMap <QString, QString> getClassList(); // ïîëó÷àåì ñïèñîê êëàññîâ
74
    void initComboBox();
75
    void initComboBox();
75
    QList<QTreeWidgetItem *> rootItems; // ñïèñîê óêàçàòåëåé êîðíåâûõ óçëîâ (ìîäåëåé)
76
    QList<QTreeWidgetItem *> rootItems; // ñïèñîê óêàçàòåëåé êîðíåâûõ óçëîâ (ìîäåëåé)
76
    private slots:
-
 
77
    void on_currentIndexChanged( int index );
77
    QMap <QString, QString> class_list_map;
78
78
79
79
-
 
80
private slots:
-
 
81
    void on_comboBox_currentIndexChanged( int index );
-
 
82
    void on_treeWidget_itemChanged ( QTreeWidgetItem * item, int column );
-
 
83
    void on_treeWidget_itemClicked ( QTreeWidgetItem * item, int column );
80
};
84
};
81
85
82
86
83
87
84
88