File: plotdialog.h

package info (click to toggle)
librecad 2.2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 105,584 kB
  • sloc: cpp: 187,958; sh: 336; xml: 47; makefile: 21
file content (63 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef PLOTDIALOG_H
#define PLOTDIALOG_H

#include <memory>
#include <QDialog>

class QGridLayout;
class QLabel;
class QLineEdit;
class QPushButton;
class QHBoxLayout;
class QSpacerItem;
class QComboBox;


class plotDialog : public QDialog
{
    Q_OBJECT
public:
    enum EntityType{
        LineSegments=0, //add line segments
        Polyline=1, //add polyline contains the line segments
        SplinePoints=2 //add LC_SplinePoints to use 2nd spline, and other features provided
    };

    explicit plotDialog(QWidget *parent = 0);
    ~plotDialog()=default;
    void getValues(QString& eq1, QString& eq2, QString &start, QString &end, double& step) const;
    EntityType getEntityType() const;

public slots:
    void slotDrawButtonClicked();

private:
    QString equation1;
    QString equation2;
    QString startValue;
    QString endValue;
    double stepSize;
    QGridLayout *mainLayout;
    QHBoxLayout* buttonLayout;
    QLabel* description;
    QLabel* lblEquasion1;
    QLabel* lblEquasion2;
    QLineEdit* lnedEquasion1;
    QLineEdit* lnedEquasion2;
    QLabel* lblStartValue;
    QLabel* lblEndValue;
    QLabel* lblStepSize;
    QLineEdit* lnedStartValue;
    QLineEdit* lnedEndValue;
    QLineEdit* lnedStepSize;
    QPushButton* btnAccept;
    QPushButton* btnCancel;
    QSpacerItem* space;
    QComboBox* m_pTypeSelection;

    bool readInput();

    
};

#endif // PLOTDIALOG_H