[Marble-commits] KDE/kdeedu/marble/src/plugins/render/routing
Dennis Nienhüser
earthwings at gentoo.org
Wed Mar 9 21:30:50 CET 2011
SVN commit 1224258 by nienhueser:
Make sound output the default instead of voice navigation - so far we don't have a default voice to ship.
M +1 -1 AudioOutput.cpp
M +4 -1 RoutingConfigDialog.ui
M +10 -1 RoutingPlugin.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/routing/AudioOutput.cpp #1224257:1224258
@@ -64,7 +64,7 @@
AudioOutputPrivate::AudioOutputPrivate( AudioOutput* parent ) :
q( parent ), m_output( 0 ), m_lastIndex( -1 ),
- m_lastDistance( 0.0 ), m_muted( false ), m_soundEnabled( false )
+ m_lastDistance( 0.0 ), m_muted( false ), m_soundEnabled( true )
{
// nothing to do
}
--- trunk/KDE/kdeedu/marble/src/plugins/render/routing/RoutingConfigDialog.ui #1224257:1224258
@@ -49,6 +49,9 @@
<property name="text">
<string>Play a sound</string>
</property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
@@ -59,7 +62,7 @@
<string>Use this speaker</string>
</property>
<property name="checked">
- <bool>true</bool>
+ <bool>false</bool>
</property>
</widget>
</item>
--- trunk/KDE/kdeedu/marble/src/plugins/render/routing/RoutingPlugin.cpp #1224257:1224258
@@ -107,7 +107,9 @@
m_configDialog( 0 ),
m_parent( parent )
{
- // nothing to do
+ m_settings["muted"] = false;
+ m_settings["sound"] = true;
+ m_settings["speaker"] = QString();
}
QString RoutingPluginPrivate::richText( const QString &source, int size ) const
@@ -370,6 +372,7 @@
m_configUi.speakerComboBox->setCurrentIndex( index );
m_configUi.voiceNavigationCheckBox->setChecked( !muted );
m_configUi.soundRadioButton->setChecked( sound );
+ m_configUi.speakerRadioButton->setChecked( !sound );
}
}
@@ -507,6 +510,12 @@
void RoutingPlugin::setSettings( QHash<QString,QVariant> settings )
{
d->m_settings = settings;
+ if (!d->m_settings.contains("muted")) {
+ d->m_settings["muted"] = false;
+ }
+ if (!d->m_settings.contains("sound")) {
+ d->m_settings["sound"] = true;
+ }
d->readSettings();
}
More information about the Marble-commits
mailing list