diff --git a/src/cddb.cpp b/src/cddb.cpp
index 58ebde7..5129987 100755
--- a/src/cddb.cpp
+++ b/src/cddb.cpp
@@ -29,12 +29,12 @@
#endif
#include
#include
-#include
-#include
-#include
-//#include
-#include
-// #include
+#include
+#include
+#include
+//#include
+#include
+// #include
//#include
#include
#include
@@ -49,7 +49,7 @@
CDDB::CDDB()
: ks(0), port(80), remote(false), save_local(false)
{
- QString s = QDir::homeDirPath()+"/.cddb";
+ TQString s = TQDir::homeDirPath()+"/.cddb";
cddb_dirs +=s;
}
@@ -86,7 +86,7 @@ CDDB::set_server(const char *hostname, unsigned short int _port)
h_name = hostname;
port = _port;
- QCString r;
+ TQCString r;
readLine(r); // the server greeting
writeLine("cddb hello kde-user blubb kio_audiocd 0.4");
readLine(r);
@@ -102,7 +102,7 @@ CDDB::deinit()
if (ks)
{
writeLine("quit");
- QCString r;
+ TQCString r;
readLine(r);
ks->close();
}
@@ -116,7 +116,7 @@ CDDB::deinit()
bool
-CDDB::readLine(QCString& ret)
+CDDB::readLine(TQCString& ret)
{
int read_length = 0;
char small_b[128];
@@ -126,7 +126,7 @@ CDDB::readLine(QCString& ret)
while (read_length < 40000)
{
// Look for a \n in buf
- int ni = buf.find('\n');
+ int ni = buf.tqfind('\n');
if (ni >= 0)
{
// Nice, so return this substring (without the \n),
@@ -157,7 +157,7 @@ CDDB::readLine(QCString& ret)
bool
-CDDB::writeLine(const QCString& line)
+CDDB::writeLine(const TQCString& line)
{
const char *b = line.data();
int l = line.length();
@@ -189,7 +189,7 @@ CDDB::writeLine(const QCString& line)
unsigned int
-CDDB::get_discid(QValueList& track_ofs)
+CDDB::get_discid(TQValueList& track_ofs)
{
unsigned int id = 0;
int num_tracks = track_ofs.count() - 2;
@@ -216,7 +216,7 @@ CDDB::get_discid(QValueList& track_ofs)
static int
-get_code (const QCString &s)
+get_code (const TQCString &s)
{
bool ok;
int code = s.left(3).toInt(&ok);
@@ -228,17 +228,17 @@ get_code (const QCString &s)
static void
-parse_query_resp (const QCString& _r, QCString& catg, QCString& d_id, QCString& title)
+parse_query_resp (const TQCString& _r, TQCString& catg, TQCString& d_id, TQCString& title)
{
- QCString r = _r.stripWhiteSpace();
- int i = r.find(' ');
+ TQCString r = _r.stripWhiteSpace();
+ int i = r.tqfind(' ');
if (i)
{
catg = r.left(i).stripWhiteSpace();
r.remove(0, i+1);
r = r.stripWhiteSpace();
}
- i = r.find(' ');
+ i = r.tqfind(' ');
if (i)
{
d_id = r.left(i).stripWhiteSpace();
@@ -250,32 +250,32 @@ parse_query_resp (const QCString& _r, QCString& catg, QCString& d_id, QCString&
-QString
+TQString
CDDB::track(int i) const
{
if (i < 0 || i >= int(m_names.count()))
- return QString();
+ return TQString();
return m_names[i].utf8();
}
-QString
+TQString
CDDB::artist(int i) const
{
if (i < 0 || i >= int(m_artists.count()))
- return QString();
+ return TQString();
return m_artists[i].utf8();
}
bool
-CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
+CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream)
{
/* Note, that m_names and m_title should be empty */
- QCString end = ".";
+ TQCString end = ".";
m_disc = 0;
m_year = 0;
@@ -289,7 +289,7 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
}
while (1)
{
- QCString r;
+ TQCString r;
if (stream)
{
if (stream->atEnd())
@@ -313,12 +313,12 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
if (r.left(7) == "DTITLE=")
{
r.remove(0, 7);
- m_title += QString::fromLocal8Bit(r.stripWhiteSpace());
+ m_title += TQString::fromLocal8Bit(r.stripWhiteSpace());
}
else if (r.left(6) == "TTITLE")
{
r.remove(0, 6);
- int e = r.find('=');
+ int e = r.tqfind('=');
if (e)
{
bool ok;
@@ -326,28 +326,28 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
if (ok && i >= 0 && i < m_tracks)
{
r.remove(0, e+1);
- m_names[i] += QString::fromLocal8Bit(r);
+ m_names[i] += TQString::fromLocal8Bit(r);
}
}
}
else if (r.left(6) == "DYEAR=")
{
r.remove(0, 6);
- QString year = QString::fromLocal8Bit(r.stripWhiteSpace());
+ TQString year = TQString::fromLocal8Bit(r.stripWhiteSpace());
m_year = year.toInt();
- //kdDebug(7101) << "CDDB: found Year: " << QString().sprintf("%04i",m_year) << endl;
+ //kdDebug(7101) << "CDDB: found Year: " << TQString().sprintf("%04i",m_year) << endl;
}
else if (r.left(7) == "DGENRE=")
{
r.remove(0, 7);
- m_genre = QString::fromLocal8Bit(r.stripWhiteSpace());
+ m_genre = TQString::fromLocal8Bit(r.stripWhiteSpace());
//kdDebug(7101) << "CDDB: found Genre: " << m_genre << endl;
}
}
/* XXX We should canonicalize the strings ("\n" --> '\n' e.g.) */
- int si = m_title.find(" / ");
+ int si = m_title.tqfind(" / ");
if (si > 0)
{
m_artist = m_title.left(si).stripWhiteSpace();
@@ -355,10 +355,10 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
m_title = m_title.stripWhiteSpace();
}
- si = m_title.find(" - CD");
+ si = m_title.tqfind(" - CD");
if (si > 0)
{
- QString disc = m_title.right(m_title.length()-(si+5)).stripWhiteSpace();
+ TQString disc = m_title.right(m_title.length()-(si+5)).stripWhiteSpace();
m_disc = disc.toInt();
//kdDebug(7101) << "CDDB: found Disc: " << disc << endl;
m_title = m_title.left(si).stripWhiteSpace();
@@ -367,22 +367,22 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
if (m_title.isEmpty())
m_title = i18n("No Title");
/*else
- m_title.replace(QRegExp("/"), "%2f");*/
+ m_title.tqreplace(TQRegExp("/"), "%2f");*/
if (m_artist.isEmpty())
m_artist = i18n("Unknown");
/*else
- m_artist.replace(QRegExp("/"), "%2f");*/
+ m_artist.tqreplace(TQRegExp("/"), "%2f");*/
//kdDebug(7101) << "CDDB: found Title: `" << m_title << "'" << endl;
for (int i = 0; i < m_tracks; i++)
{
if (m_names[i].isEmpty())
- m_names[i] += i18n("Track %1").arg(i);
- //m_names[i].replace(QRegExp("/"), "%2f");
- si = m_names[i].find(" - ");
+ m_names[i] += i18n("Track %1").tqarg(i);
+ //m_names[i].tqreplace(TQRegExp("/"), "%2f");
+ si = m_names[i].tqfind(" - ");
if (si < 0)
{
- si = m_names[i].find(" / ");
+ si = m_names[i].tqfind(" / ");
}
if (si > 0)
{
@@ -402,9 +402,9 @@ CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
void
-CDDB::add_cddb_dirs(const QStringList& list)
+CDDB::add_cddb_dirs(const TQStringList& list)
{
- QString s = QDir::homeDirPath()+"/.cddb";
+ TQString s = TQDir::homeDirPath()+"/.cddb";
cddb_dirs = list;
if (cddb_dirs.isEmpty())
@@ -416,15 +416,15 @@ CDDB::add_cddb_dirs(const QStringList& list)
/* Locates and opens the local file corresponding to that discid.
Returns TRUE, if file is found and ready for reading.
Returns FALSE, if file isn't found. In this case ret_file is initialized
- with a QFile which resides in the first cddb_dir, and has a temp name
+ with a TQFile which resides in the first cddb_dir, and has a temp name
(the ID + getpid()). You can open it for writing. */
bool
-CDDB::searchLocal(unsigned int id, QFile *ret_file)
+CDDB::searchLocal(unsigned int id, TQFile *ret_file)
{
- QDir dir;
- QString filename;
- filename = QString("%1").arg(id, 0, 16).rightJustify(8, '0');
- QStringList::ConstIterator it;
+ TQDir dir;
+ TQString filename;
+ filename = TQString("%1").tqarg(id, 0, 16).rightJustify(8, '0');
+ TQStringList::ConstIterator it;
for (it = cddb_dirs.begin(); it != cddb_dirs.end(); ++it)
{
dir.setPath(*it);
@@ -436,9 +436,9 @@ CDDB::searchLocal(unsigned int id, QFile *ret_file)
return true;
/* And then in the subdirs of dir (representing the categories normally).
*/
- const QFileInfoList *subdirs = dir.entryInfoList (QDir::Dirs);
- QFileInfoListIterator fiit(*subdirs);
- QFileInfo *fi;
+ const TQFileInfoList *subdirs = dir.entryInfoList (TQDir::Dirs);
+ TQFileInfoListIterator fiit(*subdirs);
+ TQFileInfo *fi;
while ((fi = fiit.current()) != 0)
{
ret_file->setName (*it + "/" + fi->fileName() + "/" + filename);
@@ -447,14 +447,14 @@ CDDB::searchLocal(unsigned int id, QFile *ret_file)
++fiit;
}
}
- QString pid;
+ TQString pid;
pid.setNum(::getpid());
ret_file->setName (cddb_dirs[0] + "/" + filename + "." + pid);
/* Try to create the save location. */
dir.setPath(cddb_dirs[0]);
if (save_local && !dir.exists())
{
- //dir = QDir::current();
+ //dir = TQDir::current();
dir.mkdir(cddb_dirs[0]);
}
return false;
@@ -463,13 +463,13 @@ CDDB::searchLocal(unsigned int id, QFile *ret_file)
bool
-CDDB::queryCD(QValueList& track_ofs)
+CDDB::queryCD(TQValueList& track_ofs)
{
int num_tracks = track_ofs.count() - 2;
if (num_tracks < 1)
return false;
unsigned int id = get_discid(track_ofs);
- QFile file;
+ TQFile file;
bool local;
/* Already read this ID. */
@@ -477,7 +477,7 @@ CDDB::queryCD(QValueList& track_ofs)
return true;
emit cddbMessage(i18n("Searching local cddb entry ..."));
- qApp->processEvents();
+ tqApp->processEvents();
/* First look for a local file. */
local = searchLocal (id, &file);
@@ -492,41 +492,41 @@ CDDB::queryCD(QValueList& track_ofs)
m_discid = id;
if (local)
{
- QTextStream stream(&file);
+ TQTextStream stream(&file);
/* XXX Hmm, what encoding is used by CDDB files? local? Unicode?
Nothing? */
- //stream.setEncoding(QTextStream::Locale);
+ //stream.setEncoding(TQTextStream::Locale);
parse_read_resp(&stream, 0);
file.close();
return true;
}
emit cddbMessage(i18n("Searching remote cddb entry ..."));
- qApp->processEvents();
+ tqApp->processEvents();
/* Remote CDDB query. */
unsigned int length = track_ofs[num_tracks+1] - track_ofs[num_tracks];
- QCString q;
+ TQCString q;
q.sprintf("cddb query %08x %d", id, num_tracks);
- QCString num;
+ TQCString num;
for (int i = 0; i < num_tracks; i++)
q += " " + num.setNum(track_ofs[i]);
q += " " + num.setNum(length / 75);
if (!writeLine(q))
return false;
- QCString r;
+ TQCString r;
if (!readLine(r))
return false;
r = r.stripWhiteSpace();
int code = get_code(r);
if (code == 200)
{
- QCString catg, d_id, title;
- QDir dir;
- QCString s, pid;
+ TQCString catg, d_id, title;
+ TQDir dir;
+ TQCString s, pid;
emit cddbMessage(i18n("Found exact match cddb entry ..."));
- qApp->processEvents();
+ tqApp->processEvents();
/* an exact match */
r.remove(0, 3);
@@ -553,16 +553,16 @@ CDDB::queryCD(QValueList& track_ofs)
if (save_local && file.open(IO_WriteOnly))
{
//kdDebug(7101) << "CDDB: file name to save =" << file.name() << endl;
- QTextStream stream(&file);
+ TQTextStream stream(&file);
if (!parse_read_resp(0, &stream))
{
file.remove();
return false;
}
file.close();
- /*QString newname (file.name());
- newname.truncate(newname.findRev('.'));
- if (QDir::current().rename(file.name(), newname)) {
+ /*TQString newname (file.name());
+ newname.truncate(newname.tqfindRev('.'));
+ if (TQDir::current().rename(file.name(), newname)) {
//kdDebug(7101) << "CDDB: rename failed" << endl;
file.remove();
} */
@@ -574,16 +574,16 @@ CDDB::queryCD(QValueList& track_ofs)
{
// Found some close matches. We'll read the query response and ask the user
// which one should be fetched from the server.
- QCString end = ".";
- QCString catg, d_id, title;
- QDir dir;
- QCString s, pid, first_match;
- QStringList disc_ids;
+ TQCString end = ".";
+ TQCString catg, d_id, title;
+ TQDir dir;
+ TQCString s, pid, first_match;
+ TQStringList disc_ids;
/* some close matches */
//XXX may be try to find marker based on r
emit cddbMessage(i18n("Found close cddb entry ..."));
- qApp->processEvents();
+ tqApp->processEvents();
int i=0;
while (1)
@@ -602,12 +602,12 @@ CDDB::queryCD(QValueList& track_ofs)
bool ok = false;
// We don't want to be thinking too much, do we?
-// QApplication::restoreOverrideCursor();
+// TQApplication::restoreOverrideCursor();
// Oh, mylord, which match should I serve you?
- QString _answer = KInputDialog::getItem(i18n("CDDB Matches"), i18n("Several close CDDB entries found. Choose one:"),
+ TQString _answer = KInputDialog::getItem(i18n("CDDB Matches"), i18n("Several close CDDB entries found. Choose one:"),
disc_ids, 0, false, &ok );
- QCString answer = _answer.utf8();
+ TQCString answer = _answer.utf8();
if (ok){ // Get user selected match
parse_query_resp(answer, catg, d_id, title);
@@ -617,7 +617,7 @@ CDDB::queryCD(QValueList& track_ofs)
}
// Now we can continue thinking...
-// QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+// TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
/*kdDebug(7101) << "CDDB: found close CD: category=" << catg << " DiscId="
<< d_id << " Title=`" << title << "'" << endl;*/
@@ -644,7 +644,7 @@ CDDB::queryCD(QValueList& track_ofs)
if (save_local && file.open(IO_WriteOnly))
{
//kdDebug(7101) << "CDDB: file name to save =" << file.name() << endl;
- QTextStream stream(&file);
+ TQTextStream stream(&file);
if (!parse_read_resp(0, &stream))
{
file.remove();
diff --git a/src/cddb.h b/src/cddb.h
index 62c38a7..e201093 100755
--- a/src/cddb.h
+++ b/src/cddb.h
@@ -20,60 +20,61 @@
#ifndef CDDB_H
#define CDDB_H
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
-class QFile;
-class QTextStream;
+class TQFile;
+class TQTextStream;
class KExtendedSocket;
-class CDDB : public QObject
+class CDDB : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
CDDB();
~CDDB();
bool set_server(const char *hostname = 0, unsigned short int port = 0);
- void add_cddb_dirs(const QStringList& list);
+ void add_cddb_dirs(const TQStringList& list);
void save_cddb (bool save) { save_local = save; }
- unsigned int get_discid(QValueList& track_ofs);
- bool queryCD(QValueList& track_ofs);
- QString title() const { return m_title.utf8(); }
- QString artist(int i) const;
+ unsigned int get_discid(TQValueList& track_ofs);
+ bool queryCD(TQValueList& track_ofs);
+ TQString title() const { return m_title.utf8(); }
+ TQString artist(int i) const;
int trackCount() const { return m_tracks; }
- QString track(int i) const;
+ TQString track(int i) const;
int disc() const { return m_disc; }
- QString genre() const { return m_genre.utf8(); }
+ TQString genre() const { return m_genre.utf8(); }
int year() const { return m_year; }
private:
- bool readLine(QCString& s);
- bool writeLine(const QCString& s);
+ bool readLine(TQCString& s);
+ bool writeLine(const TQCString& s);
bool deinit();
- bool parse_read_resp(QTextStream*, QTextStream*);
- bool searchLocal(unsigned int id, QFile *ret_file);
+ bool parse_read_resp(TQTextStream*, TQTextStream*);
+ bool searchLocal(unsigned int id, TQFile *ret_file);
KExtendedSocket *ks;
- QCString h_name;
+ TQCString h_name;
unsigned short int port;
bool remote;
bool save_local;
- QStringList cddb_dirs;
- QCString buf;
+ TQStringList cddb_dirs;
+ TQCString buf;
unsigned int m_discid;
int m_tracks;
int m_disc;
int m_year;
- QString m_genre;
- QString m_title;
- QString m_artist;
- QStringList m_artists;
- QStringList m_names;
+ TQString m_genre;
+ TQString m_title;
+ TQString m_artist;
+ TQStringList m_artists;
+ TQStringList m_names;
signals:
- void cddbMessage( QString );
+ void cddbMessage( TQString );
};
#endif // CDDB_H
diff --git a/src/cdmanager.cpp b/src/cdmanager.cpp
index cd9dd27..758c7ee 100755
--- a/src/cdmanager.cpp
+++ b/src/cdmanager.cpp
@@ -4,8 +4,8 @@
#include "cddb.h"
#include "conversionoptions.h"
-#include
-#include
+#include
+#include
#include
#include
@@ -17,13 +17,13 @@
// TODO implement reading of cd data
-CDDevice::CDDevice( const QString& _device )
+CDDevice::CDDevice( const TQString& _device )
{
- QStringList s;
+ TQStringList s;
bool init = false;
- QValueList qvl;
+ TQValueList qvl;
int i;
- QStringList dcopList, devList;
+ TQStringList dcopList, devList;
bool ok = false;
tags.clear();
@@ -43,7 +43,7 @@ CDDevice::CDDevice( const QString& _device )
i += 13;
}
if( devList.count() > 1 ) {
- QString choice = KInputDialog::getItem( i18n("Audio CD"), i18n("Several audio CDs found. Choose one:"), devList, 0, false, &ok );
+ TQString choice = KInputDialog::getItem( i18n("Audio CD"), i18n("Several audio CDs found. Choose one:"), devList, 0, false, &ok );
if( ok ) s.append( choice );
else s.append( 0 ); // TODO if canceled, the cd opener should close, not use the first item
}
@@ -120,11 +120,11 @@ CDManager::~CDManager()
while( cdDevices.count() > 0 ) delete cdDevices.first();
}
-QString CDManager::newCDDevice( const QString& device )
+TQString CDManager::newCDDevice( const TQString& device )
{
CDDevice* cdDevice = new CDDevice( device );
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = cdDevice->device ) {
cdDevices.remove( *it );
delete (*it);
@@ -136,22 +136,22 @@ QString CDManager::newCDDevice( const QString& device )
return cdDevice->device;
}
-QValueList CDManager::getTrackList( const QString& device )
+TQValueList CDManager::getTrackList( const TQString& device )
{
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = device ) return (*it)->tags;
}
- QValueList list;
+ TQValueList list;
return list;
}
-TagData* CDManager::getTags( const QString& device, int track )
+TagData* CDManager::getTags( const TQString& device, int track )
{
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = device ) {
if( track > 0 ) {
- QValueList::Iterator tag = (*it)->tags.at( track - 1 );
+ TQValueList::Iterator tag = (*it)->tags.at( track - 1 );
return (*tag);
}
else {
@@ -163,27 +163,27 @@ TagData* CDManager::getTags( const QString& device, int track )
return 0;
}
-int CDManager::getTrackCount( const QString& device )
+int CDManager::getTrackCount( const TQString& device )
{
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = device ) return (*it)->trackCount;
}
return 0;
}
-int CDManager::getTimeCount( const QString& device )
+int CDManager::getTimeCount( const TQString& device )
{
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = device ) return (*it)->timeCount;
}
return 0;
}
-void CDManager::setDiscTags( const QString& device, TagData* tags )
+void CDManager::setDiscTags( const TQString& device, TagData* tags )
{
- for( QValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
+ for( TQValueList::Iterator it = cdDevices.begin(); it != cdDevices.end(); ++it ) {
if( (*it)->device = device ) (*it)->discTags = tags;
}
}
diff --git a/src/cdmanager.h b/src/cdmanager.h
index 9af80c8..4cc8aa8 100755
--- a/src/cdmanager.h
+++ b/src/cdmanager.h
@@ -5,7 +5,7 @@
#include "tagengine.h"
-#include
+#include
class ConversionOptions;
class Paranoia;
@@ -21,16 +21,16 @@ public:
/**
* Constructor
*/
- CDDevice( const QString& _device="" );
+ CDDevice( const TQString& _device="" );
/**
* Destructor
*/
virtual ~CDDevice();
- QString device;
+ TQString device;
Paranoia* para;
- QValueList tags;
+ TQValueList tags;
TagData* discTags;
int trackCount;
int timeCount;
@@ -41,9 +41,10 @@ public:
* @author Daniel Faust
* @version 0.3
*/
-class CDManager : public QObject
+class CDManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
@@ -59,36 +60,36 @@ public:
* Create a new CDDevice entry in cdDevices. Use @param device or auto search for an audio cd
* Return the used device (usefull, if auto searching was used)
*/
- QString newCDDevice( const QString& device="" );
+ TQString newCDDevice( const TQString& device="" );
/**
* Return a list of all tracks on the cd in drive @param device
*/
- QValueList getTrackList( const QString& device );
+ TQValueList getTrackList( const TQString& device );
/**
* Return the tags of the track @param track on the cd in drive @param device
*/
- TagData* getTags( const QString& device, int track );
+ TagData* getTags( const TQString& device, int track );
/**
* Set the tags of the cd in drive @param device
*/
- void setDiscTags( const QString& device, TagData* tags );
+ void setDiscTags( const TQString& device, TagData* tags );
/**
* Return the sum of all tracks of the cd in drive @param device
*/
- int getTrackCount( const QString& device );
+ int getTrackCount( const TQString& device );
/**
* Return the complete length of the cd in drive @param device
*/
- int getTimeCount( const QString& device );
+ int getTimeCount( const TQString& device );
private:
/** a list of all devices */
- QValueList cdDevices;
+ TQValueList cdDevices;
};
diff --git a/src/cdopener.cpp b/src/cdopener.cpp
index acabbc8..7737638 100755
--- a/src/cdopener.cpp
+++ b/src/cdopener.cpp
@@ -17,18 +17,18 @@
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
// ### soundkonverter 0.4: implement cd info text
-CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngine, const QString& _device, QWidget* parent, const char* name, /*Mode default_mode, const QString& default_text,*/ bool modal, WFlags f )
- : KDialog( parent, name, modal, f )
+CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngine, const TQString& _device, TQWidget* tqparent, const char* name, /*Mode default_mode, const TQString& default_text,*/ bool modal, WFlags f )
+ : KDialog( tqparent, name, modal, f )
{
cdManager = _cdManager;
tagEngine = _tagEngine;
@@ -42,37 +42,37 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
setIcon( iconLoader->loadIcon("cdaudio_unmount",KIcon::Small) );
// the grid for all widgets in the dialog
- QGridLayout* gridLayout = new QGridLayout( this, 1, 1, 11, 6, "gridLayout" );
+ TQGridLayout* gridLayout = new TQGridLayout( this, 1, 1, 11, 6, "gridLayout" );
// the grid for the artist and album input
- QGridLayout* topGridLayout = new QGridLayout( this, 1, 1, 0, 6, "topGridLayout" );
+ TQGridLayout* topGridLayout = new TQGridLayout( this, 1, 1, 0, 6, "topGridLayout" );
gridLayout->addLayout( topGridLayout, 0, 0 );
// set up the first row at the top
- QLabel* lArtistLabel = new QLabel( i18n("Artist:"), this, "lArtistLabel" );
+ TQLabel* lArtistLabel = new TQLabel( i18n("Artist:"), this, "lArtistLabel" );
topGridLayout->addWidget( lArtistLabel, 0, 0 );
cArtist = new KComboBox( true, this, "cArtist" );
topGridLayout->addWidget( cArtist, 0, 1 );
cArtist->setMinimumWidth( 200 );
cArtist->insertItem( i18n("Various Artists") );
cArtist->setCurrentText( "" );
- connect( cArtist, SIGNAL(textChanged(const QString&)),
- this, SLOT(artistChanged(const QString&))
+ connect( cArtist, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(artistChanged(const TQString&))
);
- // add a horizontal box layout for the composer
- QHBoxLayout* artistBox = new QHBoxLayout( -1, "artistBox" );
+ // add a horizontal box tqlayout for the composer
+ TQHBoxLayout* artistBox = new TQHBoxLayout( -1, "artistBox" );
topGridLayout->addLayout( artistBox, 0, 3 );
// and fill it up
- QLabel* lComposerLabel = new QLabel( i18n("Composer:"), this, "lComposerLabel" );
- lComposerLabel->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
+ TQLabel* lComposerLabel = new TQLabel( i18n("Composer:"), this, "lComposerLabel" );
+ lComposerLabel->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
topGridLayout->addWidget( lComposerLabel, 0, 2 );
cComposer = new KComboBox( true, this, "cComposer" );
artistBox->addWidget( cComposer );
cComposer->insertItem( i18n("Various Composer") );
cComposer->setCurrentText( "" );
- //cComposer->setSizePolicy( QSizePolicy::Maximum );
- connect( cComposer, SIGNAL(textChanged(const QString&)),
- this, SLOT(composerChanged(const QString&))
+ //cComposer->tqsetSizePolicy( TQSizePolicy::Maximum );
+ connect( cComposer, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(composerChanged(const TQString&))
);
//artistBox->addStretch();
artistBox->addSpacing( 130 );
@@ -80,24 +80,24 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
// topGridLayout->addWidget( pCDDB, 0, 8 );
// set up the second row at the top
- QLabel* lAlbumLabel = new QLabel( i18n("Album:"), this, "lAlbumLabel" );
+ TQLabel* lAlbumLabel = new TQLabel( i18n("Album:"), this, "lAlbumLabel" );
topGridLayout->addWidget( lAlbumLabel, 1, 0 );
lAlbum = new KLineEdit( this, "lAlbum" );
topGridLayout->addWidget( lAlbum, 1, 1 );
- // add a horizontal box layout for the disc number, year and genre
- QHBoxLayout* albumBox = new QHBoxLayout( -1, "albumBox" );
+ // add a horizontal box tqlayout for the disc number, year and genre
+ TQHBoxLayout* albumBox = new TQHBoxLayout( -1, "albumBox" );
topGridLayout->addLayout( albumBox, 1, 3 );
// and fill it up
- QLabel* lDiscLabel = new QLabel( i18n("Disc No.:"), this, "lDiscLabel" );
- lDiscLabel->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
+ TQLabel* lDiscLabel = new TQLabel( i18n("Disc No.:"), this, "lDiscLabel" );
+ lDiscLabel->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
topGridLayout->addWidget( lDiscLabel, 1, 2 );
iDisc = new KIntSpinBox( 1, 99, 1, 1, 10, this, "iDisc" );
albumBox->addWidget( iDisc );
- QLabel* lYearLabel = new QLabel( i18n("Year:"), this, "lYearLabel" );
+ TQLabel* lYearLabel = new TQLabel( i18n("Year:"), this, "lYearLabel" );
albumBox->addWidget( lYearLabel );
- iYear = new KIntSpinBox( 0, 99999, 1, QDate::currentDate().year(), 10, this, "iYear" );
+ iYear = new KIntSpinBox( 0, 99999, 1, TQDate::tqcurrentDate().year(), 10, this, "iYear" );
albumBox->addWidget( iYear );
- QLabel* lGenreLabel = new QLabel( i18n("Genre:"), this, "lGenreLabel" );
+ TQLabel* lGenreLabel = new TQLabel( i18n("Genre:"), this, "lGenreLabel" );
albumBox->addWidget( lGenreLabel );
cGenre = new KComboBox( true, this, "cGenre" );
cGenre->insertStringList( tagEngine->genreList );
@@ -116,133 +116,133 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
trackList->addColumn( i18n("Composer"), 0 );
trackList->addColumn( i18n("Title") );
trackList->addColumn( i18n("Time") );
- trackList->setSelectionMode( QListView::Extended );
+ trackList->setSelectionMode( TQListView::Extended );
trackList->setAllColumnsShowFocus( true );
- trackList->setResizeMode( QListView::LastColumn );
- connect( trackList, SIGNAL(selectionChanged()),
- this, SLOT(trackChanged())
+ trackList->setResizeMode( TQListView::LastColumn );
+ connect( trackList, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(trackChanged())
);
- connect( trackList, SIGNAL(doubleClicked(QListViewItem*,const QPoint&,int)),
- this, SLOT(addClicked())
+ connect( trackList, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&,int)),
+ this, TQT_SLOT(addClicked())
);
gridLayout->setRowStretch( 1, 1 );
// create the box at the bottom for editing the tags
- tagGroupBox = new QGroupBox( i18n("No track selected"), this, "tagGroupBox" );
+ tagGroupBox = new TQGroupBox( i18n("No track selected"), this, "tagGroupBox" );
gridLayout->addWidget( tagGroupBox, 2, 0 );
tagGroupBox->setColumnLayout( 0, Qt::Vertical );
- tagGroupBox->layout()->setSpacing( 6 );
- tagGroupBox->layout()->setMargin( 6 );
- QGridLayout* tagGridLayout = new QGridLayout( tagGroupBox->layout(), 1, 1, -1, "tagGridLayout" );
+ tagGroupBox->tqlayout()->setSpacing( 6 );
+ tagGroupBox->tqlayout()->setMargin( 6 );
+ TQGridLayout* tagGridLayout = new TQGridLayout( tagGroupBox->tqlayout(), 1, 1, -1, "tagGridLayout" );
// add the up and down buttons
pTrackUp = new KPushButton( " ", tagGroupBox, "pTrackUp" );
pTrackUp->setPixmap( iconLoader->loadIcon("up",KIcon::Toolbar) );
pTrackUp->setAutoRepeat( true );
- connect( pTrackUp, SIGNAL(clicked()),
- this, SLOT(trackUpPressed())
+ connect( pTrackUp, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(trackUpPressed())
);
tagGridLayout->addWidget( pTrackUp, 0, 0 );
pTrackDown = new KPushButton( " ", tagGroupBox, "pTrackDown" );
pTrackDown->setPixmap( iconLoader->loadIcon("down",KIcon::Toolbar) );
pTrackDown->setAutoRepeat( true );
- connect( pTrackDown, SIGNAL(clicked()),
- this, SLOT(trackDownPressed())
+ connect( pTrackDown, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(trackDownPressed())
);
tagGridLayout->addWidget( pTrackDown, 1, 0 );
// add the inputs
- // add a horizontal box layout for the title
- QHBoxLayout* trackTitleBox = new QHBoxLayout( -1, "trackTitleBox" );
+ // add a horizontal box tqlayout for the title
+ TQHBoxLayout* trackTitleBox = new TQHBoxLayout( -1, "trackTitleBox" );
tagGridLayout->addLayout( trackTitleBox, 0, 2 );
// and fill it up
- QLabel *lTrackTitleLabel = new QLabel( i18n("Title:"), tagGroupBox, "lTrackTitleLabel" );
+ TQLabel *lTrackTitleLabel = new TQLabel( i18n("Title:"), tagGroupBox, "lTrackTitleLabel" );
tagGridLayout->addWidget( lTrackTitleLabel, 0, 1 );
lTrackTitle = new KLineEdit( tagGroupBox, "lTrackTitle" );
trackTitleBox->addWidget( lTrackTitle );
- connect( lTrackTitle, SIGNAL(textChanged(const QString&)),
- this, SLOT(trackTitleChanged(const QString&))
+ connect( lTrackTitle, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(trackTitleChanged(const TQString&))
);
pTrackTitleEdit = new KPushButton( " ", tagGroupBox, "pTrackTitleEdit" );
pTrackTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) );
- pTrackTitleEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() );
+ pTrackTitleEdit->setFixedSize( lTrackTitle->tqsizeHint().height(), lTrackTitle->tqsizeHint().height() );
pTrackTitleEdit->hide();
trackTitleBox->addWidget( pTrackTitleEdit );
- connect( pTrackTitleEdit, SIGNAL(clicked()),
- this, SLOT(editTrackTitleClicked())
+ connect( pTrackTitleEdit, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(editTrackTitleClicked())
);
- // add a horizontal box layout for the composer
- QHBoxLayout* trackArtistBox = new QHBoxLayout( -1, "trackArtistBox" );
+ // add a horizontal box tqlayout for the composer
+ TQHBoxLayout* trackArtistBox = new TQHBoxLayout( -1, "trackArtistBox" );
tagGridLayout->addLayout( trackArtistBox, 1, 2 );
// and fill it up
- QLabel* lTrackArtistLabel = new QLabel( i18n("Artist:"), tagGroupBox, "lTrackArtistLabel" );
+ TQLabel* lTrackArtistLabel = new TQLabel( i18n("Artist:"), tagGroupBox, "lTrackArtistLabel" );
tagGridLayout->addWidget( lTrackArtistLabel, 1, 1 );
lTrackArtist = new KLineEdit( tagGroupBox, "lTrackArtist" );
trackArtistBox->addWidget( lTrackArtist );
- connect( lTrackArtist, SIGNAL(textChanged(const QString&)),
- this, SLOT(trackArtistChanged(const QString&))
+ connect( lTrackArtist, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(trackArtistChanged(const TQString&))
);
pTrackArtistEdit = new KPushButton( " ", tagGroupBox, "pTrackArtistEdit" );
pTrackArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) );
- pTrackArtistEdit->setFixedSize( lTrackArtist->sizeHint().height(), lTrackArtist->sizeHint().height() );
+ pTrackArtistEdit->setFixedSize( lTrackArtist->tqsizeHint().height(), lTrackArtist->tqsizeHint().height() );
pTrackArtistEdit->hide();
trackArtistBox->addWidget( pTrackArtistEdit );
- connect( pTrackArtistEdit, SIGNAL(clicked()),
- this, SLOT(editTrackArtistClicked())
+ connect( pTrackArtistEdit, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(editTrackArtistClicked())
);
- QLabel* lTrackComposerLabel = new QLabel( i18n("Composer:"), tagGroupBox, "lTrackComposerLabel" );
+ TQLabel* lTrackComposerLabel = new TQLabel( i18n("Composer:"), tagGroupBox, "lTrackComposerLabel" );
trackArtistBox->addWidget( lTrackComposerLabel );
lTrackComposer = new KLineEdit( tagGroupBox, "lTrackComposer" );
trackArtistBox->addWidget( lTrackComposer );
- connect( lTrackComposer, SIGNAL(textChanged(const QString&)),
- this, SLOT(trackComposerChanged(const QString&))
+ connect( lTrackComposer, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(trackComposerChanged(const TQString&))
);
pTrackComposerEdit = new KPushButton( " ", tagGroupBox, "pTrackComposerEdit" );
pTrackComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) );
- pTrackComposerEdit->setFixedSize( lTrackComposer->sizeHint().height(), lTrackComposer->sizeHint().height() );
+ pTrackComposerEdit->setFixedSize( lTrackComposer->tqsizeHint().height(), lTrackComposer->tqsizeHint().height() );
pTrackComposerEdit->hide();
trackArtistBox->addWidget( pTrackComposerEdit );
- connect( pTrackComposerEdit, SIGNAL(clicked()),
- this, SLOT(editTrackComposerClicked())
+ connect( pTrackComposerEdit, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(editTrackComposerClicked())
);
- // add a horizontal box layout for the comment
- QHBoxLayout* trackCommentBox = new QHBoxLayout( -1, "trackCommentBox" );
+ // add a horizontal box tqlayout for the comment
+ TQHBoxLayout* trackCommentBox = new TQHBoxLayout( -1, "trackCommentBox" );
tagGridLayout->addLayout( trackCommentBox, 2, 2 );
// and fill it up
- QLabel* lTrackCommentLabel = new QLabel( i18n("Comment:"), tagGroupBox, "lTrackCommentLabel" );
+ TQLabel* lTrackCommentLabel = new TQLabel( i18n("Comment:"), tagGroupBox, "lTrackCommentLabel" );
tagGridLayout->addWidget( lTrackCommentLabel, 2, 1 );
tTrackComment = new KTextEdit( tagGroupBox, "tTrackComment" );
trackCommentBox->addWidget( tTrackComment );
tTrackComment->setFixedHeight( 65 );
- connect( tTrackComment, SIGNAL(textChanged()),
- this, SLOT(trackCommentChanged())
+ connect( tTrackComment, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(trackCommentChanged())
);
pTrackCommentEdit = new KPushButton( " ", tagGroupBox, "pTrackCommentEdit" );
pTrackCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) );
- pTrackCommentEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() );
+ pTrackCommentEdit->setFixedSize( lTrackTitle->tqsizeHint().height(), lTrackTitle->tqsizeHint().height() );
pTrackCommentEdit->hide();
trackCommentBox->addWidget( pTrackCommentEdit );
- connect( pTrackCommentEdit, SIGNAL(clicked()),
- this, SLOT(editTrackCommentClicked())
+ connect( pTrackCommentEdit, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(editTrackCommentClicked())
);
// draw a horizontal line
- QFrame* lineFrame = new QFrame( this, "lineFrame" );
- lineFrame->setFrameShape( QFrame::HLine );
- lineFrame->setFrameShadow( QFrame::Sunken );
- lineFrame->setFrameShape( QFrame::HLine );
+ TQFrame* lineFrame = new TQFrame( this, "lineFrame" );
+ lineFrame->setFrameShape( TQFrame::HLine );
+ lineFrame->setFrameShadow( TQFrame::Sunken );
+ lineFrame->setFrameShape( TQFrame::HLine );
gridLayout->addWidget( lineFrame, 3, 0 );
gridLayout->setRowSpacing( 3, 16 );
- // add a horizontal box layout for the control elements
- QHBoxLayout* controlBox = new QHBoxLayout( -1, "controlBox" );
+ // add a horizontal box tqlayout for the control elements
+ TQHBoxLayout* controlBox = new TQHBoxLayout( -1, "controlBox" );
gridLayout->addLayout( controlBox, 4, 0 );
// add the control elements
pSaveCue = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Save cuesheet ..."), this, "pSaveCue" );
controlBox->addWidget( pSaveCue );
- connect( pSaveCue, SIGNAL(clicked()),
- this, SLOT(saveCuesheetClicked())
+ connect( pSaveCue, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(saveCuesheetClicked())
);
controlBox->addStretch();
@@ -253,13 +253,13 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
if( plugin != 0 && plugin->rip.full_disc.enabled ) cAdd->insertItem( iconLoader->loadIcon("cdaudio_unmount",KIcon::Small),i18n("Add full CD as one file") );
//cAdd->setSizeMode( ComboButton::Min );
controlBox->addWidget( cAdd );
- connect( cAdd, SIGNAL(clicked(int)),
- this, SLOT(addClicked(int))
+ connect( cAdd, TQT_SIGNAL(clicked(int)),
+ this, TQT_SLOT(addClicked(int))
);
pCancel = new KPushButton( iconLoader->loadIcon("cancel",KIcon::Small), i18n("Cancel"), this, "pCancel" );
controlBox->addWidget( pCancel );
- connect( pCancel, SIGNAL(clicked()),
- this, SLOT(reject())
+ connect( pCancel, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(reject())
);
// delete the icon loader object
@@ -267,19 +267,19 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
bool various_artists = false;
bool various_composer = false;
- QString artist = "";
- QString composer = "";
- QString album = "";
+ TQString artist = "";
+ TQString composer = "";
+ TQString album = "";
int disc = 0;
int year = 0;
- QString genre = "";
+ TQString genre = "";
device = cdManager->newCDDevice( _device );
// don't execute the dialog, if no audio cd was found
noCD = device.isEmpty();
- QValueList tags = cdManager->getTrackList( device );
- for( QValueList::Iterator it = tags.begin(); it != tags.end(); ++it ) {
+ TQValueList tags = cdManager->getTrackList( device );
+ for( TQValueList::Iterator it = tags.begin(); it != tags.end(); ++it ) {
if( artist == "" ) artist = (*it)->artist;
else if( artist != (*it)->artist ) various_artists = true;
@@ -291,7 +291,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
if( year == 0 ) year = (*it)->year;
if( genre == "" ) genre = (*it)->genre;
- new KListViewItem( trackList, QString().sprintf("%02i",(*it)->track), (*it)->artist, (*it)->composer, (*it)->title, QString().sprintf("%i:%02i",(*it)->length/60,(*it)->length%60) );
+ new KListViewItem( trackList, TQString().sprintf("%02i",(*it)->track), (*it)->artist, (*it)->composer, (*it)->title, TQString().sprintf("%i:%02i",(*it)->length/60,(*it)->length%60) );
}
trackList->setSorting( -1 );
@@ -329,7 +329,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
CDOpener::~CDOpener()
{}
-int CDOpener::columnByName( const QString& name )
+int CDOpener::columnByName( const TQString& name )
{
for( int i = 0; i < trackList->columns(); ++i ) {
if( trackList->columnText( i ) == name ) return i;
@@ -339,20 +339,20 @@ int CDOpener::columnByName( const QString& name )
void CDOpener::trackUpPressed()
{
- QListViewItem* item = selectedItems.first()->itemAbove();
+ TQListViewItem* item = selectedItems.first()->itemAbove();
if( item != 0 ) {
item->setSelected( true );
- trackList->repaintItem( item );
+ trackList->tqrepaintItem( item );
trackList->ensureItemVisible( item );
}
else {
return; // NULL pointer (cannot be)
}
- for( QValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
(*it)->setSelected( false );
- trackList->repaintItem( *it );
+ trackList->tqrepaintItem( *it );
}
if( item->itemAbove() == 0 ) {
@@ -366,20 +366,20 @@ void CDOpener::trackUpPressed()
void CDOpener::trackDownPressed()
{
- QListViewItem* item = selectedItems.last()->itemBelow();
+ TQListViewItem* item = selectedItems.last()->itemBelow();
if( item != 0 ) {
item->setSelected( true );
- trackList->repaintItem( item );
+ trackList->tqrepaintItem( item );
trackList->ensureItemVisible( item );
}
else {
return; // NULL pointer (cannot be)
}
- for( QValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
(*it)->setSelected( false );
- trackList->repaintItem( *it );
+ trackList->tqrepaintItem( *it );
}
pTrackUp->setEnabled( true );
@@ -399,7 +399,7 @@ void CDOpener::trackChanged()
// rebuild the list of the selected tracks
selectedTracks.clear();
selectedItems.clear();
- for( QListViewItem *item = trackList->firstChild(); item != NULL; item = item->nextSibling() ) {
+ for( TQListViewItem *item = trackList->firstChild(); item != NULL; item = item->nextSibling() ) {
i++;
if( item->isSelected() ) {
selectedTracks.append( i );
@@ -435,29 +435,29 @@ void CDOpener::trackChanged()
if( selectedItems.last()->itemBelow() != 0 ) pTrackDown->setEnabled( true );
else pTrackDown->setEnabled( false );
- QString trackListString = "";
+ TQString trackListString = "";
if( selectedTracks.count() == trackList->childCount() ) {
trackListString = i18n("All tracks");
}
else {
- trackListString = i18n("Tracks") + QString().sprintf(" %02i",selectedTracks.first());
- QValueList::Iterator track = selectedTracks.begin();
+ trackListString = i18n("Tracks") + TQString().sprintf(" %02i",selectedTracks.first());
+ TQValueList::Iterator track = selectedTracks.begin();
track++;
for( ; track != selectedTracks.end(); ++track ) {
- trackListString += QString().sprintf(", %02i",*track);
+ trackListString += TQString().sprintf(", %02i",*track);
}
}
tagGroupBox->setTitle( trackListString );
- QString title = cdManager->getTags( device, selectedTracks.first() )->title;
+ TQString title = cdManager->getTags( device, selectedTracks.first() )->title;
bool equalTitles = true;
- QString artist = cdManager->getTags( device, selectedTracks.first() )->artist;
+ TQString artist = cdManager->getTags( device, selectedTracks.first() )->artist;
bool equalArtists = true;
- QString composer = cdManager->getTags( device, selectedTracks.first() )->composer;
+ TQString composer = cdManager->getTags( device, selectedTracks.first() )->composer;
bool equalComposers = true;
- QString comment = cdManager->getTags( device, selectedTracks.first() )->comment;
+ TQString comment = cdManager->getTags( device, selectedTracks.first() )->comment;
bool equalComments = true;
- for( QValueList::Iterator track = selectedTracks.begin(); track != selectedTracks.end(); ++track ) {
+ for( TQValueList::Iterator track = selectedTracks.begin(); track != selectedTracks.end(); ++track ) {
TagData* tags = cdManager->getTags( device, *track );
if( title != tags->title ) equalTitles = false;
@@ -529,7 +529,7 @@ void CDOpener::trackChanged()
if( selectedItems.first()->itemBelow() != 0 ) pTrackDown->setEnabled( true );
else pTrackDown->setEnabled( false );
- tagGroupBox->setTitle( i18n("Track") + QString().sprintf(" %02i",selectedTracks.first()) );
+ tagGroupBox->setTitle( i18n("Track") + TQString().sprintf(" %02i",selectedTracks.first()) );
TagData* tags = cdManager->getTags( device, selectedTracks.first() );
lTrackTitle->setEnabled( true );
@@ -562,7 +562,7 @@ void CDOpener::trackChanged()
}
}
-void CDOpener::artistChanged( const QString& text )
+void CDOpener::artistChanged( const TQString& text )
{
if( text == i18n("Various Artists") ) {
trackList->adjustColumn( columnByName( i18n("Artist") ) );
@@ -574,7 +574,7 @@ void CDOpener::artistChanged( const QString& text )
trackChanged();
}
-void CDOpener::composerChanged( const QString& text )
+void CDOpener::composerChanged( const TQString& text )
{
if( text == i18n("Various Composer") ) {
trackList->adjustColumn( columnByName( i18n("Composer") ) );
@@ -586,40 +586,40 @@ void CDOpener::composerChanged( const QString& text )
trackChanged();
}
-void CDOpener::trackTitleChanged( const QString& text )
+void CDOpener::trackTitleChanged( const TQString& text )
{
if( !lTrackTitle->isEnabled() ) return;
- for( QValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
(*it)->setText( columnByName( i18n("Title") ), text );
}
- for( QValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
TagData* tags = cdManager->getTags( device, *it );
tags->title = text;
}
}
-void CDOpener::trackArtistChanged( const QString& text )
+void CDOpener::trackArtistChanged( const TQString& text )
{
if( !lTrackArtist->isEnabled() ) return;
- for( QValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
(*it)->setText( columnByName( i18n("Artist") ), text );
}
- for( QValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
TagData* tags = cdManager->getTags( device, *it );
tags->artist = text;
}
}
-void CDOpener::trackComposerChanged( const QString& text )
+void CDOpener::trackComposerChanged( const TQString& text )
{
if( !lTrackComposer->isEnabled() ) return;
- for( QValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedItems.begin(); it != selectedItems.end(); ++it ) {
(*it)->setText( columnByName( i18n("Composer") ), text );
}
- for( QValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
TagData* tags = cdManager->getTags( device, *it );
tags->composer = text;
}
@@ -627,11 +627,11 @@ void CDOpener::trackComposerChanged( const QString& text )
void CDOpener::trackCommentChanged()
{
- QString text = tTrackComment->text();
+ TQString text = tTrackComment->text();
if( !tTrackComment->isEnabled() ) return;
- for( QValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
TagData* tags = cdManager->getTags( device, *it );
tags->comment = text;
}
@@ -674,7 +674,7 @@ void CDOpener::addClicked( int index )
{
if( index == 0 )
{
- QValueList allTracks;
+ TQValueList allTracks;
// TODO save all options (album artist, disc, genre, etc.)
for( int it = 1; it <= cdManager->getTrackCount(device); ++it ) {
@@ -692,7 +692,7 @@ void CDOpener::addClicked( int index )
else if( index == 1 )
{
// TODO save all options (album artist, disc, genre, etc.)
- for( QValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
+ for( TQValueList::Iterator it = selectedTracks.begin(); it != selectedTracks.end(); ++it ) {
TagData* tags = cdManager->getTags( device, *it );
if( cArtist->currentText() != i18n("Various Artists") ) tags->artist = cArtist->currentText();
if( cComposer->currentText() != i18n("Various Composer") ) tags->composer = cComposer->currentText();
@@ -733,10 +733,10 @@ void CDOpener::addClicked( int index )
void CDOpener::saveCuesheetClicked()
{
- QString filename = KFileDialog::getSaveFileName( QDir::homeDirPath(), "*.cue" );
+ TQString filename = KFileDialog::getSaveFileName( TQDir::homeDirPath(), "*.cue" );
if( filename.isEmpty() ) return;
- QFile cueFile( filename );
+ TQFile cueFile( filename );
if( cueFile.exists() ) {
int ret = KMessageBox::questionYesNo( this,
i18n("A file with this name already exists.\n\nDo you want to overwrite the existing one?"),
@@ -745,7 +745,7 @@ void CDOpener::saveCuesheetClicked()
}
if( !cueFile.open( IO_WriteOnly ) ) return;
- QString content;
+ TQString content;
content.append( "TITLE \"" + lAlbum->text() + "\"\n" );
content.append( "PERFORMER \"" + cArtist->currentText() + "\"\n" );
@@ -753,25 +753,25 @@ void CDOpener::saveCuesheetClicked()
int INDEX = 0;
bool addFrames = false;
- QValueList tags = cdManager->getTrackList( device );
- for( QValueList::Iterator it = tags.begin(); it != tags.end(); ++it ) {
- content.append( QString().sprintf(" TRACK %02i AUDIO\n",(*it)->track ) );
+ TQValueList tags = cdManager->getTrackList( device );
+ for( TQValueList::Iterator it = tags.begin(); it != tags.end(); ++it ) {
+ content.append( TQString().sprintf(" TRACK %02i AUDIO\n",(*it)->track ) );
content.append( " TITLE \"" + (*it)->title + "\"\n" );
content.append( " PERFORMER \"" + (*it)->artist + "\"\n" );
if( addFrames ) {
- content.append( QString().sprintf(" INDEX 01 %02i:%02i:37\n",INDEX/60,INDEX%60) );
+ content.append( TQString().sprintf(" INDEX 01 %02i:%02i:37\n",INDEX/60,INDEX%60) );
INDEX++;
addFrames = false;
}
else {
- content.append( QString().sprintf(" INDEX 01 %02i:%02i:00\n",INDEX/60,INDEX%60) );
+ content.append( TQString().sprintf(" INDEX 01 %02i:%02i:00\n",INDEX/60,INDEX%60) );
addFrames = true;
}
INDEX += (*it)->length;
}
- QTextStream ts( &cueFile );
+ TQTextStream ts( &cueFile );
ts << content;
cueFile.close();
diff --git a/src/cdopener.h b/src/cdopener.h
index 09e941a..2730cd0 100755
--- a/src/cdopener.h
+++ b/src/cdopener.h
@@ -15,8 +15,8 @@ class KLineEdit;
class KComboBox;
class KIntSpinBox;
class KTextEdit;
-class QGroupBox;
-class QListViewItem;
+class TQGroupBox;
+class TQListViewItem;
/**
* @short Shows a dialog for selecting files from a CD
@@ -26,6 +26,7 @@ class QListViewItem;
class CDOpener : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
// enum Mode {
// all_tracks,
@@ -35,12 +36,12 @@ public:
/**
* Constructor
- * @param parent The parent widget
+ * @param tqparent The tqparent widget
* @param name The name of the file list
* @p modal Sets whether the dialog is modal or not
* @p f Some flags
*/
- CDOpener( Config*, CDManager*, TagEngine*, const QString &device, QWidget *parent = 0, const char *name = 0, /*Mode default_mode = all_tracks, const QString& default_text = "",*/ bool modal = true, WFlags f = 0 );
+ CDOpener( Config*, CDManager*, TagEngine*, const TQString &device, TQWidget *tqparent = 0, const char *name = 0, /*Mode default_mode = all_tracks, const TQString& default_text = "",*/ bool modal = true, WFlags f = 0 );
/**
* Destructor
@@ -71,7 +72,7 @@ private:
// KPushButton *pCDDB;
/** The groupbox shows the selected track numbers */
- QGroupBox *tagGroupBox;
+ TQGroupBox *tagGroupBox;
/** Set the focus of the tag editor to the track over it */
KPushButton *pTrackUp;
@@ -105,22 +106,22 @@ private:
TagEngine* tagEngine;
Config* config;
- QString device;
+ TQString device;
- QValueList selectedTracks;
- QValueList selectedItems;
+ TQValueList selectedTracks;
+ TQValueList selectedItems;
- int columnByName( const QString& name );
+ int columnByName( const TQString& name );
private slots:
void trackChanged();
void trackUpPressed();
void trackDownPressed();
- void artistChanged( const QString& text );
- void composerChanged( const QString& text );
- void trackTitleChanged( const QString& text );
- void trackArtistChanged( const QString& text );
- void trackComposerChanged( const QString& text );
+ void artistChanged( const TQString& text );
+ void composerChanged( const TQString& text );
+ void trackTitleChanged( const TQString& text );
+ void trackArtistChanged( const TQString& text );
+ void trackComposerChanged( const TQString& text );
void trackCommentChanged();
void editTrackTitleClicked();
void editTrackArtistClicked();
@@ -131,9 +132,9 @@ private slots:
void saveCuesheetClicked();
signals:
- void addTracks( const QString& device, QValueList );
- void addDisc( const QString& device );
- //void openCuesheetEditor( const QString& content );
+ void addTracks( const TQString& device, TQValueList );
+ void addDisc( const TQString& device );
+ //void openCuesheetEditor( const TQString& content );
};
#endif // CDOPENER_H
diff --git a/src/combobutton.cpp b/src/combobutton.cpp
index ff5d758..edf4780 100755
--- a/src/combobutton.cpp
+++ b/src/combobutton.cpp
@@ -1,32 +1,32 @@
#include "combobutton.h"
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include
-ComboButton::ComboButton( QWidget *parent, const char *name )
- : QWidget( parent, name )
+ComboButton::ComboButton( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
m_increaseHeight = 0;
- QGridLayout *grid = new QGridLayout( this, 1, 1 );
+ TQGridLayout *grid = new TQGridLayout( this, 1, 1 );
m_box = new KComboBox(this);
grid->addWidget(m_box,0,0);
- connect( m_box, SIGNAL(activated(int)),
- this, SLOT(boxActivated(int))
+ connect( m_box, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(boxActivated(int))
);
- m_button = new KPushButton( QString::null, this, "pushbutton" );
+ m_button = new KPushButton( TQString(), this, "pushbutton" );
grid->addWidget( m_button, 0, 0 );
- connect( m_button, SIGNAL(clicked()),
- this, SLOT(buttonClicked())
+ connect( m_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(buttonClicked())
);
m_sizeMode = Max;
@@ -43,17 +43,17 @@ void ComboButton::balanceSize()
int width;
if( m_sizeMode == Max )
- width = m_box->sizeHint().width()-17;
+ width = m_box->tqsizeHint().width()-17;
else
- width = m_button->sizeHint().width();
+ width = m_button->tqsizeHint().width();
- int height = ( m_box->sizeHint().height() > m_button->sizeHint().height() ) ? m_box->sizeHint().height() : m_button->sizeHint().height();
+ int height = ( m_box->tqsizeHint().height() > m_button->tqsizeHint().height() ) ? m_box->tqsizeHint().height() : m_button->tqsizeHint().height();
m_box->setFixedSize( width+17, height+m_increaseHeight );
m_button->setFixedSize( width, height+m_increaseHeight );
}
-void ComboButton::repaintButton()
+void ComboButton::tqrepaintButton()
{
m_button->setText( m_box->currentText() );
if(m_box->pixmap( m_box->currentItem()) )
@@ -61,16 +61,16 @@ void ComboButton::repaintButton()
balanceSize();
}
-void ComboButton::insertItem( const QString &text, int index )
+void ComboButton::insertItem( const TQString &text, int index )
{
m_box->insertItem( text, index );
- repaintButton();
+ tqrepaintButton();
}
-void ComboButton::insertItem( const QPixmap &pixmap, const QString &text, int index )
+void ComboButton::insertItem( const TQPixmap &pixmap, const TQString &text, int index )
{
m_box->insertItem( pixmap, text, index );
- repaintButton();
+ tqrepaintButton();
}
void ComboButton::increaseHeight( int height )
@@ -81,7 +81,7 @@ void ComboButton::increaseHeight( int height )
void ComboButton::boxActivated( int index )
{
- repaintButton();
+ tqrepaintButton();
emit clicked( index );
}
@@ -101,13 +101,13 @@ int ComboButton::sizeMode()
return m_sizeMode;
}
-void ComboButton::setFont( const QFont& font )
+void ComboButton::setFont( const TQFont& font )
{
m_button->setFont( font );
m_box->setFont( font );
}
-QFont ComboButton::font()
+TQFont ComboButton::font()
{
return m_button->font();
}
diff --git a/src/combobutton.h b/src/combobutton.h
index 3f07199..f7c0d41 100755
--- a/src/combobutton.h
+++ b/src/combobutton.h
@@ -3,10 +3,10 @@
#ifndef COMBOBUTTON_H
#define COMBOBUTTON_H
-#include
+#include
-class QString;
-class QPixmap;
+class TQString;
+class TQPixmap;
class KPushButton;
class KComboBox;
@@ -15,9 +15,10 @@ class KComboBox;
* @author Daniel Faust
* @version 0.3
*/
-class ComboButton : public QWidget
+class ComboButton : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
enum SizeMode {
Min, Max
@@ -25,10 +26,10 @@ public:
/**
* Constructor
- * @param parent The parent widget
+ * @param tqparent The tqparent widget
* @param name The name of the file list
*/
- ComboButton( QWidget *parent, const char *name = 0 );
+ ComboButton( TQWidget *tqparent, const char *name = 0 );
/**
* Destructor
@@ -38,11 +39,11 @@ public:
/**
* Insert a new item with @p text at position @p index
*/
- void insertItem( const QString &text, int index = -1 );
+ void insertItem( const TQString &text, int index = -1 );
/**
* Insert a new item with an icon @p pixmap and @p text at position @p index
*/
- void insertItem( const QPixmap &pixmap, const QString &text, int index = -1 );
+ void insertItem( const TQPixmap &pixmap, const TQString &text, int index = -1 );
/**
* Increase the combobutton's height by @p height
@@ -62,12 +63,12 @@ public:
/**
* Sets the font of the combobutton
*/
- void setFont( const QFont& font );
+ void setFont( const TQFont& font );
/**
* Returns the font of the button
*/
- QFont font();
+ TQFont font();
private:
/** A pointer to the button */
@@ -83,10 +84,10 @@ private:
/** Recalculate the size of the combobutton */
void balanceSize();
/** The button gets a new label, etc. */
- void repaintButton();
+ void tqrepaintButton();
//public slots:
- //void setCurrentItem(const QString &item, bool insert=false, int index=-1);
+ //void setCurrentItem(const TQString &item, bool insert=false, int index=-1);
//void setCurrentItem(int index);
private slots:
diff --git a/src/config.cpp b/src/config.cpp
index b8b1904..0c6995c 100755
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -6,8 +6,8 @@
#include "ripperpluginloader.h"
#include "options.h"
-#include
-#include
+#include
+#include
#include
#include
@@ -59,13 +59,13 @@ void Config::read()
readProfiles();
KConfig *conf = kapp->config();
- QStringList listDefaults;
+ TQStringList listDefaults;
int intDefault;
bool boolDefault;
- QString ripper;
- QString encoder;
- QString decoder;
- QString replaygain;
+ TQString ripper;
+ TQString encoder;
+ TQString decoder;
+ TQString replaygain;
int rank;
conf->setGroup( "General" ) ;
@@ -79,10 +79,10 @@ void Config::read()
conf->setGroup( "Backends" );
listDefaults.clear();
- QString datadir = locateLocal( "data", "soundkonverter/bin/" );
+ TQString datadir = locateLocal( "data", "soundkonverter/bin/" );
datadir.remove( datadir.length() - 1, 1 );
listDefaults.append( datadir );
- listDefaults.append( QDir::homeDirPath() + "/bin" );
+ listDefaults.append( TQDir::homeDirPath() + "/bin" );
listDefaults.append( "/usr/local/bin" );
listDefaults.append( "/usr/bin" );
data.environment.directories = conf->readListEntry( "directories", listDefaults );
@@ -102,10 +102,10 @@ void Config::read()
data.general.lastTab = conf->readNumEntry( "lastTab", 0 );
data.general.defaultProfile = conf->readEntry( "defaultProfile", i18n("Last used") );
data.general.defaultFormat = conf->readEntry( "defaultFormat", i18n("Last used") );
-// data.general.defaultOutputDirectory = conf->readEntry( "defaultOutputDirectory", QDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
- data.general.specifyOutputDirectory = conf->readEntry( "specifyOutputDirectory", QDir::homeDirPath() + "/soundKonverter" );
- data.general.metaDataOutputDirectory = conf->readEntry( "metaDataOutputDirectory", QDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
- data.general.copyStructureOutputDirectory = conf->readEntry( "copyStructureOutputDirectory", QDir::homeDirPath() + "/soundKonverter" );
+// data.general.defaultOutputDirectory = conf->readEntry( "defaultOutputDirectory", TQDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
+ data.general.specifyOutputDirectory = conf->readEntry( "specifyOutputDirectory", TQDir::homeDirPath() + "/soundKonverter" );
+ data.general.metaDataOutputDirectory = conf->readEntry( "metaDataOutputDirectory", TQDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
+ data.general.copyStructureOutputDirectory = conf->readEntry( "copyStructureOutputDirectory", TQDir::homeDirPath() + "/soundKonverter" );
data.general.useVFATNames = conf->readBoolEntry( "useVFATNames", true );
data.general.conflictHandling = conf->readNumEntry( "conflictHandling", 0 );
data.general.priority = conf->readNumEntry( "priority", 10 );
@@ -120,10 +120,10 @@ void Config::read()
conf->setGroup( "Environment" );
listDefaults.clear();
- QString datadir = locateLocal( "data", "soundkonverter/bin/" );
+ TQString datadir = locateLocal( "data", "soundkonverter/bin/" );
datadir.remove( datadir.length() - 1, 1 );
listDefaults.append( datadir );
- listDefaults.append( QDir::homeDirPath() + "/bin" );
+ listDefaults.append( TQDir::homeDirPath() + "/bin" );
listDefaults.append( "/usr/local/bin" );
listDefaults.append( "/usr/bin" );
data.environment.directories = conf->readListEntry( "directories", listDefaults );
@@ -136,7 +136,7 @@ void Config::read()
if( ripper == "kio_audiocd" ) rank = 10000;
else rank = 60; // kio_audiocd ranking
currentRipper = 0; // this is a valid ripper (kio_audiocd)
- for( QValueList::Iterator b = rippers.begin(); b != rippers.end(); ++b ) {
+ for( TQValueList::Iterator b = rippers.begin(); b != rippers.end(); ++b ) {
binaries[ (*b)->rip.bin ] = "";
if( (*b)->rip.rank > rank ) {
rank = (*b)->rip.rank;
@@ -148,30 +148,30 @@ void Config::read()
}
}
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
{
- for( QValueList::Iterator b = (*it).encoders.begin(); b != (*it).encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).encoders.begin(); b != (*it).encoders.end(); ++b ) {
binaries[ (*b)->enc.bin ] = "";
}
- for( QValueList::Iterator b = (*it).decoders.begin(); b != (*it).decoders.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).decoders.begin(); b != (*it).decoders.end(); ++b ) {
binaries[ (*b)->dec.bin ] = "";
}
- for( QValueList::Iterator b = (*it).replaygains.begin(); b != (*it).replaygains.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).replaygains.begin(); b != (*it).replaygains.end(); ++b ) {
binaries[ (*b)->replaygain.bin ] = "";
}
- for( QMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
- for( QStringList::Iterator c = data.environment.directories.begin(); c != data.environment.directories.end(); ++c )
+ for( TQMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
+ for( TQStringList::Iterator c = data.environment.directories.begin(); c != data.environment.directories.end(); ++c )
{
- if( b.data() == "" && QFile::exists((*c) + "/" + b.key()) ) {
+ if( b.data() == "" && TQFile::exists((*c) + "/" + b.key()) ) {
b.data() = (*c) + "/" + b.key();
}
}
}
- QStringList foundPrograms;
- for( QMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
+ TQStringList foundPrograms;
+ for( TQMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
if( b.data() != "" ) {
foundPrograms.append( b.data() );
}
@@ -184,7 +184,7 @@ void Config::read()
}
}
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
{
conf->setGroup( (*it).mime_types.first() );
encoder = conf->readEntry( "encoder" );
@@ -196,7 +196,7 @@ void Config::read()
(*it).replaygain = 0;
rank = 0;
- for( QValueList::Iterator b = (*it).encoders.begin(); b != (*it).encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).encoders.begin(); b != (*it).encoders.end(); ++b ) {
if( (*b)->enc.rank > rank && binaries[(*b)->enc.bin] != "" ) {
rank = (*b)->enc.rank;
(*it).encoder = (*b);
@@ -208,7 +208,7 @@ void Config::read()
}
rank = 0;
- for( QValueList::Iterator b = (*it).decoders.begin(); b != (*it).decoders.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).decoders.begin(); b != (*it).decoders.end(); ++b ) {
if( (*b)->dec.rank > rank && binaries[(*b)->dec.bin] != "" ) {
rank = (*b)->dec.rank;
(*it).decoder = (*b);
@@ -220,7 +220,7 @@ void Config::read()
}
rank = 0;
- for( QValueList::Iterator b = (*it).replaygains.begin(); b != (*it).replaygains.end(); ++b ) {
+ for( TQValueList::Iterator b = (*it).replaygains.begin(); b != (*it).replaygains.end(); ++b ) {
if( (*b)->replaygain.rank > rank && binaries[(*b)->replaygain.bin] != "" ) {
rank = (*b)->replaygain.rank;
(*it).replaygain = (*b);
@@ -259,7 +259,7 @@ void Config::read()
void Config::write( bool sync )
{
- QTime time;
+ TQTime time;
time.start();
writeProfiles();
@@ -271,7 +271,7 @@ void Config::write( bool sync )
conf->setGroup( "Ripper" );
conf->writeEntry( "ripper", (currentRipper)?currentRipper->rip.bin:"kio_audiocd" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it )
{
conf->setGroup( (*it).mime_types.first() );
if( (*it).encoder ) conf->writeEntry( "encoder", (*it).encoder->enc.bin );
@@ -306,7 +306,7 @@ void Config::write( bool sync )
conf->setGroup( "Environment" );
conf->writeEntry( "directories", data.environment.directories );
data.environment.foundPrograms.clear();
- for( QMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
+ for( TQMap::Iterator b = binaries.begin(); b != binaries.end(); ++b ) {
if( b.data() != "" ) {
data.environment.foundPrograms.append( b.data() );
}
@@ -317,24 +317,24 @@ void Config::write( bool sync )
emit configChanged();
- logger->log( 1000, "wrote preferences: " + QString::number(time.elapsed()) );
+ logger->log( 1000, "wrote preferences: " + TQString::number(time.elapsed()) );
}
void Config::readProfiles()
{
int version;
- QString name;
+ TQString name;
ConversionOptions options;
- QDomDocument domTree;
- QFile opmlFile( locateLocal("data","soundkonverter/profiles.xml") );
+ TQDomDocument domTree;
+ TQFile opmlFile( locateLocal("data","soundkonverter/profiles.xml") );
if( !opmlFile.open( IO_ReadOnly ) ) return;
if( !domTree.setContent( &opmlFile ) ) return;
opmlFile.close();
- QDomElement root = domTree.documentElement();
+ TQDomElement root = domTree.documentElement();
if( root.attribute("type") != "profiles" ) return;
- QDomNode node, sub1Node, sub2Node;
+ TQDomNode node, sub1Node, sub2Node;
node = root.firstChild();
while( !node.isNull() ) {
@@ -403,20 +403,20 @@ void Config::readProfiles()
void Config::writeProfiles()
{
- QDomDocument domTree;
- QDomElement root = domTree.createElement( "soundkonverter" );
+ TQDomDocument domTree;
+ TQDomElement root = domTree.createElement( "soundkonverter" );
root.setAttribute( "type", "profiles" );
domTree.appendChild( root );
- QDomElement info = domTree.createElement( "info" );
+ TQDomElement info = domTree.createElement( "info" );
info.setAttribute( "version", "300" );
root.appendChild( info );
- for( QValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
- QDomElement profile = domTree.createElement( "profile" );
+ for( TQValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
+ TQDomElement profile = domTree.createElement( "profile" );
profile.setAttribute( "name", (*it).name );
- QDomElement encodingOptions = domTree.createElement( "encodingOptions" );
+ TQDomElement encodingOptions = domTree.createElement( "encodingOptions" );
encodingOptions.setAttribute( "sFormat", (*it).options.encodingOptions.sFormat );
encodingOptions.setAttribute( "sQualityMode", (*it).options.encodingOptions.sQualityMode );
@@ -426,21 +426,21 @@ void Config::writeProfiles()
encodingOptions.setAttribute( "iMinBitrate", (*it).options.encodingOptions.iMinBitrate );
encodingOptions.setAttribute( "iMaxBitrate", (*it).options.encodingOptions.iMaxBitrate );
- QDomElement samplingRate = domTree.createElement( "samplingRate" );
+ TQDomElement samplingRate = domTree.createElement( "samplingRate" );
samplingRate.setAttribute( "bEnabled", (*it).options.encodingOptions.samplingRate.bEnabled );
samplingRate.setAttribute( "iSamplingRate", (*it).options.encodingOptions.samplingRate.iSamplingRate );
encodingOptions.appendChild( samplingRate );
- QDomElement channels = domTree.createElement( "channels" );
+ TQDomElement channels = domTree.createElement( "channels" );
channels.setAttribute( "bEnabled", (*it).options.encodingOptions.channels.bEnabled );
channels.setAttribute( "sChannels", (*it).options.encodingOptions.channels.sChannels );
encodingOptions.appendChild( channels );
- QDomElement replaygain = domTree.createElement( "replaygain" );
+ TQDomElement replaygain = domTree.createElement( "replaygain" );
replaygain.setAttribute( "bEnabled", (*it).options.encodingOptions.replaygain.bEnabled );
@@ -450,7 +450,7 @@ void Config::writeProfiles()
profile.appendChild( encodingOptions );
- QDomElement outputOptions = domTree.createElement( "outputOptions" );
+ TQDomElement outputOptions = domTree.createElement( "outputOptions" );
outputOptions.setAttribute( "mode", int((*it).options.outputOptions.mode) );
outputOptions.setAttribute( "directory", (*it).options.outputOptions.directory );
@@ -460,10 +460,10 @@ void Config::writeProfiles()
root.appendChild( profile );
}
- QFile opmlFile( locateLocal("data","soundkonverter/profiles.xml") );
+ TQFile opmlFile( locateLocal("data","soundkonverter/profiles.xml") );
if( !opmlFile.open( IO_WriteOnly ) ) return;
- QTextStream ts( &opmlFile );
+ TQTextStream ts( &opmlFile );
ts << domTree.toString();
opmlFile.close();
@@ -472,24 +472,24 @@ void Config::writeProfiles()
void Config::writeServiceMenu()
{
int num;
- QString content;
- QFile file;
+ TQString content;
+ TQFile file;
num = 0;
content = "";
content += "[Desktop Entry]\n";
content += "ServiceTypes=";
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
// if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
// if( !(*it).encoder->enc.lossy.enabled && !(*it).encoder->enc.lossless.enabled && !(*it).encoder->enc.hybrid.enabled ) continue;
-// for( QStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
+// for( TQStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
// content += (*b) + ",";
// num++;
// }
// }
if( (*it).decoder != 0 && binaries[(*it).decoder->dec.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
- for( QStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
+ for( TQStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
content += (*b) + ",";
num++;
}
@@ -511,7 +511,7 @@ void Config::writeServiceMenu()
file.setName( locateLocal("data","konqueror/servicemenus/")+"convert_with_soundkonverter.desktop" );
if ( file.open( IO_WriteOnly ) ) {
- QTextStream stream( &file );
+ TQTextStream stream( &file );
stream << content;
file.close();
}
@@ -522,9 +522,9 @@ void Config::writeServiceMenu()
content += "[Desktop Entry]\n";
content += "ServiceTypes=";
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
if( (*it).replaygain != 0 && binaries[(*it).replaygain->replaygain.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
- for( QStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
+ for( TQStringList::Iterator b = (*it).mime_types.begin(); b != (*it).mime_types.end(); ++b ) {
content += (*b) + ",";
num++;
}
@@ -546,7 +546,7 @@ void Config::writeServiceMenu()
file.setName( locateLocal("data","konqueror/servicemenus/")+"add_replaygain_with_soundkonverter.desktop" );
if( file.open(IO_WriteOnly) ) {
- QTextStream st( &file );
+ TQTextStream st( &file );
st << content;
file.close();
}
@@ -556,8 +556,8 @@ void Config::writeServiceMenu()
void Config::writeAmarokScript()
{
int num, num1, num2;
- QString content, content1, content2;
- QFile file;
+ TQString content, content1, content2;
+ TQFile file;
num = 0;
content = "";
@@ -566,11 +566,11 @@ void Config::writeAmarokScript()
content += "[Transcode]\n";
content += "target_formats = ";
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
if( !(*it).encoder->enc.lossy.enabled && !(*it).encoder->enc.lossless.enabled && !(*it).encoder->enc.hybrid.enabled ) continue;
- for( QStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
- if( content.find(" "+(*b).lower()+" ") == -1 ) content += (*b).lower() + " ";
+ for( TQStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
+ if( content.tqfind(" "+(*b).lower()+" ") == -1 ) content += (*b).lower() + " ";
num++;
}
}
@@ -583,7 +583,7 @@ void Config::writeAmarokScript()
file.setName( locateLocal("data","amarok/scripts/soundKonverter/")+"soundKonverter.spec" );
if( file.open(IO_WriteOnly) ) {
- QTextStream st( &file );
+ TQTextStream st( &file );
st << content;
file.close();
}
@@ -593,17 +593,17 @@ void Config::writeAmarokScript()
content = content1 = content2 = "";
// NOTE duplicate entries won't be shown to the user at any time, so they aren't filtered
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
if( (*it).encoder->enc.lossless.enabled ) {
- for( QStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
- if( content1.find(","+(*b).lower()+",") == -1 ) content1 += (*b).lower() + ","; // NOTE the first entry will be shown twice
+ for( TQStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
+ if( content1.tqfind(","+(*b).lower()+",") == -1 ) content1 += (*b).lower() + ","; // NOTE the first entry will be shown twice
num1++;
}
}
if( (*it).encoder->enc.hybrid.enabled ) {
- for( QStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
- if( content2.find(","+(*b).lower()+",") == -1 ) content2 += (*b).lower() + ","; // NOTE the first entry will be shown twice
+ for( TQStringList::Iterator b = (*it).extensions.begin(); b != (*it).extensions.end(); ++b ) {
+ if( content2.tqfind(","+(*b).lower()+",") == -1 ) content2 += (*b).lower() + ","; // NOTE the first entry will be shown twice
num2++;
}
}
@@ -632,17 +632,17 @@ void Config::writeAmarokScript()
{
file.setName( locateLocal("data","amarok/scripts/soundKonverter/")+"formats" );
if( file.open(IO_WriteOnly) ) {
- QTextStream st( &file );
+ TQTextStream st( &file );
st << content;
file.close();
}
}
KStandardDirs* stdDirs = new KStandardDirs();
- if( !QFile::exists(locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb")) ) {
+ if( !TQFile::exists(locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb")) ) {
KIO::NetAccess::file_copy( stdDirs->findResource("data","soundkonverter/amarokscript/soundKonverter.rb"), locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb"), 0755, true );
}
- if( !QFile::exists(locateLocal("data","amarok/scripts/soundKonverter/README")) ) {
+ if( !TQFile::exists(locateLocal("data","amarok/scripts/soundKonverter/README")) ) {
KIO::NetAccess::file_copy( stdDirs->findResource("data","soundkonverter/amarokscript/README"), locateLocal("data","amarok/scripts/soundKonverter/README"), -1, true );
}
delete stdDirs;
@@ -657,15 +657,15 @@ void Config::loadPlugins()
//kdDebug() << "entering: `" << "Config::loadPlugins()" << "'" << endl;
logger->log( 1000, "entering: `Config::loadPlugins()'" );
- QStringList list;
- QDir dir;
- QString correction_file_mime_type;
+ TQStringList list;
+ TQDir dir;
+ TQString correction_file_mime_type;
/** a map that holds the _identifier_ and the _version_ number of all plugins */
- QMap pluginMap;
+ TQMap pluginMap;
int version;
- QString identifier;
+ TQString identifier;
int i;
ConvertPluginLoader* convertPluginLoader = new ConvertPluginLoader();
@@ -673,29 +673,29 @@ void Config::loadPlugins()
RipperPluginLoader* ripperPluginLoader = new RipperPluginLoader();
KStandardDirs stddir;
- QStringList directories = stddir.findDirs( "data", "soundkonverter/plugins/" );
- for( QStringList::Iterator a = directories.begin(); a != directories.end(); ++a )
+ TQStringList directories = stddir.findDirs( "data", "soundkonverter/plugins/" );
+ for( TQStringList::Iterator a = directories.begin(); a != directories.end(); ++a )
{
//kdDebug() << " searching directory: `" << *a << "'" << endl;
logger->log( 1000, " searching directory: `" + *a + "'" );
dir.setPath( *a );
- list = dir.entryList( "*", QDir::All, QDir::Name );
- for( QStringList::Iterator b = list.begin(); b != list.end(); ++b )
+ list = dir.entryList( "*", TQDir::All, TQDir::Name );
+ for( TQStringList::Iterator b = list.begin(); b != list.end(); ++b )
{
if( *b != "." && *b != ".." && (*b).right(19) == ".soundkonverter.xml" )
{
//kdDebug() << " found file: `" << *b << "'" << endl;
logger->log( 1000, " found file: `" + *b + "'" );
- if( convertPluginLoader->verifyFile( QString(*a).append(*b) ) != -1 )
+ if( convertPluginLoader->verifyFile( TQString(*a).append(*b) ) != -1 )
{
- version = convertPluginLoader->verifyFile( QString(*a).append(*b) );
+ version = convertPluginLoader->verifyFile( TQString(*a).append(*b) );
identifier = *b;
identifier.remove( identifier.length() - 19, 19 );
- i = identifier.findRev( "-" );
+ i = identifier.tqfindRev( "-" );
identifier.remove( i, identifier.length() - i );
-// i = identifier.find( "." );
+// i = identifier.tqfind( "." );
// identifier.remove( 0, i + 1 );
- if( !pluginMap.contains(identifier) ) {
+ if( !pluginMap.tqcontains(identifier) ) {
PluginMapData data;
data.version = 0;
pluginMap.insert( identifier, data );
@@ -703,21 +703,21 @@ void Config::loadPlugins()
if( pluginMap[identifier].version < version )
{
pluginMap[identifier].version = version;
- pluginMap[identifier].filename = QString(*a).append(*b);
+ pluginMap[identifier].filename = TQString(*a).append(*b);
pluginMap[identifier].type = "converter";
logger->log( 1000, " updating version for: `" + identifier + "'" );
}
}
- else if( replaygainPluginLoader->verifyFile( QString(*a).append(*b) ) != -1 )
+ else if( replaygainPluginLoader->verifyFile( TQString(*a).append(*b) ) != -1 )
{
- version = replaygainPluginLoader->verifyFile( QString(*a).append(*b) );
+ version = replaygainPluginLoader->verifyFile( TQString(*a).append(*b) );
identifier = *b;
identifier.remove( identifier.length() - 19, 19 );
- i = identifier.findRev( "-" );
+ i = identifier.tqfindRev( "-" );
identifier.remove( i, identifier.length() - i );
-// i = identifier.find( "." );
+// i = identifier.tqfind( "." );
// identifier.remove( 0, i + 1 );
- if( !pluginMap.contains(identifier) ) {
+ if( !pluginMap.tqcontains(identifier) ) {
PluginMapData data;
data.version = 0;
pluginMap.insert( identifier, data );
@@ -725,21 +725,21 @@ void Config::loadPlugins()
if( pluginMap[identifier].version < version )
{
pluginMap[identifier].version = version;
- pluginMap[identifier].filename = QString(*a).append(*b);
+ pluginMap[identifier].filename = TQString(*a).append(*b);
pluginMap[identifier].type = "replaygain";
logger->log( 1000, " updating version for: `" + identifier + "'" );
}
}
- else if( ripperPluginLoader->verifyFile( QString(*a).append(*b) ) != -1 )
+ else if( ripperPluginLoader->verifyFile( TQString(*a).append(*b) ) != -1 )
{
- version = ripperPluginLoader->verifyFile( QString(*a).append(*b) );
+ version = ripperPluginLoader->verifyFile( TQString(*a).append(*b) );
identifier = *b;
identifier.remove( identifier.length() - 19, 19 );
- i = identifier.findRev( "-" );
+ i = identifier.tqfindRev( "-" );
identifier.remove( i, identifier.length() - i );
-// i = identifier.find( "." );
+// i = identifier.tqfind( "." );
// identifier.remove( 0, i + 1 );
- if( !pluginMap.contains(identifier) ) {
+ if( !pluginMap.tqcontains(identifier) ) {
PluginMapData data;
data.version = 0;
pluginMap.insert( identifier, data );
@@ -747,7 +747,7 @@ void Config::loadPlugins()
if( pluginMap[identifier].version < version )
{
pluginMap[identifier].version = version;
- pluginMap[identifier].filename = QString(*a).append(*b);
+ pluginMap[identifier].filename = TQString(*a).append(*b);
pluginMap[identifier].type = "ripper";
logger->log( 1000, " updating version for: `" + identifier + "'" );
}
@@ -761,7 +761,7 @@ void Config::loadPlugins()
}
}
- for( QMap::Iterator a = pluginMap.begin(); a != pluginMap.end(); ++a ) {
+ for( TQMap::Iterator a = pluginMap.begin(); a != pluginMap.end(); ++a ) {
if( a.data().type == "converter" )
{
ConvertPlugin* plugin = convertPluginLoader->loadFile( a.data().filename );
@@ -773,7 +773,7 @@ void Config::loadPlugins()
}
if( plugin->enc.enabled )
{
- for( QStringList::Iterator b = plugin->enc.mime_types.begin(); b != plugin->enc.mime_types.end(); ++b )
+ for( TQStringList::Iterator b = plugin->enc.mime_types.begin(); b != plugin->enc.mime_types.end(); ++b )
{
//kdDebug() << " registering encoder for: `" << *b << "'" << endl;
logger->log( 1000, " registering encoder for: `" + *b + "'" );
@@ -782,7 +782,7 @@ void Config::loadPlugins()
}
if( plugin->dec.enabled )
{
- for( QStringList::Iterator b = plugin->dec.mime_types.begin(); b != plugin->dec.mime_types.end(); ++b )
+ for( TQStringList::Iterator b = plugin->dec.mime_types.begin(); b != plugin->dec.mime_types.end(); ++b )
{
//kdDebug() << " registering decoder for: `" << *b << "'" << endl;
logger->log( 1000, " registering decoder for: `" + *b + "'" );
@@ -804,7 +804,7 @@ void Config::loadPlugins()
ReplayGainPlugin* plugin = replaygainPluginLoader->loadFile( a.data().filename );
if( plugin->info.version != -1 )
{
- for( QStringList::Iterator b = plugin->replaygain.mime_types.begin(); b != plugin->replaygain.mime_types.end(); ++b )
+ for( TQStringList::Iterator b = plugin->replaygain.mime_types.begin(); b != plugin->replaygain.mime_types.end(); ++b )
{
//kdDebug() << " registering replaygain for: `" << *b << "'" << endl;
logger->log( 1000, " registering replaygain for: `" + *b + "'" );
@@ -852,36 +852,36 @@ void Config::loadPlugins()
// directories = stddir.findDirs( "data", "soundkonverter/format_infos/"+language+"/" );
// if( directories.isEmpty() ) directories = stddir.findDirs( "data", "soundkonverter/format_infos/en/" );
directories = stddir.findDirs( "data", "soundkonverter/format_infos/" );
- for( QStringList::Iterator a = directories.begin(); a != directories.end(); ++a )
+ for( TQStringList::Iterator a = directories.begin(); a != directories.end(); ++a )
{
//kdDebug() << " searching directory: `" << *a << "'" << endl;
logger->log( 1000, " searching directory: `" + *a + "'" );
dir.setPath( *a );
- list = dir.entryList( "*", QDir::All, QDir::Name );
- for( QStringList::Iterator b = list.begin(); b != list.end(); ++b )
+ list = dir.entryList( "*", TQDir::All, TQDir::Name );
+ for( TQStringList::Iterator b = list.begin(); b != list.end(); ++b )
{
if( *b != "." && *b != ".." && (*b).right(4) == ".xml" )
{
//kdDebug() << " found file: `" << *b << "'" << endl;
logger->log( 1000, " found file: `" + *b + "'" );
- if( formatInfoLoader->verifyFile( QString(*a).append(*b) ) )
+ if( formatInfoLoader->verifyFile( TQString(*a).append(*b) ) )
{
- FormatInfo* formatInfo = formatInfoLoader->loadFile( QString(*a).append(*b) );
+ FormatInfo* formatInfo = formatInfoLoader->loadFile( TQString(*a).append(*b) );
- for( QValueList::Iterator c = formats.begin(); c != formats.end(); ++c ) {
- for( QStringList::Iterator d = formatInfo->mime_types.begin(); d != formatInfo->mime_types.end(); ++d ) {
- if( (*c).mime_types.findIndex(*d) != -1 ) {
+ for( TQValueList::Iterator c = formats.begin(); c != formats.end(); ++c ) {
+ for( TQStringList::Iterator d = formatInfo->mime_types.begin(); d != formatInfo->mime_types.end(); ++d ) {
+ if( (*c).mime_types.tqfindIndex(*d) != -1 ) {
(*c).description = "" + formatInfo->description + "
";
- (*c).description.replace("\\n","
\n");
- for( QStringList::Iterator d = formatInfo->urls.begin(); d != formatInfo->urls.end(); ++d ) {
+ (*c).description.tqreplace("\\n","
\n");
+ for( TQStringList::Iterator d = formatInfo->urls.begin(); d != formatInfo->urls.end(); ++d ) {
(*c).description += "\n
" + (*d) + "
";
}
(*c).compressionType = formatInfo->compressionType;
(*c).size = formatInfo->size;
// add extensions for mime types
logger->log( 1000, " found mime type: `" + *d + "'" );
- QStringList extensions = KMimeType::mimeType( *d )->patterns();
- for( QStringList::Iterator c = extensions.begin(); c != extensions.end(); ++c ) {
+ TQStringList extensions = KMimeType::mimeType( *d )->patterns();
+ for( TQStringList::Iterator c = extensions.begin(); c != extensions.end(); ++c ) {
(*c).remove( 0, 2 );
logger->log( 1000, " adding extension: `" + *c + "'" );
}
@@ -890,16 +890,16 @@ void Config::loadPlugins()
extensions = formatInfo->extensions;
if( !extensions.isEmpty() ) {
logger->log( 1000, " found extensions..." );
- for( QStringList::Iterator c = extensions.begin(); c != extensions.end(); ++c ) {
+ for( TQStringList::Iterator c = extensions.begin(); c != extensions.end(); ++c ) {
logger->log( 1000, " adding extension: `" + *c + "'" );
}
(*c).extensions += extensions;
}
// add extensions for correction file mime types
- for( QStringList::Iterator d = (*c).correction_file_mime_types.begin(); d != (*c).correction_file_mime_types.end(); ++d ) {
+ for( TQStringList::Iterator d = (*c).correction_file_mime_types.begin(); d != (*c).correction_file_mime_types.end(); ++d ) {
logger->log( 1000, " found correction mime type: `" + *d + "'" );
- QStringList extensions = KMimeType::mimeType( *d )->patterns();
- for( QStringList::Iterator e = extensions.begin(); e != extensions.end(); ++e ) {
+ TQStringList extensions = KMimeType::mimeType( *d )->patterns();
+ for( TQStringList::Iterator e = extensions.begin(); e != extensions.end(); ++e ) {
(*e).remove( 0, 2 );
logger->log( 1000, " adding correction extension: `" + *e + "'" );
(*c).correction_file_extensions += (*e);
@@ -916,17 +916,17 @@ void Config::loadPlugins()
delete formatInfoLoader;
}
-void Config::registerFormatFeatures( const QString &mime_type,
+void Config::registerFormatFeatures( const TQString &mime_type,
ConvertPlugin* encoder, ConvertPlugin* decoder,
ReplayGainPlugin* replaygain/*, RepairPlugin* repairer*/,
- const QString &correction_file_mime_type )
+ const TQString &correction_file_mime_type )
{
//kdDebug() << " entering: `" << "Config::registerFormatFeatures( ... )" << "'" << endl;
logger->log( 1000, " entering: `Config::registerFormatFeatures( ... )'" );
// iterate through all file formats and search for an existing one
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(mime_type) != -1 ) { // we found an existing entry for our file format
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(mime_type) != -1 ) { // we found an existing entry for our file format
//kdDebug() << " found an existing entry: `" << mime_type << "'" << endl;
logger->log( 1000, " found an existing entry: `" + mime_type + "'" );
@@ -948,7 +948,7 @@ void Config::registerFormatFeatures( const QString &mime_type,
logger->log( 1000, " creating a new entry: `" + mime_type + "'" );
// well it seems, we haven't found an entry. create a new!
- QValueList::Iterator newItem = formats.append( FormatItem() );
+ TQValueList::Iterator newItem = formats.append( FormatItem() );
(*newItem).mime_types = mime_type;
if( encoder != 0 ) (*newItem).encoders.append( encoder );
// if( encoder != 0 ) (*newItem).encoder = encoder;
@@ -961,10 +961,10 @@ void Config::registerFormatFeatures( const QString &mime_type,
}
-/*void Config::registerFileFormat( const QString &mime_type, const QString &option, const QString &value )
+/*void Config::registerFileFormat( const TQString &mime_type, const TQString &option, const TQString &value )
{
// iterate through all file formats and search for an existing one
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
if( (*it).mime_types.findIndex(mime_type) != -1 ) { // we found an existing entry for our file format
if( option == "mime_type" ) (*it).mime_types.append( value );
//else if( option == "description" ) // TODO implement a qmap ?!
@@ -981,7 +981,7 @@ void Config::registerFormatFeatures( const QString &mime_type,
}
// well it seems, we haven't found an entry. create a new!
- QValueList::Iterator newItem = formats.append( FormatItem() );
+ TQValueList::Iterator newItem = formats.append( FormatItem() );
if( option == "mime_type" ) (*newItem).mime_types.append( value );
//else if( option == "description" ) // TODO implement a qmap ?!
else if( option == "size" ) (*newItem).size = value.toInt();
@@ -992,11 +992,11 @@ void Config::registerFormatFeatures( const QString &mime_type,
}
}*/
-ConvertPlugin* Config::encoderForFormat( const QString &format )
+ConvertPlugin* Config::encoderForFormat( const TQString &format )
{
// iterate through all file formats and search for our format in mime_types and extensions
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return (*it).encoder;
}
}
@@ -1004,11 +1004,11 @@ ConvertPlugin* Config::encoderForFormat( const QString &format )
return 0;
}
-ConvertPlugin* Config::decoderForFormat( const QString &format )
+ConvertPlugin* Config::decoderForFormat( const TQString &format )
{
// iterate through all file formats and search for our format in mime_types and extensions
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return (*it).decoder;
}
}
@@ -1016,11 +1016,11 @@ ConvertPlugin* Config::decoderForFormat( const QString &format )
return 0;
}
-ReplayGainPlugin* Config::replaygainForFormat( const QString &format )
+ReplayGainPlugin* Config::replaygainForFormat( const TQString &format )
{
// iterate through all file formats and search for our format in mime_types and extensions
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return (*it).replaygain;
}
}
@@ -1028,11 +1028,11 @@ ReplayGainPlugin* Config::replaygainForFormat( const QString &format )
return 0;
}
-FormatItem* Config::getFormatItem( const QString &format )
+FormatItem* Config::getFormatItem( const TQString &format )
{
// iterate through all file formats and search for our format in mime_types and extensions
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return &(*it);
}
}
@@ -1042,23 +1042,23 @@ FormatItem* Config::getFormatItem( const QString &format )
// NOTE speed up the following 3 functions (cache the data) (use the extensions variable in FormatItem)
// NOTE seems to be called too often ???
-QStringList Config::allFormats()
+TQStringList Config::allFormats()
{
- QStringList list;
+ TQStringList list;
//kdDebug() << "entering: `" << "Config::allFormats()" << "'" << endl;
logger->log( 1000, "entering: `Config::allFormats()'" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
//kdDebug() << " mime type: `" << (*it).mime_types.first() << "'" << endl;
logger->log( 1000, " mime type: `" + (*it).mime_types.first() + "'" );
if( (*it).mime_types.first() != "application/octet-stream" ) {
-// QString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
+// TQString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
// extension.remove( 0, 2 );
- QString extension = (*it).extensions.first().lower();
+ TQString extension = (*it).extensions.first().lower();
//kdDebug() << " extension: `" << extension << "'" << endl;
logger->log( 1000, " extension: `" + extension + "'" );
- if( !extension.isEmpty() && !list.contains(extension) ) {
+ if( !extension.isEmpty() && !list.tqcontains(extension) ) {
list.append( extension );
//kdDebug() << " (added)" << endl;
logger->log( 1000, " (added)" );
@@ -1069,24 +1069,24 @@ QStringList Config::allFormats()
return list;
}
-QStringList Config::allEncodableFormats()
+TQStringList Config::allEncodableFormats()
{
- QStringList list;
+ TQStringList list;
//kdDebug() << "entering: `" << "Config::allEncodableFormats()" << "'" << endl;
logger->log( 1000, "entering: `Config::allEncodableFormats()'" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
//kdDebug() << " mime type: `" << (*it).mime_types.first() << "'" << endl;
logger->log( 1000, " mime type: `" + (*it).mime_types.first() + "'" );
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).mime_types.first() != "application/octet-stream" ) {
if( !(*it).encoder->enc.lossy.enabled && !(*it).encoder->enc.lossless.enabled && !(*it).encoder->enc.hybrid.enabled ) continue;
-// QString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
+// TQString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
// extension.remove( 0, 2 );
- QString extension = (*it).extensions.first().lower();
+ TQString extension = (*it).extensions.first().lower();
//kdDebug() << " extension: `" << extension << "'" << endl;
logger->log( 1000, " extension: `" + extension + "'" );
- if( !extension.isEmpty() && !list.contains(extension) ) {
+ if( !extension.isEmpty() && !list.tqcontains(extension) ) {
list.append( extension );
//kdDebug() << " (added)" << endl;
logger->log( 1000, " (added)" );
@@ -1097,23 +1097,23 @@ QStringList Config::allEncodableFormats()
return list;
}
-QStringList Config::allLossyEncodableFormats()
+TQStringList Config::allLossyEncodableFormats()
{
- QStringList list;
+ TQStringList list;
//kdDebug() << "entering: `" << "Config::allLossyEncodableFormats()" << "'" << endl;
// logger->log( 1000, "entering: `Config::allLossyEncodableFormats()'" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
//kdDebug() << " mime type: `" << (*it).mime_types.first() << "'" << endl;
// logger->log( 1000, " mime type: `" + (*it).mime_types.first() + "'" );
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).encoder->enc.lossy.enabled && (*it).compressionType & FormatInfo::lossy && (*it).mime_types.first() != "application/octet-stream" ) {
-// QString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
+// TQString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
// extension.remove( 0, 2 );
- QString extension = (*it).extensions.first().lower();
+ TQString extension = (*it).extensions.first().lower();
//kdDebug() << " extension: `" << extension << "'" << endl;
// logger->log( 1000, " extension: `" + extension + "'" );
- if( !extension.isEmpty() && !list.contains(extension) ) {
+ if( !extension.isEmpty() && !list.tqcontains(extension) ) {
list.append( extension );
//kdDebug() << " (added)" << endl;
// logger->log( 1000, " (added)" );
@@ -1124,23 +1124,23 @@ QStringList Config::allLossyEncodableFormats()
return list;
}
-QStringList Config::allLosslessEncodableFormats()
+TQStringList Config::allLosslessEncodableFormats()
{
- QStringList list;
+ TQStringList list;
//kdDebug() << "entering: `" << "Config::allLosslessEncodableFormats()" << "'" << endl;
logger->log( 1000, "entering: `Config::allLosslessEncodableFormats()'" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
//kdDebug() << " mime type: `" << (*it).mime_types.first() << "'" << endl;
logger->log( 1000, " mime type: `" + (*it).mime_types.first() + "'" );
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).encoder->enc.lossless.enabled && (*it).compressionType & FormatInfo::lossless && (*it).mime_types.first() != "application/octet-stream" ) {
-// QString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
+// TQString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
// extension.remove( 0, 2 );
- QString extension = (*it).extensions.first().lower();
+ TQString extension = (*it).extensions.first().lower();
//kdDebug() << " extension: `" << extension << "'" << endl;
logger->log( 1000, " extension: `" + extension + "'" );
- if( !extension.isEmpty() && !list.contains(extension) ) {
+ if( !extension.isEmpty() && !list.tqcontains(extension) ) {
list.append( extension );
//kdDebug() << " (added)" << endl;
logger->log( 1000, " (added)" );
@@ -1151,23 +1151,23 @@ QStringList Config::allLosslessEncodableFormats()
return list;
}
-QStringList Config::allHybridEncodableFormats()
+TQStringList Config::allHybridEncodableFormats()
{
- QStringList list;
+ TQStringList list;
//kdDebug() << "entering: `" << "Config::allHybridEncodableFormats()" << "'" << endl;
logger->log( 1000, "entering: `Config::allHybridEncodableFormats()'" );
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
//kdDebug() << " mime type: `" << (*it).mime_types.first() << "'" << endl;
logger->log( 1000, " mime type: `" + (*it).mime_types.first() + "'" );
if( (*it).encoder != 0 && binaries[(*it).encoder->enc.bin] != "" && (*it).encoder->enc.hybrid.enabled && (*it).compressionType & FormatInfo::hybrid && (*it).mime_types.first() != "application/octet-stream" ) {
-// QString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
+// TQString extension = KMimeType::mimeType( (*it).mime_types.first() )->patterns().first().lower();
// extension.remove( 0, 2 );
- QString extension = (*it).extensions.first().lower();
+ TQString extension = (*it).extensions.first().lower();
//kdDebug() << " extension: `" << extension << "'" << endl;
logger->log( 1000, " extension: `" + extension + "'" );
- if( !extension.isEmpty() && !list.contains(extension) ) {
+ if( !extension.isEmpty() && !list.tqcontains(extension) ) {
list.append( extension );
//kdDebug() << " (added)" << endl;
logger->log( 1000, " (added)" );
@@ -1178,11 +1178,11 @@ QStringList Config::allHybridEncodableFormats()
return list;
}
-QString Config::getCorrectionExtension( const QString &format )
+TQString Config::getCorrectionExtension( const TQString &format )
{
// iterate through all file formats and search for our format
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return (*it).correction_file_extensions.first();
}
}
@@ -1190,11 +1190,11 @@ QString Config::getCorrectionExtension( const QString &format )
return "";
}
-QString Config::getFormatDescription( const QString &format ) // NOTE could be removed
+TQString Config::getFormatDescription( const TQString &format ) // NOTE could be removed
{
// iterate through all file formats and search for our format
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
return (*it).description;
}
}
@@ -1202,7 +1202,7 @@ QString Config::getFormatDescription( const QString &format ) // NOTE could be r
return "";
}
-void Config::addProfile( const QString &name, const ConversionOptions& profile )
+void Config::addProfile( const TQString &name, const ConversionOptions& profile )
{
ProfileData profileData;
profileData.name = name;
@@ -1212,9 +1212,9 @@ void Config::addProfile( const QString &name, const ConversionOptions& profile )
emit configChanged();
}
-void Config::removeProfile( const QString &name )
+void Config::removeProfile( const TQString &name )
{
- for( QValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
+ for( TQValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
if( (*it).name == name ) {
profiles.remove( it );
if( name != i18n("Last used") && name != "Last used" ) writeProfiles(); // will only be saved at app exit, when saving everything anyway
@@ -1224,9 +1224,9 @@ void Config::removeProfile( const QString &name )
emit configChanged();
}
-ConversionOptions Config::getProfile( const QString &name )
+ConversionOptions Config::getProfile( const TQString &name )
{
- for( QValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
+ for( TQValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
if( /*(*it).name != i18n("Last used") &&*/ (*it).name == name ) {
return (*it).options;
}
@@ -1237,7 +1237,7 @@ ConversionOptions Config::getProfile( const QString &name )
return options;
}
-QString Config::getProfileName( const ConversionOptions& options )
+TQString Config::getProfileName( const ConversionOptions& options )
{
if( options.encodingOptions.sQualityMode == i18n("Lossless") ) {
return i18n("Lossless");
@@ -1247,7 +1247,7 @@ QString Config::getProfileName( const ConversionOptions& options )
return i18n("Hybrid");
}
- for( QValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
+ for( TQValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
if( (*it).name != i18n("Last used") && (*it).options.nearlyEqual( options ) ) {
return (*it).name;
}
@@ -1365,23 +1365,23 @@ QString Config::getProfileName( const ConversionOptions& options )
return i18n("User defined");
}
-QStringList Config::getAllProfiles()
+TQStringList Config::getAllProfiles()
{
- QStringList list;
+ TQStringList list;
- for( QValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
+ for( TQValueList::Iterator it = profiles.begin(); it != profiles.end(); ++it ) {
/*if( (*it).name != i18n("Last used") )*/ list += (*it).name;
}
return list;
}
-bool Config::acceptFile( const QString& format )
+bool Config::acceptFile( const TQString& format )
{
if( format == "audio/x-wav" || format == "wav" ) return true;
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
if( (*it).decoder != 0 ) return true;
}
}
@@ -1389,10 +1389,10 @@ bool Config::acceptFile( const QString& format )
return false;
}
-bool Config::acceptReplayGainFile( const QString& format )
+bool Config::acceptReplayGainFile( const TQString& format )
{
- for( QValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
- if( (*it).mime_types.findIndex(format) != -1 || (*it).extensions.findIndex(format) != -1 ) { // we found it
+ for( TQValueList::Iterator it = formats.begin(); it != formats.end(); ++it ) {
+ if( (*it).mime_types.tqfindIndex(format) != -1 || (*it).extensions.tqfindIndex(format) != -1 ) { // we found it
if( (*it).replaygain != 0 ) return true;
}
}
@@ -1400,33 +1400,33 @@ bool Config::acceptReplayGainFile( const QString& format )
return false;
}
-QString Config::fileFilter( bool wav )
+TQString Config::fileFilter( bool wav )
{
- QString filter1;
+ TQString filter1;
if( wav ) filter1 += "*.wav *.WAV *.Wav";
- QString filter2;
+ TQString filter2;
if( wav ) filter2 += "\n*.wav *.WAV *.Wav|wav " + i18n("files") + " (*.wav)";
- QString temp;
+ TQString temp;
- for( QValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
+ for( TQValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
if( (*a).decoder != 0 ) {
temp = "";
- for( QStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
+ for( TQStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
filter1 += " *." + (*b);
- if( !temp.contains(*b,false) ) temp += " *." + (*b).lower();
+ if( !temp.tqcontains(*b,false) ) temp += " *." + (*b).lower();
}
//temp.stripWhiteSpace(); // NOTE doesn't work
if( temp != "" && temp.length() < 80 ) {
temp.remove( 0, 1 );
temp = "\n" + temp + "|" + (*a).extensions.first() + " " + i18n("files") + " (" + temp + ")";
- if( !filter2.contains(temp) ) { // HACK when unsing multiple mime types, there were too much entries
+ if( !filter2.tqcontains(temp) ) { // HACK when unsing multiple mime types, there were too much entries
filter2 += temp;
}
}
else if( temp != "" ) {
temp.remove( 0, 1 );
temp = "\n" + temp + "|" + (*a).extensions.first() + " " + i18n("files");
- if( !filter2.contains(temp) ) { // HACK when unsing multiple mime types, there were too much entries
+ if( !filter2.tqcontains(temp) ) { // HACK when unsing multiple mime types, there were too much entries
filter2 += temp;
}
}
@@ -1439,21 +1439,21 @@ QString Config::fileFilter( bool wav )
return filter1 + "|" + i18n("all supported formats") + "\n*.*|" + i18n("all formats") + filter2;
}
-QStringList Config::fileTypes( bool wav )
+TQStringList Config::fileTypes( bool wav )
{
- QStringList types;
+ TQStringList types;
if( wav ) types.append( "wav" );
- QString temp;
+ TQString temp;
- for( QValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
+ for( TQValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
if( (*a).decoder != 0 ) {
temp = "";
- for( QStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
- if( !temp.contains(*b,false) ) temp.append( (*b).lower() + ", " );
+ for( TQStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
+ if( !temp.tqcontains(*b,false) ) temp.append( (*b).lower() + ", " );
}
if( temp != "" ) {
temp = temp.left( temp.length() - 2 );
- if( types.findIndex(temp) == -1 ) types.append( temp );
+ if( types.tqfindIndex(temp) == -1 ) types.append( temp );
}
}
}
@@ -1461,18 +1461,18 @@ QStringList Config::fileTypes( bool wav )
return types;
}
-QString Config::replayGainFilter()
+TQString Config::replayGainFilter()
{
- QString filter1;
- QString filter2;
- QString temp;
+ TQString filter1;
+ TQString filter2;
+ TQString temp;
- for( QValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
+ for( TQValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
if( (*a).replaygain != 0 ) {
temp = "";
- for( QStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
+ for( TQStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
filter1 += " *." + (*b);
- if( !temp.contains(*b,false) ) temp += " *." + (*b).lower();
+ if( !temp.tqcontains(*b,false) ) temp += " *." + (*b).lower();
}
//temp.stripWhiteSpace(); // NOTE doesn't work
if( temp != "" && temp.length() < 80 ) {
@@ -1492,20 +1492,20 @@ QString Config::replayGainFilter()
return filter1 + "|" + i18n("all supported formats") + "\n*.*|" + i18n("all formats") + filter2;
}
-QStringList Config::replayGainFileTypes()
+TQStringList Config::replayGainFileTypes()
{
- QStringList types;
- QString temp;
+ TQStringList types;
+ TQString temp;
- for( QValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
+ for( TQValueList::Iterator a = formats.begin(); a != formats.end(); ++a ) {
if( (*a).replaygain != 0 ) {
temp = "";
- for( QStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
- if( !temp.contains(*b,false) ) temp.append( (*b).lower() + ", " );
+ for( TQStringList::Iterator b = (*a).extensions.begin(); b != (*a).extensions.end(); ++b ) {
+ if( !temp.tqcontains(*b,false) ) temp.append( (*b).lower() + ", " );
}
if( temp != "" ) {
temp = temp.left( temp.length() - 2 );
- if( types.findIndex(temp) == -1 ) types.append( temp );
+ if( types.tqfindIndex(temp) == -1 ) types.append( temp );
}
}
}
diff --git a/src/config.h b/src/config.h
index 130ddf9..673150d 100755
--- a/src/config.h
+++ b/src/config.h
@@ -6,10 +6,10 @@
#include "formatinfoloader.h"
#include "conversionoptions.h"
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
class Logger;
class ConvertPlugin;
@@ -38,19 +38,19 @@ public:
*/
virtual ~FormatItem();
- QStringList mime_types;
- QStringList extensions; // for easy use
- QStringList correction_file_mime_types;
- QStringList correction_file_extensions; // for easy use
- QString description;
+ TQStringList mime_types;
+ TQStringList extensions; // for easy use
+ TQStringList correction_file_mime_types;
+ TQStringList correction_file_extensions; // for easy use
+ TQString description;
FormatInfo::CompressionType compressionType;
int compressionLevel; // the value from the config dialog
bool internalReplayGain;
int size;
- QValueList encoders;
- QValueList decoders;
- QValueList replaygains;
- //QValueList repairers;
+ TQValueList encoders;
+ TQValueList decoders;
+ TQValueList replaygains;
+ //TQValueList repairers;
ConvertPlugin* encoder;
ConvertPlugin* decoder;
ReplayGainPlugin* replaygain;
@@ -63,9 +63,10 @@ public:
* @author Daniel Faust
* @version 0.3
*/
-class Config : public QObject
+class Config : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
@@ -100,22 +101,22 @@ public:
/**
* Get the encoder for a given file format (mime type or extension)
*/
- ConvertPlugin* encoderForFormat( const QString &format );
+ ConvertPlugin* encoderForFormat( const TQString &format );
/**
* Get the decoder for a given file format (mime type or extension)
*/
- ConvertPlugin* decoderForFormat( const QString &format );
+ ConvertPlugin* decoderForFormat( const TQString &format );
/**
* Get the decoder for a given file format (mime type or extension)
*/
- ReplayGainPlugin* replaygainForFormat( const QString &format );
+ ReplayGainPlugin* replaygainForFormat( const TQString &format );
/**
* Get the format information for a given file format (mime type or extension)
*/
- FormatItem* getFormatItem( const QString &format );
+ FormatItem* getFormatItem( const TQString &format );
/**
* Get the current ripper
@@ -130,119 +131,119 @@ public:
/**
* Returns a list of all loaded rippers
*/
- QValueList allRippers() { return rippers; }
+ TQValueList allRippers() { return rippers; }
/**
* Returns a list of all loaded converters
*/
- QValueList allConverters() { return converters; }
+ TQValueList allConverters() { return converters; }
/**
* Returns a list of all loaded replaygains
*/
- QValueList allReplayGains() { return replaygains; }
+ TQValueList allReplayGains() { return replaygains; }
/**
* Returns a list of all known file formats
*/
- QStringList allFormats();
+ TQStringList allFormats();
/**
* Returns a list of all known encodeable file formats
*/
- QStringList allEncodableFormats();
+ TQStringList allEncodableFormats();
/**
* Returns a list of all known lossy encodeable file formats
*/
- QStringList allLossyEncodableFormats();
+ TQStringList allLossyEncodableFormats();
/**
* Returns a list of all known lossless encodeable file formats
*/
- QStringList allLosslessEncodableFormats();
+ TQStringList allLosslessEncodableFormats();
/**
* Returns a list of all known hybrid encodeable file formats
*/
- QStringList allHybridEncodableFormats();
+ TQStringList allHybridEncodableFormats();
/**
* Returns the extension of the correction file format for the given format
* If there is nor correction file format, the returned string is empty
*/
- QString getCorrectionExtension( const QString &format );
+ TQString getCorrectionExtension( const TQString &format );
/**
* Returns a localized description for the given format
*/
- QString getFormatDescription( const QString &format );
+ TQString getFormatDescription( const TQString &format );
/**
* Add a new profile
*/
- void addProfile( const QString &name, const ConversionOptions& profile );
+ void addProfile( const TQString &name, const ConversionOptions& profile );
/**
* Remove a new profile
*/
- void removeProfile( const QString &name );
+ void removeProfile( const TQString &name );
/**
* Returns the conversion options for a profile
*/
- ConversionOptions getProfile( const QString &name );
+ ConversionOptions getProfile( const TQString &name );
/**
* Returns the name of the profile with conversion options @p options
*/
- QString getProfileName( const ConversionOptions& options );
+ TQString getProfileName( const ConversionOptions& options );
/**
* Returns a list of all user defined profiles
*/
- QStringList getAllProfiles();
+ TQStringList getAllProfiles();
/**
* Returns true if the @p file can be added to the conversion list (can be decoded)
*/
- bool acceptFile( const QString& format );
+ bool acceptFile( const TQString& format );
/**
* Returns true if the @p file can be added to the replay gain tool
*/
- bool acceptReplayGainFile( const QString& format );
+ bool acceptReplayGainFile( const TQString& format );
/**
* Returns a file filter suitable for the file open dialog
*/
- QString fileFilter( bool wav = true );
+ TQString fileFilter( bool wav = true );
/**
* Returns a string list of supported file formats
*/
- QStringList fileTypes( bool wav = true );
+ TQStringList fileTypes( bool wav = true );
/**
* Returns a file filter suitable for the file open dialog for the replay gain scanner
*/
- QString replayGainFilter();
+ TQString replayGainFilter();
/**
* Returns a string list of Replay Gain supported file formats
*/
- QStringList replayGainFileTypes();
+ TQStringList replayGainFileTypes();
struct Data {
struct General {
int startTab;
int lastTab;
- QString defaultProfile;
- QString defaultFormat;
-// QString defaultOutputDirectory;
- QString specifyOutputDirectory;
- QString metaDataOutputDirectory;
- QString copyStructureOutputDirectory;
+ TQString defaultProfile;
+ TQString defaultFormat;
+// TQString defaultOutputDirectory;
+ TQString specifyOutputDirectory;
+ TQString metaDataOutputDirectory;
+ TQString copyStructureOutputDirectory;
int priority;
bool useVFATNames;
int conflictHandling;
@@ -256,8 +257,8 @@ public:
bool checkForUpdates;
} plugins;
struct Environment {
- QStringList directories;
- QStringList foundPrograms;
+ TQStringList directories;
+ TQStringList foundPrograms;
} environment;
struct App {
int configVersion;
@@ -267,36 +268,36 @@ public:
bool onlinePluginsChanged;
bool backendsChanged;
- QMap binaries;
+ TQMap binaries;
private:
struct PluginMapData {
int version;
- QString filename;
- QString type;
+ TQString filename;
+ TQString type;
};
Logger* logger;
/** holds all known formats */
- QValueList formats;
+ TQValueList formats;
/** holds all known rippers */
- QValueList rippers;
+ TQValueList rippers;
RipperPlugin* currentRipper;
/** holds all known converters */
- QValueList converters;
+ TQValueList converters;
/** holds all known replaygain apps */
- QValueList replaygains;
+ TQValueList replaygains;
/* holds all known file repairing apps */
-// QValueList repairer;
+// TQValueList repairer;
//ConvertPluginLoader* convertPluginLoader;
//ReplayGainPluginLoader* replaygainPluginLoader;
/** holds all user defined profiles */
- QValueList profiles;
+ TQValueList profiles;
/**
* Load the files with the file infos (format descriptions, file size, etc.)
@@ -314,10 +315,10 @@ private:
* @p extension The file name extension for that is wants to register
* @p features The features of the app for that extension
*/
- void registerFormatFeatures( const QString &mime_type,
+ void registerFormatFeatures( const TQString &mime_type,
ConvertPlugin* encoder = 0, ConvertPlugin* decoder = 0,
ReplayGainPlugin* replaygain = 0/*, RepairPlugin* repairer = 0*/,
- const QString &correction_file_mime_type = QString::null );
+ const TQString &correction_file_mime_type = TQString() );
/**
* Generate the service menu
@@ -337,11 +338,11 @@ private:
* @p newDescription Register a new description for this file format?
* @p newSize Register a new size for this file format for calculating the progress?
*/
- /*void registerFileFormat( const QString &extension, const QString &newSynonym = QString::null,
- const QString &newMimeType = QString::null,
- const QString &newDescription = QString::null,
+ /*void registerFileFormat( const TQString &extension, const TQString &newSynonym = TQString(),
+ const TQString &newMimeType = TQString(),
+ const TQString &newDescription = TQString(),
int newSize = 0, FormatInfo::CompressionType newCompressionType = FormatInfo::lossy );*/
- //void registerFileFormat( const QString &mime_type, const QString &option, const QString &value );
+ //void registerFileFormat( const TQString &mime_type, const TQString &option, const TQString &value );
// NOTE this function is obsolete.
// after loading all plugins and creating all neccessary file format items,
// sk will search for format info files and update the items.
diff --git a/src/configbackendspage.cpp b/src/configbackendspage.cpp
index d7b1589..5d61cb3 100755
--- a/src/configbackendspage.cpp
+++ b/src/configbackendspage.cpp
@@ -5,13 +5,13 @@
#include "ripperpluginloader.h"
#include "config.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
@@ -20,44 +20,44 @@
#include
-ConfigBackendsPage::ConfigBackendsPage( Config* _config, QMap* _binaries, QWidget* parent, const char *name )
- : ConfigPageBase( parent, name )
+ConfigBackendsPage::ConfigBackendsPage( Config* _config, TQMap* _binaries, TQWidget* tqparent, const char *name )
+ : ConfigPageBase( tqparent, name )
{
config = _config;
binaries = _binaries;
- grid = new QGridLayout( parent );
- scrollView = new KScrollView( parent, "scrollView" );
- scrollView->setResizePolicy( QScrollView::AutoOneFit );
+ grid = new TQGridLayout( tqparent );
+ scrollView = new KScrollView( tqparent, "scrollView" );
+ scrollView->setResizePolicy( TQScrollView::AutoOneFit );
grid->addWidget( scrollView, 0, 0 );
- box = new QVBox( scrollView->viewport() );
+ box = new TQVBox( scrollView->viewport() );
box->setMargin( 11 );
box->setSpacing( 6 );
scrollView->addChild( box );
- QHBox* legendBox = new QHBox( box );
+ TQHBox* legendBox = new TQHBox( box );
legendBox->setMargin( 0 );
legendBox->setSpacing( 6 );
KStandardDirs* stdDirs = new KStandardDirs();
- QLabel* lLegendLabel = new QLabel( i18n("Legend")+":", legendBox, "lLegendLabel" );
- QLabel* lLegendGreen = new QLabel( "", legendBox, "lLegendGreen" );
- lLegendGreen->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) );
- QLabel* lLegendFull = new QLabel( i18n("Full support"), legendBox, "lLegendFull" );
- QLabel* lLegendYellow = new QLabel("",legendBox,"lLegendYellow");
- lLegendYellow->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow_legend.png")) );
- QLabel* lLegendMost = new QLabel( i18n("Most supported"), legendBox, "lLegendMost" );
- QLabel* lLegendRed = new QLabel( "", legendBox, "lLegendRed" );
- lLegendRed->setPixmap( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred_legend.png")) );
- QLabel* lLegendBasic = new QLabel( i18n("Basic support"), legendBox, "lLegendBasic" );
+ TQLabel* lLegendLabel = new TQLabel( i18n("Legend")+":", legendBox, "lLegendLabel" );
+ TQLabel* lLegendGreen = new TQLabel( "", legendBox, "lLegendGreen" );
+ lLegendGreen->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) );
+ TQLabel* lLegendFull = new TQLabel( i18n("Full support"), legendBox, "lLegendFull" );
+ TQLabel* lLegendYellow = new TQLabel("",legendBox,"lLegendYellow");
+ lLegendYellow->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow_legend.png")) );
+ TQLabel* lLegendMost = new TQLabel( i18n("Most supported"), legendBox, "lLegendMost" );
+ TQLabel* lLegendRed = new TQLabel( "", legendBox, "lLegendRed" );
+ lLegendRed->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred_legend.png")) );
+ TQLabel* lLegendBasic = new TQLabel( i18n("Basic support"), legendBox, "lLegendBasic" );
legendBox->setStretchFactor( lLegendLabel, 1 );
- QGroupBox* ripperGroup = new QGroupBox( 1, Qt::Vertical, box, "ripperGroup" );
- ripperGroup->layout()->setSpacing( 6 );
- ripperGroup->layout()->setMargin( 6 );
- QLabel* lRipper = new QLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" );
+ TQGroupBox* ripperGroup = new TQGroupBox( 1, Qt::Vertical, box, "ripperGroup" );
+ ripperGroup->tqlayout()->setSpacing( 6 );
+ ripperGroup->tqlayout()->setMargin( 6 );
+ TQLabel* lRipper = new TQLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" );
cRipper = new KComboBox( ripperGroup, "cRipper" );
- connect( cRipper, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cRipper, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
delete stdDirs;
@@ -77,8 +77,8 @@ void ConfigBackendsPage::resetDefaults()
i = 1;
rank = 60;
item = 0;
- QValueList rippers = config->allRippers();
- for( QValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
+ TQValueList rippers = config->allRippers();
+ for( TQValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
{
if( (*it)->rip.rank > rank ) {
rank = (*it)->rip.rank;
@@ -88,13 +88,13 @@ void ConfigBackendsPage::resetDefaults()
}
cRipper->setCurrentItem( item );
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
if( formatItem == 0 ) continue;
i = item = rank = 0;
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
if( (*b)->enc.rank > rank ) {
rank = (*b)->enc.rank;
item = i;
@@ -104,7 +104,7 @@ void ConfigBackendsPage::resetDefaults()
(*a).cEncoder->setCurrentItem( item );
i = item = rank = 0;
- for( QValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
if( (*b)->dec.rank > rank ) {
rank = (*b)->dec.rank;
item = i;
@@ -114,7 +114,7 @@ void ConfigBackendsPage::resetDefaults()
(*a).cDecoder->setCurrentItem( item );
i = item = rank = 0;
- for( QValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
if( (*b)->replaygain.rank > rank ) {
rank = (*b)->replaygain.rank;
item = i;
@@ -126,16 +126,16 @@ void ConfigBackendsPage::resetDefaults()
encoderChanged();
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
if( formatItem == 0 ) continue;
- QString encoder = (*a).cEncoder->currentText();
+ TQString encoder = (*a).cEncoder->currentText();
(*a).cInternalReplayGain->setChecked( false );
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) {
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
(*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step );
@@ -160,20 +160,20 @@ void ConfigBackendsPage::resetDefaults()
void ConfigBackendsPage::saveSettings()
{
config->setCurrentRipper( 0 );
- QValueList rippers = config->allRippers();
- for( QValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
+ TQValueList rippers = config->allRippers();
+ for( TQValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
{
if( (*it)->rip.bin == cRipper->currentText() ) {
config->setCurrentRipper( *it );
}
}
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
if( formatItem == 0 ) continue;
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
if( (*b)->enc.bin == (*a).cEncoder->currentText() ) {
formatItem->encoder = (*b);
if( (*b)->enc.strength.enabled ) {
@@ -185,13 +185,13 @@ void ConfigBackendsPage::saveSettings()
}
}
- for( QValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
if( (*b)->dec.bin == (*a).cDecoder->currentText() ) {
formatItem->decoder = (*b);
}
}
- for( QValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
if( (*b)->replaygain.bin == (*a).cReplayGain->currentText() ) {
formatItem->replaygain = (*b);
}
@@ -201,22 +201,22 @@ void ConfigBackendsPage::saveSettings()
void ConfigBackendsPage::rebuild()
{
- for( QValueList::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it )
+ for( TQValueList::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it )
{
delete (*it).lEncoder;
- disconnect( (*it).cEncoder, SIGNAL(activated(int)), 0, 0 );
+ disconnect( (*it).cEncoder, TQT_SIGNAL(activated(int)), 0, 0 );
delete (*it).cEncoder;
delete (*it).lStrength;
- disconnect( (*it).sStrength,SIGNAL(valueChanged(int)), 0, 0 );
+ disconnect( (*it).sStrength,TQT_SIGNAL(valueChanged(int)), 0, 0 );
delete (*it).sStrength;
delete (*it).lStrengthDisplay;
delete (*it).lDecoder;
- disconnect( (*it).cDecoder, SIGNAL(activated(int)), 0, 0 );
+ disconnect( (*it).cDecoder, TQT_SIGNAL(activated(int)), 0, 0 );
delete (*it).cDecoder;
delete (*it).lReplayGain;
- disconnect( (*it).cReplayGain, SIGNAL(activated(int)), 0, 0 );
+ disconnect( (*it).cReplayGain, TQT_SIGNAL(activated(int)), 0, 0 );
delete (*it).cReplayGain;
- disconnect( (*it).cInternalReplayGain, SIGNAL(toggled(bool)), 0, 0 );
+ disconnect( (*it).cInternalReplayGain, TQT_SIGNAL(toggled(bool)), 0, 0 );
delete (*it).cInternalReplayGain;
delete (*it).grid;
delete (*it).group;
@@ -226,23 +226,23 @@ void ConfigBackendsPage::rebuild()
// TODO show all extensions
- QStringList formats = config->allFormats();
+ TQStringList formats = config->allFormats();
- for( QStringList::Iterator it = formats.begin(); it != formats.end(); ++it )
+ for( TQStringList::Iterator it = formats.begin(); it != formats.end(); ++it )
{
FormatOptions options;
options.format = *it;
FormatItem *formatItem = config->getFormatItem( options.format );
- QString title;
+ TQString title;
if( formatItem ) {
- for( QStringList::Iterator at = formatItem->extensions.begin(); at != formatItem->extensions.end(); ++at ) {
- if( !title.contains((*at).lower()) ) title += (*at).lower() + ", ";
+ for( TQStringList::Iterator at = formatItem->extensions.begin(); at != formatItem->extensions.end(); ++at ) {
+ if( !title.tqcontains((*at).lower()) ) title += (*at).lower() + ", ";
}
title = title.left( title.length() - 2 );
/* title += " [";
- for( QStringList::Iterator bt = formatItem->mime_types.begin(); bt != formatItem->mime_types.end(); ++bt ) {
- if( !title.contains((*bt).lower()) ) title += (*bt).lower() + ", ";
+ for( TQStringList::Iterator bt = formatItem->mime_types.begin(); bt != formatItem->mime_types.end(); ++bt ) {
+ if( !title.tqcontains((*bt).lower()) ) title += (*bt).lower() + ", ";
}
title = title.left( title.length() - 2 ) + "]";*/
}
@@ -250,70 +250,70 @@ void ConfigBackendsPage::rebuild()
title = options.format;
}
- options.group = new QGroupBox( title, box, options.format );
+ options.group = new TQGroupBox( title, box, options.format );
options.group->setColumnLayout( 0, Qt::Vertical );
- options.group->layout()->setSpacing( 6 );
- options.group->layout()->setMargin( 6 );
+ options.group->tqlayout()->setSpacing( 6 );
+ options.group->tqlayout()->setMargin( 6 );
options.group->show();
- options.grid = new QGridLayout( options.group->layout() );
+ options.grid = new TQGridLayout( options.group->tqlayout() );
- options.lEncoder = new QLabel( i18n("Encoder")+":", options.group, options.format );
+ options.lEncoder = new TQLabel( i18n("Encoder")+":", options.group, options.format );
options.lEncoder->show();
options.grid->addWidget( options.lEncoder, 0, 0 );
options.cEncoder = new KComboBox( options.group, options.format );
options.cEncoder->show();
- connect( options.cEncoder, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( options.cEncoder, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
- connect( options.cEncoder, SIGNAL(activated(int)),
- this, SLOT(encoderChanged())
+ connect( options.cEncoder, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(encoderChanged())
);
options.grid->addWidget( options.cEncoder, 0, 1 );
- options.lStrength = new QLabel( i18n("Strength")+":", options.group, options.format );
- options.lStrength->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
+ options.lStrength = new TQLabel( i18n("Strength")+":", options.group, options.format );
+ options.lStrength->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
options.lStrength->show();
options.grid->addWidget( options.lStrength, 0, 2 );
- options.sStrength = new QSlider( Qt::Horizontal, options.group, options.format );
- options.sStrength->setTickmarks( QSlider::Below );
+ options.sStrength = new TQSlider( Qt::Horizontal, options.group, options.format );
+ options.sStrength->setTickmarks( TQSlider::Below );
options.sStrength->show();
- QToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") );
+ TQToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") );
options.grid->addWidget( options.sStrength, 0, 3 );
- connect( options.sStrength, SIGNAL(valueChanged(int)),
- this, SLOT(cfgChanged())
+ connect( options.sStrength, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(cfgChanged())
);
- connect( options.sStrength, SIGNAL(valueChanged(int)),
- this, SLOT(strengthChanged())
+ connect( options.sStrength, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(strengthChanged())
);
- options.lDecoder = new QLabel( i18n("Decoder")+":", options.group, options.format );
+ options.lDecoder = new TQLabel( i18n("Decoder")+":", options.group, options.format );
options.lDecoder->show();
options.grid->addWidget( options.lDecoder, 1, 0 );
options.cDecoder = new KComboBox( options.group, options.format );
options.cDecoder->show();
options.grid->addWidget( options.cDecoder, 1, 1 );
- connect( options.cDecoder, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( options.cDecoder, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
- options.lStrengthDisplay = new QLabel( "", options.group, options.format );
- options.lStrengthDisplay->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
+ options.lStrengthDisplay = new TQLabel( "", options.group, options.format );
+ options.lStrengthDisplay->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
options.lStrengthDisplay->setEnabled( false );
options.grid->addWidget( options.lStrengthDisplay, 1, 3 );
- options.lReplayGain = new QLabel( i18n("Replay Gain")+":", options.group, options.format );
+ options.lReplayGain = new TQLabel( i18n("Replay Gain")+":", options.group, options.format );
options.lReplayGain->show();
options.grid->addWidget( options.lReplayGain, 2, 0 );
options.cReplayGain = new KComboBox( options.group, options.format );
options.cReplayGain->show();
options.grid->addWidget( options.cReplayGain, 2, 1 );
- connect( options.cReplayGain, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( options.cReplayGain, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
- options.cInternalReplayGain = new QCheckBox( i18n("Use internal Replay Gain"), options.group, options.format );
- QToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") );
+ options.cInternalReplayGain = new TQCheckBox( i18n("Use internal Replay Gain"), options.group, options.format );
+ TQToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") );
options.grid->addWidget( options.cInternalReplayGain, 2, 3 );
- connect( options.cInternalReplayGain, SIGNAL(toggled(bool)),
- this, SLOT(cfgChanged())
+ connect( options.cInternalReplayGain, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(cfgChanged())
);
options.grid->setColStretch( 0, 0 );
@@ -334,22 +334,22 @@ void ConfigBackendsPage::refill()
cRipper->clear();
i = item = 0;
- cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), i18n("KDE audio CD protocol") );
+ cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), i18n("KDE audio CD protocol") );
i++;
- QValueList rippers = config->allRippers();
- for( QValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
+ TQValueList rippers = config->allRippers();
+ for( TQValueList::Iterator it = rippers.begin(); it != rippers.end(); ++it )
{
if( (*binaries)[(*it)->rip.bin] == "" ) continue;
- if( (*it)->rip.rank >= 70 ) cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*it)->rip.bin );
- else if( (*it)->rip.rank >= 40 ) cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*it)->rip.bin );
- else cRipper->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*it)->rip.bin );
+ if( (*it)->rip.rank >= 70 ) cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*it)->rip.bin );
+ else if( (*it)->rip.rank >= 40 ) cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*it)->rip.bin );
+ else cRipper->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*it)->rip.bin );
if( (*it) == config->getCurrentRipper() ) item = i;
i++;
}
cRipper->setCurrentItem( item );
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
(*a).cEncoder->clear();
@@ -358,36 +358,36 @@ void ConfigBackendsPage::refill()
if( formatItem == 0 ) continue;
i = item = 0;
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
if( (*binaries)[(*b)->enc.bin] == "" ) continue;
- if( (*b)->enc.rank >= 70 ) (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->enc.bin );
- else if( (*b)->enc.rank >= 40 ) (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->enc.bin );
- else (*a).cEncoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->enc.bin );
+ if( (*b)->enc.rank >= 70 ) (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->enc.bin );
+ else if( (*b)->enc.rank >= 40 ) (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->enc.bin );
+ else (*a).cEncoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->enc.bin );
if( (*b) == formatItem->encoder ) item = i;
i++;
}
(*a).cEncoder->setCurrentItem( item );
i = item = 0;
- for( QValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->decoders.begin(); b != formatItem->decoders.end(); ++b ) {
if( (*binaries)[(*b)->dec.bin] == "" ) continue;
- if( (*b)->dec.rank >= 70 ) (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->dec.bin );
- else if( (*b)->dec.rank >= 40 ) (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->dec.bin );
- else (*a).cDecoder->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->dec.bin );
+ if( (*b)->dec.rank >= 70 ) (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->dec.bin );
+ else if( (*b)->dec.rank >= 40 ) (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->dec.bin );
+ else (*a).cDecoder->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->dec.bin );
if( (*b) == formatItem->decoder ) item = i;
i++;
}
(*a).cDecoder->setCurrentItem( item );
i = item = 0;
- for( QValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->replaygains.begin(); b != formatItem->replaygains.end(); ++b ) {
if( (*binaries)[(*b)->replaygain.bin] == "" ) continue;
- if( (*b)->replaygain.rank >= 70 ) (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->replaygain.bin );
- else if( (*b)->replaygain.rank >= 40 ) (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->replaygain.bin );
- else (*a).cReplayGain->insertItem( QPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->replaygain.bin );
+ if( (*b)->replaygain.rank >= 70 ) (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen.png")), (*b)->replaygain.bin );
+ else if( (*b)->replaygain.rank >= 40 ) (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledyellow.png")), (*b)->replaygain.bin );
+ else (*a).cReplayGain->insertItem( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledred.png")), (*b)->replaygain.bin );
if( (*b) == formatItem->replaygain ) item = i;
i++;
}
@@ -403,7 +403,7 @@ void ConfigBackendsPage::encoderChanged()
{
bool recalc;
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
(*a).lStrength->hide();
@@ -412,11 +412,11 @@ void ConfigBackendsPage::encoderChanged()
(*a).cInternalReplayGain->hide();
if( formatItem == 0 ) continue;
- QString encoder = (*a).cEncoder->currentText();
+ TQString encoder = (*a).cEncoder->currentText();
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
- if( QObject::sender() && (*a).format == QObject::sender()->name() ) recalc = true;
- else if( !QObject::sender() ) recalc = true;
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast((TQT_BASE_OBJECT_NAME::sender())))->name() ) recalc = true;
+ else if( !TQT_BASE_OBJECT_NAME::sender() ) recalc = true;
else recalc = false;
if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) {
(*a).lStrength->show();
@@ -429,13 +429,13 @@ void ConfigBackendsPage::encoderChanged()
(*a).sStrength->setMaxValue( (int)((*b)->enc.strength.range_min/(*b)->enc.strength.step) );
}
(*a).sStrength->setPageStep( 1 );
- if( QObject::sender() && (*a).format == QObject::sender()->name() ) {
+ if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast(TQT_BASE_OBJECT_NAME::sender()))->name() ) {
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
(*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step );
else
(*a).sStrength->setValue( ( (*b)->enc.strength.range_min - (*b)->enc.strength.default_value ) / (*b)->enc.strength.step );
}
- else if( !QObject::sender() ) {
+ else if( !TQT_BASE_OBJECT_NAME::sender() ) {
(*a).sStrength->setValue( formatItem->compressionLevel );
}
(*a).sStrength->show();
@@ -453,35 +453,35 @@ void ConfigBackendsPage::encoderChanged()
void ConfigBackendsPage::strengthChanged()
{
- for( QValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
+ for( TQValueList::Iterator a = formatOptions.begin(); a != formatOptions.end(); ++a )
{
FormatItem* formatItem = config->getFormatItem( (*a).format );
if( formatItem == 0 ) continue;
- QString encoder = (*a).cEncoder->currentText();
+ TQString encoder = (*a).cEncoder->currentText();
- for( QValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
+ for( TQValueList::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) {
- QString strength = (*b)->enc.strength.param;
+ TQString strength = (*b)->enc.strength.param;
int compressionLevel = (*a).sStrength->value();
if( (*b)->enc.strength.profiles.empty() ) {
if( (*b)->enc.strength.step < 1 ) {
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
- strength.replace( "%c", QString::number( compressionLevel * (*b)->enc.strength.step ) );
+ strength.tqreplace( "%c", TQString::number( compressionLevel * (*b)->enc.strength.step ) );
else
- strength.replace( "%c", QString::number( (*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step ) );
+ strength.tqreplace( "%c", TQString::number( (*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step ) );
}
else {
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
- strength.replace( "%c", QString::number( (int)(compressionLevel * (*b)->enc.strength.step) ) );
+ strength.tqreplace( "%c", TQString::number( (int)(compressionLevel * (*b)->enc.strength.step) ) );
else
- strength.replace( "%c", QString::number( (int)((*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step) ) );
+ strength.tqreplace( "%c", TQString::number( (int)((*b)->enc.strength.range_min - compressionLevel * (*b)->enc.strength.step) ) );
}
- if( (*b)->enc.strength.separator != '.' ) strength.replace( QChar('.'), (*b)->enc.strength.separator );
+ if( (*b)->enc.strength.separator != '.' ) strength.tqreplace( TQChar('.'), (*b)->enc.strength.separator );
}
else {
- QStringList::Iterator it = (*b)->enc.strength.profiles.at( (int)compressionLevel );
- strength.replace( "%c", *it );
+ TQStringList::Iterator it = (*b)->enc.strength.profiles.at( (int)compressionLevel );
+ strength.tqreplace( "%c", *it );
}
(*a).lStrengthDisplay->setText( "( \"" + strength + "\" )" );
}
diff --git a/src/configbackendspage.h b/src/configbackendspage.h
index 27071f2..a8cef3c 100755
--- a/src/configbackendspage.h
+++ b/src/configbackendspage.h
@@ -5,17 +5,17 @@
#include
-#include
+#include
class Config;
class KComboBox;
class KScrollView;
-class QGroupBox;
-class QGridLayout;
-class QLabel;
-class QSlider;
-class QCheckBox;
-class QVBox;
+class TQGroupBox;
+class TQGridLayout;
+class TQLabel;
+class TQSlider;
+class TQCheckBox;
+class TQVBox;
/**
* @short The page for configuring the environment
@@ -25,11 +25,12 @@ class QVBox;
class ConfigBackendsPage : public ConfigPageBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
*/
- ConfigBackendsPage( Config*, QMap*, QWidget *parent=0, const char *name=0 );
+ ConfigBackendsPage( Config*, TQMap*, TQWidget *tqparent=0, const char *name=0 );
/**
* Default Destructor
@@ -40,32 +41,32 @@ private:
struct FormatOptions
{
// TODO remove the string lists
- QString format;
- QGroupBox* group;
- QGridLayout* grid;
- QLabel* lEncoder;
+ TQString format;
+ TQGroupBox* group;
+ TQGridLayout* grid;
+ TQLabel* lEncoder;
KComboBox* cEncoder;
- QLabel* lStrength;
- QSlider* sStrength;
- QLabel* lStrengthDisplay;
- QLabel* lDecoder;
+ TQLabel* lStrength;
+ TQSlider* sStrength;
+ TQLabel* lStrengthDisplay;
+ TQLabel* lDecoder;
KComboBox* cDecoder;
- QLabel* lReplayGain;
+ TQLabel* lReplayGain;
KComboBox* cReplayGain;
- QCheckBox* cInternalReplayGain;
+ TQCheckBox* cInternalReplayGain;
};
- QValueList formatOptions;
+ TQValueList formatOptions;
- QGridLayout* grid;
+ TQGridLayout* grid;
KScrollView* scrollView;
- QVBox* box;
+ TQVBox* box;
KComboBox* cRipper;
Config* config;
- QMap* binaries;
+ TQMap* binaries;
public slots:
void resetDefaults();
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index 3e58007..789d59c 100755
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -18,20 +18,20 @@
#include "backend_plugins.h"
#include "replaygain_plugins.h"
-#include
+#include
*/
//#include
#include
#include
#include
-ConfigDialog::ConfigDialog( Config* _config, QWidget *parent, const char *name, Page startPage )
+ConfigDialog::ConfigDialog( Config* _config, TQWidget *tqparent, const char *name, Page startPage )
: KDialogBase(
IconList,
i18n("Settings"),
Apply | Cancel | Default | Help | Ok,
Ok, // default button
- parent,
+ tqparent,
name,
true, // modal
true // separator
@@ -43,65 +43,65 @@ ConfigDialog::ConfigDialog( Config* _config, QWidget *parent, const char *name,
binaries = config->binaries;
- connect( this, SIGNAL(applyClicked()),
- this,SLOT(applyClickedSlot())
+ connect( this, TQT_SIGNAL(applyClicked()),
+ this,TQT_SLOT(applyClickedSlot())
);
- connect( this, SIGNAL(okClicked()),
- this,SLOT(okClickedSlot())
+ connect( this, TQT_SIGNAL(okClicked()),
+ this,TQT_SLOT(okClickedSlot())
);
- connect( this, SIGNAL(defaultClicked()),
- this,SLOT(defaultClickedSlot())
+ connect( this, TQT_SIGNAL(defaultClicked()),
+ this,TQT_SLOT(defaultClickedSlot())
);
generalPage = addPage( i18n("General"), "misc" );
configGeneralPage = new ConfigGeneralPage( config, generalPage, "configGeneralPage" );
- connect( configGeneralPage, SIGNAL(configChanged()),
- this, SLOT(configChanged())
+ connect( configGeneralPage, TQT_SIGNAL(configChanged()),
+ this, TQT_SLOT(configChanged())
);
- connect( this, SIGNAL(saveGeneral()),
- configGeneralPage, SLOT(saveSettings())
+ connect( this, TQT_SIGNAL(saveGeneral()),
+ configGeneralPage, TQT_SLOT(saveSettings())
);
- connect( this, SIGNAL(resetGeneral()),
- configGeneralPage, SLOT(resetDefaults())
+ connect( this, TQT_SIGNAL(resetGeneral()),
+ configGeneralPage, TQT_SLOT(resetDefaults())
);
pluginsPage = addPage( i18n("Plugins"), "connect_creating" );
configPluginsPage = new ConfigPluginsPage( config, pluginsPage, "configPluginsPage" );
- connect( configPluginsPage, SIGNAL(configChanged()),
- this, SLOT(configChanged())
+ connect( configPluginsPage, TQT_SIGNAL(configChanged()),
+ this, TQT_SLOT(configChanged())
);
- connect( this, SIGNAL(savePlugins()),
- configPluginsPage, SLOT(saveSettings())
+ connect( this, TQT_SIGNAL(savePlugins()),
+ configPluginsPage, TQT_SLOT(saveSettings())
);
- connect( this, SIGNAL(resetPlugins()),
- configPluginsPage, SLOT(resetDefaults())
+ connect( this, TQT_SIGNAL(resetPlugins()),
+ configPluginsPage, TQT_SLOT(resetDefaults())
);
- environmentPage = addPage( i18n("Environment"), "filefind" );
+ environmentPage = addPage( i18n("Environment"), "filetqfind" );
configEnvironmentPage = new ConfigEnvironmentPage( config, &binaries, environmentPage, "configEnvironmentPage" );
- connect( configEnvironmentPage, SIGNAL(configChanged()),
- this, SLOT(configChanged())
+ connect( configEnvironmentPage, TQT_SIGNAL(configChanged()),
+ this, TQT_SLOT(configChanged())
);
- connect( this, SIGNAL(saveEnvironment()),
- configEnvironmentPage, SLOT(saveSettings())
+ connect( this, TQT_SIGNAL(saveEnvironment()),
+ configEnvironmentPage, TQT_SLOT(saveSettings())
);
- connect( this, SIGNAL(resetEnvironment()),
- configEnvironmentPage, SLOT(resetDefaults())
+ connect( this, TQT_SIGNAL(resetEnvironment()),
+ configEnvironmentPage, TQT_SLOT(resetDefaults())
);
backendsPage = addPage( i18n("Backends"), "kcmsystem" );
configBackendsPage = new ConfigBackendsPage( config, &binaries, backendsPage, "configBackendsPage" );
- connect( configBackendsPage, SIGNAL(configChanged()),
- this, SLOT(configChanged())
+ connect( configBackendsPage, TQT_SIGNAL(configChanged()),
+ this, TQT_SLOT(configChanged())
);
- connect( this, SIGNAL(saveBackends()),
- configBackendsPage, SLOT(saveSettings())
+ connect( this, TQT_SIGNAL(saveBackends()),
+ configBackendsPage, TQT_SLOT(saveSettings())
);
- connect( this, SIGNAL(resetBackends()),
- configBackendsPage, SLOT(resetDefaults())
+ connect( this, TQT_SIGNAL(resetBackends()),
+ configBackendsPage, TQT_SLOT(resetDefaults())
);
- connect( configEnvironmentPage, SIGNAL(rebuildBackendsPage()),
- configBackendsPage, SLOT(rebuild())
+ connect( configEnvironmentPage, TQT_SIGNAL(rebuildBackendsPage()),
+ configBackendsPage, TQT_SLOT(rebuild())
);
setConfigChanged( false );
@@ -113,9 +113,9 @@ ConfigDialog::~ConfigDialog()
{
}
-QFrame *ConfigDialog::addPage(const QString &itemName, const QString &iconName)
+TQFrame *ConfigDialog::addPage(const TQString &itemName, const TQString &iconName)
{
- return KDialogBase::addPage( itemName, QString::null, MainBarIcon(iconName,32) );
+ return KDialogBase::addPage( itemName, TQString(), MainBarIcon(iconName,32) );
}
void ConfigDialog::setConfigChanged( const bool value )
@@ -146,7 +146,7 @@ void ConfigDialog::okClickedSlot()
void ConfigDialog::defaultClickedSlot()
{
int index = activePageIndex();
- QStringList listDefaults;
+ TQStringList listDefaults;
if( index == -1 )
return;
diff --git a/src/configdialog.h b/src/configdialog.h
index 19d3d12..594567c 100755
--- a/src/configdialog.h
+++ b/src/configdialog.h
@@ -5,7 +5,7 @@
#include
-#include
+#include
class Config;
@@ -22,6 +22,7 @@ class ConfigBackendsPage;
class ConfigDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Page {
GeneralPage,
@@ -33,7 +34,7 @@ public:
/**
* Constructor
*/
- ConfigDialog( Config*, QWidget *parent = 0, const char *name = 0, Page startPage = GeneralPage );
+ ConfigDialog( Config*, TQWidget *tqparent = 0, const char *name = 0, Page startPage = GeneralPage );
/**
* Destructor
@@ -41,22 +42,22 @@ public:
virtual ~ConfigDialog();
private:
- QFrame* addPage( const QString &itemName, const QString &iconName );
+ TQFrame* addPage( const TQString &itemName, const TQString &iconName );
- QFrame* generalPage;
+ TQFrame* generalPage;
ConfigGeneralPage* configGeneralPage;
- QFrame* pluginsPage;
+ TQFrame* pluginsPage;
ConfigPluginsPage* configPluginsPage;
- QFrame* environmentPage;
+ TQFrame* environmentPage;
ConfigEnvironmentPage* configEnvironmentPage;
- QFrame* backendsPage;
+ TQFrame* backendsPage;
ConfigBackendsPage* configBackendsPage;
void setConfigChanged( const bool );
Config* config;
- QMap binaries;
+ TQMap binaries;
private slots:
void configChanged();
diff --git a/src/configenvironmentpage.cpp b/src/configenvironmentpage.cpp
index 26dbd5b..ebe7487 100755
--- a/src/configenvironmentpage.cpp
+++ b/src/configenvironmentpage.cpp
@@ -12,14 +12,14 @@
#include
#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
-ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, QMap* _binaries, QWidget *parent, const char *name )
- : ConfigPageBase( parent, name )
+ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap* _binaries, TQWidget *tqparent, const char *name )
+ : ConfigPageBase( tqparent, name )
{
config = _config;
binaries = _binaries;
@@ -27,81 +27,81 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, QMapaddWidget( lDirectoriesLabel );
-// KEditListBox* eDirectories = new KEditListBox( parent, "eDirectories" );
+// KEditListBox* eDirectories = new KEditListBox( tqparent, "eDirectories" );
// box->addWidget( eDirectories );
- QHBoxLayout* directoriesBox = new QHBoxLayout( box );
- lDirectories = new KListBox( parent, "lDirectories" );
+ TQHBoxLayout* directoriesBox = new TQHBoxLayout( box );
+ lDirectories = new KListBox( tqparent, "lDirectories" );
lDirectories->insertStringList( config->data.environment.directories );
directoriesBox->addWidget( lDirectories );
- connect( lDirectories, SIGNAL(highlighted(int)),
- this, SLOT(directoriesSelectionChanged(int))
+ connect( lDirectories, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(directoriesSelectionChanged(int))
);
- QVBoxLayout* directoriesMiddleBox = new QVBoxLayout( directoriesBox );
- pDirUp = new KPushButton( "", parent, "pDirUp" );
+ TQVBoxLayout* directoriesMiddleBox = new TQVBoxLayout( directoriesBox );
+ pDirUp = new KPushButton( "", tqparent, "pDirUp" );
pDirUp->setPixmap( iconLoader->loadIcon("up",KIcon::Toolbar) );
pDirUp->setEnabled( false );
- QToolTip::add( pDirUp, i18n("Move selected directory one position up.\nThis effects which backend will be chosen, if there are several versions.") );
+ TQToolTip::add( pDirUp, i18n("Move selected directory one position up.\nThis effects which backend will be chosen, if there are several versions.") );
directoriesMiddleBox->addWidget( pDirUp );
- connect( pDirUp, SIGNAL(clicked()),
- this, SLOT(dirUp())
+ connect( pDirUp, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(dirUp())
);
directoriesMiddleBox->addStretch();
- pDirDown = new KPushButton( "", parent, "pDirDown" );
+ pDirDown = new KPushButton( "", tqparent, "pDirDown" );
pDirDown->setPixmap( iconLoader->loadIcon("down",KIcon::Toolbar) );
pDirDown->setEnabled( false );
- QToolTip::add( pDirDown, i18n("Move selected directory one position down.\nThis effects which backend will be chosen, if there are several versions.") );
+ TQToolTip::add( pDirDown, i18n("Move selected directory one position down.\nThis effects which backend will be chosen, if there are several versions.") );
directoriesMiddleBox->addWidget( pDirDown );
- connect( pDirDown, SIGNAL(clicked()),
- this, SLOT(dirDown())
+ connect( pDirDown, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(dirDown())
);
- QVBoxLayout* directoriesRightBox = new QVBoxLayout( directoriesBox );
- pAddDirectory = new KPushButton( iconLoader->loadIcon("add",KIcon::Small), i18n("Add ..."), parent, "pAddDirectory" );
+ TQVBoxLayout* directoriesRightBox = new TQVBoxLayout( directoriesBox );
+ pAddDirectory = new KPushButton( iconLoader->loadIcon("add",KIcon::Small), i18n("Add ..."), tqparent, "pAddDirectory" );
directoriesRightBox->addWidget( pAddDirectory );
- connect( pAddDirectory, SIGNAL(clicked()),
- this, SLOT(addDirectory())
+ connect( pAddDirectory, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(addDirectory())
);
- pRemoveDirectory = new KPushButton( iconLoader->loadIcon("remove",KIcon::Small), i18n("Remove"), parent, "pRemoveDirectory" );
+ pRemoveDirectory = new KPushButton( iconLoader->loadIcon("remove",KIcon::Small), i18n("Remove"), tqparent, "pRemoveDirectory" );
directoriesRightBox->addWidget( pRemoveDirectory );
pRemoveDirectory->setEnabled( false );
- connect( pRemoveDirectory, SIGNAL(clicked()),
- this, SLOT(removeDirectory())
+ connect( pRemoveDirectory, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(removeDirectory())
);
directoriesRightBox->addStretch();
box->addSpacing( 5 );
- QHBoxLayout* programsBox = new QHBoxLayout( box );
+ TQHBoxLayout* programsBox = new TQHBoxLayout( box );
- QVBoxLayout* foundProgramsBox = new QVBoxLayout( programsBox );
- QLabel* lFoundProgramsLabel = new QLabel( i18n("Programs found")+":", parent, "lFoundProgramsLabel" );
+ TQVBoxLayout* foundProgramsBox = new TQVBoxLayout( programsBox );
+ TQLabel* lFoundProgramsLabel = new TQLabel( i18n("Programs found")+":", tqparent, "lFoundProgramsLabel" );
foundProgramsBox->addWidget( lFoundProgramsLabel );
- lFoundPrograms = new KListBox( parent, "lFoundPrograms" );
- lFoundPrograms->setSelectionMode( QListBox::NoSelection );
+ lFoundPrograms = new KListBox( tqparent, "lFoundPrograms" );
+ lFoundPrograms->setSelectionMode( TQListBox::NoSelection );
foundProgramsBox->addWidget( lFoundPrograms );
- //connect(lPrograms,SIGNAL(highlighted(int)),this,SLOT(programsSelectionChanged(int)));
+ //connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int)));
programsBox->setStretchFactor( foundProgramsBox, 3 );
- QVBoxLayout* notFoundProgramsBox = new QVBoxLayout( programsBox );
- QLabel* lNotFoundProgramsLabel = new QLabel( i18n("Programs not found")+":", parent, "lNotFoundProgramsLabel" );
+ TQVBoxLayout* notFoundProgramsBox = new TQVBoxLayout( programsBox );
+ TQLabel* lNotFoundProgramsLabel = new TQLabel( i18n("Programs not found")+":", tqparent, "lNotFoundProgramsLabel" );
notFoundProgramsBox->addWidget( lNotFoundProgramsLabel );
- lNotFoundPrograms = new KListBox( parent, "lNotFoundPrograms" );
- lNotFoundPrograms->setSelectionMode( QListBox::NoSelection );
+ lNotFoundPrograms = new KListBox( tqparent, "lNotFoundPrograms" );
+ lNotFoundPrograms->setSelectionMode( TQListBox::NoSelection );
notFoundProgramsBox->addWidget( lNotFoundPrograms );
- //connect(lPrograms,SIGNAL(highlighted(int)),this,SLOT(programsSelectionChanged(int)));
+ //connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int)));
programsBox->setStretchFactor( notFoundProgramsBox, 2 );
- for( QMap::Iterator it = config->binaries.begin(); it != config->binaries.end(); ++it ) {
+ for( TQMap::Iterator it = config->binaries.begin(); it != config->binaries.end(); ++it ) {
if( it.data() != "" ) {
lFoundPrograms->insertItem( it.data() );
}
@@ -122,10 +122,10 @@ ConfigEnvironmentPage::~ConfigEnvironmentPage()
void ConfigEnvironmentPage::resetDefaults()
{
lDirectories->clear();
- QString datadir = locateLocal( "data", "soundkonverter/bin/" );
+ TQString datadir = locateLocal( "data", "soundkonverter/bin/" );
datadir.remove( datadir.length() - 1, 1 );
lDirectories->insertItem( datadir );
- lDirectories->insertItem( QDir::homeDirPath() + "/bin" );
+ lDirectories->insertItem( TQDir::homeDirPath() + "/bin" );
lDirectories->insertItem( "/usr/local/bin" );
lDirectories->insertItem( "/usr/bin" );
@@ -156,7 +156,7 @@ void ConfigEnvironmentPage::dirUp()
{
int index = lDirectories->currentItem();
if( index > 0 ) {
- QString text = lDirectories->currentText();
+ TQString text = lDirectories->currentText();
lDirectories->removeItem( index );
lDirectories->insertItem( text, index - 1 );
lDirectories->setSelected( index - 1, true );
@@ -169,7 +169,7 @@ void ConfigEnvironmentPage::dirDown()
{
int index = lDirectories->currentItem();
if( (uint)index < lDirectories->count() - 1 ) {
- QString text = lDirectories->currentText();
+ TQString text = lDirectories->currentText();
lDirectories->removeItem( index );
lDirectories->insertItem( text, index + 1 );
lDirectories->setSelected( index + 1, true );
@@ -180,7 +180,7 @@ void ConfigEnvironmentPage::dirDown()
void ConfigEnvironmentPage::addDirectory()
{
- QString dirname = KFileDialog::getExistingDirectory( "/", 0 );
+ TQString dirname = KFileDialog::getExistingDirectory( "/", 0 );
if( dirname != NULL ) {
lDirectories->insertItem( dirname );
refill();
@@ -197,10 +197,10 @@ void ConfigEnvironmentPage::removeDirectory()
void ConfigEnvironmentPage::refill()
{
- for( QMap::Iterator it = binaries->begin(); it != binaries->end(); ++it ) {
+ for( TQMap::Iterator it = binaries->begin(); it != binaries->end(); ++it ) {
it.data() = "";
for( uint i = 0; i < lDirectories->count(); i++ ) {
- if( it.data() == "" && QFile::exists(lDirectories->text(i) + "/" + it.key()) ) {
+ if( it.data() == "" && TQFile::exists(lDirectories->text(i) + "/" + it.key()) ) {
it.data() = lDirectories->text(i) + "/" + it.key();
}
}
@@ -208,7 +208,7 @@ void ConfigEnvironmentPage::refill()
lFoundPrograms->clear();
lNotFoundPrograms->clear();
- for( QMap::Iterator it = binaries->begin(); it != binaries->end(); ++it ) {
+ for( TQMap::Iterator it = binaries->begin(); it != binaries->end(); ++it ) {
if( it.data() != "" ) {
lFoundPrograms->insertItem( it.data() );
}
diff --git a/src/configenvironmentpage.h b/src/configenvironmentpage.h
index 37b0c2e..6165799 100755
--- a/src/configenvironmentpage.h
+++ b/src/configenvironmentpage.h
@@ -17,11 +17,12 @@ class KListBox;
class ConfigEnvironmentPage : public ConfigPageBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
*/
- ConfigEnvironmentPage( Config*, QMap*, QWidget *parent=0, const char *name=0 );
+ ConfigEnvironmentPage( Config*, TQMap*, TQWidget *tqparent=0, const char *name=0 );
/**
* Default Destructor
@@ -39,7 +40,7 @@ private:
Config* config;
- QMap* binaries;
+ TQMap* binaries;
public slots:
void resetDefaults();
diff --git a/src/configgeneralpage.cpp b/src/configgeneralpage.cpp
index 9408ffd..295b700 100755
--- a/src/configgeneralpage.cpp
+++ b/src/configgeneralpage.cpp
@@ -11,44 +11,44 @@
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
// ### soundkonverter 0.4: add an option to use vfat save names when the output device is vfat
-ConfigGeneralPage::ConfigGeneralPage( Config* _config, QWidget *parent, const char *name )
- : ConfigPageBase( parent, name )
+ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *tqparent, const char *name )
+ : ConfigPageBase( tqparent, name )
{
config = _config;
// create an icon loader object for loading icons
KIconLoader* iconLoader = new KIconLoader();
- QVBoxLayout* box = new QVBoxLayout( parent, 0, 6 );
+ TQVBoxLayout* box = new TQVBoxLayout( tqparent, 0, 6 );
- QHBoxLayout* startTabBox = new QHBoxLayout( box, 6 );
- QLabel* lStartTab = new QLabel( i18n("Start in Mode")+":", parent, "lStartTab" );
+ TQHBoxLayout* startTabBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lStartTab = new TQLabel( i18n("Start in Mode")+":", tqparent, "lStartTab" );
startTabBox->addWidget( lStartTab );
- cStartTab = new KComboBox( parent, "cStartTab" );
+ cStartTab = new KComboBox( tqparent, "cStartTab" );
cStartTab->insertItem( i18n("Last used") );
cStartTab->insertItem( i18n("Simple") );
cStartTab->insertItem( i18n("Detailed") );
cStartTab->setCurrentItem( config->data.general.startTab );
startTabBox->addWidget( cStartTab );
- connect( cStartTab, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cStartTab, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* defaultProfileBox = new QHBoxLayout( box, 6 );
- QLabel* lDefaultProfile = new QLabel( i18n("Default profile")+":", parent, "lDefaultProfile" );
+ TQHBoxLayout* defaultProfileBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lDefaultProfile = new TQLabel( i18n("Default profile")+":", tqparent, "lDefaultProfile" );
defaultProfileBox->addWidget( lDefaultProfile );
- cDefaultProfile = new KComboBox( parent, "cDefaultProfile" );
+ cDefaultProfile = new KComboBox( tqparent, "cDefaultProfile" );
sDefaultProfile += i18n("Very low");
sDefaultProfile += i18n("Low");
sDefaultProfile += i18n("Medium");
@@ -63,129 +63,129 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, QWidget *parent, const ch
cDefaultProfile->insertStringList( sDefaultProfile );
cDefaultProfile->setCurrentItem( profileIndex(config->data.general.defaultProfile) );
defaultProfileBox->addWidget( cDefaultProfile );
- connect( cDefaultProfile, SIGNAL(activated(int)),
- this, SLOT(profileChanged())
+ connect( cDefaultProfile, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(profileChanged())
);
- connect( cDefaultProfile, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cDefaultProfile, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
- QLabel* lDefaultFormat = new QLabel( i18n("Default format")+":", parent, "lDefaultFormat" );
+ TQLabel* lDefaultFormat = new TQLabel( i18n("Default format")+":", tqparent, "lDefaultFormat" );
defaultProfileBox->addWidget( lDefaultFormat );
- cDefaultFormat = new KComboBox( parent, "cDefaultFormat" );
+ cDefaultFormat = new KComboBox( tqparent, "cDefaultFormat" );
defaultProfileBox->addWidget( cDefaultFormat );
- connect( cDefaultFormat, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cDefaultFormat, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
profileChanged();
box->addSpacing( 5 );
-/* QHBoxLayout* defaultDirBox = new QHBoxLayout( box, 6 );
- QLabel* lDefaultDir = new QLabel( i18n("Default output directory")+":", parent, "lDefaultDir" );
+/* TQHBoxLayout* defaultDirBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lDefaultDir = new TQLabel( i18n("Default output directory")+":", tqparent, "lDefaultDir" );
defaultDirBox->addWidget( lDefaultDir );
- lDir = new KLineEdit( parent, "lDir" );
+ lDir = new KLineEdit( tqparent, "lDir" );
lDir->setText( config->data.general.defaultOutputDirectory );
- QToolTip::add( lDir, i18n("The following strings are space holders, that will be replaced by the information in the meta data:
%a - Artist
%b - Album
%c - Comment
%d - Disc number
%g - Genre
%n - Track number
%p - Composer
%t - Title
%y - Year
%f - Original file name
") );
+ TQToolTip::add( lDir, i18n("
The following strings are space holders, that will be replaced by the information in the meta data:
%a - Artist
%b - Album
%c - Comment
%d - Disc number
%g - Genre
%n - Track number
%p - Composer
%t - Title
%y - Year
%f - Original file name
") );
defaultDirBox->addWidget( lDir );
- connect( lDir, SIGNAL(textChanged(const QString&)),
- this, SLOT(cfgChanged())
+ connect( lDir, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(cfgChanged())
);*/
- /*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), "", parent, "pDirInfo" );
- QToolTip::add( pDirInfo, i18n("Information about the wildcards.") );
+ /*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), "", tqparent, "pDirInfo" );
+ TQToolTip::add( pDirInfo, i18n("Information about the wildcards.") );
defaultDirBox->addWidget( pDirInfo );
- connect( pDirInfo, SIGNAL(clicked()),
- this, SLOT(dirInfo())
+ connect( pDirInfo, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(dirInfo())
);*/
-// pDirSelect = new KPushButton( iconLoader->loadIcon("folder",KIcon::Small), "", parent, "pDirSelect" );
-// QToolTip::add( pDirSelect, i18n("Choose an output directory") );
+// pDirSelect = new KPushButton( iconLoader->loadIcon("folder",KIcon::Small), "", tqparent, "pDirSelect" );
+// TQToolTip::add( pDirSelect, i18n("Choose an output directory") );
// defaultDirBox->addWidget( pDirSelect );
-// connect( pDirSelect, SIGNAL(clicked()),
-// this, SLOT(selectDir())
+// connect( pDirSelect, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(selectDir())
// );
- QHBoxLayout* priorityBox = new QHBoxLayout( box, 6 );
- QLabel* lPriority = new QLabel( i18n("Process priority of the backends")+":", parent, "lPriority" );
+ TQHBoxLayout* priorityBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lPriority = new TQLabel( i18n("Process priority of the backends")+":", tqparent, "lPriority" );
priorityBox->addWidget( lPriority );
- cPriority = new KComboBox( parent, "cPriority" );
+ cPriority = new KComboBox( tqparent, "cPriority" );
sPriority += i18n("Normal");
sPriority += i18n("Low");
cPriority->insertStringList( sPriority );
cPriority->setCurrentItem( config->data.general.priority / 10 ); // NOTE that just works for 'normal' and 'low'
priorityBox->addWidget( cPriority );
- connect( cPriority, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cPriority, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* useVFATNamesBox = new QHBoxLayout( box, 6 );
- cUseVFATNames = new QCheckBox( i18n("Use FAT compatible output file names"), parent, "cUseVFATNames" );
- QToolTip::add( cUseVFATNames, i18n("Replaces some special characters like \'?\' by \'_\'.") );
+ TQHBoxLayout* useVFATNamesBox = new TQHBoxLayout( box, 6 );
+ cUseVFATNames = new TQCheckBox( i18n("Use FAT compatible output file names"), tqparent, "cUseVFATNames" );
+ TQToolTip::add( cUseVFATNames, i18n("Replaces some special characters like \'?\' by \'_\'.") );
cUseVFATNames->setChecked( config->data.general.useVFATNames );
useVFATNamesBox->addWidget( cUseVFATNames );
- connect( cUseVFATNames, SIGNAL(toggled(bool)),
- this, SLOT(cfgChanged())
+ connect( cUseVFATNames, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* conflictHandlingBox = new QHBoxLayout( box, 6 );
- QLabel* lConflictHandling = new QLabel( i18n("Conflict handling")+":", parent, "lConflictHandling" );
+ TQHBoxLayout* conflictHandlingBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lConflictHandling = new TQLabel( i18n("Conflict handling")+":", tqparent, "lConflictHandling" );
conflictHandlingBox->addWidget( lConflictHandling );
- cConflictHandling = new KComboBox( parent, "cConflictHandling" );
- QToolTip::add( cConflictHandling, i18n("Do that if the output file already exists") );
+ cConflictHandling = new KComboBox( tqparent, "cConflictHandling" );
+ TQToolTip::add( cConflictHandling, i18n("Do that if the output file already exists") );
sConflictHandling += i18n("Generate new file name");
sConflictHandling += i18n("Skip file");
cConflictHandling->insertStringList( sConflictHandling );
cConflictHandling->setCurrentItem( config->data.general.conflictHandling );
conflictHandlingBox->addWidget( cConflictHandling );
- connect( cConflictHandling, SIGNAL(activated(int)),
- this, SLOT(cfgChanged())
+ connect( cConflictHandling, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* numFilesBox = new QHBoxLayout( box, 6 );
- QLabel* lNumFiles = new QLabel( i18n("Number of files to convert at once")+":", parent, "lNumFiles" );
+ TQHBoxLayout* numFilesBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lNumFiles = new TQLabel( i18n("Number of files to convert at once")+":", tqparent, "lNumFiles" );
numFilesBox->addWidget( lNumFiles );
- iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, parent, "iNumFiles" );
+ iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, tqparent, "iNumFiles" );
numFilesBox->addWidget( iNumFiles );
- connect( iNumFiles, SIGNAL(valueChanged(int)),
- this, SLOT(cfgChanged())
+ connect( iNumFiles, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* updateDelayBox = new QHBoxLayout( box, 6 );
- QLabel* lUpdateDelay = new QLabel( i18n("Status update delay (time in msec.)")+":", parent, "lUpdateDelay" );
+ TQHBoxLayout* updateDelayBox = new TQHBoxLayout( box, 6 );
+ TQLabel* lUpdateDelay = new TQLabel( i18n("tqStatus update delay (time in msec.)")+":", tqparent, "lUpdateDelay" );
updateDelayBox->addWidget( lUpdateDelay );
- iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, parent, "iUpdateDelay" );
- QToolTip::add( iUpdateDelay, i18n("Update the progress bar in this interval (time in milliseconds)") );
+ iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, tqparent, "iUpdateDelay" );
+ TQToolTip::add( iUpdateDelay, i18n("Update the progress bar in this interval (time in milliseconds)") );
updateDelayBox->addWidget( iUpdateDelay );
- connect( iUpdateDelay, SIGNAL(valueChanged(int)),
- this, SLOT(cfgChanged())
+ connect( iUpdateDelay, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* askForNewOptionsBox = new QHBoxLayout( box, 6 );
- cAskForNewOptions = new QCheckBox( i18n("Ask for new options, when adding files from external program"), parent, "cAskForNewOptions" );
- QToolTip::add( cAskForNewOptions, i18n("If you open a file with soundKonverter and soundKonverter is already running,\nyou can either be asked to define new converting options\nor the current settings from the soundKonverter main window are used.") );
+ TQHBoxLayout* askForNewOptionsBox = new TQHBoxLayout( box, 6 );
+ cAskForNewOptions = new TQCheckBox( i18n("Ask for new options, when adding files from external program"), tqparent, "cAskForNewOptions" );
+ TQToolTip::add( cAskForNewOptions, i18n("If you open a file with soundKonverter and soundKonverter is already running,\nyou can either be asked to define new converting options\nor the current settings from the soundKonverter main window are used.") );
cAskForNewOptions->setChecked( config->data.general.askForNewOptions );
askForNewOptionsBox->addWidget( cAskForNewOptions );
- connect( cAskForNewOptions, SIGNAL(toggled(bool)),
- this, SLOT(cfgChanged())
+ connect( cAskForNewOptions, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(cfgChanged())
);
box->addSpacing( 5 );
- QHBoxLayout* executeUserScriptBox = new QHBoxLayout( box, 6 );
- cExecuteUserScript = new QCheckBox( i18n("Execute user script (for advanced users)"), parent, "cAskForNewOptions" );
- QToolTip::add( cExecuteUserScript, i18n("Executes a script after every finished conversion. Have a look at $KDEDIR/soundkonverter/userscript.sh") );
+ TQHBoxLayout* executeUserScriptBox = new TQHBoxLayout( box, 6 );
+ cExecuteUserScript = new TQCheckBox( i18n("Execute user script (for advanced users)"), tqparent, "cAskForNewOptions" );
+ TQToolTip::add( cExecuteUserScript, i18n("Executes a script after every finished conversion. Have a look at $KDEDIR/soundkonverter/userscript.sh") );
cExecuteUserScript->setChecked( config->data.general.executeUserScript );
executeUserScriptBox->addWidget( cExecuteUserScript );
- connect( cExecuteUserScript, SIGNAL(toggled(bool)),
- this, SLOT(cfgChanged())
+ connect( cExecuteUserScript, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(cfgChanged())
);
box->addStretch();
@@ -202,7 +202,7 @@ void ConfigGeneralPage::resetDefaults()
cStartTab->setCurrentItem( 0 );
cDefaultProfile->setCurrentItem( 0 );
cDefaultFormat->setCurrentItem( 0 );
-// lDir->setText( QDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
+// lDir->setText( TQDir::homeDirPath() + "/soundKonverter/%b/%d - %n - %a - %t" );
cPriority->setCurrentItem( 1 );
cUseVFATNames->setChecked( true );
cConflictHandling->setCurrentItem( 0 );
@@ -229,31 +229,31 @@ void ConfigGeneralPage::saveSettings()
config->data.general.executeUserScript = cExecuteUserScript->isChecked();
}
-int ConfigGeneralPage::profileIndex( const QString &string )
+int ConfigGeneralPage::profileIndex( const TQString &string )
{
- return sDefaultProfile.findIndex( string );
+ return sDefaultProfile.tqfindIndex( string );
}
-int ConfigGeneralPage::formatIndex( const QString &string )
+int ConfigGeneralPage::formatIndex( const TQString &string )
{
- return sDefaultFormat.findIndex( string );
+ return sDefaultFormat.tqfindIndex( string );
}
// void ConfigGeneralPage::selectDir()
// {
-// QString startDir = lDir->text();
-// int i = startDir.find( QRegExp("%[aAbBcCdDgGnNpPtTyY]{1,1}") );
+// TQString startDir = lDir->text();
+// int i = startDir.tqfind( TQRegExp("%[aAbBcCdDgGnNpPtTyY]{1,1}") );
// if( i != -1 ) {
-// i = startDir.findRev( "/", i );
+// i = startDir.tqfindRev( "/", i );
// startDir = startDir.left( i );
// }
//
-// QString directory = KFileDialog::getExistingDirectory( startDir, 0, i18n("Choose an output directory") );
+// TQString directory = KFileDialog::getExistingDirectory( startDir, 0, i18n("Choose an output directory") );
// if( !directory.isEmpty() ) {
-// QString dir = lDir->text();
-// i = dir.find( QRegExp("%[aAbBcCdDgGnNpPtTyY]{1,1}") );
+// TQString dir = lDir->text();
+// i = dir.tqfind( TQRegExp("%[aAbBcCdDgGnNpPtTyY]{1,1}") );
// if( i != -1 ) {
-// i = dir.findRev( "/", i );
+// i = dir.tqfindRev( "/", i );
// lDir->setText( directory + dir.mid(i) );
// }
// else {
@@ -264,7 +264,7 @@ int ConfigGeneralPage::formatIndex( const QString &string )
void ConfigGeneralPage::profileChanged()
{
- QString last;
+ TQString last;
if( cDefaultProfile->currentText() == i18n("Last used") ) {
last = cDefaultFormat->currentText();
diff --git a/src/configgeneralpage.h b/src/configgeneralpage.h
index 270cb47..f8d912e 100755
--- a/src/configgeneralpage.h
+++ b/src/configgeneralpage.h
@@ -6,7 +6,7 @@
#include
class Config;
-class QCheckBox;
+class TQCheckBox;
class KComboBox;
class KIntSpinBox;
class KLineEdit;
@@ -20,11 +20,12 @@ class KPushButton;
class ConfigGeneralPage : public ConfigPageBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default Constructor
*/
- ConfigGeneralPage( Config*, QWidget *parent=0, const char *name=0 );
+ ConfigGeneralPage( Config*, TQWidget *tqparent=0, const char *name=0 );
/**
* Default Destructor
@@ -34,26 +35,26 @@ public:
private:
KComboBox* cStartTab;
KComboBox* cDefaultProfile;
- QStringList sDefaultProfile;
+ TQStringList sDefaultProfile;
KComboBox* cDefaultFormat;
- QStringList sDefaultFormat;
+ TQStringList sDefaultFormat;
// KLineEdit* lDir;
//KPushButton* pDirInfo;
// KPushButton* pDirSelect;
KComboBox* cPriority;
- QStringList sPriority;
- QCheckBox* cUseVFATNames;
- QStringList sConflictHandling;
+ TQStringList sPriority;
+ TQCheckBox* cUseVFATNames;
+ TQStringList sConflictHandling;
KComboBox* cConflictHandling;
KIntSpinBox* iNumFiles;
KIntSpinBox* iUpdateDelay;
- QCheckBox* cAskForNewOptions;
- QCheckBox* cExecuteUserScript;
+ TQCheckBox* cAskForNewOptions;
+ TQCheckBox* cExecuteUserScript;
Config* config;
- int profileIndex( const QString& string );
- int formatIndex( const QString& string );
+ int profileIndex( const TQString& string );
+ int formatIndex( const TQString& string );
public slots:
void resetDefaults();
diff --git a/src/configpagebase.cpp b/src/configpagebase.cpp
index 1aedea5..f904de3 100755
--- a/src/configpagebase.cpp
+++ b/src/configpagebase.cpp
@@ -1,8 +1,8 @@
#include "configpagebase.h"
-ConfigPageBase::ConfigPageBase( QWidget *parent, const char *name )
- : QWidget( parent, name )
+ConfigPageBase::ConfigPageBase( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{}
ConfigPageBase::~ConfigPageBase()
diff --git a/src/configpagebase.h b/src/configpagebase.h
index 802bb2d..23aad2b 100755
--- a/src/configpagebase.h
+++ b/src/configpagebase.h
@@ -3,21 +3,22 @@
#ifndef CONFIGPAGEBASE_H
#define CONFIGPAGEBASE_H
-#include
+#include
/**
* @short The base for all pages of the config dialog
* @author Daniel Faust
* @version 0.3
*/
-class ConfigPageBase : public QWidget
+class ConfigPageBase : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- ConfigPageBase( QWidget *parent=0, const char *name=0 );
+ ConfigPageBase( TQWidget *tqparent=0, const char *name=0 );
/**
* Destructor
diff --git a/src/configpluginspage.cpp b/src/configpluginspage.cpp
index a6bc560..a79f852 100755
--- a/src/configpluginspage.cpp
+++ b/src/configpluginspage.cpp
@@ -5,16 +5,16 @@
#include "replaygainpluginloader.h"
#include "ripperpluginloader.h"
-#include
-#include
-#include
-#include
-#include
-// #include
-// #include
-#include
-#include
-// #include
+#include
+#include
+#include
+#include
+#include
+// #include
+// #include
+#include
+#include
+// #include
#include
#include
@@ -26,88 +26,88 @@
#include
//#include
-ConfigPluginsPage::ConfigPluginsPage( Config* _config, QWidget* parent, const char* name )
- : ConfigPageBase( parent, name )
+ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* tqparent, const char* name )
+ : ConfigPageBase( tqparent, name )
{
config = _config;
// create an icon loader object for loading icons
KIconLoader* iconLoader = new KIconLoader();
- QVBoxLayout* box = new QVBoxLayout( parent, 0, 6 );
+ TQVBoxLayout* box = new TQVBoxLayout( tqparent, 0, 6 );
- QLabel* lPluginsLabel = new QLabel( i18n("Installed plugins")+":", parent, "lPluginsLabel" );
+ TQLabel* lPluginsLabel = new TQLabel( i18n("Installed plugins")+":", tqparent, "lPluginsLabel" );
box->addWidget( lPluginsLabel );
- QHBoxLayout* pluginsBox = new QHBoxLayout( box );
- lPlugins = new KListBox( parent, "lPlugins" );
+ TQHBoxLayout* pluginsBox = new TQHBoxLayout( box );
+ lPlugins = new KListBox( tqparent, "lPlugins" );
pluginsBox->addWidget(lPlugins);
- connect( lPlugins, SIGNAL(highlighted(int)),
- this, SLOT(pluginsSelectionChanged(int))
+ connect( lPlugins, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(pluginsSelectionChanged(int))
);
refreshPlugins();
- QVBoxLayout* pluginsRightBox = new QVBoxLayout( pluginsBox );
- pAddPlugin = new KPushButton( iconLoader->loadIcon("add",KIcon::Small), i18n("Add ..."), parent, "pAddPlugin" );
+ TQVBoxLayout* pluginsRightBox = new TQVBoxLayout( pluginsBox );
+ pAddPlugin = new KPushButton( iconLoader->loadIcon("add",KIcon::Small), i18n("Add ..."), tqparent, "pAddPlugin" );
pluginsRightBox->addWidget( pAddPlugin );
- connect( pAddPlugin, SIGNAL(clicked()),
- this, SLOT(getPlugin())
+ connect( pAddPlugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(getPlugin())
);
- pRemovePlugin = new KPushButton( iconLoader->loadIcon("remove",KIcon::Small), i18n("Remove"), parent, "pRemovePlugin" );
+ pRemovePlugin = new KPushButton( iconLoader->loadIcon("remove",KIcon::Small), i18n("Remove"), tqparent, "pRemovePlugin" );
pRemovePlugin->setEnabled( false );
pluginsRightBox->addWidget( pRemovePlugin );
- connect( pRemovePlugin, SIGNAL(clicked()),
- this, SLOT(removePlugin())
+ connect( pRemovePlugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(removePlugin())
);
pluginsRightBox->addStretch();
- pAboutPlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("About"), parent, "pAboutPlugin" );
+ pAboutPlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("About"), tqparent, "pAboutPlugin" );
pAboutPlugin->setEnabled( false );
pluginsRightBox->addWidget( pAboutPlugin );
- connect( pAboutPlugin, SIGNAL(clicked()),
- this, SLOT(aboutPlugin())
+ connect( pAboutPlugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(aboutPlugin())
);
/* NOTE kaligames.de is down
box->addSpacing( 5 );
- QLabel* lOnlinePluginsLabel = new QLabel( i18n("Available plugins")+":", parent, "lOnlinePluginsLabel" );
+ TQLabel* lOnlinePluginsLabel = new TQLabel( i18n("Available plugins")+":", tqparent, "lOnlinePluginsLabel" );
box->addWidget( lOnlinePluginsLabel );
- QHBoxLayout* onlinePluginsBox = new QHBoxLayout( box );
- lOnlinePlugins = new KListBox( parent, "lOnlinePlugins" );
+ TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box );
+ lOnlinePlugins = new KListBox( tqparent, "lOnlinePlugins" );
onlinePluginsBox->addWidget( lOnlinePlugins );
- connect( lOnlinePlugins, SIGNAL(highlighted(int)),
- this, SLOT(onlinePluginsSelectionChanged(int))
+ connect( lOnlinePlugins, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(onlinePluginsSelectionChanged(int))
);
- QVBoxLayout* onlinePluginsRightBox = new QVBoxLayout( onlinePluginsBox );
- pRefreshOnlinePlugins = new KPushButton( iconLoader->loadIcon("reload",KIcon::Small), i18n("Refresh"), parent, "pRefreshOnlinePlugins" );
- QToolTip::add( pRefreshOnlinePlugins, i18n("Download the latest list of available plugins.") );
+ TQVBoxLayout* onlinePluginsRightBox = new TQVBoxLayout( onlinePluginsBox );
+ pRefreshOnlinePlugins = new KPushButton( iconLoader->loadIcon("reload",KIcon::Small), i18n("Refresh"), tqparent, "pRefreshOnlinePlugins" );
+ TQToolTip::add( pRefreshOnlinePlugins, i18n("Download the latest list of available plugins.") );
onlinePluginsRightBox->addWidget( pRefreshOnlinePlugins );
- connect( pRefreshOnlinePlugins, SIGNAL(clicked()),
- this, SLOT(refreshOnlinePlugins())
+ connect( pRefreshOnlinePlugins, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(refreshOnlinePlugins())
);
// TODO upgrade button
-// pUpgradeOnlinePlugins = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Upgrade"), parent, "pUpgradeOnlinePlugins" );
+// pUpgradeOnlinePlugins = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Upgrade"), tqparent, "pUpgradeOnlinePlugins" );
// pUpgradeOnlinePlugins->setEnabled( false );
-// QToolTip::add( pUpgradeOnlinePlugins, i18n("Download all plugins and install them into the soundKonverter directory.") );
+// TQToolTip::add( pUpgradeOnlinePlugins, i18n("Download all plugins and install them into the soundKonverter directory.") );
// onlinePluginsRightBox->addWidget( pUpgradeOnlinePlugins );
-// connect(pInstallAllOnlinePlugins,SIGNAL(clicked()),this,SLOT(upgradeOnlinePlugins()));
+// connect(pInstallAllOnlinePlugins,TQT_SIGNAL(clicked()),this,TQT_SLOT(upgradeOnlinePlugins()));
onlinePluginsRightBox->addStretch();
- pInstallOnlinePlugin = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Install"), parent, "pInstallOnlinePlugin" );
+ pInstallOnlinePlugin = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Install"), tqparent, "pInstallOnlinePlugin" );
pInstallOnlinePlugin->setEnabled( false );
- QToolTip::add( pInstallOnlinePlugin, i18n("Download the selected plugin and install it into the soundKonverter directory.") );
+ TQToolTip::add( pInstallOnlinePlugin, i18n("Download the selected plugin and install it into the soundKonverter directory.") );
onlinePluginsRightBox->addWidget( pInstallOnlinePlugin );
- connect( pInstallOnlinePlugin, SIGNAL(clicked()),
- this, SLOT(getOnlinePlugin())
+ connect( pInstallOnlinePlugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(getOnlinePlugin())
);
- pAboutOnlinePlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("About"), parent, "pAboutOnlinePlugin" );
+ pAboutOnlinePlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",KIcon::Small), i18n("About"), tqparent, "pAboutOnlinePlugin" );
pAboutOnlinePlugin->setEnabled( false );
onlinePluginsRightBox->addWidget( pAboutOnlinePlugin );
- connect( pAboutOnlinePlugin, SIGNAL(clicked()),
- this, SLOT(aboutOnlinePlugin())
+ connect( pAboutOnlinePlugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(aboutOnlinePlugin())
);
- cCheckOnlinePlugins = new QCheckBox( i18n("Check for new plugins on every startup"), parent, "cCheckOnlinePlugins" );
+ cCheckOnlinePlugins = new TQCheckBox( i18n("Check for new plugins on every startup"), tqparent, "cCheckOnlinePlugins" );
cCheckOnlinePlugins->setChecked( config->data.plugins.checkForUpdates );
box->addWidget( cCheckOnlinePlugins );
- connect( cCheckOnlinePlugins, SIGNAL(toggled(bool)),
- this, SLOT(cfgChanged())
+ connect( cCheckOnlinePlugins, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(cfgChanged())
);
// box->addStretch();
@@ -117,21 +117,21 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, QWidget* parent, const ch
if( config->data.plugins.checkForUpdates && config->onlinePluginsChanged ) {
// NOTE copied from below
- QString line;
+ TQString line;
bool add;
- QFile file( locateLocal("data","soundkonverter/pluginlist.txt") );
+ TQFile file( locateLocal("data","soundkonverter/pluginlist.txt") );
if( file.open(IO_ReadOnly) ) {
- QTextStream stream( &file );
+ TQTextStream stream( &file );
while( !stream.atEnd() ) {
line = stream.readLine(); // line of text excluding '\n'
- line.replace( "&", "&" );
- line.replace( "ä", "ä" );
- line.replace( "Ä", "Ä" );
- line.replace( "ö", "ö" );
- line.replace( "Ö", "Ö" );
- line.replace( "ü", "ü" );
- line.replace( "Ü", "Ãœ" );
- line.replace( "ß", "ß" );
+ line.tqreplace( "&", "&" );
+ line.tqreplace( "ä", "ä" );
+ line.tqreplace( "Ä", "Ä" );
+ line.tqreplace( "ö", "ö" );
+ line.tqreplace( "Ö", "Ö" );
+ line.tqreplace( "ü", "ü" );
+ line.tqreplace( "Ü", "Ãœ" );
+ line.tqreplace( "ß", "ß" );
add = true;
for( uint i=0; icount(); i++ ) {
@@ -165,32 +165,32 @@ void ConfigPluginsPage::saveSettings()
void ConfigPluginsPage::pluginsSelectionChanged( int index )
{
- QString name = lPlugins->text( index );
+ TQString name = lPlugins->text( index );
- QValueList converters = config->allConverters();
- for( QValueList::Iterator it = converters.begin(); it != converters.end(); ++it ) {
- if( name == (*it)->info.name + " v. " + QString::number((*it)->info.version) ) {
- QFileInfo file( (*it)->filePathName );
+ TQValueList converters = config->allConverters();
+ for( TQValueList::Iterator it = converters.begin(); it != converters.end(); ++it ) {
+ if( name == (*it)->info.name + " v. " + TQString::number((*it)->info.version) ) {
+ TQFileInfo file( (*it)->filePathName );
if( file.isWritable() ) pRemovePlugin->setEnabled( true );
else pRemovePlugin->setEnabled( false );
break;
}
}
- QValueList replaygains = config->allReplayGains();
- for( QValueList::Iterator it = replaygains.begin(); it != replaygains.end(); ++it ) {
- if( name == (*it)->info.name + " v. " + QString::number((*it)->info.version) ) {
- QFileInfo file( (*it)->filePathName );
+ TQValueList replaygains = config->allReplayGains();
+ for( TQValueList::Iterator it = replaygains.begin(); it != replaygains.end(); ++it ) {
+ if( name == (*it)->info.name + " v. " + TQString::number((*it)->info.version) ) {
+ TQFileInfo file( (*it)->filePathName );
if( file.isWritable() ) pRemovePlugin->setEnabled( true );
else pRemovePlugin->setEnabled( false );
break;
}
}
- QValueList