author | drw <drw> | 2005-05-24 21:48:49 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-24 21:48:49 (UTC) |
commit | a2542a161d15feface21954afcd26f9ec51f131f (patch) (unidiff) | |
tree | 2af887a81a3943732ab1b68b548dbc0e817fd994 | |
parent | c3acfb9caacd7c83f9798940aed5b7d2624ecc01 (diff) | |
download | opie-a2542a161d15feface21954afcd26f9ec51f131f.zip opie-a2542a161d15feface21954afcd26f9ec51f131f.tar.gz opie-a2542a161d15feface21954afcd26f9ec51f131f.tar.bz2 |
Resource -> OResource
-rw-r--r-- | noncore/multimedia/opierec/helpwindow.cpp | 8 | ||||
-rw-r--r-- | noncore/multimedia/opierec/qtrec.cpp | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/noncore/multimedia/opierec/helpwindow.cpp b/noncore/multimedia/opierec/helpwindow.cpp index 7f984c3..b0a8ac3 100644 --- a/noncore/multimedia/opierec/helpwindow.cpp +++ b/noncore/multimedia/opierec/helpwindow.cpp | |||
@@ -1,98 +1,100 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** $Id$ | 2 | ** $Id$ |
3 | ** | 3 | ** |
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. | 4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
5 | ** | 5 | ** |
6 | ** This file is part of an example program for Qt. This example | 6 | ** This file is part of an example program for Qt. This example |
7 | ** program may be used, distributed and modified without limitation. | 7 | ** program may be used, distributed and modified without limitation. |
8 | ** | 8 | ** |
9 | *****************************************************************************/ | 9 | *****************************************************************************/ |
10 | 10 | ||
11 | #include "helpwindow.h" | 11 | #include "helpwindow.h" |
12 | 12 | ||
13 | /* OPIE */ | 13 | /* OPIE */ |
14 | #include <opie2/odebug.h> | 14 | #include <opie2/odebug.h> |
15 | #include <qpe/resource.h> | 15 | #include <opie2/oresource.h> |
16 | using namespace Opie::Core; | 16 | using namespace Opie::Core; |
17 | 17 | ||
18 | /* QT */ | 18 | /* QT */ |
19 | #include <qlayout.h> | 19 | #include <qlayout.h> |
20 | #include <qtoolbar.h> | 20 | #include <qtoolbar.h> |
21 | #include <qaction.h> | 21 | #include <qaction.h> |
22 | #include <qmenubar.h> | 22 | #include <qmenubar.h> |
23 | 23 | ||
24 | /* STD */ | 24 | /* STD */ |
25 | #include <ctype.h> | 25 | #include <ctype.h> |
26 | 26 | ||
27 | HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) | 27 | HelpWindow::HelpWindow( const QString& home_, const QString& _path, QWidget* parent, const char *name ) |
28 | : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL() | 28 | : QMainWindow( parent, name, WDestructiveClose ), pathCombo( 0 ), selectedURL() |
29 | { | 29 | { |
30 | QGridLayout *layout = new QGridLayout( this ); | 30 | QGridLayout *layout = new QGridLayout( this ); |
31 | layout->setSpacing( 2); | 31 | layout->setSpacing( 2); |
32 | layout->setMargin( 2); | 32 | layout->setMargin( 2); |
33 | odebug << _path << oendl; | 33 | odebug << _path << oendl; |
34 | browser = new QTextBrowser( this ); | 34 | browser = new QTextBrowser( this ); |
35 | QStringList Strlist; | 35 | QStringList Strlist; |
36 | Strlist.append( home_); | 36 | Strlist.append( home_); |
37 | browser->mimeSourceFactory()->setFilePath( Strlist ); | 37 | browser->mimeSourceFactory()->setFilePath( Strlist ); |
38 | browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 38 | browser->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
39 | 39 | ||
40 | connect( browser, SIGNAL( textChanged() ), this, SLOT( textChanged() ) ); | 40 | connect( browser, SIGNAL( textChanged() ), this, SLOT( textChanged() ) ); |
41 | 41 | ||
42 | if ( !home_.isEmpty() ) | 42 | if ( !home_.isEmpty() ) |
43 | browser->setSource( home_ ); | 43 | browser->setSource( home_ ); |
44 | QToolBar *toolbar = new QToolBar( this ); | 44 | QToolBar *toolbar = new QToolBar( this ); |
45 | 45 | ||
46 | QAction *a = new QAction( tr( "Backward" ), Resource::loadPixmap( "back" ), QString::null, 0, this, 0 ); | 46 | QAction *a = new QAction( tr( "Backward" ), Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ), |
47 | QString::null, 0, this, 0 ); | ||
47 | connect( a, SIGNAL( activated() ), browser, SLOT( backward() ) ); | 48 | connect( a, SIGNAL( activated() ), browser, SLOT( backward() ) ); |
48 | a->addTo( toolbar ); | 49 | a->addTo( toolbar ); |
49 | 50 | ||
50 | a = new QAction( tr( "Forward" ), Resource::loadPixmap( "forward" ), QString::null, 0, this, 0 ); | 51 | a = new QAction( tr( "Forward" ), Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ), |
52 | QString::null, 0, this, 0 ); | ||
51 | connect( a, SIGNAL( activated() ), browser, SLOT( forward() ) ); | 53 | connect( a, SIGNAL( activated() ), browser, SLOT( forward() ) ); |
52 | a->addTo( toolbar ); | 54 | a->addTo( toolbar ); |
53 | 55 | ||
54 | 56 | ||
55 | layout->addMultiCellWidget( toolbar, 0, 0, 0, 0); | 57 | layout->addMultiCellWidget( toolbar, 0, 0, 0, 0); |
56 | 58 | ||
57 | layout->addMultiCellWidget( browser, 1, 2, 0, 2); | 59 | layout->addMultiCellWidget( browser, 1, 2, 0, 2); |
58 | 60 | ||
59 | browser->setFocus(); | 61 | browser->setFocus(); |
60 | } | 62 | } |
61 | 63 | ||
62 | 64 | ||
63 | void HelpWindow::setBackwardAvailable( bool b) | 65 | void HelpWindow::setBackwardAvailable( bool b) |
64 | { | 66 | { |
65 | menuBar()->setItemEnabled( backwardId, b); | 67 | menuBar()->setItemEnabled( backwardId, b); |
66 | } | 68 | } |
67 | 69 | ||
68 | void HelpWindow::setForwardAvailable( bool b) | 70 | void HelpWindow::setForwardAvailable( bool b) |
69 | { | 71 | { |
70 | menuBar()->setItemEnabled( forwardId, b); | 72 | menuBar()->setItemEnabled( forwardId, b); |
71 | } | 73 | } |
72 | 74 | ||
73 | 75 | ||
74 | void HelpWindow::textChanged() | 76 | void HelpWindow::textChanged() |
75 | { | 77 | { |
76 | if ( browser->documentTitle().isNull() ) { | 78 | if ( browser->documentTitle().isNull() ) { |
77 | setCaption( "QpeRec - Helpviewer - " + browser->context() ); | 79 | setCaption( "QpeRec - Helpviewer - " + browser->context() ); |
78 | selectedURL = browser->context(); | 80 | selectedURL = browser->context(); |
79 | } | 81 | } |
80 | else { | 82 | else { |
81 | setCaption( "QpeRec - Helpviewer - " + browser->documentTitle() ) ; | 83 | setCaption( "QpeRec - Helpviewer - " + browser->documentTitle() ) ; |
82 | selectedURL = browser->documentTitle(); | 84 | selectedURL = browser->documentTitle(); |
83 | } | 85 | } |
84 | 86 | ||
85 | // if ( !selectedURL.isEmpty() && pathCombo ) { | 87 | // if ( !selectedURL.isEmpty() && pathCombo ) { |
86 | // bool exists = FALSE; | 88 | // bool exists = FALSE; |
87 | // int i; | 89 | // int i; |
88 | // for ( i = 0; i < pathCombo->count(); ++i ) { | 90 | // for ( i = 0; i < pathCombo->count(); ++i ) { |
89 | // if ( pathCombo->text( i ) == selectedURL ) { | 91 | // if ( pathCombo->text( i ) == selectedURL ) { |
90 | // exists = TRUE; | 92 | // exists = TRUE; |
91 | // break; | 93 | // break; |
92 | // } | 94 | // } |
93 | // } | 95 | // } |
94 | // if ( !exists ) { | 96 | // if ( !exists ) { |
95 | // pathCombo->insertItem( selectedURL, 0 ); | 97 | // pathCombo->insertItem( selectedURL, 0 ); |
96 | // pathCombo->setCurrentItem( 0 ); | 98 | // pathCombo->setCurrentItem( 0 ); |
97 | // mHistory[ hist->insertItem( selectedURL ) ] = selectedURL; | 99 | // mHistory[ hist->insertItem( selectedURL ) ] = selectedURL; |
98 | // } else | 100 | // } else |
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,68 +1,68 @@ | |||
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> |
45 | #include <stdlib.h> | 45 | #include <stdlib.h> |
46 | #include <sys/ioctl.h> | 46 | #include <sys/ioctl.h> |
47 | #include <sys/soundcard.h> | 47 | #include <sys/soundcard.h> |
48 | #include <sys/stat.h> | 48 | #include <sys/stat.h> |
49 | #include <sys/time.h> | 49 | #include <sys/time.h> |
50 | #include <sys/types.h> | 50 | #include <sys/types.h> |
51 | #include <sys/vfs.h> | 51 | #include <sys/vfs.h> |
52 | #include <unistd.h> | 52 | #include <unistd.h> |
53 | #include <sys/wait.h> | 53 | #include <sys/wait.h> |
54 | #include <sys/signal.h> | 54 | #include <sys/signal.h> |
55 | #include <pthread.h> | 55 | #include <pthread.h> |
56 | 56 | ||
57 | #ifdef PDAUDIO //ALSA | 57 | #ifdef PDAUDIO //ALSA |
58 | #include <alsa/asoundlib.h> | 58 | #include <alsa/asoundlib.h> |
59 | static int deviceSampleRates[8] = { 32000, 44100, 48000, 88200, 96000, 176400, 192000, -1 }; | 59 | static int deviceSampleRates[8] = { 32000, 44100, 48000, 88200, 96000, 176400, 192000, -1 }; |
60 | static int deviceBitRates[] = { 8, 16, 24, 32, -1 }; | 60 | static int deviceBitRates[] = { 8, 16, 24, 32, -1 }; |
61 | #else //OSS | 61 | #else //OSS |
62 | static int deviceSampleRates[6] = { 11025, 16000, 22050, 32000, 44100, -1 }; | 62 | static int deviceSampleRates[6] = { 11025, 16000, 22050, 32000, 44100, -1 }; |
63 | static int deviceBitRates[] = { 8, 16, -1 }; | 63 | static int deviceBitRates[] = { 8, 16, -1 }; |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | 66 | ||
67 | //#define ZAURUS 0 | 67 | //#define ZAURUS 0 |
68 | struct adpcm_state encoder_state; | 68 | struct adpcm_state encoder_state; |
@@ -461,102 +461,102 @@ void QtRec::cleanUp() { | |||
461 | 461 | ||
462 | // if( wavFile) delete wavFile; | 462 | // if( wavFile) delete wavFile; |
463 | // if(soundDevice) delete soundDevice; | 463 | // if(soundDevice) delete soundDevice; |
464 | } | 464 | } |
465 | 465 | ||
466 | void QtRec::init() { | 466 | void QtRec::init() { |
467 | 467 | ||
468 | needsStereoOut = false; | 468 | needsStereoOut = false; |
469 | QPixmap image3( ( const char** ) image3_data ); | 469 | QPixmap image3( ( const char** ) image3_data ); |
470 | QPixmap image4( ( const char** ) image4_data ); | 470 | QPixmap image4( ( const char** ) image4_data ); |
471 | QPixmap image6( ( const char** ) image6_data ); | 471 | QPixmap image6( ( const char** ) image6_data ); |
472 | 472 | ||
473 | stopped = true; | 473 | stopped = true; |
474 | setCaption( tr( "OpieRecord " )); | 474 | setCaption( tr( "OpieRecord " )); |
475 | QGridLayout *layout = new QGridLayout( this ); | 475 | QGridLayout *layout = new QGridLayout( this ); |
476 | layout->setSpacing( 2); | 476 | layout->setSpacing( 2); |
477 | layout->setMargin( 2); | 477 | layout->setMargin( 2); |
478 | 478 | ||
479 | TabWidget = new QTabWidget( this, "TabWidget" ); | 479 | TabWidget = new QTabWidget( this, "TabWidget" ); |
480 | layout->addMultiCellWidget(TabWidget, 0, 7, 0, 8); | 480 | layout->addMultiCellWidget(TabWidget, 0, 7, 0, 8); |
481 | // TabWidget->setTabShape(QTabWidget::Triangular); | 481 | // TabWidget->setTabShape(QTabWidget::Triangular); |
482 | 482 | ||
483 | ///**********<<<<<<<<<<<<>>>>>>>>>>>>*************** | 483 | ///**********<<<<<<<<<<<<>>>>>>>>>>>>*************** |
484 | tab = new QWidget( TabWidget, "tab" ); | 484 | tab = new QWidget( TabWidget, "tab" ); |
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" ); |
539 | layout1->addMultiCellWidget( deleteSoundButton, 1, 1, 8, 8); | 539 | layout1->addMultiCellWidget( deleteSoundButton, 1, 1, 8, 8); |
540 | deleteSoundButton->setText( tr( "Del" ) ); | 540 | deleteSoundButton->setText( tr( "Del" ) ); |
541 | 541 | ||
542 | ListView1 = new QListView( tab, "IconView1" ); | 542 | ListView1 = new QListView( tab, "IconView1" ); |
543 | layout1->addMultiCellWidget( ListView1, 2, 2, 0, 8); | 543 | layout1->addMultiCellWidget( ListView1, 2, 2, 0, 8); |
544 | 544 | ||
545 | ListView1->addColumn( tr( "Name" ) ); | 545 | ListView1->addColumn( tr( "Name" ) ); |
546 | ListView1->setSorting( 1, false); | 546 | ListView1->setSorting( 1, false); |
547 | ListView1->addColumn( tr( "Time" ) ); //in seconds | 547 | ListView1->addColumn( tr( "Time" ) ); //in seconds |
548 | ListView1->setColumnWidthMode(0, QListView::Maximum); | 548 | ListView1->setColumnWidthMode(0, QListView::Maximum); |
549 | ListView1->setColumnAlignment( 1, QListView::AlignCenter); | 549 | ListView1->setColumnAlignment( 1, QListView::AlignCenter); |
550 | ListView1->setAllColumnsShowFocus( true ); | 550 | ListView1->setAllColumnsShowFocus( true ); |
551 | QPEApplication::setStylusOperation( ListView1->viewport(), QPEApplication::RightOnHold); | 551 | QPEApplication::setStylusOperation( ListView1->viewport(), QPEApplication::RightOnHold); |
552 | 552 | ||
553 | TabWidget->insertTab( tab, tr( "Files" ) ); | 553 | TabWidget->insertTab( tab, tr( "Files" ) ); |
554 | 554 | ||
555 | ///**********<<<<<<<<<<<<>>>>>>>>>>>>*************** | 555 | ///**********<<<<<<<<<<<<>>>>>>>>>>>>*************** |
556 | tab_3 = new QWidget( TabWidget, "tab_3" ); | 556 | tab_3 = new QWidget( TabWidget, "tab_3" ); |
557 | QGridLayout *glayout3 = new QGridLayout( tab_3 ); | 557 | QGridLayout *glayout3 = new QGridLayout( tab_3 ); |
558 | glayout3->setSpacing( 2); | 558 | glayout3->setSpacing( 2); |
559 | glayout3->setMargin( 2); | 559 | glayout3->setMargin( 2); |
560 | //////////////////////////////////// | 560 | //////////////////////////////////// |
561 | sampleGroup = new QGroupBox( tab_3, "samplegroup" ); | 561 | sampleGroup = new QGroupBox( tab_3, "samplegroup" ); |
562 | sampleGroup->setTitle( tr( "Sample Rate" ) ); | 562 | sampleGroup->setTitle( tr( "Sample Rate" ) ); |