DataFile: renamed from old multimediaProject class + coding style fixes

This commit is contained in:
Tobias Doerffel
2014-02-03 21:20:10 +01:00
parent 3837ea0087
commit 2e7733eaa1
18 changed files with 268 additions and 165 deletions

View File

@@ -686,12 +686,11 @@ void MainWindow::createNewProjectFromTemplate( QAction * _idx )
void MainWindow::openProject( void )
void MainWindow::openProject()
{
if( mayChangeProject() )
{
FileDialog ofd( this, tr( "Open project" ), "",
tr( "MultiMedia Project (*.mmp *.mmpz *.xml)" ) );
FileDialog ofd( this, tr( "Open project" ), "", tr( "LMMS (*.mmp *.mmpz)" ) );
ofd.setDirectory( configManager::inst()->userProjectsDir() );
ofd.setFileMode( FileDialog::ExistingFiles );
@@ -754,8 +753,8 @@ bool MainWindow::saveProject( void )
bool MainWindow::saveProjectAs( void )
{
VersionedSaveDialog sfd( this, tr( "Save project" ), "",
tr( "MultiMedia Project (*.mmp *.mmpz);;"
"MultiMedia Project Template (*.mpt)" ) );
tr( "LMMS Project (*.mmp *.mmpz);;"
"LMMS Project Template (*.mpt)" ) );
QString f = engine::getSong()->projectFileName();
if( f != "" )
{