| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "CmEditorPrerequisites.h"
- #include "CmModule.h"
- #include <QtCore/QString>
- namespace CamelotEditor
- {
- class EditorPrefs : public CamelotEngine::Module<EditorPrefs>
- {
- public:
- UINT32 getNumRecentlyUsedProjects() const;
- const QString& getRecentlyUsedProjectPath(UINT32 idx) const;
- void addRecentlyUsedProjectPath(const QString& path);
- void removeRecentlyUsedProjectPath(UINT32 idx);
- void setLastUsedProjectDirectory(const QString& value);
- const QString& getLastUsedProjectDirectory() const;
- void save(const QString& path, bool overwrite = true) const;
- void load(const QString& path);
- private:
- vector<QString>::type mRecentlyUsedProjects;
- QString mLastUsedProjectDirectory;
- void clear();
- };
- EditorPrefs& gEditorPrefs();
- }
|