updated/added samples, presets and projects and fixed other small things

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@531 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-08-20 11:22:34 +00:00
parent 820d05a807
commit 847fda97d6
47 changed files with 18524 additions and 13649 deletions

View File

@@ -772,9 +772,6 @@ void mainWindow::openProject( void )
{
engine::getSongEditor()->loadProject(
ofd.selectedFiles()[0] );
configManager::inst()->addRecentlyOpenedProject(
ofd.selectedFiles()[0] );
updateRecentlyOpenedProjectsMenu();
}
}
}
@@ -865,9 +862,6 @@ bool mainWindow::saveProjectAs( void )
#else
engine::getSongEditor()->saveProjectAs( sfd.selectedFile() );
#endif
configManager::inst()->addRecentlyOpenedProject(
sfd.selectedFiles()[0] );
updateRecentlyOpenedProjectsMenu();
return( TRUE );
}
return( FALSE );

View File

@@ -152,9 +152,9 @@ setupDialog::setupDialog( configTabs _tab_to_open ) :
QWidget * ws = new QWidget( settings );
#ifdef HAVE_STK_H
ws->setFixedSize( 360, 412 );
ws->setFixedSize( 360, 422 );
#else
ws->setFixedSize( 360, 356 );
ws->setFixedSize( 360, 366 );
#endif
QWidget * general = new QWidget( ws );
general->setFixedSize( 360, 240 );
@@ -280,9 +280,9 @@ setupDialog::setupDialog( configTabs _tab_to_open ) :
QWidget * directories = new QWidget( ws );
#ifdef HAVE_STK_H
directories->setFixedSize( 360, 362 );
directories->setFixedSize( 360, 372 );
#else
directories->setFixedSize( 360, 316 );
directories->setFixedSize( 360, 326 );
#endif
QVBoxLayout * dir_layout = new QVBoxLayout( directories );
dir_layout->setSpacing( 0 );
@@ -425,7 +425,7 @@ setupDialog::setupDialog( configTabs _tab_to_open ) :
QWidget * performance = new QWidget( ws );
performance->setFixedSize( 360, 200 );
performance->setFixedSize( 360, 240 );
QVBoxLayout * perf_layout = new QVBoxLayout( performance );
perf_layout->setSpacing( 0 );
perf_layout->setMargin( 0 );
@@ -457,18 +457,19 @@ setupDialog::setupDialog( configTabs _tab_to_open ) :
tabWidget * smp_supp_tw = new tabWidget( tr( "SMP support" ).toUpper(),
performance );
smp_supp_tw->setFixedHeight( 180 );
smp_supp_tw->setFixedHeight( 200 );
QLabel * par_level_lbl = new QLabel( tr( "Parallelizing level" ),
smp_supp_tw );
par_level_lbl->move( 10, 15 );
par_level_lbl->setFixedSize( 120, 16 );
lcdSpinBox * par_level = new lcdSpinBox( 1, 16, 2, smp_supp_tw, NULL,
NULL );
par_level->setValue( m_parLevel );
connect( par_level, SIGNAL( valueChanged( int ) ),
this, SLOT( setParallelizingLevel( int ) ) );
par_level->move( 120, 20 );
par_level->move( 140, 20 );
QLabel * smp_help = new QLabel(
tr( "If you have a machine with more then one processor "
@@ -481,7 +482,7 @@ setupDialog::setupDialog( configTabs _tab_to_open ) :
"work with small buffer-sizes. If you experience "
"problems (i.e. lot of xruns), try to increase buffer-"
"size." ), smp_supp_tw );
smp_help->setFixedSize( performance->width() - 20, 110 );
smp_help->setFixedSize( performance->width() - 20, 140 );
#ifndef QT3
smp_help->setWordWrap( TRUE );
#else

View File

@@ -1537,6 +1537,9 @@ void FASTCALL songEditor::loadProject( const QString & _file_name )
m_masterVolumeSlider->loadSettings( mmp.head(), "mastervol" );
m_masterPitchSlider->loadSettings( mmp.head(), "masterpitch" );
// reset loop-point-state
m_playPos[PLAY_SONG].m_timeLine->toggleLoopPoints( 0 );
QDomNode node = mmp.content().firstChild();
while( !node.isNull() )
{
@@ -1581,7 +1584,10 @@ void FASTCALL songEditor::loadProject( const QString & _file_name )
m_loadingProject = FALSE;
configManager::inst()->addRecentlyOpenedProject( _file_name );
engine::getMainWindow()->resetWindowTitle( "" );
engine::getMainWindow()->updateRecentlyOpenedProjectsMenu();
engine::getProjectJournal()->setJournalling( TRUE );
}
@@ -1617,7 +1623,9 @@ bool songEditor::saveProject( void )
).arg( m_fileName ),
embed::getIconPixmap( "project_save", 24, 24 ),
2000 );
configManager::inst()->addRecentlyOpenedProject( m_fileName );
engine::getMainWindow()->resetWindowTitle( "" );
engine::getMainWindow()->updateRecentlyOpenedProjectsMenu();
}
else
{

View File

@@ -201,7 +201,7 @@ multimediaProject::~multimediaProject()
bool multimediaProject::writeFile( const QString & _fn, bool _overwrite_check )
bool multimediaProject::writeFile( QString & _fn, bool _overwrite_check )
{
bool clean_meta_nodes = FALSE;
QString fn = _fn;

View File

@@ -441,10 +441,11 @@ void instrumentTrack::saveSettingsBtnClicked( void )
saveTrackSpecificSettings( mmp, _this );
mmp.content().appendChild( _this );
#ifdef QT4
mmp.writeFile( sfd.selectedFiles()[0] );
QString f = sfd.selectedFiles()[0];
#else
mmp.writeFile( sfd.selectedFile() );
QString f = sfd.selectedFile();
#endif
mmp.writeFile( f );
}
}