]> Shamusworld >> Repos - architektonas/blob - src/widgets/qg_widthbox.h
Removed useless *Listener class and references.
[architektonas] / src / widgets / qg_widthbox.h
1 #ifndef QG_WIDTHBOX_H
2 #define QG_WIDTHBOX_H
3
4 #include <QtGui>
5 #include "rs.h"
6
7 /**
8  * A combobox for choosing a line width.
9  */
10 class QG_WidthBox: public QComboBox
11 {
12         Q_OBJECT
13
14         public:
15                 QG_WidthBox(QWidget * parent = 0, const char * name = 0);
16                 QG_WidthBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
17                 virtual ~QG_WidthBox();
18
19                 void init(bool showByLayer, bool showUnchanged);
20                 RS2::LineWidth getWidth();
21                 void setWidth(RS2::LineWidth w);
22                 void setLayerWidth(RS2::LineWidth w);
23                 bool isUnchanged();
24
25         private slots:
26                 void slotWidthChanged(int index);
27
28         signals:
29                 void widthChanged(RS2::LineWidth);
30
31         private:
32                 RS2::LineWidth currentWidth;
33                 bool showByLayer;
34                 bool showUnchanged;
35                 bool unchanged;
36 };
37
38 #endif