src/widgets/headeredit.h

Fri, 16 Mar 2018 16:28:39 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 16 Mar 2018 16:28:39 +0200
changeset 1291
9c570a30c98a
child 1292
66d2050d3bd9
permissions
-rw-r--r--

Added basic header editing

#pragma once
#include <QWidget>
#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;
};

mercurial