AxisControl is a Widget to generate axis relative movements.
More...
#include <axiscontrol.h>
|
| QPushButton * | makeButton (const QLatin1Char axis, int multiplier, const QSize &iconSize, const QString &themeIcon, const QString &fallbackText) |
| | Create A push button connected to the emit event. More...
|
| |
| QWidget * | makeSimpleAxis (const QLatin1Char axis, const QSize &iconSize) |
| | makeSimpleAxis More...
|
| |
AxisControl is a Widget to generate axis relative movements.
Usage: Create a instance of AxisControl and connect the clicked signal, it will give you the axis and value that was clicked.
◆ AxisControl()
| AxisControl::AxisControl |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~AxisControl()
| AxisControl::~AxisControl |
( |
| ) |
|
|
default |
◆ clicked
| void AxisControl::clicked |
( |
const QLatin1Char |
axis, |
|
|
double |
value |
|
) |
| |
|
signal |
User has clicked to move an axis.
- Parameters
-
| axis | Axis to move |
| value | Amount to move |
◆ makeButton()
| QPushButton * AxisControl::makeButton |
( |
const QLatin1Char |
axis, |
|
|
int |
multiplier, |
|
|
const QSize & |
iconSize, |
|
|
const QString & |
themeIcon, |
|
|
const QString & |
fallbackText |
|
) |
| |
|
private |
Create A push button connected to the emit event.
- Parameters
-
| axis | Single letter of the axis (X,Y,Z,E) |
| multiplier | Used to set the move direction set to 1 or -1 |
| iconSize | size to set the icon |
| themeIcon | icon to use "fromTheme" |
| fallbackText | Fallback text if theme fails |
- Returns
- The Created PushButton
◆ makeSimpleAxis()
| QWidget * AxisControl::makeSimpleAxis |
( |
const QLatin1Char |
axis, |
|
|
const QSize & |
iconSize |
|
) |
| |
|
private |
makeSimpleAxis
- Parameters
-
| axis | Axis |
| iconSize | Size of the icon |
- Returns
- Simple Axis Widget
◆ unitsChanged
| void AxisControl::unitsChanged |
( |
int |
selection | ) |
|
|
signal |
User has changed the units.
- Parameters
-
| selection | Selection of Metric (0) or Imperial(1) |
◆ sbValue
| QDoubleSpinBox* AxisControl::sbValue = nullptr |
|
private |
The documentation for this class was generated from the following files: