src/ldpaths.h

Sun, 30 Aug 2015 17:20:55 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 30 Aug 2015 17:20:55 +0300
changeset 969
b1742ee91d5b
parent 953
8349552ee5e9
child 970
c8aae45afd85
permissions
-rw-r--r--

Split actions.cpp and actionsEdit.cpp into toolsets.

#pragma once
#include "main.h"

class QDir;

class LDPaths : public QObject
{
	Q_OBJECT

public:
	LDPaths (QObject* parent = nullptr);
	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