Subversion Repositories OpenInventory

Rev

Rev 88 | Rev 91 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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