-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
51 lines (41 loc) · 1004 Bytes
/
MainWindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class ScratchWebApi;
class Scratchcc;
class ArduinoBuilder;
class ArduinoUploader;
class QMovie;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_pushButtonRun_clicked();
void showSettingsDialog();
void projectLoaded(const QString &projectSource);
void scratchccComplete();
void buildComplete();
void uploadComplete();
void checkBoardConnection();
void buildError(const QString &error);
private:
void initSettings();
void cleanup();
Ui::MainWindow *ui;
QString projectPath_;
QString inoFilePath_;
QString hexFilePath_;
QString comPort_;
ScratchWebApi *scratchApi_;
Scratchcc *scratchcc_;
ArduinoBuilder *arduinoBuilder_;
ArduinoUploader *uploader_;
QTimer *boardConnectionTimer_;
};
#endif // MAINWINDOW_H