summaryrefslogtreecommitdiffstats
path: root/src/kviewmpeg2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kviewmpeg2.cpp')
-rwxr-xr-xsrc/kviewmpeg2.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/kviewmpeg2.cpp b/src/kviewmpeg2.cpp
index 899f31d..84008e4 100755
--- a/src/kviewmpeg2.cpp
+++ b/src/kviewmpeg2.cpp
@@ -18,15 +18,15 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "k9common.h"
-#include <qpixmap.h>
-#include <qpainter.h>
-#include <qlabel.h>
-#include <qimage.h>
-#include <qpaintdevice.h>
-#include <qslider.h>
-#include <qapplication.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqlabel.h>
+#include <tqimage.h>
+#include <tqpaintdevice.h>
+#include <tqslider.h>
+#include <tqapplication.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
#include <string.h>
#include <sys/stat.h>
@@ -41,21 +41,21 @@
-k9Widget::k9Widget(QWidget *parent):QWidget(parent) {
+k9Widget::k9Widget(TQWidget *tqparent):TQWidget(tqparent) {
m_image=NULL;
}
-void k9Widget::setImage(QImage *_image) {
+void k9Widget::setImage(TQImage *_image) {
m_image=_image;
//paintEvent( NULL);
- repaint(FALSE);
+ tqrepaint(FALSE);
}
-void k9Widget::paintEvent( QPaintEvent *_event) {
- setPaletteBackgroundColor(Qt::black);
+void k9Widget::paintEvent( TQPaintEvent *_event) {
+ setPaletteBackgroundColor(TQt::black);
int top,left;
if (m_image !=NULL) {
- QPainter p(this);
+ TQPainter p(this);
double wratio=(double)width()/(double)m_image->width();
double hratio=(double)height()/(double)m_image->height();
double ratio= wratio < hratio ? wratio:hratio;
@@ -77,13 +77,13 @@ kViewMPEG2::kViewMPEG2() {
m_layout=NULL;
bPlay->setPixmap(SmallIcon("player_play"));
bStop->setPixmap(SmallIcon("player_stop"));
- connect(&m_player , SIGNAL(setPosition(uint32_t)), this, SLOT(setPosition(uint32_t)));
- connect(&m_player , SIGNAL(setMax(uint32_t)), this, SLOT(setMax(uint32_t)));
- connect(&m_player , SIGNAL(setMin(uint32_t)), this, SLOT(setMin(uint32_t)));
+ connect(&m_player , TQT_SIGNAL(setPosition(uint32_t)), this, TQT_SLOT(setPosition(uint32_t)));
+ connect(&m_player , TQT_SIGNAL(setMax(uint32_t)), this, TQT_SLOT(setMax(uint32_t)));
+ connect(&m_player , TQT_SIGNAL(setMin(uint32_t)), this, TQT_SLOT(setMin(uint32_t)));
lockSlider=false;
stopped=true;
- m_layout=new QGridLayout(label,1,1);
+ m_layout=new TQGridLayout(label,1,1);
#ifdef HAVE_OPENGL
@@ -100,7 +100,7 @@ kViewMPEG2::kViewMPEG2() {
}
m_player.getDecoder()->setUseGL(m_prefUseGL);
if (m_prefUseGL) {
- connect(m_player.getDecoder() , SIGNAL(ppmReady(uchar *,int,int,int)), this, SLOT(drawppm(uchar *,int,int,int)));
+ connect(m_player.getDecoder() , TQT_SIGNAL(ppmReady(uchar *,int,int,int)), this, TQT_SLOT(drawppm(uchar *,int,int,int)));
m_GLwidget= k9GLWidget::createWidget(label);
m_widget=NULL;
@@ -112,7 +112,7 @@ kViewMPEG2::kViewMPEG2() {
config.save();
} else {
- connect(m_player.getDecoder() , SIGNAL(pixmapReady(QImage *)), this, SLOT(drawPixmap(QImage *)));
+ connect(m_player.getDecoder() , TQT_SIGNAL(pixmapReady(TQImage *)), this, TQT_SLOT(drawPixmap(TQImage *)));
m_widget=new k9Widget(label);
m_layout->addWidget(m_widget,0,0);
@@ -162,24 +162,24 @@ void kViewMPEG2::setMin(uint32_t _position) {
/** No descriptions */
-void kViewMPEG2::drawPixmap(QImage *image) {
- if (qApp==NULL)
+void kViewMPEG2::drawPixmap(TQImage *image) {
+ if (tqApp==NULL)
return;
- if (qApp->tryLock()) {
+ if (tqApp->tryLock()) {
m_widget->setImage( image);
- if (qApp!=NULL)
- qApp->unlock();
+ if (tqApp!=NULL)
+ tqApp->unlock();
}
}
/** No descriptions */
void kViewMPEG2::drawppm(uchar *_buf,int _width,int _height,int _len) {
- if (qApp==NULL)
+ if (tqApp==NULL)
return;
-// if (qApp->tryLock()) {
+// if (tqApp->tryLock()) {
m_GLwidget->setImage(_buf,_width,_height,_len);
- // if (qApp !=NULL)
- // qApp->unlock();
+ // if (tqApp !=NULL)
+ // tqApp->unlock();
// } else
// free(_buf);
}
@@ -196,13 +196,13 @@ int kViewMPEG2::open (k9DVD *_dvd,k9DVDTitle * title,int chapter) {
/** No descriptions */
-void kViewMPEG2::setError(const QString & err) {
+void kViewMPEG2::setError(const TQString & err) {
error=true;
errMsg=err;
}
-void kViewMPEG2::resizeEvent(QResizeEvent *_event) {}
+void kViewMPEG2::resizeEvent(TQResizeEvent *_event) {}
void kViewMPEG2::bStopClick() {
m_player.stop();
@@ -217,7 +217,7 @@ void kViewMPEG2::sliderReleased() {
}
-void kViewMPEG2::closeEvent( QCloseEvent* ce ) {
+void kViewMPEG2::closeEvent( TQCloseEvent* ce ) {
stopped=true;
ce->accept();
return;