AtCore  1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
movementwidget.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  SPDX-FileCopyrightText: 2020 Tomaz Canabrava <tcanabrava@kde.org>
5 */
6 
7 #pragma once
8 
9 #include <QWidget>
10 
11 #include "atcorewidgets_export.h"
12 
13 class QComboBox;
14 class QDoubleSpinBox;
15 
20 class ATCOREWIDGETS_EXPORT MovementWidget : public QWidget
21 {
22  Q_OBJECT
23 public:
28  MovementWidget(QWidget *parent = nullptr);
29  ~MovementWidget();
30 
35  void setHomeButtonsVisible(bool visible);
36 
41  void setDisableMotorsButtonVisible(bool visible);
42 
49  void setAxisMax(int xMax, int yMax, int zMax);
50 
51  //TODO: This widget should have a AtCore *core; member and connect
52  // things internally.
53 signals:
58  void homeAllPressed();
59 
64  void homeXPressed();
65 
70  void homeYPressed();
71 
76  void homeZPressed();
77 
82  void disableMotorsPressed();
83 
90  void absoluteMove(const QLatin1Char &axis, const double value);
91 
101  void relativeMove(const QLatin1Char &axis, const double value);
102 
108  void unitsChanged(int units);
109 
110 private:
111  // common code for constructors.
112  void initialize();
113 
116 };
MovementWidget
The MovementWidget class This widget will provide Basic Movement Controls.
Definition: movementwidget.h:20
MovementWidget::MovementWidgetPrivate
Definition: movementwidget.cpp:17
MovementWidget::d
MovementWidgetPrivate * d
Definition: movementwidget.h:114