-rw-r--r-- | noncore/multimedia/opierec/qtrec.cpp | 54 | ||||
-rw-r--r-- | noncore/multimedia/opierec/wavFile.cpp | 2 |
2 files changed, 28 insertions, 28 deletions
diff --git a/noncore/multimedia/opierec/qtrec.cpp b/noncore/multimedia/opierec/qtrec.cpp index 4223d93..8a0f8db 100644 --- a/noncore/multimedia/opierec/qtrec.cpp +++ b/noncore/multimedia/opierec/qtrec.cpp | |||
@@ -379,5 +379,5 @@ QtRec::QtRec( QWidget* parent, const char* name, WFlags fl ) | |||
379 | 379 | ||
380 | if ( !name ) | 380 | if ( !name ) |
381 | setName( "QpeRec" ); | 381 | setName( "OpieRec" ); |
382 | init(); | 382 | init(); |
383 | initConfig(); | 383 | initConfig(); |
@@ -441,5 +441,5 @@ void QtRec::init() { | |||
441 | 441 | ||
442 | stopped=true; | 442 | stopped=true; |
443 | setCaption( tr( "QpeRecord " ) + QString::number(VERSION) ); | 443 | setCaption( tr( "OpieRecord " ) + QString::number(VERSION) ); |
444 | QGridLayout *layout = new QGridLayout( this ); | 444 | QGridLayout *layout = new QGridLayout( this ); |
445 | layout->setSpacing( 2); | 445 | layout->setSpacing( 2); |
@@ -736,5 +736,5 @@ void QtRec::init() { | |||
736 | ///////////////////////////////////////////// FIXME change to a real helpfile path | 736 | ///////////////////////////////////////////// FIXME change to a real helpfile path |
737 | QString url="/index.html"; | 737 | QString url="/index.html"; |
738 | HelpWindow *help = new HelpWindow( url, ".", tab_4, "qperec_help"); | 738 | HelpWindow *help = new HelpWindow( url, ".", tab_4, "opierec_help"); |
739 | layout4->addMultiCellWidget( help, 0, 1, 0, 1); | 739 | layout4->addMultiCellWidget( help, 0, 1, 0, 1); |
740 | if( !QFile(url).exists()) { | 740 | if( !QFile(url).exists()) { |
@@ -744,9 +744,9 @@ void QtRec::init() { | |||
744 | helpLabel = new QLabel( tab_4, "TimeLabel" ); | 744 | helpLabel = new QLabel( tab_4, "TimeLabel" ); |
745 | layout4->addMultiCellWidget( helpLabel, 0, 3, 0, 4 ); | 745 | layout4->addMultiCellWidget( helpLabel, 0, 3, 0, 4 ); |
746 | helpLabel->setText( "<B>QpeRec</B><br>" | 746 | helpLabel->setText( "<B>OpieRec</B><br>" |
747 | "Records files in standard wav format<br>" | 747 | "Records files in standard wav format<br>" |
748 | "or a compressed version<br>" | 748 | "or a compressed version<br>" |
749 | "For help, please email the author<br>" | 749 | "For help, please email the author<br>" |
750 | "<B>QpeRec</B> is copyright© 2002 by" | 750 | "<B>OpieRec</B> is copyright© 2002 by" |
751 | " L.J. Potter<br>llornkcor@handhelds.org<BR>" | 751 | " L.J. Potter<br>llornkcor@handhelds.org<BR>" |
752 | "and is licensed under the <B>QPL</B>"); | 752 | "and is licensed under the <B>QPL</B>"); |
@@ -759,5 +759,5 @@ void QtRec::initIconView() { | |||
759 | 759 | ||
760 | ListView1->clear(); | 760 | ListView1->clear(); |
761 | Config cfg("QpeRec"); | 761 | Config cfg("OpieRec"); |
762 | cfg.setGroup("Sounds"); | 762 | cfg.setGroup("Sounds"); |
763 | QString temp; | 763 | QString temp; |
@@ -824,5 +824,5 @@ void QtRec::initConnections() { | |||
824 | void QtRec::initConfig() { | 824 | void QtRec::initConfig() { |
825 | int index, fred, i; | 825 | int index, fred, i; |
826 | Config cfg("QpeRec"); | 826 | Config cfg("OpieRec"); |
827 | cfg.setGroup("Settings"); | 827 | cfg.setGroup("Settings"); |
828 | 828 | ||
@@ -936,5 +936,5 @@ bool QtRec::rec() { //record | |||
936 | qDebug("Ok to start recording"); | 936 | qDebug("Ok to start recording"); |
937 | int fileSize=0; | 937 | int fileSize=0; |
938 | Config cfg("QpeRec"); | 938 | Config cfg("OpieRec"); |
939 | cfg.setGroup("Settings"); | 939 | cfg.setGroup("Settings"); |
940 | qDebug( "<<<<<<<Device bits %d, device rate %d, device channels %d", | 940 | qDebug( "<<<<<<<Device bits %d, device rate %d, device channels %d", |
@@ -1136,5 +1136,5 @@ bool QtRec::setupAudio( bool b) { | |||
1136 | stopped=true; | 1136 | stopped=true; |
1137 | update(); | 1137 | update(); |
1138 | setCaption( tr( "QpeRecord " ) + QString::number(VERSION) ); | 1138 | setCaption( tr( "OpieRecord " ) + QString::number(VERSION) ); |
1139 | stopped=true; | 1139 | stopped=true; |
1140 | return false; | 1140 | return false; |
@@ -1332,5 +1332,5 @@ bool QtRec::doPlay() { | |||
1332 | 1332 | ||
1333 | void QtRec::changebitrateCombo(int i) { | 1333 | void QtRec::changebitrateCombo(int i) { |
1334 | Config cfg("QpeRec"); | 1334 | Config cfg("OpieRec"); |
1335 | cfg.setGroup("Settings"); | 1335 | cfg.setGroup("Settings"); |
1336 | int bits=0; | 1336 | int bits=0; |
@@ -1343,5 +1343,5 @@ void QtRec::changebitrateCombo(int i) { | |||
1343 | 1343 | ||
1344 | void QtRec::changesamplerateCombo(int i) { | 1344 | void QtRec::changesamplerateCombo(int i) { |
1345 | Config cfg("QpeRec"); | 1345 | Config cfg("OpieRec"); |
1346 | cfg.setGroup("Settings"); | 1346 | cfg.setGroup("Settings"); |
1347 | int rate=0; | 1347 | int rate=0; |
@@ -1367,5 +1367,5 @@ void QtRec::changesamplerateCombo(int i) { | |||
1367 | 1367 | ||
1368 | void QtRec::changeDirCombo(int index) { | 1368 | void QtRec::changeDirCombo(int index) { |
1369 | Config cfg("QpeRec"); | 1369 | Config cfg("OpieRec"); |
1370 | cfg.setGroup("Settings"); | 1370 | cfg.setGroup("Settings"); |
1371 | QString sName = directoryComboBox->text(index); | 1371 | QString sName = directoryComboBox->text(index); |
@@ -1389,5 +1389,5 @@ void QtRec::changeDirCombo(int index) { | |||
1389 | 1389 | ||
1390 | void QtRec::changeSizeLimitCombo(int) { | 1390 | void QtRec::changeSizeLimitCombo(int) { |
1391 | Config cfg("QpeRec"); | 1391 | Config cfg("OpieRec"); |
1392 | cfg.setGroup("Settings"); | 1392 | cfg.setGroup("Settings"); |
1393 | cfg.writeEntry("sizeLimit", getCurrentSizeLimit() ); | 1393 | cfg.writeEntry("sizeLimit", getCurrentSizeLimit() ); |
@@ -1408,9 +1408,9 @@ void QtRec::newSound() { | |||
1408 | void QtRec::itClick(QListViewItem *item) { | 1408 | void QtRec::itClick(QListViewItem *item) { |
1409 | currentFile=item->text(0); | 1409 | currentFile=item->text(0); |
1410 | setCaption("QpeRecord "+currentFile); | 1410 | setCaption("OpieRecord "+currentFile); |
1411 | } | 1411 | } |
1412 | 1412 | ||
1413 | void QtRec::deleteSound() { | 1413 | void QtRec::deleteSound() { |
1414 | Config cfg("QpeRec"); | 1414 | Config cfg("OpieRec"); |
1415 | cfg.setGroup("Sounds"); | 1415 | cfg.setGroup("Sounds"); |
1416 | if( ListView1->currentItem() == NULL) | 1416 | if( ListView1->currentItem() == NULL) |
@@ -1465,5 +1465,5 @@ void QtRec::deleteSound() { | |||
1465 | }; | 1465 | }; |
1466 | #endif | 1466 | #endif |
1467 | setCaption( tr( "QpeRecord " ) + QString::number(VERSION) ); | 1467 | setCaption( tr( "OpieRecord " ) + QString::number(VERSION) ); |
1468 | 1468 | ||
1469 | } | 1469 | } |
@@ -1639,5 +1639,5 @@ void QtRec::endRecording() { | |||
1639 | 1639 | ||
1640 | qDebug("Just moved "+wavFile->currentFileName); | 1640 | qDebug("Just moved "+wavFile->currentFileName); |
1641 | Config cfg("QpeRec"); | 1641 | Config cfg("OpieRec"); |
1642 | cfg.setGroup("Sounds"); | 1642 | cfg.setGroup("Sounds"); |
1643 | 1643 | ||
@@ -1705,10 +1705,10 @@ bool QtRec::openPlayFile() { | |||
1705 | qApp->processEvents(); | 1705 | qApp->processEvents(); |
1706 | if( currentFile.isEmpty()) { | 1706 | if( currentFile.isEmpty()) { |
1707 | QMessageBox::message(tr("Qperec"),tr("Please select file to play")); | 1707 | QMessageBox::message(tr("Opierec"),tr("Please select file to play")); |
1708 | endPlaying(); | 1708 | endPlaying(); |
1709 | return false; | 1709 | return false; |
1710 | } | 1710 | } |
1711 | QString currentFileName; | 1711 | QString currentFileName; |
1712 | Config cfg("QpeRec"); | 1712 | Config cfg("OpieRec"); |
1713 | cfg.setGroup("Sounds"); | 1713 | cfg.setGroup("Sounds"); |
1714 | int nFiles = cfg.readNumEntry("NumberofFiles",0); | 1714 | int nFiles = cfg.readNumEntry("NumberofFiles",0); |
@@ -1727,5 +1727,5 @@ bool QtRec::openPlayFile() { | |||
1727 | QString errorMsg=(QString)strerror(errno); | 1727 | QString errorMsg=(QString)strerror(errno); |
1728 | monitoring=false; | 1728 | monitoring=false; |
1729 | setCaption( tr( "QpeRecord " ) + QString::number(VERSION) ); | 1729 | setCaption( tr( "OpieRecord " ) + QString::number(VERSION) ); |
1730 | QMessageBox::message(tr("Note"),tr("Could not open audio file.\n") | 1730 | QMessageBox::message(tr("Note"),tr("Could not open audio file.\n") |
1731 | +errorMsg+"\n"+currentFile); | 1731 | +errorMsg+"\n"+currentFile); |
@@ -1755,5 +1755,5 @@ void QtRec::listPressed( int mouse, QListViewItem *item, const QPoint &, int ) { | |||
1755 | 1755 | ||
1756 | currentFile=item->text(0); | 1756 | currentFile=item->text(0); |
1757 | setCaption( "QpeRecord "+currentFile); | 1757 | setCaption( "OpieRecord "+currentFile); |
1758 | } | 1758 | } |
1759 | break; | 1759 | break; |
@@ -1794,5 +1794,5 @@ void QtRec::doBeam() { | |||
1794 | if( ir.supported()) { | 1794 | if( ir.supported()) { |
1795 | QString file = ListView1->currentItem()->text(0); | 1795 | QString file = ListView1->currentItem()->text(0); |
1796 | Config cfg("QpeRec"); | 1796 | Config cfg("OpieRec"); |
1797 | cfg.setGroup("Sounds"); | 1797 | cfg.setGroup("Sounds"); |
1798 | 1798 | ||
@@ -1804,5 +1804,5 @@ void QtRec::doBeam() { | |||
1804 | Ir *file = new Ir(this, "IR"); | 1804 | Ir *file = new Ir(this, "IR"); |
1805 | connect(file, SIGNAL(done(Ir*)), this, SLOT( fileBeamFinished( Ir * ))); | 1805 | connect(file, SIGNAL(done(Ir*)), this, SLOT( fileBeamFinished( Ir * ))); |
1806 | file->send( filePath, "QpeRec audio file\n"+filePath ); | 1806 | file->send( filePath, "OPieRec audio file\n"+filePath ); |
1807 | } | 1807 | } |
1808 | } | 1808 | } |
@@ -1846,5 +1846,5 @@ void QtRec::okRename() { | |||
1846 | return; | 1846 | return; |
1847 | 1847 | ||
1848 | Config cfg("QpeRec"); | 1848 | Config cfg("OpieRec"); |
1849 | cfg.setGroup("Sounds"); | 1849 | cfg.setGroup("Sounds"); |
1850 | 1850 | ||
@@ -1933,5 +1933,5 @@ void QtRec::doMicMuting(bool b) { | |||
1933 | 1933 | ||
1934 | void QtRec::compressionSelected(bool b) { | 1934 | void QtRec::compressionSelected(bool b) { |
1935 | Config cfg("QpeRec"); | 1935 | Config cfg("OpieRec"); |
1936 | cfg.setGroup("Settings"); | 1936 | cfg.setGroup("Settings"); |
1937 | cfg.writeEntry("wavCompression", b); | 1937 | cfg.writeEntry("wavCompression", b); |
@@ -2194,5 +2194,5 @@ void QtRec::fillDirectoryCombo() { | |||
2194 | directoryComboBox->clear(); | 2194 | directoryComboBox->clear(); |
2195 | int index=0; | 2195 | int index=0; |
2196 | Config cfg("QpeRec"); | 2196 | Config cfg("OpieRec"); |
2197 | cfg.setGroup("Settings"); | 2197 | cfg.setGroup("Settings"); |
2198 | QString dir= cfg.readEntry("directory", "/"); | 2198 | QString dir= cfg.readEntry("directory", "/"); |
@@ -2225,5 +2225,5 @@ void QtRec::doMute(bool b) { | |||
2225 | void QtRec::slotAutoMute(bool b) { | 2225 | void QtRec::slotAutoMute(bool b) { |
2226 | autoMute=b; | 2226 | autoMute=b; |
2227 | Config cfg("QpeRec"); | 2227 | Config cfg("OpieRec"); |
2228 | cfg.setGroup("Settings"); | 2228 | cfg.setGroup("Settings"); |
2229 | cfg.writeEntry("useAutoMute",b); | 2229 | cfg.writeEntry("useAutoMute",b); |
diff --git a/noncore/multimedia/opierec/wavFile.cpp b/noncore/multimedia/opierec/wavFile.cpp index 09695aa..0bb5736 100644 --- a/noncore/multimedia/opierec/wavFile.cpp +++ b/noncore/multimedia/opierec/wavFile.cpp | |||
@@ -45,5 +45,5 @@ bool WavFile::newFile() { | |||
45 | 45 | ||
46 | qDebug("Set up new file"); | 46 | qDebug("Set up new file"); |
47 | Config cfg("QpeRec"); | 47 | Config cfg("OpieRec"); |
48 | cfg.setGroup("Settings"); | 48 | cfg.setGroup("Settings"); |
49 | 49 | ||