UI: ProjectSettingsUI
ProjectSettingsUI for creation of new Projects + StartScreen design update
This commit is contained in:
@@ -100,3 +100,12 @@ void ApplicationSettings::setCodeSnippetExpandRange(int range)
|
||||
ApplicationSettings::ApplicationSettings()
|
||||
{
|
||||
}
|
||||
|
||||
std::vector<std::string> ApplicationSettings::getRecentProjects() const {
|
||||
std::vector<std::string> recentProjects;
|
||||
return getValues("recentProjects/projectFilePath", recentProjects);
|
||||
}
|
||||
|
||||
bool ApplicationSettings::setRecentProjects(const std::vector<std::string> &recentProjects) {
|
||||
return setValues("recentProjects/projectFilePath", recentProjects);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,10 @@ public:
|
||||
std::string getColorSchemePath() const;
|
||||
void setColorSchemePath(const std::string& colorSchemePath);
|
||||
|
||||
//recent projects
|
||||
std::vector<std::string> getRecentProjects() const;
|
||||
bool setRecentProjects(const std::vector<std::string>& recentProjects);
|
||||
|
||||
// code
|
||||
int getCodeTabWidth() const;
|
||||
void setCodeTabWidth(int codeTabWidth);
|
||||
|
||||
@@ -78,3 +78,13 @@ std::vector<std::string> ProjectSettings::getSourceExtensions() const
|
||||
defaultValues.push_back(".cpp");
|
||||
return getValues("source/Extensions/SourceExtensions", defaultValues);
|
||||
}
|
||||
|
||||
bool ProjectSettings::setHeaderExtensions(const std::vector<std::string> &headerExtensions)
|
||||
{
|
||||
return setValues("source/Extensions/HeaderExtensions", headerExtensions);
|
||||
}
|
||||
|
||||
bool ProjectSettings::setSourceExtensions(const std::vector<std::string> &sourceExtensions)
|
||||
{
|
||||
return setValues("source/Extensions/SourceExtensions", sourceExtensions);
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ public:
|
||||
std::vector<std::string> getHeaderExtensions() const;
|
||||
std::vector<std::string> getSourceExtensions() const;
|
||||
|
||||
bool setHeaderExtensions(const std::vector<std::string>& headerExtensions);
|
||||
bool setSourceExtensions(const std::vector<std::string>& sourceExtensions);
|
||||
|
||||
private:
|
||||
ProjectSettings();
|
||||
ProjectSettings(const ProjectSettings&);
|
||||
|
||||
Reference in New Issue
Block a user