LibreCAD
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
linepatternpathpart.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QWidget>
4 
5 #include <cmath>
6 
7 #define PATH_PLAIN_NAME "Plain"
8 #define PATH_SPACE_NAME "Space"
9 #define PATH_DOT_NAME "Dot"
10 
11 namespace Ui {
12  class LinePatternPathPart;
13 }
14 
18 class LinePatternPathPart : public QWidget {
19  Q_OBJECT
20 
21  public:
22  enum PathType {
26  };
31  LinePatternPathPart(QWidget* parent = 0);
32 
38  LinePatternPathPart(double value, QWidget* parent = 0);
39 
44  PathType type();
49  double value();
50 
51  signals:
52  void update();
53 
54  private slots:
55  void onTypeChanged(const QString& value);
56  void onValueChanged(double value);
57 
58  private:
59  Ui::LinePatternPathPart* ui;
60 };
Model used to construct line pattern path.
double value()
Return length.
Ui::LinePatternPathPart * ui
PathType type()
Return type (plain, space or dot)
LinePatternPathPart(QWidget *parent=0)
Create empty model.
void onTypeChanged(const QString &value)
void onValueChanged(double value)