QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RLineweightCombo.h
Go to the documentation of this file.
1 
20 #ifndef RLINEWEIGHTCOMBO_H_
21 #define RLINEWEIGHTCOMBO_H_
22 
23 #include "gui_global.h"
24 
25 #include <QComboBox>
26 
27 #include "RGlobal.h"
28 #include "RLineweight.h"
29 
34 class QCADGUI_EXPORT RLineweightCombo: public QComboBox {
35 
36 Q_OBJECT
37 Q_PROPERTY(bool onlyFixed READ getOnlyFixed WRITE setOnlyFixed);
38 
39 public:
40  RLineweightCombo(QWidget *parent = 0);
41 
42  void init();
43 
44  RLineweight::Lineweight getLineweight();
45  void setLineweight(RLineweight::Lineweight lw);
46 
47  bool getOnlyFixed();
48  void setOnlyFixed(bool onlyFixed);
49 
50 signals:
51  void valueChanged(RLineweight::Lineweight lw);
52 
53 public slots:
54  void lineweightChanged(int index);
55 
56 private:
58  bool onlyFixed;
59 };
60 
62 
63 #endif