src/ldpaths.h

Sun, 06 Sep 2015 15:14:27 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 06 Sep 2015 15:14:27 +0300
changeset 990
8e1265119324
parent 970
c8aae45afd85
child 1006
a6b462051ae0
permissions
-rw-r--r--

Add ${LDFORGE_HEADERS} into the add_executable call so that header files without corresponding source files show up in Qt Creator's project listing

#pragma once
#include "main.h"

class QDir;
class MainWindow;

class LDPaths : public QObject, public HierarchyElement
{
	Q_OBJECT

public:
	LDPaths (QObject* parent);
	void checkPaths();
	bool isValid (const class QDir& path) const;

	static QDir& baseDir();
	static QString& ldConfigPath();
	static QDir& primitivesDir();
	static QDir& partsDir();

public slots:
	bool configurePaths (QString path);

private:
	mutable QString m_error;
	class LDrawPathDialog* m_dialog;
};

mercurial