src/hierarchyelement.h

Sun, 06 Sep 2015 16:08:22 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 06 Sep 2015 16:08:22 +0300
changeset 992
5a10b4e7bf4a
parent 978
4603d8fd063e
child 997
1b49f34e533d
permissions
-rw-r--r--

Refactor PartDownloadRequest

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

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

//
// 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;
};

mercurial