Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/atcoreinstancewidget.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
46 | AtCoreInstanceWidget(QWidget *parent = nullptr); | 46 | AtCoreInstanceWidget(QWidget *parent = nullptr); | ||
47 | ~AtCoreInstanceWidget(); | 47 | ~AtCoreInstanceWidget(); | ||
48 | bool connected(); | 48 | bool connected(); | ||
49 | void setFileCount(int count); | 49 | void setFileCount(int count); | ||
50 | void startConnection(const QString &serialPort, const QMap<QString, QVariant> &profile); | 50 | void startConnection(const QString &serialPort, const QMap<QString, QVariant> &profile); | ||
51 | 51 | | |||
52 | public slots: | 52 | public slots: | ||
53 | bool isPrinting(); | 53 | bool isPrinting(); | ||
54 | QSize bedSize(void); | ||||
54 | void printFile(const QUrl &fileName); | 55 | void printFile(const QUrl &fileName); | ||
55 | void updateProfileData(); | 56 | void updateProfileData(); | ||
56 | 57 | | |||
57 | private: | 58 | private: | ||
58 | AtCore m_core; | 59 | AtCore m_core; | ||
59 | BedExtruderWidget *m_bedExtWidget; | 60 | BedExtruderWidget *m_bedExtWidget; | ||
60 | CommandWidget *m_commandWidget; | 61 | CommandWidget *m_commandWidget; | ||
61 | int m_fileCount; | 62 | int m_fileCount; | ||
Show All 12 Lines | |||||
74 | QSettings m_settings; | 75 | QSettings m_settings; | ||
75 | QSize m_iconSize; | 76 | QSize m_iconSize; | ||
76 | QString m_theme; | 77 | QString m_theme; | ||
77 | QTabWidget *m_tabWidget; | 78 | QTabWidget *m_tabWidget; | ||
78 | QToolBar *m_connectToolBar; | 79 | QToolBar *m_connectToolBar; | ||
79 | QToolBar *m_toolBar; | 80 | QToolBar *m_toolBar; | ||
80 | QWidget *m_advancedTab; | 81 | QWidget *m_advancedTab; | ||
81 | QWidget *m_connectWidget; | 82 | QWidget *m_connectWidget; | ||
83 | QSize m_bedSize; | ||||
82 | void buildConnectionToolbar(); | 84 | void buildConnectionToolbar(); | ||
83 | void buildToolbar(); | 85 | void buildToolbar(); | ||
84 | void checkTemperature(uint sensorType, uint number, uint temp); | 86 | void checkTemperature(uint sensorType, uint number, uint temp); | ||
85 | void connectButtonClicked(); | 87 | void connectButtonClicked(); | ||
86 | void connectBedTemperatureData(bool connected); | 88 | void connectBedTemperatureData(bool connected); | ||
87 | void connectExtruderTemperatureData(bool connected); | 89 | void connectExtruderTemperatureData(bool connected); | ||
88 | void disableMotors(); | 90 | void disableMotors(); | ||
89 | void enableControls(bool b); | 91 | void enableControls(bool b); | ||
90 | void handlePrinterStatusChanged(AtCore::STATES newState); | 92 | void handlePrinterStatusChanged(AtCore::STATES newState); | ||
91 | void initConnectsToAtCore(); | 93 | void initConnectsToAtCore(); | ||
92 | void stopPrint(); | 94 | void stopPrint(); | ||
93 | QMap<QString, QVariant> readProfile(); | 95 | QMap<QString, QVariant> readProfile(); | ||
94 | void pausePrint(); | 96 | void pausePrint(); | ||
95 | void print(); | 97 | void print(); | ||
96 | void updateSerialPort(QStringList ports); | 98 | void updateSerialPort(QStringList ports); | ||
97 | void togglePrintButtons(bool shown); | 99 | void togglePrintButtons(bool shown); | ||
98 | 100 | | |||
99 | signals: | 101 | signals: | ||
102 | void bedSizeChanged(QSize bedSize); | ||||
100 | void connectionChanged(QString name); | 103 | void connectionChanged(QString name); | ||
101 | void disableDisconnect(bool b); | 104 | void disableDisconnect(bool b); | ||
102 | void extruderCountChanged(int count); | 105 | void extruderCountChanged(int count); | ||
103 | void requestProfileDialog(); | 106 | void requestProfileDialog(); | ||
104 | void requestFileChooser(); | 107 | void requestFileChooser(); | ||
105 | }; | 108 | }; |