AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
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
13class QComboBox;
14class QDoubleSpinBox;
15
20class ATCOREWIDGETS_EXPORT MovementWidget : public QWidget
21{
22 Q_OBJECT
23public:
28 explicit MovementWidget(QWidget *parent = nullptr);
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.
53signals:
59
65
71
77
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
110private:
111 // common code for constructors.
112 void initialize();
113
116};
Definition movementwidget.cpp:17
The MovementWidget class This widget will provide Basic Movement Controls.
Definition movementwidget.h:21
MovementWidgetPrivate * d
Definition movementwidget.h:115
void homeAllPressed()
The Home All button was clicked. This should be connected to AtCore::home()
void homeZPressed()
The Home Z button was clicked. This should be connected to AtCore::home(AtCore::Z)
void relativeMove(const QLatin1Char &axis, const double value)
A relativeMove was requested from the AxisControl This should connect to a function that does the fol...
void homeYPressed()
The Home Y button was clicked. This should be connected to AtCore::home(AtCore::Y)
void disableMotorsPressed()
The Disable Motors button was clicked. This should be connected to AtCore::disableMotors(0)
void absoluteMove(const QLatin1Char &axis, const double value)
An absoluteMove was requested This should be connected to AtCore::move(axis,value)
void homeXPressed()
The Home X button was clicked. This should be connected to AtCore::home(AtCore::X)
void unitsChanged(int units)
A Change of units was requested from the AxisControl This should connect to a function that calls AtC...