|
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; |
|
25 }; |