src/hierarchyelement.h

Sun, 04 Oct 2015 04:26:11 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 04 Oct 2015 04:26:11 +0300
changeset 1000
c064cc048f14
parent 997
1b49f34e533d
child 1006
a6b462051ae0
permissions
-rw-r--r--

Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.

#pragma once
#include <QObject>
#include "main.h"

class MainWindow;
class ConfigurationValueBag;
class GuiUtilities;
class LDDocument;
class DocumentManager;

//
// Objects that are to take part in the MainWindow's hierarchy multiple-inherit from this class to get a few useful
// pointer members.
//
class HierarchyElement
{
public:
	HierarchyElement (QObject* parent);

	const LDObjectList& selectedObjects();
	LDDocument* currentDocument();
	GuiUtilities* guiUtilities() const;

protected:
	MainWindow* m_window;
	ConfigurationValueBag* m_config;
	DocumentManager* m_documents;
};

mercurial