AtCore  1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
temperaturewidget.h
Go to the documentation of this file.
1 /* AtCore KDE Libary for 3D Printers
2  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3  SPDX-FileCopyrightText: 2018, 2020 Chris Rizzitello <rizzitello@kde.org>
4 */
5 
6 #pragma once
7 
8 #include <QWidget>
9 
10 #include "atcorewidgets_export.h"
11 
12 class QCheckBox;
13 class QComboBox;
14 class QSpinBox;
15 
19 class ATCOREWIDGETS_EXPORT TemperatureWidget : public QWidget
20 {
21  Q_OBJECT
22 public:
27  explicit TemperatureWidget(QWidget *parent = nullptr);
28  ~TemperatureWidget() = default;
29 
34  void updateExtruderCount(const int count);
35 
36 signals:
42  void bedTempChanged(const int temperature, bool andWait);
43 
50  void extTempChanged(const int temperature, const int extNum, bool andWait);
51 
52 private:
53  QCheckBox *checkAndWait = nullptr;
54  QComboBox *comboExtruderSelect;
55  QSpinBox *sbBedTemp = nullptr;
56  QSpinBox *sbExtruderTemp;
57 };
The TemperatureWidget Control the bed and extruder(s) temperatures.
Definition: temperaturewidget.h:20
~TemperatureWidget()=default
QSpinBox * sbExtruderTemp
Definition: temperaturewidget.h:56
QComboBox * comboExtruderSelect
Definition: temperaturewidget.h:54
void extTempChanged(const int temperature, const int extNum, bool andWait)
User has changed the extruder temperature.
void bedTempChanged(const int temperature, bool andWait)
User has changed the bed temperature.