src/document.h

Sun, 19 Jan 2020 02:54:48 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 19 Jan 2020 02:54:48 +0200
changeset 22
6da867fa5429
parent 21
0133e565e072
child 24
1a0faaaceb84
permissions
-rw-r--r--

commit work on GL rendering

#pragma once
#include <memory>
#include <QWidget>
#include "gl/partrenderer.h"

namespace Ui
{
	class Document;
}

class Model;

class Document : public QWidget
{
	Q_OBJECT
public:
	explicit Document(Model* model, DocumentManager* documents, QWidget *parent = nullptr);
	~Document();
	QByteArray saveSplitterState() const;
	void restoreSplitterState(const QByteArray& state);
signals:
	void splitterChanged();
private:
	Model* model;
	DocumentManager* const documents;
	PartRenderer* renderer;
	Ui::Document& ui;
};

mercurial