]> Shamusworld >> Repos - architektonas/blob - src/widgets/linetypebox.h
Sanity check step 1: Renaming files...
[architektonas] / src / widgets / linetypebox.h
1 #ifndef __LINETYPEBOX_H__
2 #define __LINETYPEBOX_H__
3
4 #include <QtGui>
5 #include "rs.h"
6
7 /**
8  * A combobox for choosing a line type.
9  */
10 class QG_LineTypeBox: public QComboBox
11 {
12         Q_OBJECT
13
14         public:
15                 QG_LineTypeBox(QWidget * parent = 0, const char * name = 0);
16                 QG_LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
17                 virtual ~QG_LineTypeBox();
18
19                 void init(bool showByLayer, bool showUnchanged);
20                 RS2::LineType getLineType();
21                 void setLineType(RS2::LineType w);
22                 void setLayerLineType(RS2::LineType w);
23                 bool isUnchanged();
24
25         private slots:
26                 void slotLineTypeChanged(int index);
27
28         signals:
29                 void lineTypeChanged(RS2::LineType);
30
31         private:
32                 RS2::LineType currentLineType;
33                 bool showByLayer;
34                 bool showUnchanged;
35                 bool unchanged;
36 };
37
38 #endif  // __LINETYPEBOX_H__