summaryrefslogtreecommitdiffstats
path: root/k9Mplayer
diff options
context:
space:
mode:
Diffstat (limited to 'k9Mplayer')
-rw-r--r--k9Mplayer/k9mplayer.cpp80
-rw-r--r--k9Mplayer/k9mplayer.h25
-rw-r--r--k9Mplayer/mplayer.cpp158
-rw-r--r--k9Mplayer/mplayer.ui56
4 files changed, 160 insertions, 159 deletions
diff --git a/k9Mplayer/k9mplayer.cpp b/k9Mplayer/k9mplayer.cpp
index c5f501e..053d82d 100644
--- a/k9Mplayer/k9mplayer.cpp
+++ b/k9Mplayer/k9mplayer.cpp
@@ -1,29 +1,29 @@
#include "k9common.h"
#include "k9config.h"
-#include <qlayout.h>
-#include <qslider.h>
+#include <tqlayout.h>
+#include <tqslider.h>
#include <kselect.h>
#include "k9mplayer.h"
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <kiconloader.h>
#include <kpushbutton.h>
#include "k9dvd.h"
#include "k9dvdtitle.h"
#include <kprocess.h>
-#include <qlabel.h>
-#include <qtimer.h>
-#include <qapplication.h>
-#include <qevent.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
+#include <tqapplication.h>
+#include <tqevent.h>
#include <klocale.h>
#include <kmessagebox.h>
-K9Mplayer::K9Mplayer(QObject *parent,const char *name,const QStringList args):MPlayer((QWidget*)parent) {
+K9Mplayer::K9Mplayer(TQObject *tqparent,const char *name,const TQStringList args):MPlayer((TQWidget*)tqparent) {
m_seeking=FALSE;
m_initVol=TRUE;
m_title=0;
- m_process=new KProcess(this);
+ m_process=new KProcess(TQT_TQOBJECT(this));
m_ratio=4.0/3.0;
slider->setRange(0, 100);
@@ -31,17 +31,17 @@ K9Mplayer::K9Mplayer(QObject *parent,const char *name,const QStringList args):M
bPlay->setPixmap(SmallIcon("player_play"));
bStop->setPixmap(SmallIcon("player_stop"));
bSwitchAudio->setPixmap(SmallIcon("cycle"));
- connect(m_process,SIGNAL(receivedStdout( KProcess*, char*, int )),this,SLOT(receivedStdout( KProcess*, char*, int )));
- m_timer=new QTimer(this);
- connect(m_process,SIGNAL(wroteStdin( KProcess* )),this,SLOT(wroteStdin( KProcess* )));
- connect(m_timer,SIGNAL(timeout()),this,SLOT(timeout()));
- m_container=new QWidget(Label);
+ connect(m_process,TQT_SIGNAL(receivedStdout( KProcess*, char*, int )),this,TQT_SLOT(receivedStdout( KProcess*, char*, int )));
+ m_timer=new TQTimer(this);
+ connect(m_process,TQT_SIGNAL(wroteStdin( KProcess* )),this,TQT_SLOT(wroteStdin( KProcess* )));
+ connect(m_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout()));
+ m_container=new TQWidget(Label);
}
K9Mplayer::~K9Mplayer() {}
-void K9Mplayer::resizeEvent ( QResizeEvent * _resizeEvent) {
+void K9Mplayer::resizeEvent ( TQResizeEvent * _resizeEvent) {
int w,h;
w=Label->width();
h=Label->width() /m_ratio;
@@ -64,37 +64,37 @@ void K9Mplayer::timeout() {
}
-void K9Mplayer::setDevice(const QString & _device) {
+void K9Mplayer::setDevice(const TQString & _device) {
m_device=_device;
}
-void K9Mplayer::setTitle( const QString & _numTitle,const QString &_numChapter) {
+void K9Mplayer::setTitle( const TQString & _numTitle,const TQString &_numChapter) {
if (m_process->isRunning()) {
sendCmd("quit");
m_process->wait( 1000);
}
k9Config config;
- QString vout[]= {"x11","xv","gl2","sdl"};
- QString aout[]= {"alsa","oss","sdl"};
- QString vo=vout[config.getMplayerVout()];
- QString ao=aout[config.getMplayerAout()];
+ TQString vout[]= {"x11","xv","gl2","sdl"};
+ TQString aout[]= {"alsa","oss","sdl"};
+ TQString vo=vout[config.getMplayerVout()];
+ TQString ao=aout[config.getMplayerAout()];
m_process->clearArguments();
*m_process << "mplayer";
*m_process << "-vo" << vo << "-ao" << ao << "-sws" << "0";
*m_process << "-framedrop";
- *m_process << "-wid" << QString::number(m_container->winId()) ;
+ *m_process << "-wid" << TQString::number(m_container->winId()) ;
*m_process << "-slave" ;
*m_process << "-idle";
*m_process << "-dvd-device" << m_device;
if (_numChapter !="")
*m_process << "-chapter" << _numChapter;
- *m_process << QString("dvd://%1").arg(_numTitle);
+ *m_process << TQString("dvd://%1").tqarg(_numTitle);
if (!m_process->start( KProcess::NotifyOnExit,KProcess::All)) {
- KMessageBox::error (qApp->mainWidget(),i18n("Unable to run %1").arg("mplayer") , i18n("Preview"));
+ KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").tqarg("mplayer") , i18n("Preview"));
}
m_canwrite=TRUE;
@@ -108,13 +108,13 @@ void K9Mplayer::setTitle( const QString & _numTitle,const QString &_numChapter)
/*$SPECIALIZATION$*/
void K9Mplayer::receivedStdout (KProcess *proc, char *buffer, int buflen) {
- QString buf = QString::fromLatin1(buffer, buflen);
+ TQString buf = TQString::tqfromLatin1(buffer, buflen);
sscanf(buf.latin1(),"ANS_PERCENT_POSITION=%d",&m_position);
if (!m_seeking && m_position>0) {
slider->setValue(m_position);
}
int audio=0;
- if (buf.contains("ANS_switch_audio"))
+ if (buf.tqcontains("ANS_switch_audio"))
sscanf(buf.latin1(),"ANS_switch_audio=%d",&audio);
if (audio >0) {
for (int i=0;i < m_dvdTitle->getaudioStreamCount();i++) {
@@ -128,13 +128,13 @@ void K9Mplayer::receivedStdout (KProcess *proc, char *buffer, int buflen) {
void K9Mplayer::slotLengthChanged() {}
-void K9Mplayer::slotNewPosition(int _pos,const QTime & _time) {
+void K9Mplayer::slotNewPosition(int _pos,const TQTime & _time) {
slider->setValue(_pos);
}
void K9Mplayer::sliderReleased() {
- sendCmd( QString("seek %1 1").arg((int)slider->value()));
+ sendCmd( TQString("seek %1 1").tqarg((int)slider->value()));
m_seeking=FALSE;
}
@@ -146,7 +146,7 @@ void K9Mplayer::sliderPressed() {
}
void K9Mplayer::bPlayClick() {
- setTitle(QString::number( m_title),"");
+ setTitle(TQString::number( m_title),"");
}
void K9Mplayer::bStopClick() {
@@ -155,17 +155,17 @@ void K9Mplayer::bStopClick() {
void K9Mplayer::bDownClick() {
- sendCmd( QString("volume -1"));
+ sendCmd( TQString("volume -1"));
}
void K9Mplayer::bSwitchAudioClick() {
- sendCmd( QString("switch_audio"));
- sendCmd( QString("get_property switch_audio"));
+ sendCmd( TQString("switch_audio"));
+ sendCmd( TQString("get_property switch_audio"));
}
void K9Mplayer::bUpClick() {
- sendCmd( QString("volume +1"));
+ sendCmd( TQString("volume +1"));
}
@@ -175,12 +175,12 @@ void K9Mplayer::open( k9DVD *_dvd,k9DVDTitle *_title,int chapter) {
cbAudio->clear();
for (int i=0; i< _title->getaudioStreamCount();i++) {
k9DVDAudioStream *aud=_title->getaudioStream(i);
- cbAudio->insertItem(NULL,QString("%1-%2").arg(aud->getID()).arg(aud->getlanguage()),-1);
+ cbAudio->insertItem(NULL,TQString("%1-%2").tqarg(aud->getID()).tqarg(aud->getlanguage()),-1);
}
for (int i=0; i< _title->getsubPictureCount();i++) {
k9DVDSubtitle *sub=_title->getsubtitle(i);
- cbSub->insertItem(NULL,QString("%1-%2").arg(sub->getID().first()).arg(sub->getlanguage()),-1);
+ cbSub->insertItem(NULL,TQString("%1-%2").tqarg(sub->getID().first()).tqarg(sub->getlanguage()),-1);
}
if(_title->getaspectRatio()=="16:9")
@@ -192,7 +192,7 @@ void K9Mplayer::open( k9DVD *_dvd,k9DVDTitle *_title,int chapter) {
setDevice( _dvd->getDevice());
m_dvdTitle=_title;
m_title=_title->getnumTitle();
- setTitle( QString::number(m_title),QString::number(chapter));
+ setTitle( TQString::number(m_title),TQString::number(chapter));
if (_title->getaudioStreamCount() >0)
cbAudioActivated( 0);
if (_title->getsubPictureCount() >0)
@@ -207,19 +207,19 @@ void K9Mplayer::titleChanged() {}
void K9Mplayer::cbAudioActivated( int _value) {
if (m_dvdTitle) {
int value=m_dvdTitle->getaudioStream( _value)->getStreamId();
- sendCmd(QString( "switch_audio %1").arg(value));
+ sendCmd(TQString( "switch_audio %1").tqarg(value));
}
}
void K9Mplayer::cbSubActivated( int _value) {
- sendCmd(QString("sub_select %1").arg(_value));
+ sendCmd(TQString("sub_select %1").tqarg(_value));
}
-void K9Mplayer::sendCmd( QString _cmd) {
+void K9Mplayer::sendCmd( TQString _cmd) {
while (!m_canwrite) {
- qApp->processEvents();
+ tqApp->processEvents();
if ( !m_process->isRunning())
return;
}
diff --git a/k9Mplayer/k9mplayer.h b/k9Mplayer/k9mplayer.h
index c4723e8..241af0d 100644
--- a/k9Mplayer/k9mplayer.h
+++ b/k9Mplayer/k9mplayer.h
@@ -9,34 +9,35 @@
class k9DVD;
class k9DVDTitle;
class KProcess;
-class QTimer;
-class QResizeEvent;
+class TQTimer;
+class TQResizeEvent;
class K9Mplayer : public MPlayer
{
Q_OBJECT
+ TQ_OBJECT
private:
KProcess *m_process;
bool m_seeking,m_initVol;
int m_title;
k9DVDTitle *m_dvdTitle;
- QString m_device;
- QTimer *m_timer;
- void sendCmd(QString _cmd);
+ TQString m_device;
+ TQTimer *m_timer;
+ void sendCmd(TQString _cmd);
int m_position;
bool m_canwrite;
- QWidget *m_container;
+ TQWidget *m_container;
float m_ratio;
public:
- //K9Mplayer(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- K9Mplayer(QObject *parent=0,const char *name=0,const QStringList args=0);
+ //K9Mplayer(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
+ K9Mplayer(TQObject *tqparent=0,const char *name=0,const TQStringList args=0);
~K9Mplayer();
/*$PUBLIC_FUNCTIONS$*/
- void setDevice(const QString & _device);
- void setTitle(const QString & _numTitle,const QString &_numChapter);
+ void setDevice(const TQString & _device);
+ void setTitle(const TQString & _numTitle,const TQString &_numChapter);
private slots:
void slotLengthChanged();
- void slotNewPosition(int _pos,const QTime & _time);
+ void slotNewPosition(int _pos,const TQTime & _time);
void receivedStdout (KProcess *proc, char *buffer, int buflen);
void wroteStdin(KProcess *_process);
void timeout();
@@ -56,7 +57,7 @@ public slots:
virtual void bSwitchAudioClick();
protected:
/*$PROTECTED_FUNCTIONS$*/
- void resizeEvent ( QResizeEvent * _resiseEvent);
+ void resizeEvent ( TQResizeEvent * _resiseEvent);
protected slots:
/*$PROTECTED_SLOTS$*/
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()
diff --git a/k9Mplayer/mplayer.ui b/k9Mplayer/mplayer.ui
index 5c79975..19457a2 100644
--- a/k9Mplayer/mplayer.ui
+++ b/k9Mplayer/mplayer.ui
@@ -1,13 +1,13 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>MPlayer</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>MPlayer</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -31,7 +31,7 @@
<property name="spacing">
<number>3</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -39,7 +39,7 @@
<string>Audio</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cbAudio</cstring>
</property>
@@ -54,19 +54,19 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>190</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QComboBox" row="0" column="4">
+ <widget class="TQComboBox" row="0" column="4">
<property name="name">
<cstring>cbSub</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="3">
+ <widget class="TQLabel" row="0" column="3">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -78,7 +78,7 @@
<property name="name">
<cstring>bSwitchAudio</cstring>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>22</width>
<height>22</height>
@@ -91,9 +91,9 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="6">
+ <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="6">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -111,7 +111,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>30</width>
<height>30</height>
@@ -139,7 +139,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>30</width>
<height>30</height>
@@ -158,7 +158,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QSlider">
+ <widget class="TQSlider">
<property name="name">
<cstring>slider</cstring>
</property>
@@ -166,9 +166,9 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -186,13 +186,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>22</width>
<height>22</height>
@@ -213,11 +213,11 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>pixmapLabel1</cstring>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>22</width>
<height>22</height>
@@ -242,13 +242,13 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>22</width>
<height>22</height>
@@ -273,7 +273,7 @@
</widget>
</hbox>
</widget>
- <widget class="QFrame" row="1" column="0" rowspan="1" colspan="6">
+ <widget class="TQFrame" row="1" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>frame4</cstring>
</property>
@@ -292,7 +292,7 @@
<enum>Raised</enum>
</property>
</widget>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="6">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>Label</cstring>
</property>
@@ -314,11 +314,11 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QFrame" row="3" column="0" rowspan="1" colspan="6">
+ <widget class="TQFrame" row="3" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>frame3</cstring>
</property>
@@ -415,7 +415,7 @@
<slot>bSwitchAudioClick()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>bStopClick()</slot>
<slot>cbAudioActivated(int)</slot>
<slot>slider_sliderReleased()</slot>
@@ -427,8 +427,8 @@
<slot>bUpClick()</slot>
<slot>bDownClick()</slot>
<slot>bSwitchAudioClick()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kicondialog.h</includehint>
<includehint>kpushbutton.h</includehint>