Diffstat (limited to 'noncore/multimedia/opierec/qtrec.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opierec/qtrec.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opierec/qtrec.cpp b/noncore/multimedia/opierec/qtrec.cpp index 9d3d5cf..75413be 100644 --- a/noncore/multimedia/opierec/qtrec.cpp +++ b/noncore/multimedia/opierec/qtrec.cpp | |||
@@ -1,44 +1,44 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | // qtrec.cpp | 2 | // qtrec.cpp |
3 | Created: Thu Jan 17 11:19:58 2002 | 3 | Created: Thu Jan 17 11:19:58 2002 |
4 | copyright 2002 by L.J. Potter <ljp@llornkcor.com> | 4 | copyright 2002 by L.J. Potter <ljp@llornkcor.com> |
5 | ****************************************************************************/ | 5 | ****************************************************************************/ |
6 | //#define DEV_VERSION | 6 | //#define DEV_VERSION |
7 | 7 | ||
8 | #include "pixmaps.h" | 8 | #include "pixmaps.h" |
9 | #include "qtrec.h" | 9 | #include "qtrec.h" |
10 | #include "waveform.h" | 10 | #include "waveform.h" |
11 | extern "C" { | 11 | extern "C" { |
12 | #include "adpcm.h" | 12 | #include "adpcm.h" |
13 | } | 13 | } |
14 | 14 | ||
15 | /* OPIE */ | 15 | /* OPIE */ |
16 | #include <opie2/odebug.h> | 16 | #include <opie2/odebug.h> |
17 | #include <opie2/oresource.h> | ||
17 | #include <qpe/config.h> | 18 | #include <qpe/config.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 19 | #include <qpe/qcopenvelope_qws.h> |
19 | #include <qpe/qpeapplication.h> | 20 | #include <qpe/qpeapplication.h> |
20 | #include <qpe/resource.h> | ||
21 | #include <qpe/storage.h> | 21 | #include <qpe/storage.h> |
22 | using namespace Opie::Core; | 22 | using namespace Opie::Core; |
23 | 23 | ||
24 | /* QT */ | 24 | /* QT */ |
25 | #include <qcheckbox.h> | 25 | #include <qcheckbox.h> |
26 | #include <qcombobox.h> | 26 | #include <qcombobox.h> |
27 | #include <qdir.h> | 27 | #include <qdir.h> |
28 | #include <qgroupbox.h> | 28 | #include <qgroupbox.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | #include <qlayout.h> | 30 | #include <qlayout.h> |
31 | #include <qlistview.h> | 31 | #include <qlistview.h> |
32 | #include <qmessagebox.h> | 32 | #include <qmessagebox.h> |
33 | #include <qpopupmenu.h> | 33 | #include <qpopupmenu.h> |
34 | #include <qpushbutton.h> | 34 | #include <qpushbutton.h> |
35 | #include <qslider.h> | 35 | #include <qslider.h> |
36 | #include <qtabwidget.h> | 36 | #include <qtabwidget.h> |
37 | #include <qtimer.h> | 37 | #include <qtimer.h> |
38 | 38 | ||
39 | /* STD */ | 39 | /* STD */ |
40 | #include <errno.h> | 40 | #include <errno.h> |
41 | #include <fcntl.h> | 41 | #include <fcntl.h> |
42 | #include <math.h> | 42 | #include <math.h> |
43 | #include <mntent.h> | 43 | #include <mntent.h> |
44 | #include <stdio.h> | 44 | #include <stdio.h> |
@@ -485,54 +485,54 @@ void QtRec::init() { | |||
485 | 485 | ||
486 | QGridLayout *layout1 = new QGridLayout( tab); | 486 | QGridLayout *layout1 = new QGridLayout( tab); |
487 | layout1->setSpacing( 2); | 487 | layout1->setSpacing( 2); |
488 | layout1->setMargin( 2); | 488 | layout1->setMargin( 2); |
489 | 489 | ||
490 | timeSlider = new QSlider( 0,100,10,0, QSlider::Horizontal, tab, (const char *) "timeSlider" ); | 490 | timeSlider = new QSlider( 0,100,10,0, QSlider::Horizontal, tab, (const char *) "timeSlider" ); |
491 | layout1->addMultiCellWidget( timeSlider, 1, 1, 0, 3); | 491 | layout1->addMultiCellWidget( timeSlider, 1, 1, 0, 3); |
492 | 492 | ||
493 | // timeLabel = new QLabel( tab, "TimeLabel" ); | 493 | // timeLabel = new QLabel( tab, "TimeLabel" ); |
494 | // layout1->addMultiCellWidget( timeLabel, 0, 0, 0, 3); | 494 | // layout1->addMultiCellWidget( timeLabel, 0, 0, 0, 3); |
495 | 495 | ||
496 | // playLabel2 = new QLabel(tab, "PlayLabel2" ); | 496 | // playLabel2 = new QLabel(tab, "PlayLabel2" ); |
497 | // playLabel2->setText(tr("Play") ); | 497 | // playLabel2->setText(tr("Play") ); |
498 | // playLabel2->setFixedHeight( 18); | 498 | // playLabel2->setFixedHeight( 18); |
499 | // layout1->addMultiCellWidget( playLabel2, 0, 0, 4, 4); | 499 | // layout1->addMultiCellWidget( playLabel2, 0, 0, 4, 4); |
500 | 500 | ||
501 | Stop_PushButton = new QPushButton( tab, "Stop_PushButton" ); | 501 | Stop_PushButton = new QPushButton( tab, "Stop_PushButton" ); |
502 | layout1->addMultiCellWidget( Stop_PushButton, 1, 1, 4, 4); | 502 | layout1->addMultiCellWidget( Stop_PushButton, 1, 1, 4, 4); |
503 | Stop_PushButton->setFixedSize( 22, 22); | 503 | Stop_PushButton->setFixedSize( 22, 22); |
504 | Stop_PushButton->setPixmap( image4 ); | 504 | Stop_PushButton->setPixmap( image4 ); |
505 | 505 | ||
506 | toBeginningButton = new QPushButton( tab, "Beginning_PushButton" ); | 506 | toBeginningButton = new QPushButton( tab, "Beginning_PushButton" ); |
507 | layout1->addMultiCellWidget(toBeginningButton, 1, 1, 5, 5); | 507 | layout1->addMultiCellWidget(toBeginningButton, 1, 1, 5, 5); |
508 | toBeginningButton->setFixedSize( 22, 22); | 508 | toBeginningButton->setFixedSize( 22, 22); |
509 | toBeginningButton->setPixmap( Resource::loadPixmap("fastback") ); | 509 | toBeginningButton->setPixmap( Opie::Core::OResource::loadPixmap("fastback", Opie::Core::OResource::SmallIcon) ); |
510 | 510 | ||
511 | toEndButton = new QPushButton( tab, "End_PushButton" ); | 511 | toEndButton = new QPushButton( tab, "End_PushButton" ); |
512 | layout1->addMultiCellWidget( toEndButton, 1, 1, 6, 6); | 512 | layout1->addMultiCellWidget( toEndButton, 1, 1, 6, 6); |
513 | toEndButton->setFixedSize( 22, 22); | 513 | toEndButton->setFixedSize( 22, 22); |
514 | toEndButton->setPixmap( Resource::loadPixmap( "fastforward" ) ); | 514 | toEndButton->setPixmap( Opie::Core::OResource::loadPixmap( "fastforward", Opie::Core::OResource::SmallIcon ) ); |
515 | 515 | ||
516 | // QLabel *recLabel2; | 516 | // QLabel *recLabel2; |
517 | // recLabel2 = new QLabel( tab, "recLabel2" ); | 517 | // recLabel2 = new QLabel( tab, "recLabel2" ); |
518 | // recLabel2->setText(tr("Rec")); | 518 | // recLabel2->setText(tr("Rec")); |
519 | // recLabel2->setFixedHeight( 18); | 519 | // recLabel2->setFixedHeight( 18); |
520 | // layout1->addMultiCellWidget( recLabel2, 0, 0, 7, 7); | 520 | // layout1->addMultiCellWidget( recLabel2, 0, 0, 7, 7); |
521 | 521 | ||
522 | Rec_PushButton = new QPushButton( tab, "Rec_PushButton" ); | 522 | Rec_PushButton = new QPushButton( tab, "Rec_PushButton" ); |
523 | layout1->addMultiCellWidget( Rec_PushButton, 1, 1, 7, 7); | 523 | layout1->addMultiCellWidget( Rec_PushButton, 1, 1, 7, 7); |
524 | Rec_PushButton->setFixedSize( 22, 22); | 524 | Rec_PushButton->setFixedSize( 22, 22); |
525 | Rec_PushButton->setPixmap( image6 ); | 525 | Rec_PushButton->setPixmap( image6 ); |
526 | 526 | ||
527 | t = new QTimer( this ); | 527 | t = new QTimer( this ); |
528 | connect( t, SIGNAL( timeout() ), SLOT( timerBreak() ) ); | 528 | connect( t, SIGNAL( timeout() ), SLOT( timerBreak() ) ); |
529 | 529 | ||
530 | rewindTimer = new QTimer( this ); | 530 | rewindTimer = new QTimer( this ); |
531 | connect( rewindTimer, SIGNAL( timeout() ), | 531 | connect( rewindTimer, SIGNAL( timeout() ), |
532 | this, SLOT( rewindTimerTimeout() ) ); | 532 | this, SLOT( rewindTimerTimeout() ) ); |
533 | 533 | ||
534 | forwardTimer = new QTimer( this ); | 534 | forwardTimer = new QTimer( this ); |
535 | connect( forwardTimer, SIGNAL( timeout() ), | 535 | connect( forwardTimer, SIGNAL( timeout() ), |
536 | this, SLOT( forwardTimerTimeout() ) ); | 536 | this, SLOT( forwardTimerTimeout() ) ); |
537 | 537 | ||
538 | deleteSoundButton = new QPushButton( tab, "deleteSoundButton" ); | 538 | deleteSoundButton = new QPushButton( tab, "deleteSoundButton" ); |