summaryrefslogtreecommitdiffstats
path: root/renamedlgplugins/audio
diff options
context:
space:
mode:
Diffstat (limited to 'renamedlgplugins/audio')
-rw-r--r--renamedlgplugins/audio/audio_plugin.cpp42
-rw-r--r--renamedlgplugins/audio/audiopreview.cpp32
-rw-r--r--renamedlgplugins/audio/audiopreview.h14
3 files changed, 44 insertions, 44 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;