]> Shamusworld >> Repos - architektonas/blob - src/widgets/linetypebox.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / widgets / linetypebox.h
1 #ifndef __LINETYPEBOX_H__
2 #define __LINETYPEBOX_H__
3
4 #include <QtGui>
5 #include "enums.h"
6
7 /**
8  * A combobox for choosing a line type.
9  */
10 class LineTypeBox: public QComboBox
11 {
12         Q_OBJECT
13
14         public:
15                 LineTypeBox(QWidget * parent = 0, const char * name = 0);
16                 LineTypeBox(bool showByLayer, bool showUnchanged, QWidget * parent = 0, const char * name = 0);
17                 virtual ~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__