QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RLinetypeCombo.h
Go to the documentation of this file.
1 
20 #ifndef RLINETYPECOMBO_H_
21 #define RLINETYPECOMBO_H_
22 
23 #include "gui_global.h"
24 
25 #include <QComboBox>
26 #include <QColor>
27 
28 #include "RDocument.h"
29 #include "RLinetype.h"
30 
35 class QCADGUI_EXPORT RLinetypeCombo: public QComboBox {
36 
37 Q_OBJECT
38 Q_PROPERTY(bool onlyFixed READ getOnlyFixed WRITE setOnlyFixed);
39 
40 public:
41  RLinetypeCombo(QWidget *parent = 0);
42 
43  RLinetype getLinetype();
44  void setLinetype(const RLinetype& linetype);
45  void init();
46  bool getOnlyFixed();
47  void setOnlyFixed(bool onlyFixed);
48 
49 signals:
50  void valueChanged(const RLinetype& linetype);
51 
52 public slots:
53  void linetypeChanged(int index);
54 
55 private:
56  bool onlyFixed;
57 };
58 
60 
61 #endif