diff -r 8db26042f3d1 -r 9c570a30c98a src/widgets/headeredit.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/headeredit.h Fri Mar 16 16:28:39 2018 +0200 @@ -0,0 +1,25 @@ +#pragma once +#include +#include "../lddocument.h" + +class HeaderEdit : public QWidget +{ + Q_OBJECT + +public: + HeaderEdit(QWidget* parent = nullptr); + ~HeaderEdit(); + + void setHeader(LDHeader* header); + LDHeader* header() const; + bool hasValidHeader() const; + +signals: + void descriptionChanged(const QString& newDescription); + void windingChanged(Winding newWinding); + +private: + class Ui_HeaderEdit& ui; + class HeaderHistoryModel* headerHistoryModel = nullptr; + LDHeader* m_header = nullptr; +};