AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
printwidget.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
12class QComboBox;
13class QLineEdit;
14class QPushButton;
15class QSpinBox;
16
21class ATCOREWIDGETS_EXPORT PrintWidget : public QWidget
22{
23 Q_OBJECT
24public:
30 explicit PrintWidget(bool showAllControls = true, QWidget *parent = nullptr);
31
36 void setPrintText(const QString &text);
37
42 void updateFanCount(const int count);
43
44signals:
50
56 void flowRateChanged(const int rate);
57
63
69 void printSpeedChanged(const int speed);
70
76 void fanSpeedChanged(const int speed, const int fanNum);
77
78private:
79 QPushButton *buttonPrint = nullptr;
80 QComboBox *comboFanSelect = nullptr;
81 QLineEdit *linePostPause = nullptr;
82 QSpinBox *sbFlowRate = nullptr;
83 QSpinBox *sbPrintSpeed = nullptr;
84 QSpinBox *sbFanSpeed = nullptr;
85};
PrintWidget provide a basic print widget.
Definition printwidget.h:22
void fanSpeedChanged(const int speed, const int fanNum)
The Fan Speed has Changed.
void printSpeedChanged(const int speed)
printSpeedChanged Connect to AtCore::setPrinterSpeed
void flowRateChanged(const int rate)
flowRateChanged Connect to AtCore::setFlowRate
void emergencyStopPressed()
emergencyStopPressed Connect to AtCore::emergencyStop
void printPressed()
printPressed Users requested to print a file.