QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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 "RLineweight.h"
28
33class QCADGUI_EXPORT RLineweightCombo: public QComboBox {
34
35Q_OBJECT
36Q_PROPERTY(bool onlyFixed READ getOnlyFixed WRITE setOnlyFixed);
37Q_PROPERTY(bool noDefault READ getNoDefault WRITE setNoDefault);
38
39public:
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 bool getNoDefault();
51 void setNoDefault(bool noDefault);
52
53signals:
55
56public slots:
57 void lineweightChanged(int index);
58
59private:
61 bool onlyFixed;
62 bool noDefault;
63};
64
66
67#endif
void init(void basePath)
Definition AddBlockInit.js:2
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RLineweightCombo.h:33
void valueChanged(RLineweight::Lineweight lw)
RLineweight::Lineweight currentLineweight
Definition RLineweightCombo.h:60
Lineweight
Definition RLineweight.h:44
#define QCADGUI_EXPORT
Definition gui_global.h:10