src/widgets/headeredit.h

Sat, 17 Mar 2018 11:35:07 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 17 Mar 2018 11:35:07 +0200
changeset 1293
52732b1db3f0
parent 1292
66d2050d3bd9
child 1302
e14d7826373a
permissions
-rw-r--r--

removed the old Add History Line tool

#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;

	void moveRows(int direction);
};

mercurial