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