UI: ProjectSettingsUI

ProjectSettingsUI for creation of new Projects + StartScreen design update
This commit is contained in:
Andreas Stallinger
2015-08-03 17:24:24 +02:00
parent f823d0ddb4
commit e7a977dd5c
28 changed files with 764 additions and 91 deletions
+10 -1
View File
@@ -61,9 +61,18 @@ void Application::loadProject(const std::string& projectSettingsFilePath)
m_componentManager->refreshViews();
m_project = Project::create(m_storageCache.get());
m_project->loadProjectSettings(projectSettingsFilePath);
m_project->parseCode();
std::vector<std::string> recentProjects = ApplicationSettings::getInstance()->getRecentProjects();
recentProjects.erase(std::find(recentProjects.begin(),recentProjects.end(),projectSettingsFilePath));
recentProjects.insert(recentProjects.begin(),projectSettingsFilePath);
if(recentProjects.size() > 7)
{
recentProjects.pop_back();
}
ApplicationSettings::getInstance()->setRecentProjects(recentProjects);
ApplicationSettings::getInstance()->save("data/ApplicationSettings.xml");
}
void Application::loadSource(const std::string& sourceDirectoryPath)