Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/bedextruderwidget.h
Show All 33 Lines | 33 | public: | |||
---|---|---|---|---|---|
34 | explicit BedExtruderWidget(QWidget *parent = nullptr); | 34 | explicit BedExtruderWidget(QWidget *parent = nullptr); | ||
35 | void setExtruderCount(int value); | 35 | void setExtruderCount(int value); | ||
36 | void setBedMaxTemperature(int value); | 36 | void setBedMaxTemperature(int value); | ||
37 | void setExtruderMaxTemperature(int value); | 37 | void setExtruderMaxTemperature(int value); | ||
38 | void updateBedTemp(const float temp); | 38 | void updateBedTemp(const float temp); | ||
39 | void updateExtTemp(const float temp); | 39 | void updateExtTemp(const float temp); | ||
40 | void updateBedTargetTemp(const float temp); | 40 | void updateBedTargetTemp(const float temp); | ||
41 | void updateExtTargetTemp(const float temp); | 41 | void updateExtTargetTemp(const float temp); | ||
42 | void setBedThermoHidden(bool hidden); | ||||
rizzitello: no need to set the value | |||||
why a hide should pass a bool? tcanabrava: why a hide should pass a bool?
if you wanna hide things with a bool, "toogleBedThermo(bool… | |||||
that was because the first purpose was to only hide the thermo. I didnt though on update the method name. laysrodrigues: that was because the first purpose was to only hide the thermo. I didnt though on update the… | |||||
42 | 43 | | |||
43 | private: | 44 | private: | ||
44 | int m_extruderCount = 0; | 45 | int m_extruderCount = 0; | ||
45 | ThermoWidget *m_bedThermo = nullptr; | 46 | ThermoWidget *m_bedThermo = nullptr; | ||
46 | ThermoWidget *m_extruderThermo = nullptr; | 47 | ThermoWidget *m_extruderThermo = nullptr; | ||
47 | QMap <int, QRadioButton *> extruderMap; | 48 | QMap <int, QRadioButton *> extruderMap; | ||
48 | QHBoxLayout *m_extrudersLayout = nullptr; | 49 | QHBoxLayout *m_extrudersLayout = nullptr; | ||
49 | QWidget *m_extruderBox = nullptr; | 50 | QWidget *m_extruderBox = nullptr; | ||
50 | int currentExtruder(); | 51 | int currentExtruder(); | ||
51 | 52 | | |||
52 | signals: | 53 | signals: | ||
53 | void bedTemperatureChanged(int tmp, bool andWait); | 54 | void bedTemperatureChanged(int tmp, bool andWait); | ||
54 | void extTemperatureChanged(int tmp, int currExt, bool andWait); | 55 | void extTemperatureChanged(int tmp, int currExt, bool andWait); | ||
55 | }; | 56 | }; |
no need to set the value