src/ldpaths.h

changeset 953
8349552ee5e9
child 970
c8aae45afd85
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldpaths.h	Sat Aug 29 18:45:48 2015 +0300
@@ -0,0 +1,26 @@
+#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;
+};
\ No newline at end of file

mercurial