AtCore
1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
src
widgets
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
explicit
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
114
class
MovementWidgetPrivate
;
115
MovementWidgetPrivate
*
d
;
116
};
MovementWidget::MovementWidgetPrivate
Definition:
movementwidget.cpp:17
MovementWidget
The MovementWidget class This widget will provide Basic Movement Controls.
Definition:
movementwidget.h:21
MovementWidget::d
MovementWidgetPrivate * d
Definition:
movementwidget.h:114
MovementWidget::homeAllPressed
void homeAllPressed()
The Home All button was clicked. This should be connected to AtCore::home()
MovementWidget::homeZPressed
void homeZPressed()
The Home Z button was clicked. This should be connected to AtCore::home(AtCore::Z)
MovementWidget::relativeMove
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...
MovementWidget::homeYPressed
void homeYPressed()
The Home Y button was clicked. This should be connected to AtCore::home(AtCore::Y)
MovementWidget::disableMotorsPressed
void disableMotorsPressed()
The Disable Motors button was clicked. This should be connected to AtCore::disableMotors(0)
MovementWidget::absoluteMove
void absoluteMove(const QLatin1Char &axis, const double value)
An absoluteMove was requested This should be connected to AtCore::move(axis,value)
MovementWidget::homeXPressed
void homeXPressed()
The Home X button was clicked. This should be connected to AtCore::home(AtCore::X)
MovementWidget::unitsChanged
void unitsChanged(int units)
A Change of units was requested from the AxisControl This should connect to a function that calls AtC...
Generated by
1.9.1