utility: Fileendings for DB and Settings changed
changed DB from .sqlite to .coatidb and Projectsettings from .xml to .coatiproject
This commit is contained in:
@@ -23,5 +23,6 @@
|
||||
/ide_plugins/vs/vs2012/CoatiPlugin/CoatiPlugin/bin
|
||||
/ide_plugins/vs/vs2012/CoatiPlugin/CoatiPlugin/obj
|
||||
|
||||
*.coatidb
|
||||
*.sqlite
|
||||
*.swp
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<config>
|
||||
<user>
|
||||
<recent_projects>
|
||||
<recent_project>./data/projects/tutorial/tutorial.xml</recent_project>
|
||||
<recent_project>./data/projects/tictactoe/tictactoe.xml</recent_project>
|
||||
<recent_project>./data/projects/tutorial/tutorial.coatiproject</recent_project>
|
||||
<recent_project>./data/projects/tictactoe/tictactoe.coatiproject</recent_project>
|
||||
</recent_projects>
|
||||
</user>
|
||||
</config>
|
||||
|
||||
@@ -311,7 +311,7 @@ void QtMainWindow::openProject(const QString &path)
|
||||
|
||||
if (fileName.isNull())
|
||||
{
|
||||
fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", "XML Files (*.xml)");
|
||||
fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", "Coati Project Files (*.coatiproject)");
|
||||
}
|
||||
|
||||
if (!fileName.isEmpty())
|
||||
@@ -361,7 +361,7 @@ void QtMainWindow::saveProject()
|
||||
void QtMainWindow::saveAsProject()
|
||||
{
|
||||
QString filename = "";
|
||||
filename = QFileDialog::getSaveFileName(this, "Save File as", "", "XML Files(*.xml)");
|
||||
filename = QFileDialog::getSaveFileName(this, "Save File as", "", "Coati Project Files(*.coatiproject)");
|
||||
|
||||
if(!filename.isEmpty())
|
||||
{
|
||||
|
||||
@@ -194,7 +194,7 @@ void QtProjectSetupScreen::handleUpdateButtonPress()
|
||||
}
|
||||
|
||||
std::string projectFile =
|
||||
m_projectFileLocation->getText().toStdString() + "/" + m_projectName->text().toStdString() + ".xml";
|
||||
m_projectFileLocation->getText().toStdString() + "/" + m_projectName->text().toStdString() + ".coatiproject";
|
||||
projSettings->save(projectFile);
|
||||
|
||||
MessageLoadProject(projectFile).dispatch();
|
||||
|
||||
+1
-1
@@ -142,7 +142,7 @@ void Project::setProjectSettingsFilePath(const FilePath& path)
|
||||
}
|
||||
else if (m_projectSettingsFilepath != path)
|
||||
{
|
||||
FilePath dbPath = FilePath(path).replaceExtension("sqlite");
|
||||
FilePath dbPath = FilePath(path).replaceExtension("coatidb");
|
||||
m_storageWasLoaded = dbPath.exists();
|
||||
m_storage = std::make_shared<Storage>(dbPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user