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
17class QDESIGNER_WIDGET_EXPORT AxesCoordEdit final : public VariableListView
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
49
53 SF_DECL_PROP_GS(gmi::EAxisValueType, ValueType)
54
61
65 // ReSharper disable once CppFunctionIsNotImplemented
66 Q_SIGNAL void changed(AxesCoordEdit* widget);
67
71 gmi::AxesCoord getCoord() const;
72
76 void setCoord(const gmi::AxesCoord&);
77
78 protected:
83 void handleClipboard(bool flag) override;
84
85 private:
89 struct Private;
93 Private* _p;
94
95 Q_DISABLE_COPY(AxesCoordEdit)
96};
97
98}// 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 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:14
Definition Application.h:10