-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.hpp
executable file
·78 lines (50 loc) · 1.34 KB
/
core.hpp
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
73
74
75
76
77
78
#ifndef CORE_HPP
#define CORE_HPP
#include <sstream>
#include <fstream>
#include <iostream>
#include <QProcess>
#include <QFileInfo>
#include "log_view.hpp"
#include "general_view.hpp"
#include "hidden_var_view.hpp"
#include "process_view.hpp"
class CoreMA: public QObject {
Q_OBJECT
public:
// Parameterized Constructor
CoreMA(QWidget *parent, GeneralViewMA *gv, LogView *lv);
public slots:
void runMatlab();
void stopProcess();
private:
// General Tab
GeneralViewMA *general;
// Log
LogView *log;
QProcess *process;
ProcessView *proView;
void finishedMatlab(int exitCode, QProcess::ExitStatus exitStatus);
void errorOccurred(QProcess::ProcessError error);
};
class CorePy: public QObject {
Q_OBJECT
public:
// Parameterized Constructor
CorePy(QWidget *parent, GeneralViewPy *gv, HiddenVarView *hv, LogView *lv);
public slots:
void runPython();
void stopProcess();
private:
// General Tab
GeneralViewPy *general;
// Hidden Variable Tab
HiddenVarView *hiddenVar;
// Log
LogView *log;
QProcess *process;
ProcessView *proView;
void finishedPython(int exitCode, QProcess::ExitStatus exitStatus);
void errorOccurred(QProcess::ProcessError error);
};
#endif