-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignalcurveeditdlg.h
executable file
·67 lines (46 loc) · 1.41 KB
/
signalcurveeditdlg.h
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
64
65
66
67
#ifndef SIGNALCURVEEDITDLG_H
#define SIGNALCURVEEDITDLG_H
#include <QDialog>
#include <QString>
#include <QColor>
#include "cotypes.h"
#include "covaluetypes.h"
namespace Ui {
class SignalCurveEditDlg;
}
class SignalCurveEditDlg : public QDialog
{
Q_OBJECT
public:
explicit SignalCurveEditDlg(QWidget *parent = nullptr);
~SignalCurveEditDlg();
QString name() const;
void setName(const QString& newName);
CO::NodeId nodeId() const;
void setNodeId(CO::NodeId newNodeId);
CO::Index index() const;
void setIndex(CO::Index newIndex);
CO::SubIndex subIndex() const;
void setSubIndex(CO::SubIndex newSubIndex);
COValue::Type type() const;
void setType(COValue::Type newType);
QColor penColor() const;
void setPenColor(const QColor& newPenColor);
Qt::PenStyle penStyle() const;
void setPenStyle(Qt::PenStyle newPenStyle);
qreal penWidth() const;
void setPenWidth(qreal newPenWidth);
QColor brushColor() const;
void setBrushColor(const QColor& newBrushColor);
Qt::BrushStyle brushStyle() const;
void setBrushStyle(Qt::BrushStyle newBrushStyle);
private slots:
void on_tbPenColorSel_clicked(bool checked = false);
void on_tbBrushColorSel_clicked(bool checked = false);
private:
Ui::SignalCurveEditDlg *ui;
void populateTypes();
void populatePenStyles();
void populateBrushStyles();
};
#endif // SIGNALCURVEEDITDLG_H