AtCore  1.0.70
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 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 <QWidget>
21 
22 #include "atcorewidgets_export.h"
23 
24 class QComboBox;
25 class QDoubleSpinBox;
26 
31 class ATCOREWIDGETS_EXPORT MovementWidget : public QWidget
32 {
33  Q_OBJECT
34 public:
39  MovementWidget(QWidget *parent = nullptr);
40  ~MovementWidget();
41 
46  void setHomeButtonsVisible(bool visible);
47 
52  void setDisableMotorsButtonVisible(bool visible);
53 
60  void setAxisMax(int xMax, int yMax, int zMax);
61 
62  //TODO: This widget should have a AtCore *core; member and connect
63  // things internally.
64 signals:
69  void homeAllPressed();
70 
75  void homeXPressed();
76 
81  void homeYPressed();
82 
87  void homeZPressed();
88 
93  void disableMotorsPressed();
94 
101  void absoluteMove(const QLatin1Char &axis, const double value);
102 
112  void relativeMove(const QLatin1Char &axis, const double value);
113 
119  void unitsChanged(int units);
120 
121 private:
122  // common code for constructors.
123  void initialize();
124 
127 };
The MovementWidget class This widget will provide Basic Movement Controls.
Definition: movementwidget.h:31
MovementWidgetPrivate * d
Definition: movementwidget.h:125
Definition: movementwidget.cpp:27