|
|
@ -197,7 +197,7 @@ KMixWindow::updateDocking()
|
|
|
|
|
|
|
|
|
|
|
|
// create dock widget
|
|
|
|
// create dock widget
|
|
|
|
// !! This should be a View in the future
|
|
|
|
// !! This should be a View in the future
|
|
|
|
m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", m_volumeWidget );
|
|
|
|
m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", m_volumeWidget, m_dockIconMuting );
|
|
|
|
|
|
|
|
|
|
|
|
/* Belongs in KMixDockWidget
|
|
|
|
/* Belongs in KMixDockWidget
|
|
|
|
// create RMB menu
|
|
|
|
// create RMB menu
|
|
|
@ -249,6 +249,7 @@ KMixWindow::saveConfig()
|
|
|
|
config->writeEntry( "Tickmarks", m_showTicks );
|
|
|
|
config->writeEntry( "Tickmarks", m_showTicks );
|
|
|
|
config->writeEntry( "Labels", m_showLabels );
|
|
|
|
config->writeEntry( "Labels", m_showLabels );
|
|
|
|
config->writeEntry( "startkdeRestore", m_onLogin );
|
|
|
|
config->writeEntry( "startkdeRestore", m_onLogin );
|
|
|
|
|
|
|
|
config->writeEntry( "DockIconMuting", m_dockIconMuting );
|
|
|
|
Mixer* mixerMasterCard = Mixer::masterCard();
|
|
|
|
Mixer* mixerMasterCard = Mixer::masterCard();
|
|
|
|
if ( mixerMasterCard != 0 ) {
|
|
|
|
if ( mixerMasterCard != 0 ) {
|
|
|
|
config->writeEntry( "MasterMixer", mixerMasterCard->id() );
|
|
|
|
config->writeEntry( "MasterMixer", mixerMasterCard->id() );
|
|
|
@ -298,6 +299,7 @@ KMixWindow::loadConfig()
|
|
|
|
m_showLabels = config->readBoolEntry("Labels", true);
|
|
|
|
m_showLabels = config->readBoolEntry("Labels", true);
|
|
|
|
const QString& valueStyleString = config->readEntry("ValueStyle", "None");
|
|
|
|
const QString& valueStyleString = config->readEntry("ValueStyle", "None");
|
|
|
|
m_onLogin = config->readBoolEntry("startkdeRestore", true );
|
|
|
|
m_onLogin = config->readBoolEntry("startkdeRestore", true );
|
|
|
|
|
|
|
|
m_dockIconMuting = config->readBoolEntry( "DockIconMuting", false);
|
|
|
|
m_startVisible = config->readBoolEntry("Visible", true);
|
|
|
|
m_startVisible = config->readBoolEntry("Visible", true);
|
|
|
|
m_multiDriverMode = config->readBoolEntry("MultiDriver", false);
|
|
|
|
m_multiDriverMode = config->readBoolEntry("MultiDriver", false);
|
|
|
|
m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false );
|
|
|
|
m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false );
|
|
|
@ -428,6 +430,7 @@ KMixWindow::showSettings()
|
|
|
|
m_prefDlg->m_showTicks->setChecked( m_showTicks );
|
|
|
|
m_prefDlg->m_showTicks->setChecked( m_showTicks );
|
|
|
|
m_prefDlg->m_showLabels->setChecked( m_showLabels );
|
|
|
|
m_prefDlg->m_showLabels->setChecked( m_showLabels );
|
|
|
|
m_prefDlg->m_onLogin->setChecked( m_onLogin );
|
|
|
|
m_prefDlg->m_onLogin->setChecked( m_onLogin );
|
|
|
|
|
|
|
|
m_prefDlg->m_dockIconMuting->setChecked( m_dockIconMuting );
|
|
|
|
m_prefDlg->_rbVertical ->setChecked( m_toplevelOrientation == Qt::Vertical );
|
|
|
|
m_prefDlg->_rbVertical ->setChecked( m_toplevelOrientation == Qt::Vertical );
|
|
|
|
m_prefDlg->_rbHorizontal->setChecked( m_toplevelOrientation == Qt::Horizontal );
|
|
|
|
m_prefDlg->_rbHorizontal->setChecked( m_toplevelOrientation == Qt::Horizontal );
|
|
|
|
m_prefDlg->_rbNone->setChecked( m_valueStyle == MixDeviceWidget::NNONE );
|
|
|
|
m_prefDlg->_rbNone->setChecked( m_valueStyle == MixDeviceWidget::NNONE );
|
|
|
@ -497,6 +500,7 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
|
|
|
|
m_showTicks = prefDlg->m_showTicks->isChecked();
|
|
|
|
m_showTicks = prefDlg->m_showTicks->isChecked();
|
|
|
|
m_showLabels = prefDlg->m_showLabels->isChecked();
|
|
|
|
m_showLabels = prefDlg->m_showLabels->isChecked();
|
|
|
|
m_onLogin = prefDlg->m_onLogin->isChecked();
|
|
|
|
m_onLogin = prefDlg->m_onLogin->isChecked();
|
|
|
|
|
|
|
|
m_dockIconMuting = prefDlg->m_dockIconMuting->isChecked();
|
|
|
|
|
|
|
|
|
|
|
|
if ( prefDlg->_rbNone->isChecked() ) {
|
|
|
|
if ( prefDlg->_rbNone->isChecked() ) {
|
|
|
|
m_valueStyle = MixDeviceWidget::NNONE;
|
|
|
|
m_valueStyle = MixDeviceWidget::NNONE;
|
|
|
|