src/widgets/headeredit.h

changeset 1291
9c570a30c98a
child 1292
66d2050d3bd9
equal deleted inserted replaced
1290:8db26042f3d1 1291:9c570a30c98a
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 };

mercurial