-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathypspur_gui.h
72 lines (58 loc) · 1.6 KB
/
ypspur_gui.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef YPSPUR_GUI_H
#define YPSPUR_GUI_H
#include <stdio.h>
#include <sys/fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <QMainWindow>
#include <QFile>
#include <QProcess>
#include <QTextEdit>
#include <QMetaObject>
#include <QMutex>
#include <QSettings>
namespace Ui
{
class YPSpurGUI;
}
class YPSpurGUI : public QMainWindow
{
Q_OBJECT
public:
explicit YPSpurGUI(QWidget* parent = 0);
~YPSpurGUI();
void setParamFile(QString param);
private slots:
void on_coordinatorStart_toggled(bool checked);
void updateCoordinatorError();
void updateCoordinatorText();
void updateInterpreterError();
void updateInterpreterText();
void interpreterQuit(int exitCode);
void coordinatorQuit(int exitCode);
void on_parameterBrowse_clicked();
void on_portList_currentTextChanged(const QString& arg1);
void on_interpreterCommand_returnPressed();
void on_coordinatorDefaultParam_clicked();
void on_coordinatorPath_textChanged(const QString& arg1);
void on_coordinatorOptions_textChanged(const QString& arg1);
void on_interpreterPath_textChanged(const QString& arg1);
void on_interpreterOptions_textChanged(const QString& arg1);
private:
bool eventFilter(QObject* obj, QEvent* event);
Ui::YPSpurGUI* ui_;
QProcess interpreter_;
QProcess coordinator_;
QMutex mutex_interpreter_output_;
QMutex mutex_coordinator_output_;
QString param_file_;
QString port_;
QString coordinator_path_;
QString interpreter_path_;
QString coordinator_options_;
QString interpreter_options_;
QString device_path_;
QString device_name_;
QSettings settings_;
};
#endif // YPSPUR_GUI_H