AtCore
1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
src
widgets
axiscontrol.h
Go to the documentation of this file.
1
/* AtCore Test Client
2
Copyright (C) <2016 - 2018>
3
4
Authors:
5
Chris Rizzitello <rizzitello@kde.org>
6
7
This program is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
#pragma once
21
#include <QWidget>
22
23
#include "atcorewidgets_export.h"
24
25
class
QDoubleSpinBox;
26
class
QPushButton;
27
class
QString;
28
35
class
ATCOREWIDGETS_EXPORT
AxisControl
:
public
QWidget
36
{
37
Q_OBJECT
38
39
public
:
44
AxisControl
(QWidget *parent =
nullptr
);
45
~
AxisControl
() =
default
;
46
47
signals:
53
void
clicked(
const
QLatin1Char axis,
double
value);
54
59
void
unitsChanged(
int
selection);
60
61
private
:
71
QPushButton *makeButton(
const
QLatin1Char axis,
int
multiplier,
const
QSize &iconSize,
const
QString &themeIcon,
const
QString &fallbackText);
72
79
QWidget *makeSimpleAxis(
const
QLatin1Char axis,
const
QSize &iconSize);
80
QDoubleSpinBox *sbValue =
nullptr
;
81
};
AxisControl
AxisControl is a Widget to generate axis relative movements.
Definition:
axiscontrol.h:35
Generated by
1.8.13