QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RLinetypeCombo.h
Go to the documentation of this file.
1 #ifndef RLINETYPECOMBO_H_
2 #define RLINETYPECOMBO_H_
3 
4 #include <QComboBox>
5 #include <QColor>
6 
7 #include "RDocument.h"
8 #include "RLinetype.h"
9 
13 class RLinetypeCombo: public QComboBox {
14 
15 Q_OBJECT
16 Q_PROPERTY(bool onlyFixed READ getOnlyFixed WRITE setOnlyFixed);
17 
18 public:
19  RLinetypeCombo(QWidget *parent = 0);
20 
22  void setLinetype(const RLinetype& linetype);
23  void init();
24  bool getOnlyFixed();
25  void setOnlyFixed(bool onlyFixed);
26 
27 signals:
28  void valueChanged(const RLinetype& linetype);
29 
30 public slots:
31  void linetypeChanged(int index);
32 
33 private:
34  bool onlyFixed;
35 };
36 
38 
39 #endif