diff options
Diffstat (limited to 'renamedlgplugins')
-rw-r--r-- | renamedlgplugins/audio/audio_plugin.cpp | 42 | ||||
-rw-r--r-- | renamedlgplugins/audio/audiopreview.cpp | 32 | ||||
-rw-r--r-- | renamedlgplugins/audio/audiopreview.h | 14 | ||||
-rw-r--r-- | renamedlgplugins/images/image_plugin.cpp | 32 | ||||
-rw-r--r-- | renamedlgplugins/images/imagevisualizer.cpp | 36 | ||||
-rw-r--r-- | renamedlgplugins/images/imagevisualizer.h | 12 |
6 files changed, 84 insertions, 84 deletions
diff --git a/renamedlgplugins/audio/audio_plugin.cpp b/renamedlgplugins/audio/audio_plugin.cpp index f8114bd..44ae9d0 100644 --- a/renamedlgplugins/audio/audio_plugin.cpp +++ b/renamedlgplugins/audio/audio_plugin.cpp @@ -22,12 +22,12 @@ #include <kgenericfactory.h> #include <renamedlgplugin.h> #include <kio/renamedlg.h> -#include <qlabel.h> -#include <qdialog.h> -#include <qwidget.h> -#include <qstringlist.h> +#include <tqlabel.h> +#include <tqdialog.h> +#include <tqwidget.h> +#include <tqstringlist.h> #include <kio/global.h> -#include <qlayout.h> +#include <tqlayout.h> #include <sys/types.h> @@ -35,11 +35,11 @@ class AudioPlugin : public RenameDlgPlugin{ public: - AudioPlugin( QDialog *dialog, const char *name, const QStringList & ); + AudioPlugin( TQDialog *dialog, const char *name, const TQStringList & ); ~AudioPlugin(); - virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const QString &/*_src*/, const QString &/*_dest*/, - const QString &/*mimeSrc*/, - const QString &/*mimeDest*/, + virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const TQString &/*_src*/, const TQString &/*_dest*/, + const TQString &/*mimeSrc*/, + const TQString &/*mimeDest*/, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, @@ -48,30 +48,30 @@ public: time_t /*mtimeDest*/ ); }; -AudioPlugin::AudioPlugin( QDialog *dialog, const char *name, const QStringList &list ) : RenameDlgPlugin( dialog, name, list) { +AudioPlugin::AudioPlugin( TQDialog *dialog, const char *name, const TQStringList &list ) : RenameDlgPlugin( dialog, name, list) { qWarning("loaded" ); } AudioPlugin::~AudioPlugin() { } -bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, const QString &_dest, - const QString &mimeSrc, - const QString &mimeDest, +bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const TQString &_src, const TQString &_dest, + const TQString &mimeSrc, + const TQString &mimeDest, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, time_t /*ctimeDest*/, time_t mtimeSrc, time_t mtimeDest ) { - QGridLayout *lay = new QGridLayout(this, 4, 3, 5); + TQGridLayout *lay = new TQGridLayout(this, 4, 3, 5); if( mode & KIO::M_OVERWRITE ){ - QLabel *label_head = new QLabel(this); - QLabel *label_src = new QLabel(this); - QLabel *label_dst = new QLabel(this); - QLabel *label_ask = new QLabel(this); + TQLabel *label_head = new TQLabel(this); + TQLabel *label_src = new TQLabel(this); + TQLabel *label_dst = new TQLabel(this); + TQLabel *label_ask = new TQLabel(this); - QString sentence1; - QString dest = KURL::fromPathOrURL(_dest).pathOrURL(); + TQString sentence1; + TQString dest = KURL::fromPathOrURL(_dest).pathOrURL(); if (mtimeDest < mtimeSrc) sentence1 = i18n("An older file named '%1' already exists.\n").arg(dest); else if (mtimeDest == mtimeSrc) @@ -100,5 +100,5 @@ bool AudioPlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, con return true; } -typedef KGenericFactory<AudioPlugin, QDialog> AudioPluginFactory; +typedef KGenericFactory<AudioPlugin, TQDialog> AudioPluginFactory; K_EXPORT_COMPONENT_FACTORY( librenaudioplugin, AudioPluginFactory("audiorename_plugin") ) diff --git a/renamedlgplugins/audio/audiopreview.cpp b/renamedlgplugins/audio/audiopreview.cpp index e9c6f26..b618adb 100644 --- a/renamedlgplugins/audio/audiopreview.cpp +++ b/renamedlgplugins/audio/audiopreview.cpp @@ -21,9 +21,9 @@ #include <klocale.h> #include <kmimetype.h> #include <kurl.h> -#include <qvbox.h> -#include <qlabel.h> -#include <qpixmap.h> +#include <tqvbox.h> +#include <tqlabel.h> +#include <tqpixmap.h> #include <kio/netaccess.h> #include <kurllabel.h> #include <kmimetype.h> @@ -33,8 +33,8 @@ #include "audiopreview.h" -AudioPreview::AudioPreview( QWidget *parent, const char *name, const QString &fileName, const QString &mimeType) - : QVBox( parent, name ) +AudioPreview::AudioPreview( TQWidget *parent, const char *name, const TQString &fileName, const TQString &mimeType) + : TQVBox( parent, name ) { m_isTempFile = false; pic = 0; @@ -45,7 +45,7 @@ AudioPreview::AudioPreview( QWidget *parent, const char *name, const QString &fi setSpacing( 0 ); if( url.isValid() && url.isLocalFile() ) { m_localFile = url.path(); - pic = new QLabel(this); + pic = new TQLabel(this); pic->setPixmap(KMimeType::pixmapForURL( url )); pic->adjustSize(); initView( mimeType ); @@ -53,10 +53,10 @@ AudioPreview::AudioPreview( QWidget *parent, const char *name, const QString &fi KURLLabel *label = new KURLLabel( this ); label->setText(i18n("This audio file isn't stored\non the local host.\nClick on this label to load it.\n" ) ); label->setURL( url.prettyURL() ); - connect(label, SIGNAL(leftClickedURL(const QString&)), SLOT(downloadFile(const QString&))); + connect(label, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(downloadFile(const TQString&))); pic = label; } else { - description = new QLabel(this ); + description = new TQLabel(this ); description->setText(i18n("Unable to load audio file") ); } } @@ -69,17 +69,17 @@ AudioPreview::~AudioPreview() delete m_player; } -void AudioPreview::initView( const QString& mimeType ) +void AudioPreview::initView( const TQString& mimeType ) { KURL url = KURL::fromPathOrURL( m_localFile ); - pic->setText( QString::null ); + pic->setText( TQString::null ); pic->setPixmap(KMimeType::pixmapForURL( url )); pic->adjustSize(); KFileMetaInfo info(m_localFile); KMimeType::Ptr mimeptr = KMimeType::mimeType(mimeType); - QString desc; + TQString desc; if (info.isValid()) { if (mimeptr->is("audio/x-mp3") || mimeptr->is("application/ogg")) @@ -106,16 +106,16 @@ void AudioPreview::initView( const QString& mimeType ) int length = info.item("Length").value().toInt(); if (length/60 < 10) desc.append("0"); - desc.append(QString("%1:").arg(length/60, 0, 10)); + desc.append(TQString("%1:").arg(length/60, 0, 10)); if (length%60 < 10) desc.append("0"); - desc.append(QString("%1\n").arg(length%60, 0, 10)); + desc.append(TQString("%1\n").arg(length%60, 0, 10)); } - description = new QLabel(this); + description = new TQLabel(this); description->setText( desc ); description->adjustSize(); - m_player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", QString::null, this ); + m_player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", TQString::null, this ); if ( m_player ) { static_cast<KParts::ReadOnlyPart*>(m_player)->openURL( url ); @@ -123,7 +123,7 @@ void AudioPreview::initView( const QString& mimeType ) } } -void AudioPreview::downloadFile( const QString& url ) +void AudioPreview::downloadFile( const TQString& url ) { if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), m_localFile , topLevelWidget()) ) { diff --git a/renamedlgplugins/audio/audiopreview.h b/renamedlgplugins/audio/audiopreview.h index 635a81b..568c354 100644 --- a/renamedlgplugins/audio/audiopreview.h +++ b/renamedlgplugins/audio/audiopreview.h @@ -20,7 +20,7 @@ #ifndef audiopreview_h #define audiopreview_h -#include <qvbox.h> +#include <tqvbox.h> namespace KMediaPlayer { @@ -33,18 +33,18 @@ class AudioPreview : public QVBox { Q_OBJECT public: - AudioPreview(QWidget *parent, const char *name, const QString &fileName, const QString &mimeType); + AudioPreview(TQWidget *parent, const char *name, const TQString &fileName, const TQString &mimeType); ~AudioPreview(); private slots: - void downloadFile(const QString& url); + void downloadFile(const TQString& url); private: - void initView(const QString& mimeType); + void initView(const TQString& mimeType); - QLabel *pic; - QLabel *description; - QString m_localFile; + TQLabel *pic; + TQLabel *description; + TQString m_localFile; bool m_isTempFile; KMediaPlayer::Player *m_player; diff --git a/renamedlgplugins/images/image_plugin.cpp b/renamedlgplugins/images/image_plugin.cpp index 7c347ea..0bc6567 100644 --- a/renamedlgplugins/images/image_plugin.cpp +++ b/renamedlgplugins/images/image_plugin.cpp @@ -24,12 +24,12 @@ #include <kiconloader.h> #include <renamedlgplugin.h> #include <kio/renamedlg.h> -#include <qlabel.h> -#include <qdialog.h> -#include <qwidget.h> -#include <qstringlist.h> +#include <tqlabel.h> +#include <tqdialog.h> +#include <tqwidget.h> +#include <tqstringlist.h> #include <kio/global.h> -#include <qlayout.h> +#include <tqlayout.h> #include <sys/types.h> @@ -37,10 +37,10 @@ class ImagePlugin : public RenameDlgPlugin{ public: - ImagePlugin( QDialog *dialog, const char *name, const QStringList & ); - virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const QString &/*_src*/, const QString &/*_dest*/, - const QString &/*mimeSrc*/, - const QString &/*mimeDest*/, + ImagePlugin( TQDialog *dialog, const char *name, const TQStringList & ); + virtual bool initialize( KIO::RenameDlg_Mode /*mod*/, const TQString &/*_src*/, const TQString &/*_dest*/, + const TQString &/*mimeSrc*/, + const TQString &/*mimeDest*/, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, @@ -49,14 +49,14 @@ public: time_t /*mtimeDest*/ ); }; -ImagePlugin::ImagePlugin( QDialog *dialog, const char *name, const QStringList &list ) +ImagePlugin::ImagePlugin( TQDialog *dialog, const char *name, const TQStringList &list ) : RenameDlgPlugin( dialog, name, list) { } -bool ImagePlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, const QString &_dest, - const QString &/*mimeSrc*/, - const QString &/*mimeDest*/, +bool ImagePlugin::initialize( KIO::RenameDlg_Mode mode, const TQString &_src, const TQString &_dest, + const TQString &/*mimeSrc*/, + const TQString &/*mimeDest*/, KIO::filesize_t /*sizeSrc*/, KIO::filesize_t /*sizeDest*/, time_t /*ctimeSrc*/, @@ -64,10 +64,10 @@ bool ImagePlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, con time_t /*mtimeSrc*/, time_t /*mtimeDest*/ ) { - QGridLayout *lay = new QGridLayout(this, 2, 3, 5 ); + TQGridLayout *lay = new TQGridLayout(this, 2, 3, 5 ); if( mode & KIO::M_OVERWRITE ) { - QLabel *label = new QLabel(this ); + TQLabel *label = new TQLabel(this ); label->setText(i18n("You want to overwrite the left picture with the one on the right.") ); label->adjustSize(); lay->addMultiCellWidget(label, 1, 1, 0, 2, Qt::AlignHCenter ); @@ -81,5 +81,5 @@ bool ImagePlugin::initialize( KIO::RenameDlg_Mode mode, const QString &_src, con return true; } -typedef KGenericFactory<ImagePlugin, QDialog> ImagePluginFactory; +typedef KGenericFactory<ImagePlugin, TQDialog> ImagePluginFactory; K_EXPORT_COMPONENT_FACTORY( librenimageplugin, ImagePluginFactory("imagerename_plugin") ) diff --git a/renamedlgplugins/images/imagevisualizer.cpp b/renamedlgplugins/images/imagevisualizer.cpp index cb890c5..706787c 100644 --- a/renamedlgplugins/images/imagevisualizer.cpp +++ b/renamedlgplugins/images/imagevisualizer.cpp @@ -21,58 +21,58 @@ #include <klocale.h> #include <kurl.h> #include <kurllabel.h> -#include <qvbox.h> -#include <qlabel.h> -#include <qpixmap.h> -#include <qimage.h> +#include <tqvbox.h> +#include <tqlabel.h> +#include <tqpixmap.h> +#include <tqimage.h> #include <kio/netaccess.h> #include "imagevisualizer.h" -ImageVisualizer::ImageVisualizer( QWidget *parent, const char *name, const QString &fileName ) - : QVBox( parent, name ) +ImageVisualizer::ImageVisualizer( TQWidget *parent, const char *name, const TQString &fileName ) + : TQVBox( parent, name ) { pic = 0; description = 0; KURL url=KURL::fromPathOrURL( fileName ); setSpacing( 0 ); if( url.isValid() && url.isLocalFile() ) { - pic = new QLabel(this ); - description = new QLabel( this ); + pic = new TQLabel(this ); + description = new TQLabel( this ); loadImage( url.path() ); } else if( !url.isLocalFile() ) { KURLLabel *label = new KURLLabel( this ); label->setText(i18n("This picture isn't stored\non the local host.\nClick on this label to load it.\n" ) ); label->setURL( url.prettyURL() ); - connect(label, SIGNAL(leftClickedURL(const QString&)), SLOT(downloadImage(const QString&))); + connect(label, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(downloadImage(const TQString&))); pic = label; - description = new QLabel(this); + description = new TQLabel(this); description->adjustSize( ); } else { - description = new QLabel(this ); + description = new TQLabel(this ); description->setText(i18n("Unable to load image") ); } } -void ImageVisualizer::loadImage( const QString& path ) +void ImageVisualizer::loadImage( const TQString& path ) { - QImage img(path); - QPixmap pixmap(img.smoothScale(180,200, QImage::ScaleMin) ); - pic->setText( QString::null ); + TQImage img(path); + TQPixmap pixmap(img.smoothScale(180,200, TQImage::ScaleMin) ); + pic->setText( TQString::null ); pic->setPixmap(pixmap ); pic->adjustSize(); - QString desc; + TQString desc; desc.append(i18n("The color depth of an image", "Depth: %1\n").arg( img.depth() )); desc.append(i18n("The dimensions of an image", "Dimensions: %1x%1").arg(img.width()).arg(img.height() )); description->setText(desc ); description->adjustSize(); } -void ImageVisualizer::downloadImage(const QString& url) +void ImageVisualizer::downloadImage(const TQString& url) { - QString tmpFile; + TQString tmpFile; if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), tmpFile , topLevelWidget()) ) { loadImage( tmpFile ); diff --git a/renamedlgplugins/images/imagevisualizer.h b/renamedlgplugins/images/imagevisualizer.h index 391fad2..4130a03 100644 --- a/renamedlgplugins/images/imagevisualizer.h +++ b/renamedlgplugins/images/imagevisualizer.h @@ -20,7 +20,7 @@ #ifndef imagevisualizer_h #define imagevisualizer_h -#include <qvbox.h> +#include <tqvbox.h> class QPixmap; class QLabel; @@ -28,17 +28,17 @@ class ImageVisualizer : public QVBox { Q_OBJECT public: - ImageVisualizer(QWidget *parent, const char *name, const QString &fileName ); + ImageVisualizer(TQWidget *parent, const char *name, const TQString &fileName ); private: - void loadImage( const QString& path ); + void loadImage( const TQString& path ); private slots: - void downloadImage( const QString& url ); + void downloadImage( const TQString& url ); private: - QLabel *pic; - QLabel *description; + TQLabel *pic; + TQLabel *description; }; #endif |