completed recent changes to saveSettings() / loadSettings()
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@810 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-03-24 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/fx_mixer.cpp:
|
||||
completed recent changes to saveSettings() / loadSettings()
|
||||
|
||||
2008-03-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* data/themes/default/main_toolbar_bg.png:
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(lmms, 0.4.0-svn20080315, lmms-devel/at/lists/dot/sf/dot/net)
|
||||
AM_INIT_AUTOMAKE(lmms, 0.4.0-svn20080315)
|
||||
AC_INIT(lmms, 0.4.0-svn20080324, lmms-devel/at/lists/dot/sf/dot/net)
|
||||
AM_INIT_AUTOMAKE(lmms, 0.4.0-svn20080324)
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
|
||||
@@ -225,15 +225,17 @@ void fxMixer::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
void fxMixer::loadSettings( const QDomElement & _this )
|
||||
{
|
||||
clear();
|
||||
QDomNode node = _this.firstChild();
|
||||
for( int i = 0; i <= NumFxChannels; ++i )
|
||||
{
|
||||
QDomElement fxch = _this.firstChildElement(
|
||||
QString( "fxchannel%1" ).arg( i ) );
|
||||
m_fxChannels[i]->m_fxChain.restoreState(
|
||||
QDomElement fxch = node.toElement();
|
||||
int num = fxch.attribute( "num" ).toInt();
|
||||
m_fxChannels[num]->m_fxChain.restoreState(
|
||||
fxch.firstChildElement(
|
||||
m_fxChannels[i]->m_fxChain.nodeName() ) );
|
||||
m_fxChannels[i]->m_volumeModel.loadSettings( fxch, "volume" );
|
||||
m_fxChannels[i]->m_name = fxch.attribute( "name" );
|
||||
m_fxChannels[num]->m_fxChain.nodeName() ) );
|
||||
m_fxChannels[num]->m_volumeModel.loadSettings( fxch, "volume" );
|
||||
m_fxChannels[num]->m_name = fxch.attribute( "name" );
|
||||
node = node.nextSibling();
|
||||
}
|
||||
|
||||
emit dataChanged();
|
||||
|
||||
Reference in New Issue
Block a user