author | kergoth <kergoth> | 2003-08-09 16:24:58 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 16:24:58 (UTC) |
commit | e16d333ec2e8509fc665921ca106c25325bae9e0 (patch) (unidiff) | |
tree | 9e9068190a15bc9b2a52ab33b40881128f732c0e /noncore/multimedia/opierec/qtrec.cpp | |
parent | 1c58d1407f9584fedcdae390a04e2b37e5853361 (diff) | |
download | opie-e16d333ec2e8509fc665921ca106c25325bae9e0.zip opie-e16d333ec2e8509fc665921ca106c25325bae9e0.tar.gz opie-e16d333ec2e8509fc665921ca106c25325bae9e0.tar.bz2 |
Merge from BRANCH_1_0
Diffstat (limited to 'noncore/multimedia/opierec/qtrec.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opierec/qtrec.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/multimedia/opierec/qtrec.cpp b/noncore/multimedia/opierec/qtrec.cpp index 0307d99..147f63d 100644 --- a/noncore/multimedia/opierec/qtrec.cpp +++ b/noncore/multimedia/opierec/qtrec.cpp | |||
@@ -448,9 +448,9 @@ void QtRec::init() { | |||
448 | timeLabel = new QLabel( tab, "TimeLabel" ); | 448 | timeLabel = new QLabel( tab, "TimeLabel" ); |
449 | layout1->addMultiCellWidget( timeLabel, 0, 0, 0, 3); | 449 | layout1->addMultiCellWidget( timeLabel, 0, 0, 0, 3); |
450 | 450 | ||
451 | playLabel2 = new QLabel(tab, "PlayLabel2" ); | 451 | playLabel2 = new QLabel(tab, "PlayLabel2" ); |
452 | playLabel2->setText("Play"); | 452 | playLabel2->setText(tr("Play") ); |
453 | playLabel2->setFixedHeight(18); | 453 | playLabel2->setFixedHeight(18); |
454 | layout1->addMultiCellWidget( playLabel2, 0, 0, 4, 4); | 454 | layout1->addMultiCellWidget( playLabel2, 0, 0, 4, 4); |
455 | 455 | ||
456 | Stop_PushButton = new QPushButton( tab, "Stop_PushButton" ); | 456 | Stop_PushButton = new QPushButton( tab, "Stop_PushButton" ); |
@@ -469,9 +469,9 @@ void QtRec::init() { | |||
469 | toEndButton->setPixmap( Resource::loadPixmap( "fastforward" ) ); | 469 | toEndButton->setPixmap( Resource::loadPixmap( "fastforward" ) ); |
470 | 470 | ||
471 | QLabel *recLabel2; | 471 | QLabel *recLabel2; |
472 | recLabel2 = new QLabel( tab, "recLabel2" ); | 472 | recLabel2 = new QLabel( tab, "recLabel2" ); |
473 | recLabel2->setText("Rec"); | 473 | recLabel2->setText(tr("Rec")); |
474 | recLabel2->setFixedHeight(18); | 474 | recLabel2->setFixedHeight(18); |
475 | layout1->addMultiCellWidget( recLabel2, 0, 0, 7, 7); | 475 | layout1->addMultiCellWidget( recLabel2, 0, 0, 7, 7); |
476 | 476 | ||
477 | Rec_PushButton = new QPushButton( tab, "Rec_PushButton" ); | 477 | Rec_PushButton = new QPushButton( tab, "Rec_PushButton" ); |
@@ -499,11 +499,11 @@ void QtRec::init() { | |||
499 | ListView1->setColumnWidth(0,140); | 499 | ListView1->setColumnWidth(0,140); |
500 | ListView1->setSorting( 1, false); | 500 | ListView1->setSorting( 1, false); |
501 | ListView1->addColumn( tr( "Time" ) ); //in seconds | 501 | ListView1->addColumn( tr( "Time" ) ); //in seconds |
502 | ListView1->setColumnWidth(1,50); | 502 | ListView1->setColumnWidth(1,50); |
503 | ListView1->addColumn( "Location"); | 503 | ListView1->addColumn( tr("Location") ); |
504 | ListView1->setColumnWidth(2,50); | 504 | ListView1->setColumnWidth(2,50); |
505 | ListView1->addColumn( "Date"); | 505 | ListView1->addColumn( tr("Date") ); |
506 | ListView1->setColumnWidth(3,63); | 506 | ListView1->setColumnWidth(3,63); |
507 | 507 | ||
508 | ListView1->setColumnWidthMode(0,QListView::Manual); | 508 | ListView1->setColumnWidthMode(0,QListView::Manual); |
509 | ListView1->setColumnAlignment(1,QListView::AlignCenter); | 509 | ListView1->setColumnAlignment(1,QListView::AlignCenter); |
@@ -593,12 +593,12 @@ void QtRec::init() { | |||
593 | bitRateComboBox->setGeometry( QRect( 5, 20, 50, 25 ) ); | 593 | bitRateComboBox->setGeometry( QRect( 5, 20, 50, 25 ) ); |
594 | 594 | ||
595 | Layout18->addWidget( bitGroup ); | 595 | Layout18->addWidget( bitGroup ); |
596 | 596 | ||
597 | compressionCheckBox = new QCheckBox ( "Wave Compression (smaller files)", tab_3 ); | 597 | compressionCheckBox = new QCheckBox ( tr("Wave Compression (smaller files)"), tab_3 ); |
598 | Layout18->addWidget( compressionCheckBox ); | 598 | Layout18->addWidget( compressionCheckBox ); |
599 | 599 | ||
600 | autoMuteCheckBox= new QCheckBox ( "auto Mute", tab_3 ); | 600 | autoMuteCheckBox= new QCheckBox ( tr("auto Mute"), tab_3 ); |
601 | Layout18->addWidget( autoMuteCheckBox ); | 601 | Layout18->addWidget( autoMuteCheckBox ); |
602 | 602 | ||
603 | Layout19->addLayout( Layout18 ); | 603 | Layout19->addLayout( Layout18 ); |
604 | 604 | ||
@@ -643,12 +643,12 @@ void QtRec::init() { | |||
643 | OutputSlider->setTickmarks(QSlider::Both); | 643 | OutputSlider->setTickmarks(QSlider::Both); |
644 | 644 | ||
645 | Layout15b->addWidget( OutputSlider ); | 645 | Layout15b->addWidget( OutputSlider ); |
646 | 646 | ||
647 | outMuteCheckBox = new QCheckBox ( "mute", tab_5 ); | 647 | outMuteCheckBox = new QCheckBox ( tr("mute"), tab_5 ); |
648 | Layout15->addWidget( outMuteCheckBox ); | 648 | Layout15->addWidget( outMuteCheckBox ); |
649 | 649 | ||
650 | inMuteCheckBox = new QCheckBox ( "mute", tab_5 ); | 650 | inMuteCheckBox = new QCheckBox ( tr("mute"), tab_5 ); |
651 | inMuteCheckBox-> setFocusPolicy ( QWidget::NoFocus ); | 651 | inMuteCheckBox-> setFocusPolicy ( QWidget::NoFocus ); |
652 | Layout15b->addWidget( inMuteCheckBox ); | 652 | Layout15b->addWidget( inMuteCheckBox ); |
653 | 653 | ||
654 | 654 | ||
@@ -690,12 +690,12 @@ void QtRec::init() { | |||
690 | // OutputSlider->setTickmarks(QSlider::Both); | 690 | // OutputSlider->setTickmarks(QSlider::Both); |
691 | 691 | ||
692 | Layout15b->addWidget( OutputSlider ); | 692 | Layout15b->addWidget( OutputSlider ); |
693 | 693 | ||
694 | outMuteCheckBox = new QCheckBox ( "mute", tab_3 ); | 694 | outMuteCheckBox = new QCheckBox ( tr("mute"), tab_3 ); |
695 | Layout15->addWidget( outMuteCheckBox ); | 695 | Layout15->addWidget( outMuteCheckBox ); |
696 | 696 | ||
697 | inMuteCheckBox = new QCheckBox ( "mute", tab_3 ); | 697 | inMuteCheckBox = new QCheckBox ( tr("mute"), tab_3 ); |
698 | inMuteCheckBox-> setFocusPolicy ( QWidget::NoFocus ); | 698 | inMuteCheckBox-> setFocusPolicy ( QWidget::NoFocus ); |
699 | Layout15b->addWidget( inMuteCheckBox ); | 699 | Layout15b->addWidget( inMuteCheckBox ); |
700 | 700 | ||
701 | 701 | ||
@@ -874,13 +874,13 @@ void QtRec::stop() { | |||
874 | 874 | ||
875 | void QtRec::doPlayBtn() { | 875 | void QtRec::doPlayBtn() { |
876 | 876 | ||
877 | if(!stopped) { | 877 | if(!stopped) { |
878 | playLabel2->setText("Play"); | 878 | playLabel2->setText(tr("Play")); |
879 | stop(); | 879 | stop(); |
880 | } else { | 880 | } else { |
881 | if(ListView1->currentItem() == 0) return; | 881 | if(ListView1->currentItem() == 0) return; |
882 | playLabel2->setText("Stop"); | 882 | playLabel2->setText(tr("Stop")); |
883 | currentFile = ListView1->currentItem()->text(0); | 883 | currentFile = ListView1->currentItem()->text(0); |
884 | start(); | 884 | start(); |
885 | } | 885 | } |
886 | } | 886 | } |
@@ -909,9 +909,9 @@ bool QtRec::rec() { //record | |||
909 | return false; | 909 | return false; |
910 | } else { | 910 | } else { |
911 | qDebug("go ahead and record"); | 911 | qDebug("go ahead and record"); |
912 | secCount=1; | 912 | secCount=1; |
913 | playLabel2->setText("Stop"); | 913 | playLabel2->setText(tr("Stop")); |
914 | monitoring=false; | 914 | monitoring=false; |
915 | setRecordButton(true); | 915 | setRecordButton(true); |
916 | stopped=false; | 916 | stopped=false; |
917 | 917 | ||
@@ -2158,17 +2158,17 @@ void QtRec::setRecordButton(bool b) { | |||
2158 | QPixmap image3( ( const char** ) image3_data ); | 2158 | QPixmap image3( ( const char** ) image3_data ); |
2159 | Stop_PushButton->setPixmap( image3 ); | 2159 | Stop_PushButton->setPixmap( image3 ); |
2160 | if(Stop_PushButton->isDown()) | 2160 | if(Stop_PushButton->isDown()) |
2161 | Stop_PushButton->setDown(true); | 2161 | Stop_PushButton->setDown(true); |
2162 | playLabel2->setText("Stop"); | 2162 | playLabel2->setText(tr("Stop") ); |
2163 | 2163 | ||
2164 | } else { //about to stop | 2164 | } else { //about to stop |
2165 | 2165 | ||
2166 | QPixmap image4( ( const char** ) image4_data ); | 2166 | QPixmap image4( ( const char** ) image4_data ); |
2167 | Stop_PushButton->setPixmap( image4); | 2167 | Stop_PushButton->setPixmap( image4); |
2168 | if(Stop_PushButton->isDown()) | 2168 | if(Stop_PushButton->isDown()) |
2169 | Stop_PushButton->setDown(false); | 2169 | Stop_PushButton->setDown(false); |
2170 | playLabel2->setText("Play"); | 2170 | playLabel2->setText(tr("Play") ); |
2171 | if(Rec_PushButton->isDown()) | 2171 | if(Rec_PushButton->isDown()) |
2172 | Rec_PushButton->setDown( false); | 2172 | Rec_PushButton->setDown( false); |
2173 | } | 2173 | } |
2174 | } | 2174 | } |