Changeset View
Changeset View
Standalone View
Standalone View
testclient/widgets/printwidget.h
- This file was added.
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 <QLineEdit> | ||||
21 | #include <QPushButton> | ||||
22 | #include <QSpinBox> | ||||
23 | #include <QWidget> | ||||
24 | | ||||
25 | /* Usage: | ||||
26 | * | ||||
27 | * Create a instance of the print widget. | ||||
28 | */ | ||||
29 | | ||||
30 | class PrintWidget : public QWidget | ||||
31 | { | ||||
32 | Q_OBJECT | ||||
33 | public: | ||||
34 | PrintWidget(QWidget *parent = nullptr); | ||||
35 | QString postPauseCommand() const; | ||||
36 | void setPrintText(const QString &text); | ||||
37 | | ||||
38 | signals: | ||||
39 | void emergencyStopPressed(); | ||||
40 | void flowRateChanged(const int rate); | ||||
41 | void printPressed(); | ||||
42 | void printSpeedChanged(const int speed); | ||||
43 | | ||||
44 | private: | ||||
45 | QPushButton *buttonPrint = nullptr; | ||||
46 | QLineEdit *linePostPause = nullptr; | ||||
47 | QSpinBox *sbFlowRate = nullptr; | ||||
48 | QSpinBox *sbPrintSpeed = nullptr; | ||||
49 | }; |