Changeset View
Changeset View
Standalone View
Standalone View
src/mainwindow.h
Show All 15 Lines | 1 | /* Atelier KDE Printer Host for 3D Printing | |||
---|---|---|---|---|---|
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | #pragma once | 18 | #pragma once | ||
19 | 19 | | |||
20 | #include <QMainWindow> | 20 | #include <QMainWindow> | ||
21 | #include <QUrl> | 21 | #include <QUrl> | ||
22 | #include <AtCore/AtCore> | 22 | #include <AtCore/AtCore> | ||
23 | #include <KXmlGui/KXmlGuiWindow> | 23 | #include <KXmlGui/KXmlGuiWindow> | ||
24 | #include <dialogs/profilesdialog.h> | | |||
25 | #include <widgets/logwidget.h> | 24 | #include <widgets/logwidget.h> | ||
26 | namespace Ui | 25 | namespace Ui | ||
27 | { | 26 | { | ||
28 | class MainWindow; | 27 | class MainWindow; | ||
29 | } | 28 | } | ||
30 | 29 | | |||
31 | class MainWindow : public KXmlGuiWindow | 30 | class MainWindow : public KXmlGuiWindow | ||
32 | { | 31 | { | ||
33 | Q_OBJECT | 32 | Q_OBJECT | ||
34 | 33 | | |||
35 | public: | 34 | public: | ||
36 | explicit MainWindow(QWidget *parent = nullptr); | 35 | explicit MainWindow(QWidget *parent = nullptr); | ||
37 | ~MainWindow(); | 36 | ~MainWindow(); | ||
38 | 37 | | |||
39 | private: | 38 | private: | ||
40 | Ui::MainWindow *ui; | 39 | Ui::MainWindow *ui; | ||
41 | AtCore core; | 40 | AtCore core; | ||
42 | QStringList firmwaresList; | 41 | QStringList firmwaresList; | ||
43 | QUrl fileName; | 42 | QUrl fileName; | ||
44 | ProfilesDialog *profilesDialog; | | |||
45 | LogWidget *logWidget; | 43 | LogWidget *logWidget; | ||
46 | QAction *_connect; | 44 | QAction *_connect; | ||
47 | void initConnectsToAtCore(); | 45 | void initConnectsToAtCore(); | ||
48 | void initWidgets(); | 46 | void initWidgets(); | ||
49 | void setupActions(); | 47 | void setupActions(); | ||
50 | void openFile(); | 48 | void openFile(); | ||
51 | void printFile(); | 49 | void printFile(); | ||
52 | void pausePrint(); | 50 | void pausePrint(); | ||
Show All 12 Lines |