Exemplo n.º 1
0
void ProjectManager::SaveProject()
{
    if(m_pBoek == NULL)
    {
        QMessageBox box(QMessageBox::Information, "Geen project", "Er is geen project geopend!");
        box.exec();
        return;
    }

    if(m_saveLocation.isEmpty())
    {
        SaveProjectAs();
    }
    else
    {
        // TODO: Is het inderdaad opgeslagen?
        save(m_saveLocation);
    }
}
Exemplo n.º 2
0
int ProjectFrame::SaveProject()
{
	if (!theProject)
		return 0;

	bsString path;
	theProject->GetProjectPath(path);
	if (path.Length() == 0)
		return SaveProjectAs();
	SaveBackup();
	if (!SaveAllEditors(0))
		return -1;
	if (theProject->SaveProject())
	{
		bsString msg;
		msg = "Could not save project: ";
		msg += theProject->WhatHappened();
		Alert(msg, "Ooops...");
		return -1;
	}
	return 0;
}
Exemplo n.º 3
0
bool ProjectManager::SaveActiveProjectAs()
{
    return SaveProjectAs(m_pActiveProject);
}
Exemplo n.º 4
0
static void OnSaveAsProject()
{
    if( SaveProjectAs(Application().win) )
        SaveProject();
}