diff options
Diffstat (limited to 'k9Mplayer/mplayer.cpp')
-rw-r--r-- | k9Mplayer/mplayer.cpp | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/k9Mplayer/mplayer.cpp b/k9Mplayer/mplayer.cpp index fcde29b..109c3f7 100644 --- a/k9Mplayer/mplayer.cpp +++ b/k9Mplayer/mplayer.cpp @@ -9,18 +9,18 @@ #include "mplayer.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qcombobox.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqcombobox.h> #include <kpushbutton.h> -#include <qslider.h> -#include <qframe.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqslider.h> +#include <tqframe.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> #include "kicondialog.h" #include "kpushbutton.h" @@ -444,13 +444,13 @@ static const unsigned char img3_mplayer[] = { /* - * Constructs a MPlayer as a child of 'parent', with the + * Constructs a MPlayer as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -MPlayer::MPlayer( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +MPlayer::MPlayer( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_mplayer, sizeof( img0_mplayer ), "PNG" ); image0 = img; img.loadFromData( img1_mplayer, sizeof( img1_mplayer ), "PNG" ); @@ -463,118 +463,118 @@ MPlayer::MPlayer( QWidget* parent, const char* name, WFlags fl ) setName( "MPlayer" ); setEnabled( TRUE ); setIcon( image0 ); - MPlayerLayout = new QGridLayout( this, 1, 1, 3, 3, "MPlayerLayout"); + MPlayerLayout = new TQGridLayout( this, 1, 1, 3, 3, "MPlayerLayout"); - textLabel1 = new QLabel( this, "textLabel1" ); + textLabel1 = new TQLabel( this, "textLabel1" ); MPlayerLayout->addWidget( textLabel1, 0, 0 ); - cbAudio = new QComboBox( FALSE, this, "cbAudio" ); + cbAudio = new TQComboBox( FALSE, this, "cbAudio" ); MPlayerLayout->addWidget( cbAudio, 0, 1 ); - spacer1 = new QSpacerItem( 190, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer1 = new TQSpacerItem( 190, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); MPlayerLayout->addItem( spacer1, 0, 5 ); - cbSub = new QComboBox( FALSE, this, "cbSub" ); + cbSub = new TQComboBox( FALSE, this, "cbSub" ); MPlayerLayout->addWidget( cbSub, 0, 4 ); - textLabel1_2 = new QLabel( this, "textLabel1_2" ); + textLabel1_2 = new TQLabel( this, "textLabel1_2" ); MPlayerLayout->addWidget( textLabel1_2, 0, 3 ); bSwitchAudio = new KPushButton( this, "bSwitchAudio" ); - bSwitchAudio->setMaximumSize( QSize( 22, 22 ) ); + bSwitchAudio->setMaximumSize( TQSize( 22, 22 ) ); bSwitchAudio->setFlat( TRUE ); MPlayerLayout->addWidget( bSwitchAudio, 0, 2 ); - layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); + tqlayout6 = new TQHBoxLayout( 0, 0, 6, "tqlayout6"); bStop = new KPushButton( this, "bStop" ); - bStop->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bStop->sizePolicy().hasHeightForWidth() ) ); - bStop->setMinimumSize( QSize( 30, 30 ) ); + bStop->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bStop->sizePolicy().hasHeightForWidth() ) ); + bStop->setMinimumSize( TQSize( 30, 30 ) ); bStop->setPixmap( image1 ); bStop->setFlat( TRUE ); - layout6->addWidget( bStop ); + tqlayout6->addWidget( bStop ); bPlay = new KPushButton( this, "bPlay" ); - bPlay->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) ); - bPlay->setMinimumSize( QSize( 30, 30 ) ); + bPlay->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) ); + bPlay->setMinimumSize( TQSize( 30, 30 ) ); bPlay->setPixmap( image2 ); bPlay->setFlat( TRUE ); - layout6->addWidget( bPlay ); + tqlayout6->addWidget( bPlay ); - slider = new QSlider( this, "slider" ); - slider->setOrientation( QSlider::Horizontal ); - layout6->addWidget( slider ); + slider = new TQSlider( this, "slider" ); + slider->setOrientation( Qt::Horizontal ); + tqlayout6->addWidget( slider ); - layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); + tqlayout5 = new TQHBoxLayout( 0, 0, 6, "tqlayout5"); bDown = new KPushButton( this, "bDown" ); - bDown->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bDown->sizePolicy().hasHeightForWidth() ) ); - bDown->setMinimumSize( QSize( 22, 22 ) ); - bDown->setMaximumSize( QSize( 22, 22 ) ); - QFont bDown_font( bDown->font() ); + bDown->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bDown->sizePolicy().hasHeightForWidth() ) ); + bDown->setMinimumSize( TQSize( 22, 22 ) ); + bDown->setMaximumSize( TQSize( 22, 22 ) ); + TQFont bDown_font( bDown->font() ); bDown_font.setBold( TRUE ); bDown->setFont( bDown_font ); bDown->setFlat( TRUE ); - layout5->addWidget( bDown ); + tqlayout5->addWidget( bDown ); - pixmapLabel1 = new QLabel( this, "pixmapLabel1" ); - pixmapLabel1->setMaximumSize( QSize( 22, 22 ) ); + pixmapLabel1 = new TQLabel( this, "pixmapLabel1" ); + pixmapLabel1->setMaximumSize( TQSize( 22, 22 ) ); pixmapLabel1->setPixmap( image3 ); pixmapLabel1->setScaledContents( TRUE ); - layout5->addWidget( pixmapLabel1 ); + tqlayout5->addWidget( pixmapLabel1 ); bUp = new KPushButton( this, "bUp" ); - bUp->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bUp->sizePolicy().hasHeightForWidth() ) ); - bUp->setMinimumSize( QSize( 22, 22 ) ); - bUp->setMaximumSize( QSize( 22, 22 ) ); - QFont bUp_font( bUp->font() ); + bUp->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bUp->sizePolicy().hasHeightForWidth() ) ); + bUp->setMinimumSize( TQSize( 22, 22 ) ); + bUp->setMaximumSize( TQSize( 22, 22 ) ); + TQFont bUp_font( bUp->font() ); bUp_font.setBold( TRUE ); bUp->setFont( bUp_font ); bUp->setFlat( TRUE ); - layout5->addWidget( bUp ); - layout6->addLayout( layout5 ); + tqlayout5->addWidget( bUp ); + tqlayout6->addLayout( tqlayout5 ); - MPlayerLayout->addMultiCellLayout( layout6, 4, 4, 0, 5 ); + MPlayerLayout->addMultiCellLayout( tqlayout6, 4, 4, 0, 5 ); - frame4 = new QFrame( this, "frame4" ); - frame4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, frame4->sizePolicy().hasHeightForWidth() ) ); - frame4->setFrameShape( QFrame::HLine ); - frame4->setFrameShadow( QFrame::Raised ); + frame4 = new TQFrame( this, "frame4" ); + frame4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, frame4->sizePolicy().hasHeightForWidth() ) ); + frame4->setFrameShape( TQFrame::HLine ); + frame4->setFrameShadow( TQFrame::Raised ); MPlayerLayout->addMultiCellWidget( frame4, 1, 1, 0, 5 ); - Label = new QLabel( this, "Label" ); - Label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, Label->sizePolicy().hasHeightForWidth() ) ); - Label->setPaletteBackgroundColor( QColor( 0, 0, 0 ) ); - Label->setAlignment( int( QLabel::AlignCenter ) ); + Label = new TQLabel( this, "Label" ); + Label->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, Label->sizePolicy().hasHeightForWidth() ) ); + Label->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) ); + Label->tqsetAlignment( int( TQLabel::AlignCenter ) ); MPlayerLayout->addMultiCellWidget( Label, 2, 2, 0, 5 ); - frame3 = new QFrame( this, "frame3" ); - frame3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) ); - frame3->setFrameShape( QFrame::HLine ); - frame3->setFrameShadow( QFrame::Raised ); + frame3 = new TQFrame( this, "frame3" ); + frame3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) ); + frame3->setFrameShape( TQFrame::HLine ); + frame3->setFrameShadow( TQFrame::Raised ); MPlayerLayout->addMultiCellWidget( frame3, 3, 3, 0, 5 ); languageChange(); - resize( QSize(559, 458).expandedTo(minimumSizeHint()) ); + resize( TQSize(559, 458).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bStop, SIGNAL( clicked() ), this, SLOT( bStopClick() ) ); - connect( bPlay, SIGNAL( clicked() ), this, SLOT( bPlayClick() ) ); - connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); - connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); - connect( slider, SIGNAL( valueChanged(int) ), this, SLOT( sliderChanged(int) ) ); - connect( cbAudio, SIGNAL( activated(int) ), this, SLOT( cbAudioActivated(int) ) ); - connect( cbSub, SIGNAL( activated(int) ), this, SLOT( cbSubActivated(int) ) ); - connect( bDown, SIGNAL( clicked() ), this, SLOT( bDownClick() ) ); - connect( bUp, SIGNAL( clicked() ), this, SLOT( bUpClick() ) ); - connect( bSwitchAudio, SIGNAL( clicked() ), this, SLOT( bSwitchAudioClick() ) ); + connect( bStop, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bStopClick() ) ); + connect( bPlay, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bPlayClick() ) ); + connect( slider, TQT_SIGNAL( sliderReleased() ), this, TQT_SLOT( sliderReleased() ) ); + connect( slider, TQT_SIGNAL( sliderPressed() ), this, TQT_SLOT( sliderPressed() ) ); + connect( slider, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sliderChanged(int) ) ); + connect( cbAudio, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbAudioActivated(int) ) ); + connect( cbSub, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbSubActivated(int) ) ); + connect( bDown, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bDownClick() ) ); + connect( bUp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bUpClick() ) ); + connect( bSwitchAudio, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bSwitchAudioClick() ) ); } /* @@ -582,7 +582,7 @@ MPlayer::MPlayer( QWidget* parent, const char* name, WFlags fl ) */ MPlayer::~MPlayer() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -594,15 +594,15 @@ void MPlayer::languageChange() setCaption( tr2i18n( "Preview" ) ); textLabel1->setText( tr2i18n( "Audio" ) ); textLabel1_2->setText( tr2i18n( "Subpicture" ) ); - bSwitchAudio->setText( QString::null ); - bStop->setText( QString::null ); - bPlay->setText( QString::null ); - bPlay->setAccel( QKeySequence( QString::null ) ); + bSwitchAudio->setText( TQString() ); + bStop->setText( TQString() ); + bPlay->setText( TQString() ); + bPlay->setAccel( TQKeySequence( TQString() ) ); bDown->setText( tr2i18n( "-" ) ); - bDown->setAccel( QKeySequence( QString::null ) ); + bDown->setAccel( TQKeySequence( TQString() ) ); bUp->setText( tr2i18n( "+" ) ); - bUp->setAccel( QKeySequence( QString::null ) ); - Label->setText( QString::null ); + bUp->setAccel( TQKeySequence( TQString() ) ); + Label->setText( TQString() ); } void MPlayer::bStopClick() |