Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/atcoreinstancewidget.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 57 | private: | |||
---|---|---|---|---|---|
62 | QComboBox *m_comboProfile; | 62 | QComboBox *m_comboProfile; | ||
63 | QPushButton *m_connectButton; | 63 | QPushButton *m_connectButton; | ||
64 | QToolBar *m_connectToolBar; | 64 | QToolBar *m_connectToolBar; | ||
65 | QWidget *m_connectWidget; | 65 | QWidget *m_connectWidget; | ||
66 | QToolBar *m_toolBar; | 66 | QToolBar *m_toolBar; | ||
67 | QMap<QString, QVariant> profileData; | 67 | QMap<QString, QVariant> profileData; | ||
68 | QList<QUrl> m_files; | 68 | QList<QUrl> m_files; | ||
69 | QAction *m_printAction; | 69 | QAction *m_printAction; | ||
70 | QAction *m_stopAction; | ||||
70 | QSettings m_settings; | 71 | QSettings m_settings; | ||
71 | QString m_theme; | 72 | QString m_theme; | ||
72 | void initConnectsToAtCore(); | 73 | void initConnectsToAtCore(); | ||
73 | void printFile(const QUrl& fileName); | 74 | void printFile(const QUrl& fileName); | ||
74 | void pausePrint(); | 75 | void pausePrint(); | ||
75 | void stopPrint(); | 76 | void stopPrint(); | ||
76 | void disableMotors(); | 77 | void disableMotors(); | ||
77 | void checkReceivedCommand(const QByteArray &message); | 78 | void checkReceivedCommand(const QByteArray &message); | ||
78 | void checkPushedCommands(const QByteArray &bmsg); | 79 | void checkPushedCommands(const QByteArray &bmsg); | ||
79 | void handlePrinterStatusChanged(AtCore::STATES newState); | 80 | void handlePrinterStatusChanged(AtCore::STATES newState); | ||
80 | void checkTemperature(uint sensorType, uint number, uint temp); | 81 | void checkTemperature(uint sensorType, uint number, uint temp); | ||
81 | void axisControlClicked(QChar axis, int value); | 82 | void axisControlClicked(QChar axis, int value); | ||
82 | void enableControls(bool b); | 83 | void enableControls(bool b); | ||
83 | void buildToolbar(); | 84 | void buildToolbar(); | ||
84 | void buildMainToolbar(); | 85 | void buildMainToolbar(); | ||
85 | void print(); | 86 | void print(); | ||
86 | void updateSerialPort(const QStringList &ports); | 87 | void updateSerialPort(const QStringList &ports); | ||
87 | void buildConnectionToolbar(); | 88 | void buildConnectionToolbar(); | ||
88 | void connectButtonClicked(); | 89 | void connectButtonClicked(); | ||
90 | void togglePrintButtons(bool shown); | ||||
89 | signals: | 91 | signals: | ||
90 | void connectionChanged(QString name); | 92 | void connectionChanged(QString name); | ||
91 | void disableDisconnect(bool b); | 93 | void disableDisconnect(bool b); | ||
92 | void extruderCountChanged(int count); | 94 | void extruderCountChanged(int count); | ||
93 | void requestProfileDialog(); | 95 | void requestProfileDialog(); | ||
94 | }; | 96 | }; |