Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
AxesCoordEdit.h
Go to the documentation of this file.
1#pragma once
4#include <misc/qt/Macros.h>
5
6namespace sf
7{
8
9namespace gmi
10{
11class Controller;
12}
13
18{
19 Q_OBJECT
21 Q_PROPERTY(sf::gmi::EAxisValueType valueType READ getValueType WRITE setValueType)
22
23 public:
38 Q_ENUM(CoordStyle)
39
40
43 explicit AxesCoordEdit(QWidget* parent = nullptr);
44
48 QSize sizeHint() const override;
49
54
58 SF_DECL_PROP_GS(gmi::EAxisValueType, ValueType)
59
66
70 Q_SIGNAL void changed(AxesCoordEdit* widget);
71
75 gmi::AxesCoord getCoord() const;
76
80 gmi::AxesCoord getAccuracy() const;
81
85 void setCoord(const gmi::AxesCoord&);
86
87 protected:
92 void handleClipboard(bool flag) override;
93
98
99 private:
100 struct Private;
101 Private* _p;
102
103 Q_DISABLE_COPY(AxesCoordEdit)
104};
105
106}// namespace sf
void setCoordStyle(CoordStyle)
Q_SIGNAL void changed(AxesCoordEdit *widget)
Signal for when a coordinate value has been changed.
gmi::AxesCoord getCoord() const
Gets the current values as a coordinate.
CoordStyle coordStyle
Definition AxesCoordEdit.h:20
gmi::AxesCoord getAccuracy() const
Get the accuracy for this widget coord.
AxesCoordEdit(QWidget *parent=nullptr)
Constructor.
gmi::EAxisValueType getValueType() const
Declares a typed getter and setter for the 'valueType' property.
void setValueType(gmi::EAxisValueType)
sf::gmi::EAxisValueType valueType
Definition AxesCoordEdit.h:21
QSize sizeHint() const override
Overridden from base class.
void handleClipboard(bool flag) override
Overridden from base class.
CoordStyle
Style of a coordinate.
Definition AxesCoordEdit.h:28
@ csVector
Definition AxesCoordEdit.h:34
@ csAngles
Definition AxesCoordEdit.h:36
@ csNormal
Definition AxesCoordEdit.h:30
@ csFocus
Definition AxesCoordEdit.h:32
int calculateRequiredHeight() const
Calculate the minimum required height for the amount of rows.
CoordStyle getCoordStyle() const
Declares a typed getter and setter for the 'coordStyle' property.
void setCoord(const gmi::AxesCoord &)
Sets the current values from a coordinate.
VariableListView(QWidget *parent=nullptr)
Constructor.
Pure virtual class for implementation of motion controllers.
Definition Controller.h:13
#define _GMI_CLASS
Definition gmi/iface/global.h:35
#define SF_DECL_PROP_GS(Type, Name)
Declares unreferenced getter and unreferenced setter for a property.
Definition misc/qt/Macros.h:8
Definition AxesCoord.h:7
Definition Application.h:10