]> Shamusworld >> Repos - architektonas/blob - src/forms/lineangleoptions.h
a7b0978385801db39d8ec221aad71d205c74612b
[architektonas] / src / forms / lineangleoptions.h
1 #ifndef __LINEANGLEOPTIONS_H__
2 #define __LINEANGLEOPTIONS_H__
3
4 #include <QtGui>
5
6 class RS_ActionDrawLineAngle;
7 class RS_ActionInterface;
8
9 class LineAngleOptions: public QWidget
10 {
11         Q_OBJECT
12
13         public:
14                 LineAngleOptions(QToolBar * parent = 0, Qt::WindowFlags flags = 0);
15                 ~LineAngleOptions();
16
17         public slots:
18                 void setAction(RS_ActionInterface * a, bool update);
19                 void updateAngle(const QString & a);
20                 void updateLength(const QString & l);
21                 void updateSnapPoint(int sp);
22
23         protected:
24                 RS_ActionDrawLineAngle * action;
25
26         private:
27                 QLabel * lAngle;
28                 QLineEdit * leAngle;
29                 QLabel * lLength;
30                 QLineEdit * leLength;
31                 QLabel * lSnapPoint;
32                 QComboBox * cbSnapPoint;
33 };
34
35 #endif  // __LINEANGLEOPTIONS_H__