Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/atcoreinstancewidget.h
Show All 12 Lines | 1 | /* Atelier KDE Printer Host for 3D Printing | |||
---|---|---|---|---|---|
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. | ||
14 | 14 | | |||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License | ||
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 | 18 | | |||
19 | #pragma once | 19 | #pragma once | ||
20 | #include <AtCore/AtCore> | 20 | #include <AtCore/AtCore> | ||
21 | #include <AtCore/AxisControl> | ||||
22 | #include <AtCore/LogWidget> | ||||
23 | #include <AtCore/PlotWidget> | ||||
21 | #include <QComboBox> | 24 | #include <QComboBox> | ||
22 | #include <QList> | 25 | #include <QList> | ||
23 | #include <QPushButton> | 26 | #include <QPushButton> | ||
24 | #include <QSettings> | 27 | #include <QSettings> | ||
25 | #include <QToolBar> | 28 | #include <QToolBar> | ||
26 | #include <QUrl> | 29 | #include <QUrl> | ||
27 | #include <QWidget> | 30 | #include <QWidget> | ||
28 | namespace Ui | 31 | namespace Ui | ||
Show All 35 Lines | 60 | private: | |||
64 | QToolBar *m_connectToolBar; | 67 | QToolBar *m_connectToolBar; | ||
65 | QWidget *m_connectWidget; | 68 | QWidget *m_connectWidget; | ||
66 | QToolBar *m_toolBar; | 69 | QToolBar *m_toolBar; | ||
67 | QMap<QString, QVariant> profileData; | 70 | QMap<QString, QVariant> profileData; | ||
68 | QList<QUrl> m_files; | 71 | QList<QUrl> m_files; | ||
69 | QAction *m_printAction; | 72 | QAction *m_printAction; | ||
70 | QSettings m_settings; | 73 | QSettings m_settings; | ||
71 | QString m_theme; | 74 | QString m_theme; | ||
75 | AxisControl *m_axisControl; | ||||
76 | LogWidget *m_logWidget; | ||||
77 | PlotWidget *m_plotWidget; | ||||
72 | void initConnectsToAtCore(); | 78 | void initConnectsToAtCore(); | ||
73 | void printFile(const QUrl& fileName); | 79 | void printFile(const QUrl& fileName); | ||
74 | void pausePrint(); | 80 | void pausePrint(); | ||
75 | void stopPrint(); | 81 | void stopPrint(); | ||
76 | void disableMotors(); | 82 | void disableMotors(); | ||
77 | void checkReceivedCommand(const QByteArray &message); | | |||
78 | void checkPushedCommands(const QByteArray &bmsg); | | |||
79 | void handlePrinterStatusChanged(AtCore::STATES newState); | 83 | void handlePrinterStatusChanged(AtCore::STATES newState); | ||
80 | void checkTemperature(uint sensorType, uint number, uint temp); | 84 | void checkTemperature(uint sensorType, uint number, uint temp); | ||
81 | void axisControlClicked(QChar axis, int value); | 85 | void axisControlClicked(QChar axis, int value); | ||
82 | void enableControls(bool b); | 86 | void enableControls(bool b); | ||
83 | void buildToolbar(); | 87 | void buildToolbar(); | ||
84 | void buildMainToolbar(); | 88 | void buildMainToolbar(); | ||
85 | void print(); | 89 | void print(); | ||
86 | void updateSerialPort(const QStringList &ports); | 90 | void updateSerialPort(const QStringList &ports); | ||
87 | void buildConnectionToolbar(); | 91 | void buildConnectionToolbar(); | ||
88 | void connectButtonClicked(); | 92 | void connectButtonClicked(); | ||
89 | signals: | 93 | signals: | ||
90 | void connectionChanged(QString name); | 94 | void connectionChanged(QString name); | ||
91 | void disableDisconnect(bool b); | 95 | void disableDisconnect(bool b); | ||
92 | void extruderCountChanged(int count); | 96 | void extruderCountChanged(int count); | ||
93 | void requestProfileDialog(); | 97 | void requestProfileDialog(); | ||
94 | }; | 98 | }; |