src/grid.h

changeset 1184
393babf1319d
parent 1181
ca6d0ef9aadb
child 1193
b78b6cf02213
child 1326
69a90bd2dba2
equal deleted inserted replaced
1183:caa20ed02728 1184:393babf1319d
22 class Grid : public HierarchyElement 22 class Grid : public HierarchyElement
23 { 23 {
24 public: 24 public:
25 Grid(QObject* parent); 25 Grid(QObject* parent);
26 26
27 enum Type 27 enum Size
28 { 28 {
29 Coarse, 29 Coarse,
30 Medium, 30 Medium,
31 Fine 31 Fine
32 }; 32 };
35 { 35 {
36 Coordinate, 36 Coordinate,
37 Angle 37 Angle
38 }; 38 };
39 39
40 enum Type
41 {
42 Cartesian,
43 Polar
44 };
45
40 qreal angleSnap() const; 46 qreal angleSnap() const;
41 qreal angleAsRadians() const; 47 qreal angleAsRadians() const;
42 int bezierCurveSegments() const; 48 int bezierCurveSegments() const;
43 qreal coordinateSnap() const; 49 qreal coordinateSnap() const;
44 QPointF pole() const; 50 QPointF pole() const;
45 int polarDivisions() const; 51 int polarDivisions() const;
46 QPointF snap(QPointF point) const; 52 QPointF snap(QPointF point) const;
53 Type type() const;
47 }; 54 };
48 55

mercurial