Subversion Repositories OpenInventory

Rev

Rev 89 | Rev 93 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
88 pingvin 1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
 
4
#include <QMainWindow>
5
#include <QStandardItemModel>
6
#include <QStandardItem>
7
#include <QTreeWidgetItem>
8
#include <QTextCodec>
89 pingvin 9
#include <QSqlDatabase>
88 pingvin 10
 
89 pingvin 11
#include <QtGui>
12
 
88 pingvin 13
namespace Ui {
14
    class MainWindow;
15
}
16
 
17
class MainWindow : public QMainWindow {
18
    Q_OBJECT
19
public:
20
    MainWindow(QWidget *parent = 0);
21
    ~MainWindow();
22
 
23
protected:
24
    void changeEvent(QEvent *e);
25
 
26
private:
27
    Ui::MainWindow *ui;
28
 
29
    QStandardItemModel *model;
30
    QStandardItem *item;
31
    QTreeWidgetItem *rootItem1, *rootItem2;
89 pingvin 32
    void openBase();
33
    bool readModel();
34
    void setupModelData(const QStringList &lines, QTreeWidgetItem *parent);
91 pingvin 35
    void creatModelString();
36
    QString modelString; // ,   
37
    void addChildsString(QTreeWidgetItem *parentItem, int level);
88 pingvin 38
};
39
 
40
#endif // MAINWINDOW_H