/
WorkingWindow.h
60 lines (45 loc) · 1.1 KB
/
WorkingWindow.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
#ifndef WORKINGWINDOW_H
#define WORKINGWINDOW_H
#include <QMainWindow>
#include <QString>
#include <QSql>
#include <InfoDialog.h>
#include "Highlighter.h"
#include <QSqlDatabase>
#include <QStringList>
#include <QProcess>
namespace Ui {
class WorkingWindow;
}
class WorkingWindow : public QMainWindow
{
Q_OBJECT
public:
explicit WorkingWindow(QString p, QWidget *parent = 0);
void setPrjName(QString src);
~WorkingWindow();
private slots:
void on_commandSearch_editingFinished();
void on_input_textChanged();
void on_saveButton_clicked();
void on_buildButton_clicked();
void on_executeButton_clicked();
void on_debugButton_clicked();
void on_exitButton_clicked();
void on_infoButton_clicked();
private:
void saveInput();
QString currentProject;
Ui::WorkingWindow *ui;
InfoDialog inf;
Highlighter *highlighter;
bool saved;
QSqlDatabase asmlist;
QProcess *newFork;
void executeMode(int job = 0);
QStringList defaultArgs;
const QString dosbox;
const QString tasmDir;
QString projDir;
};
#endif // WORKINGWINDOW_H