-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitor.h
54 lines (39 loc) · 971 Bytes
/
monitor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef MONITOR_H
#define MONITOR_H
#include <QWidget>
#include"customprocess.h"
#include"program.h"
#include<set>
class QTextBrowser;
class QLabel;
namespace Ui {
class Monitor;
}
class Monitor : public QWidget
{
Q_OBJECT
public:
explicit Monitor(QWidget *parent = 0);
~Monitor();
std::vector<Program>* getPrograms();
protected:
void resizeEvent(QResizeEvent *event);
void findTextBrowser(ProcessKey key, QTextBrowser* &textBrowser);
void findLabel(ProcessKey key, QLabel* &lable);
Program& getProgram(ProcessKey key);
void closeEvent(QCloseEvent *event);
protected slots:
void PrintError();
void PrintOutPut();
void processFinished(int exitCode);
private slots:
void on_startButton_clicked();
void on_stopButton_clicked();
void on_closeButton_clicked();
private:
Ui::Monitor *ui;
std::vector<Program> Programs;
std::set<QWidget*> WidgetSet;
bool Started;
};
#endif // MONITOR_H