Редакция 14 | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 14 | Редакция 16 | ||
---|---|---|---|
1 | #ifndef FORM_H
|
1 | #ifndef FORM_H
|
2 | #define FORM_H
|
2 | #define FORM_H
|
3 | 3 | ||
4 | #include <QtGui/QWidget>
|
4 | #include <QtGui/QWidget>
|
5 | #include <QtGui>
|
5 | #include <QtGui>
|
6 | #include <QMainWindow>
|
6 | #include <QMainWindow>
|
7 | #include <QString>
|
7 | #include <QString>
|
8 | #include <QtSql>
|
8 | #include <QtSql>
|
9 | #include <QSqlTableModel>
|
9 | #include <QSqlTableModel>
|
10 | #include <QTableView>
|
10 | #include <QTableView>
|
11 | #include <QSqlDriverPlugin>
|
11 | #include <QSqlDriverPlugin>
|
12 | #include <QIcon>
|
12 | #include <QIcon>
|
13 | #include <QVariant>
|
13 | #include <QVariant>
|
14 | #include <QProcess>
|
14 | #include <QProcess>
|
15 | #include <QByteArray>
|
15 | #include <QByteArray>
|
16 | 16 | ||
17 | namespace Ui { |
17 | namespace Ui { |
18 | class Form; |
18 | class Form; |
19 | }
|
19 | }
|
20 | 20 | ||
21 | class Form : public QWidget { |
21 | class Form : public QWidget { |
22 | Q_OBJECT |
22 | Q_OBJECT |
23 | public: |
23 | public: |
24 | Form(QWidget *parent = 0); |
24 | Form(QWidget *parent = 0); |
25 | ~Form(); |
25 | ~Form(); |
26 | 26 | ||
27 | protected: |
27 | protected: |
28 | void changeEvent(QEvent *e); |
28 | void changeEvent(QEvent *e); |
29 | 29 | ||
30 | private: |
30 | private: |
31 | Ui::Form *m_ui; |
31 | Ui::Form *m_ui; |
32 | QTextDocument *document; |
32 | QTextDocument *document; |
33 | QTextCursor *cursor; |
33 | QTextCursor *cursor; |
34 | 34 | ||
35 | 35 | ||
36 | public: |
36 | public: |
37 | QProcess wmiProcess;
|
37 | QProcess wmiProcess;
|
- | 38 | QStringList get_substr_arr(QString stroka, QString razdelitel); |
|
38 | 39 | ||
39 | private slots: |
40 | private slots: |
40 | 41 | ||
41 | void on_wmiButton_clicked(); |
42 | void on_wmiButton_clicked(); |
42 | void readStandartProcessOutput(); |
43 | void readStandartProcessOutput(); |
43 | void readStandartProcessError(); |
44 | void readStandartProcessError(); |
44 | 45 | ||
45 | }; |
46 | }; |
46 | 47 | ||
47 | #endif // FORM_H
|
48 | #endif // FORM_H
|
48 | 49 |