Subversion Repositories OpenInventory

Rev

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

Rev 91 Rev 93
Line 1... Line 1...
1
#ifndef MAINWINDOW_H
1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
2
#define MAINWINDOW_H
3
3
-
 
4
-
 
5
//#include "mysql.h"
4
#include <QMainWindow>
6
#include <QMainWindow>
5
#include <QStandardItemModel>
7
#include <QStandardItemModel>
6
#include <QStandardItem>
8
#include <QStandardItem>
7
#include <QTreeWidgetItem>
9
#include <QTreeWidgetItem>
8
#include <QTextCodec>
10
#include <QTextCodec>
9
#include <QSqlDatabase>
11
#include <QSqlDatabase>
10
12
11
#include <QtGui>
13
#include <QtGui>
-
 
14
#include <QString>
-
 
15
#include <QtSql>
-
 
16
-
 
17
-
 
18
/*
-
 
19
#include <QSqlField>
-
 
20
#include <QSqlRecord>
-
 
21
#include <QSqlTableModel>
-
 
22
#include <QSqlQueryModel>
-
 
23
#include <QTableView>
-
 
24
#include <QSqlDriverPlugin>
-
 
25
#include <QIcon>
-
 
26
#include <QVariant>
-
 
27
#include <QProcess>
-
 
28
#include <QByteArray>
-
 
29
*/
-
 
30
-
 
31
-
 
32
-
 
33
-
 
34
12
35
13
namespace Ui {
36
namespace Ui {
14
    class MainWindow;
37
    class MainWindow;
15
}
38
}
16
39
Line 33... Line 56...
33
    bool readModel();
56
    bool readModel();
34
    void setupModelData(const QStringList &lines, QTreeWidgetItem *parent);
57
    void setupModelData(const QStringList &lines, QTreeWidgetItem *parent);
35
    void creatModelString();
58
    void creatModelString();
36
    QString modelString; // ñòðîêà, îïèñûâàþùàÿ ìîäåëü ïðåäñòàâëåíèÿ
59
    QString modelString; // ñòðîêà, îïèñûâàþùàÿ ìîäåëü ïðåäñòàâëåíèÿ
37
    void addChildsString(QTreeWidgetItem *parentItem, int level);
60
    void addChildsString(QTreeWidgetItem *parentItem, int level);
-
 
61
-
 
62
    QSqlDatabase sql;
-
 
63
-
 
64
    bool openDataBase();
-
 
65
-
 
66
38
};
67
};
39
68
40
#endif // MAINWINDOW_H
69
#endif // MAINWINDOW_H