AtCore  1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
printwidget.h
Go to the documentation of this file.
1 /* AtCore Test Client
2  Copyright (C) <2018>
3  Author: Chris Rizzitello - rizzitello@kde.org
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
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/>.
17 */
18 #pragma once
19 
20 #include <QWidget>
21 
22 #include "atcorewidgets_export.h"
23 
24 class QComboBox;
25 class QLineEdit;
26 class QPushButton;
27 class QSpinBox;
28 
33 class ATCOREWIDGETS_EXPORT PrintWidget : public QWidget
34 {
35  Q_OBJECT
36 public:
42  PrintWidget(bool showAllControls = true, QWidget *parent = nullptr);
43 
48  void setPrintText(const QString &text);
49 
54  void updateFanCount(const int count);
55 
56 signals:
61  void emergencyStopPressed();
62 
68  void flowRateChanged(const int rate);
69 
74  void printPressed();
75 
81  void printSpeedChanged(const int speed);
82 
88  void fanSpeedChanged(const int speed, const int fanNum);
89 
90 private:
91  QPushButton *buttonPrint = nullptr;
92  QComboBox *comboFanSelect = nullptr;
93  QLineEdit *linePostPause = nullptr;
94  QSpinBox *sbFlowRate = nullptr;
95  QSpinBox *sbPrintSpeed = nullptr;
96  QSpinBox *sbFanSpeed = nullptr;
97 };
PrintWidget provide a basic print widget.
Definition: printwidget.h:33