AtCore  1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
profilemanager.h
Go to the documentation of this file.
1 /* AtCore - Widgets
2  Copyright (C) <2019>
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 QCheckBox;
25 class QComboBox;
26 class QLabel;
27 class QLineEdit;
28 class QRadioButton;
29 class QSpinBox;
30 
31 class ATCOREWIDGETS_EXPORT ProfileManager : public QWidget
32 {
33  Q_OBJECT
34 public:
35  ProfileManager(QWidget *parent = nullptr);
36 
37 private:
38  void onCbProfileEditingFinished();
39  void onRadioCartesianToggled(bool checked);
40  QStringList detectFWPlugins();
41  QStringList firmwaresInPath(const QString &path);
42  void loadProfile(const QString &profileName);
43 
44  QCheckBox *checkAutoTempReport = nullptr;
45  QComboBox *cbBaud = nullptr;
46  QComboBox *cbFirmware = nullptr;
47  QComboBox *cbProfile = nullptr;
48  QRadioButton *radioCartesian = nullptr;
49  QRadioButton *radioDelta = nullptr;
50  QLabel *lblX = nullptr;
51  QLabel *lblZ = nullptr;
52  QLineEdit *lineName = nullptr;
53  QLineEdit *linePostPause = nullptr;
54  QSpinBox *sbMaxBedTemp = nullptr;
55  QSpinBox *sbMaxExtTemp = nullptr;
56  QSpinBox *sbMaxX = nullptr;
57  QSpinBox *sbMaxY = nullptr;
58  QSpinBox *sbMaxZ = nullptr;
59  QWidget *axisY = nullptr;
60 };
61 
62 namespace SERIAL
63 {
64 static const QStringList BAUDS = {QStringLiteral("9600"),
65  QStringLiteral("14400"),
66  QStringLiteral("19200"),
67  QStringLiteral("28800"),
68  QStringLiteral("38400"),
69  QStringLiteral("57600"),
70  QStringLiteral("76800"),
71  QStringLiteral("115200"),
72  QStringLiteral("230400"),
73  QStringLiteral("250000"),
74  QStringLiteral("500000"),
75  QStringLiteral("1000000")};
76 }
Definition: profilemanager.h:62
Definition: profilemanager.h:31