AtCore
1.0.72
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 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: 2017-2018, 2020 Chris Rizzitello <rizzitello@kde.org>
4
SPDX-FileCopyrightText: 2018 Lays Rodrigues <lays.rodrigues@kde.org>
5
*/
6
7
#pragma once
8
#include <QWidget>
9
10
#include "atcorewidgets_export.h"
11
12
class
QDoubleSpinBox;
13
class
QPushButton;
14
class
QString;
15
22
class
ATCOREWIDGETS_EXPORT
AxisControl
:
public
QWidget
23
{
24
Q_OBJECT
25
26
public
:
31
AxisControl
(QWidget *parent =
nullptr
);
32
~
AxisControl
() =
default
;
33
34
signals:
40
void
clicked(
const
QLatin1Char axis,
double
value);
41
46
void
unitsChanged(
int
selection);
47
48
private
:
58
QPushButton *makeButton(
const
QLatin1Char axis,
int
multiplier,
const
QSize &iconSize,
const
QString &themeIcon,
const
QString &fallbackText);
59
66
QWidget *makeSimpleAxis(
const
QLatin1Char axis,
const
QSize &iconSize);
67
QDoubleSpinBox *sbValue =
nullptr
;
68
};
AxisControl
AxisControl is a Widget to generate axis relative movements.
Definition:
axiscontrol.h:22
Generated by
1.8.17