Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCOptions::slotDisableSound (  )  [private, slot]

Definition at line 750 of file dcoptions.cpp.

References slotExternalPlayer(), slotSoundPlayConnect(), slotSoundPlayDisconnect(), slotSoundPlayFirstReceive(), slotSoundPlayRecieve(), and slotSoundPlaySend().

Referenced by InitDocument(), and SetValues().

{
      bool b;

      b = !CheckBox_SOUNDDISABLED->isChecked();

      CheckBox_SOUNDDISABLEDAWAY->setEnabled(b);
      CheckBox_SOUNDPLAYCONNECT->setEnabled(b);
      CheckBox_SOUNDPLAYDISCONNECT->setEnabled(b);
      CheckBox_SOUNDPLAYSEND->setEnabled(b);
      CheckBox_SOUNDPLAYRECEIVE->setEnabled(b);
      CheckBox_SOUNDPLAYFIRSTRECEIVE->setEnabled(b);
      CheckBox_EXTERNALPLAYER->setEnabled(b);

      if (!b) {
            LineEdit_EXTERNALPLAYER->setEnabled(b);
            ToolButton_BROWSESOUNDPLAYER->setEnabled(b);
            LineEdit_SOUNDFILECONNECT->setEnabled(b);
            ToolButton_BROWSESOUNDFILECONNECT->setEnabled(b);
            ToolButton_PREVIEWSOUNDFILECONNECT->setEnabled(b);
            LineEdit_SOUNDFILEDISCONNECT->setEnabled(b);
            ToolButton_BROWSESOUNDFILEDISCONNECT->setEnabled(b);
            ToolButton_PREVIEWSOUNDFILEDISCONNECT->setEnabled(b);
            LineEdit_SOUNDFILESEND->setEnabled(b);
            ToolButton_BROWSESOUNDFILESEND->setEnabled(b);
            ToolButton_PREVIEWSOUNDFILESEND->setEnabled(b);
            LineEdit_SOUNDFILERECEIVE->setEnabled(b);
            ToolButton_BROWSESOUNDFILERECEIVE->setEnabled(b);
            ToolButton_PREVIEWSOUNDFILERECEIVE->setEnabled(b);
            LineEdit_SOUNDFILEFIRSTRECEIVE->setEnabled(b);
            ToolButton_BROWSESOUNDFILEFIRSTRECEIVE->setEnabled(b);
            ToolButton_PREVIEWSOUNDFILEFIRSTRECEIVE->setEnabled(b);
      } else {
            slotExternalPlayer();
            slotSoundPlayConnect();
            slotSoundPlayConnect();
            slotSoundPlayDisconnect();
            slotSoundPlaySend();
            slotSoundPlayRecieve();
            slotSoundPlayFirstReceive();
      }
}


Generated by  Doxygen 1.6.0   Back to index