AtCore  1.0.72
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 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: 2019-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 QLabel;
15 class QLineEdit;
16 class QRadioButton;
17 class QSpinBox;
18 
19 class ATCOREWIDGETS_EXPORT ProfileManager : public QWidget
20 {
21  Q_OBJECT
22 public:
23  ProfileManager(QWidget *parent = nullptr);
24 
25 private:
26  void onCbProfileEditingFinished();
27  void onRadioCartesianToggled(bool checked);
28  QStringList detectFWPlugins();
29  void loadProfile(const QString &profileName);
30 
31  QCheckBox *checkAutoTempReport = nullptr;
32  QComboBox *cbBaud = nullptr;
33  QComboBox *cbFirmware = nullptr;
34  QComboBox *cbProfile = nullptr;
35  QRadioButton *radioCartesian = nullptr;
36  QRadioButton *radioDelta = nullptr;
37  QLabel *lblX = nullptr;
38  QLabel *lblZ = nullptr;
39  QLineEdit *lineName = nullptr;
40  QLineEdit *linePostPause = nullptr;
41  QSpinBox *sbMaxBedTemp = nullptr;
42  QSpinBox *sbMaxExtTemp = nullptr;
43  QSpinBox *sbMaxX = nullptr;
44  QSpinBox *sbMaxY = nullptr;
45  QSpinBox *sbMaxZ = nullptr;
46  QWidget *axisY = nullptr;
47  const QStringList BAUDS = {QStringLiteral("9600"),
48  QStringLiteral("14400"),
49  QStringLiteral("19200"),
50  QStringLiteral("28800"),
51  QStringLiteral("38400"),
52  QStringLiteral("57600"),
53  QStringLiteral("76800"),
54  QStringLiteral("115200"),
55  QStringLiteral("230400"),
56  QStringLiteral("250000"),
57  QStringLiteral("500000"),
58  QStringLiteral("1000000")
59  };
60 };
ProfileManager
Definition: profilemanager.h:19