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 34 Lines | 60 | private: | |||
63 | QPushButton *m_connectButton; | 66 | QPushButton *m_connectButton; | ||
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; | ||
74 | AxisControl *m_axisControl; | ||||
75 | LogWidget *m_logWidget; | ||||
76 | PlotWidget *m_plotWidget; | ||||
71 | void initConnectsToAtCore(); | 77 | void initConnectsToAtCore(); | ||
72 | void printFile(const QUrl& fileName); | 78 | void printFile(const QUrl& fileName); | ||
73 | void pausePrint(); | 79 | void pausePrint(); | ||
74 | void stopPrint(); | 80 | void stopPrint(); | ||
75 | void disableMotors(); | 81 | void disableMotors(); | ||
76 | void checkReceivedCommand(const QByteArray &message); | | |||
77 | void checkPushedCommands(const QByteArray &bmsg); | | |||
78 | void handlePrinterStatusChanged(AtCore::STATES newState); | 82 | void handlePrinterStatusChanged(AtCore::STATES newState); | ||
79 | void checkTemperature(uint sensorType, uint number, uint temp); | 83 | void checkTemperature(uint sensorType, uint number, uint temp); | ||
80 | void axisControlClicked(QChar axis, int value); | 84 | void axisControlClicked(QChar axis, int value); | ||
81 | void enableControls(bool b); | 85 | void enableControls(bool b); | ||
82 | void buildToolbar(); | 86 | void buildToolbar(); | ||
83 | void buildMainToolbar(); | 87 | void buildMainToolbar(); | ||
84 | void print(); | 88 | void print(); | ||
85 | void updateSerialPort(const QStringList &ports); | 89 | void updateSerialPort(const QStringList &ports); | ||
86 | void buildConnectionToolbar(); | 90 | void buildConnectionToolbar(); | ||
87 | void connectButtonClicked(); | 91 | void connectButtonClicked(); | ||
88 | signals: | 92 | signals: | ||
89 | void connectionChanged(QString name); | 93 | void connectionChanged(QString name); | ||
90 | void disableDisconnect(bool b); | 94 | void disableDisconnect(bool b); | ||
91 | void extruderCountChanged(int count); | 95 | void extruderCountChanged(int count); | ||
92 | void requestProfileDialog(); | 96 | void requestProfileDialog(); | ||
93 | }; | 97 | }; |