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

void DCOptions::BrowseSoundFile ( eUserSound  usersound  )  [private]

Definition at line 917 of file dcoptions.cpp.

Referenced by slotBrowseSoundFileConnect(), slotBrowseSoundFileDisconnect(), slotBrowseSoundFileFirstReceive(), slotBrowseSoundFileReceive(), and slotBrowseSoundFileSend().

{
      QString file;
      QString filter;

      filter = tr("au")        + " (*.au);;"  +
             tr("wav")       + " (*.wav);;" +
             tr("All Files") + " (*)";

      file = QFileDialog::getOpenFileName( "", filter, this, "blf", tr("Select sound file") );

      if( file != "" )
      {
            switch(usersound)
            {
                  case eusCONNECT:
                        LineEdit_SOUNDFILECONNECT->setText(file);
                        break;
                  case eusDISCONNECT:
                        LineEdit_SOUNDFILEDISCONNECT->setText(file);
                        break;
                  case eusSEND:
                        LineEdit_SOUNDFILESEND->setText(file);
                        break;
                  case eusRECEIVE:
                        LineEdit_SOUNDFILERECEIVE->setText(file);
                        break;
                  case eusFIRSTRECEIVE:
                        LineEdit_SOUNDFILEFIRSTRECEIVE->setText(file);
                        break;
                  default:
                        break;
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index