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
20 Q_PROPERTY(CoordStyle coordStyle READ getCoordStyle WRITE setCoordStyle)
21 Q_PROPERTY(sf::gmi::EAxisValueType valueType READ getValueType WRITE setValueType)
22
23 public:
28 {
36 csAngles
37 };
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
97 int calculateRequiredHeight() const;
98
99 private:
103 struct Private;
107 Private* _p;
108
109 Q_DISABLE_COPY(AxesCoordEdit)
110};
111
112}// namespace sf
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition AxesCoordEdit.h:18
CoordStyle
Style of a coordinate.
Definition AxesCoordEdit.h:28
@ csVector
Definition AxesCoordEdit.h:34
@ csNormal
Definition AxesCoordEdit.h:30
@ csFocus
Definition AxesCoordEdit.h:32
Implements a tree view (table) for a variable list.
Definition VariableListView.h:18
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
class _GMI_CLASS Controller
Forward declarations of Controller.
Definition GmiInterface.h:16
Definition Application.h:10