]> Shamusworld >> Repos - architektonas/blob - src/forms/coordinatewidget.h
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / coordinatewidget.h
1 #ifndef __COORDINATEWIDGET_H__
2 #define __COORDINATEWIDGET_H__
3
4 #include "ui_coordinatewidget.h"
5 #include "enums.h"
6
7 class Drawing;
8 class Vector;
9
10 class CoordinateWidget: public QWidget
11 {
12         Q_OBJECT
13
14         public:
15                 CoordinateWidget(QWidget * parent = 0, Qt::WindowFlags flags = 0);
16                 ~CoordinateWidget();
17
18         public slots:
19                 void setGraphic(Drawing * graphic);
20                 void setCoordinates(const Vector & abs, const Vector & rel, bool updateFormat);
21                 void setCoordinates(double x, double y, double rx, double ry, bool updateFormat);
22
23         private:
24                 Drawing * graphic;
25                 int prec;
26                 RS2::LinearFormat format;
27                 int aprec;
28                 RS2::AngleFormat aformat;
29
30         private:
31                 Ui::CoordinateWidget ui;
32 };
33
34 #endif  // __COORDINATEWIDGET_H__