Sat, 17 Mar 2018 11:35:07 +0200
removed the old Add History Line tool
1291 | 1 | #pragma once |
2 | #include <QWidget> | |
3 | #include "../lddocument.h" | |
4 | ||
5 | class HeaderEdit : public QWidget | |
6 | { | |
7 | Q_OBJECT | |
8 | ||
9 | public: | |
10 | HeaderEdit(QWidget* parent = nullptr); | |
11 | ~HeaderEdit(); | |
12 | ||
13 | void setHeader(LDHeader* header); | |
14 | LDHeader* header() const; | |
15 | bool hasValidHeader() const; | |
16 | ||
17 | signals: | |
18 | void descriptionChanged(const QString& newDescription); | |
19 | void windingChanged(Winding newWinding); | |
20 | ||
21 | private: | |
22 | class Ui_HeaderEdit& ui; | |
23 | class HeaderHistoryModel* headerHistoryModel = nullptr; | |
24 | LDHeader* m_header = nullptr; | |
1292
66d2050d3bd9
Part history can now be edited
Teemu Piippo <teemu@hecknology.net>
parents:
1291
diff
changeset
|
25 | |
66d2050d3bd9
Part history can now be edited
Teemu Piippo <teemu@hecknology.net>
parents:
1291
diff
changeset
|
26 | void moveRows(int direction); |
1291 | 27 | }; |