diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-18 06:46:40 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-18 06:46:40 +0000 |
commit | 7c19562ad065b6729bac8eb9b40dfe0452a72272 (patch) | |
tree | 33325d1e02ecc9ca614c7209296f8f796a1c3478 /kipi-plugins/sendimages | |
parent | a65baa328fac0a1ce12971fef8d998ce7bfbe237 (diff) | |
download | kipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.tar.gz kipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.zip |
TQt4 port kipi-plugins
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1232561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/sendimages')
-rw-r--r-- | kipi-plugins/sendimages/actions.h | 6 | ||||
-rw-r--r-- | kipi-plugins/sendimages/listimageserrordialog.cpp | 38 | ||||
-rw-r--r-- | kipi-plugins/sendimages/listimageserrordialog.h | 5 | ||||
-rw-r--r-- | kipi-plugins/sendimages/plugin_sendimages.cpp | 42 | ||||
-rw-r--r-- | kipi-plugins/sendimages/plugin_sendimages.h | 9 | ||||
-rw-r--r-- | kipi-plugins/sendimages/sendimages.cpp | 246 | ||||
-rw-r--r-- | kipi-plugins/sendimages/sendimages.h | 53 | ||||
-rw-r--r-- | kipi-plugins/sendimages/sendimagesdialog.cpp | 274 | ||||
-rw-r--r-- | kipi-plugins/sendimages/sendimagesdialog.h | 78 |
9 files changed, 378 insertions, 373 deletions
diff --git a/kipi-plugins/sendimages/actions.h b/kipi-plugins/sendimages/actions.h index 6946e19..a1a72c8 100644 --- a/kipi-plugins/sendimages/actions.h +++ b/kipi-plugins/sendimages/actions.h @@ -50,9 +50,9 @@ public: int total; - QString fileName; - QString albumName; - QString errString; + TQString fileName; + TQString albumName; + TQString errString; Action action; }; diff --git a/kipi-plugins/sendimages/listimageserrordialog.cpp b/kipi-plugins/sendimages/listimageserrordialog.cpp index 307c7fa..6272e32 100644 --- a/kipi-plugins/sendimages/listimageserrordialog.cpp +++ b/kipi-plugins/sendimages/listimageserrordialog.cpp @@ -20,15 +20,15 @@ * * ============================================================ */ -// Qt includes +// TQt includes -#include <qpushbutton.h> -#include <qlayout.h> -#include <qstringlist.h> -#include <qstring.h> -#include <qlabel.h> -#include <qfileinfo.h> -#include <qframe.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqstringlist.h> +#include <tqstring.h> +#include <tqlabel.h> +#include <tqfileinfo.h> +#include <tqframe.h> // KDElib includes @@ -45,31 +45,31 @@ namespace KIPISendimagesPlugin { -listImagesErrorDialog::listImagesErrorDialog(QWidget* parent, QString Caption, - const QString &Mess1, const QString &Mess2, +listImagesErrorDialog::listImagesErrorDialog(TQWidget* tqparent, TQString Caption, + const TQString &Mess1, const TQString &Mess2, KURL::List ListOfiles) - : KDialogBase( Caption, Yes|No|Cancel, Yes, Cancel, parent, + : KDialogBase( Caption, Yes|No|Cancel, Yes, Cancel, tqparent, "listImagesErrorDialog", true, false ) { - QWidget* box = new QWidget( this ); + TQWidget* box = new TQWidget( this ); setMainWidget(box); - QVBoxLayout* ml = new QVBoxLayout(box); + TQVBoxLayout* ml = new TQVBoxLayout(box); //--------------------------------------------- - QHBoxLayout* h1 = new QHBoxLayout( ml ); - QVBoxLayout* v1 = new QVBoxLayout( h1 ); + TQHBoxLayout* h1 = new TQHBoxLayout( ml ); + TQVBoxLayout* v1 = new TQVBoxLayout( h1 ); h1->addSpacing( 5 ); - QGridLayout* g1 = new QGridLayout( v1, 1, 3 ); + TQGridLayout* g1 = new TQGridLayout( v1, 1, 3 ); - QLabel *labelMess1 = new QLabel ( Mess1, box); + TQLabel *labelMess1 = new TQLabel ( Mess1, box); m_listFiles = new KListView( box ); m_listFiles->addColumn(i18n("Image File Name")); m_listFiles->addColumn(i18n("From Album")); m_listFiles->setSorting(1); m_listFiles->setItemMargin(3); - m_listFiles->setResizeMode(QListView::LastColumn); - QLabel *labelMess2 = new QLabel ( Mess2, box); + m_listFiles->setResizeMode(TQListView::LastColumn); + TQLabel *labelMess2 = new TQLabel ( Mess2, box); g1->addWidget (labelMess1, 1, 1); g1->addWidget (m_listFiles, 2, 1); diff --git a/kipi-plugins/sendimages/listimageserrordialog.h b/kipi-plugins/sendimages/listimageserrordialog.h index 494b4d4..39f27f8 100644 --- a/kipi-plugins/sendimages/listimageserrordialog.h +++ b/kipi-plugins/sendimages/listimageserrordialog.h @@ -36,11 +36,12 @@ namespace KIPISendimagesPlugin class listImagesErrorDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - listImagesErrorDialog(QWidget* parent, QString Caption, - const QString &Mess1, const QString &Mess2, + listImagesErrorDialog(TQWidget* tqparent, TQString Caption, + const TQString &Mess1, const TQString &Mess2, KURL::List ListOfiles); ~listImagesErrorDialog(); diff --git a/kipi-plugins/sendimages/plugin_sendimages.cpp b/kipi-plugins/sendimages/plugin_sendimages.cpp index f6441a0..09d5ffa 100644 --- a/kipi-plugins/sendimages/plugin_sendimages.cpp +++ b/kipi-plugins/sendimages/plugin_sendimages.cpp @@ -62,14 +62,14 @@ K_EXPORT_COMPONENT_FACTORY( kipiplugin_sendimages, Factory("kipiplugin_sendimages")) // ----------------------------------------------------------- -Plugin_SendImages::Plugin_SendImages(QObject *parent, const char*, const QStringList&) - : KIPI::Plugin( Factory::instance(), parent, "SendImages") +Plugin_SendImages::Plugin_SendImages(TQObject *tqparent, const char*, const TQStringList&) + : KIPI::Plugin( Factory::instance(), tqparent, "SendImages") { kdDebug( 51001 ) << "Plugin_SendImages plugin loaded" << endl; } -void Plugin_SendImages::setup( QWidget* widget ) +void Plugin_SendImages::setup( TQWidget* widget ) { KIPI::Plugin::setup( widget ); @@ -77,13 +77,13 @@ void Plugin_SendImages::setup( QWidget* widget ) "mail_new", // Menu icon. 0, this, - SLOT(slotActivate()), + TQT_SLOT(slotActivate()), actionCollection(), "send_images"); addAction( m_action_sendimages ); - KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( parent() ); + KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( tqparent() ); if ( !interface ) { kdError( 51000 ) << "Kipi interface is null!" << endl; @@ -94,8 +94,8 @@ void Plugin_SendImages::setup( QWidget* widget ) m_action_sendimages->setEnabled( selection.isValid() && !selection.images().isEmpty() ); - connect( interface, SIGNAL(selectionChanged(bool)), - m_action_sendimages, SLOT(setEnabled(bool))); + connect( interface, TQT_SIGNAL(selectionChanged(bool)), + m_action_sendimages, TQT_SLOT(setEnabled(bool))); } Plugin_SendImages::~Plugin_SendImages() @@ -106,7 +106,7 @@ void Plugin_SendImages::slotActivate() { m_progressDlg = 0; - KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( parent() ); + KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( tqparent() ); if ( !interface ) { kdError( 51000 ) << "Kipi interface is null!" << endl; @@ -119,7 +119,7 @@ void Plugin_SendImages::slotActivate() return; KStandardDirs dir; - QString Tmp = dir.saveLocation("tmp", "kipi-sendimagesplugin-" + QString::number(getpid()) + "/"); + TQString Tmp = dir.saveLocation("tmp", "kipi-sendimagesplugin-" + TQString::number(getpid()) + "/"); m_sendImagesOperation = new KIPISendimagesPlugin::SendImages( interface, Tmp, images, this ); @@ -139,16 +139,16 @@ void Plugin_SendImages::slotCancel() m_sendImagesOperation->removeTmpFiles(); } -void Plugin_SendImages::customEvent(QCustomEvent *event) +void Plugin_SendImages::customEvent(TQCustomEvent *event) { if (!event) return; if (!m_progressDlg) { - m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Preparing images to send")); + m_progressDlg = new KIPI::BatchProgressDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Preparing images to send")); - connect(m_progressDlg, SIGNAL(cancelClicked()), - this, SLOT(slotCancel())); + connect(m_progressDlg, TQT_SIGNAL(cancelClicked()), + this, TQT_SLOT(slotCancel())); m_current = 0; m_progressDlg->show(); @@ -160,7 +160,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) if (d->starting) { - QString text; + TQString text; switch (d->action) { @@ -174,14 +174,14 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) case(KIPISendimagesPlugin::ResizeImages): { text = i18n("Resizing '%1' from Album '%2'...") - .arg(d->fileName).arg(d->albumName); + .tqarg(d->fileName).tqarg(d->albumName); break; } case(KIPISendimagesPlugin::Progress): { text = i18n("Using '%1' from Album '%2' without resizing...") - .arg(d->fileName).arg(d->albumName); + .tqarg(d->fileName).tqarg(d->albumName); break; } @@ -195,7 +195,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) } else { - QString text; + TQString text; if (!d->success) { @@ -204,7 +204,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) case(KIPISendimagesPlugin::ResizeImages): { text = i18n("Failed to resize '%1' from Album '%2'") - .arg(d->fileName).arg(d->albumName); + .tqarg(d->fileName).tqarg(d->albumName); break; } @@ -223,7 +223,7 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) case(KIPISendimagesPlugin::ResizeImages): { text = i18n("Resizing '%1' from Album '%2' completed.") - .arg(d->fileName).arg(d->albumName); + .tqarg(d->fileName).tqarg(d->albumName); break; } @@ -261,8 +261,8 @@ void Plugin_SendImages::customEvent(QCustomEvent *event) m_progressDlg->setButtonCancelText( i18n("&Close") ); #endif - disconnect(m_progressDlg, SIGNAL(cancelClicked()), - this, SLOT(slotCancel())); + disconnect(m_progressDlg, TQT_SIGNAL(cancelClicked()), + this, TQT_SLOT(slotCancel())); // Create a text file with images comments if necessary. diff --git a/kipi-plugins/sendimages/plugin_sendimages.h b/kipi-plugins/sendimages/plugin_sendimages.h index dee11c5..fd1eb20 100644 --- a/kipi-plugins/sendimages/plugin_sendimages.h +++ b/kipi-plugins/sendimages/plugin_sendimages.h @@ -27,7 +27,7 @@ #include <libkipi/plugin.h> -class QCustomEvent; +class TQCustomEvent; class KAction; class KIPISendimagesPlugin::SendImages; @@ -40,14 +40,15 @@ namespace KIPI class Plugin_SendImages : public KIPI::Plugin { Q_OBJECT + TQ_OBJECT public: - Plugin_SendImages(QObject *parent, const char* name, const QStringList &args); + Plugin_SendImages(TQObject *tqparent, const char* name, const TQStringList &args); ~Plugin_SendImages(); virtual KIPI::Category category( KAction* action ) const; - virtual void setup( QWidget* ); + virtual void setup( TQWidget* ); public slots: @@ -57,7 +58,7 @@ public slots: private: - void customEvent(QCustomEvent *event); + void customEvent(TQCustomEvent *event); private: diff --git a/kipi-plugins/sendimages/sendimages.cpp b/kipi-plugins/sendimages/sendimages.cpp index abbdf62..b90e7d0 100644 --- a/kipi-plugins/sendimages/sendimages.cpp +++ b/kipi-plugins/sendimages/sendimages.cpp @@ -22,17 +22,17 @@ * * ============================================================ */ -// Qt includes. - -#include <qfileinfo.h> -#include <qdir.h> -#include <qimage.h> -#include <qprogressdialog.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qtimer.h> -#include <qurl.h> -#include <qdeepcopy.h> +// TQt includes. + +#include <tqfileinfo.h> +#include <tqdir.h> +#include <tqimage.h> +#include <tqprogressdialog.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqtimer.h> +#include <tqurl.h> +#include <tqdeepcopy.h> // KDE includes @@ -79,20 +79,20 @@ namespace KIPISendimagesPlugin { ///Constructor: saves system handoff parameters in member variables -SendImages::SendImages(KIPI::Interface* interface, const QString &tmpFolder, - const KIPI::ImageCollection& imagesCollection, QObject *parent) - : QObject(parent), QThread() +SendImages::SendImages(KIPI::Interface* interface, const TQString &tmpFolder, + const KIPI::ImageCollection& imagesCollection, TQObject *tqparent) + : TQObject(tqparent), TQThread() { m_invokedBefore = false; m_interface = interface; m_tmp = tmpFolder; m_collection = imagesCollection; - m_parent = parent; - m_mozillaTimer = new QTimer(this); + m_parent = tqparent; + m_mozillaTimer = new TQTimer(this); KImageIO::registerFormats(); - connect(m_mozillaTimer, SIGNAL(timeout()), - this, SLOT(slotMozillaTimeout())); + connect(m_mozillaTimer, TQT_SIGNAL(timeout()), + this, TQT_SLOT(slotMozillaTimeout())); } ///Destructor @@ -105,12 +105,12 @@ SendImages::~SendImages() ///Invokes the User Dialog Window void SendImages::showDialog() { - m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(kapp->activeWindow(), + m_sendImagesDialog = new KIPISendimagesPlugin::SendImagesDialog(TQT_TQWIDGET(kapp->activeWindow()), m_interface, m_collection); m_sendImagesDialog->show(); - connect(m_sendImagesDialog, SIGNAL(signalAccepted()), - m_parent, SLOT(slotAcceptedConfigDlg())); + connect(m_sendImagesDialog, TQT_SIGNAL(signalAccepted()), + m_parent, TQT_SLOT(slotAcceptedConfigDlg())); } /** Execute the no threadable operations before the real thread. @@ -142,12 +142,12 @@ void SendImages::run() d->starting = true; d->success = false; d->total = m_images.count(); - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); for( KURL::List::Iterator it = m_images.begin() ; it != m_images.end() ; ++it ) { - QString imageName = (*it).path(); - QString ItemName = imageName.section( '/', -1 ); + TQString imageName = (*it).path(); + TQString ItemName = imageName.section( '/', -1 ); d = new KIPISendimagesPlugin::EventData; d->action = KIPISendimagesPlugin::ResizeImages; @@ -155,15 +155,15 @@ void SendImages::run() d->albumName = (*it).directory().section('/', -1); d->starting = true; d->success = false; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); // Prepare resized target images to send. - QString imageFileName=""; + TQString imageFileName=""; KIPI::ImageInfo info = m_interface->info( *it ); ///Generate filename of destination image - QString commentItem = info.description(); + TQString commentItem = info.description(); if ((m_sendImagesDialog->m_comment2ImageName->isChecked() == true ) && !commentItem.isEmpty() ) @@ -172,41 +172,41 @@ void SendImages::run() } else { - commentItem = ItemName.left(ItemName.findRev('.')); + commentItem = ItemName.left(ItemName.tqfindRev('.')); qDebug("commentItem is empty"); } - //QString TempFileName = (*it).directory().section('/', -1); - QString TempFileName=(*it).path().section('/', -2,-2)+"/"+commentItem+ + //TQString TempFileName = (*it).directory().section('/', -1); + TQString TempFileName=(*it).path().section('/', -2,-2)+"/"+commentItem+ +"."+(*it).path().section('.', -1,-1); qDebug("TempFileName: %s",TempFileName.ascii()); // Thunderbird does not like (). Replace them, BUG:131343 - TempFileName.replace(QChar('('), "_").replace(QChar(')'), "_"); + TempFileName.tqreplace(TQChar('('), "_").tqreplace(TQChar(')'), "_"); // and these characters are better eliminated, too ;-) - TempFileName.replace(QChar(','), "_").replace(QChar(' '), "_"); - TempFileName.replace(QChar(';'), "_").replace(QChar('%'), "_"); - TempFileName.replace(QChar('/'), "-").replace(QChar('?'), ""); - TempFileName.replace(QChar('"'), ""); + TempFileName.tqreplace(TQChar(','), "_").tqreplace(TQChar(' '), "_"); + TempFileName.tqreplace(TQChar(';'), "_").tqreplace(TQChar('%'), "_"); + TempFileName.tqreplace(TQChar('/'), "-").tqreplace(TQChar('?'), ""); + TempFileName.tqreplace(TQChar('"'), ""); //If TempFileName already exists, add a number oder increase number if (entry_already_exists(m_filesSendList,m_tmp + TempFileName)) { qDebug ("I entered"); - QString secondpart=(m_tmp+TempFileName).section(".",-1,-1); - QString firstpart= + TQString secondpart=(m_tmp+TempFileName).section(".",-1,-1); + TQString firstpart= (m_tmp+TempFileName).left((m_tmp+TempFileName).length()-secondpart.length()-1); qDebug("Firstpart: %s \n Secondpart: %s",firstpart.ascii(), secondpart.ascii()); //Add _integer value in the end and prove again int int_index=2; - QString index=QString::number(int_index,10); + TQString index=TQString::number(int_index,10); while (entry_already_exists(m_filesSendList,firstpart + "_"+index+"."+secondpart)) { int_index++; - index=QString::number(int_index,10); + index=TQString::number(int_index,10); qDebug("Index: %s",index.ascii()); } - QString temp=firstpart + "_"+index+"."+secondpart; + TQString temp=firstpart + "_"+index+"."+secondpart; TempFileName=temp.right(temp.length()-m_tmp.length()); // .section("-",-2,-1); // m_tmp=(firstpart + "_"+index+"."+secondpart).section("-",-2); @@ -216,7 +216,7 @@ void SendImages::run() { // Prepare resizing images. - //QString imageNameFormat = TempFileName.replace(QChar('.'), "_") + + //TQString imageNameFormat = TempFileName.tqreplace(TQChar('.'), "_") + // extension(m_imageFormat); qDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(), @@ -224,7 +224,7 @@ void SendImages::run() // Return value for resizeImageProcess-function, in order to avoid reopening // the image for exiv-writing. - QSize newsize; + TQSize newsize; if ( resizeImageProcess( imageName, m_tmp, m_imageFormat, TempFileName, m_sizeFactor, m_imageCompression, newsize) == false ) @@ -237,7 +237,7 @@ void SendImages::run() d->albumName = (*it).directory().section('/', -1); d->starting = false; d->success = false; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); m_imagesResizedWithError.append(*it); } @@ -245,15 +245,15 @@ void SendImages::run() { // Only try to write Exif if both src and destination are JPEG files. - if (QString(QImageIO::imageFormat(imageName)).upper() == "JPEG" && + if (TQString(TQImageIO::imageFormat(imageName)).upper() == "JPEG" && m_imageFormat.upper() == "JPEG") { - QString targetFile = m_tmp + TempFileName; + TQString targetFile = m_tmp + TempFileName; KExiv2Iface::KExiv2 exiv2Iface; if (exiv2Iface.load(imageName)) { - exiv2Iface.setImageProgramId(QString("Kipi-plugins"), QString(kipiplugins_version)); + exiv2Iface.setImageProgramId(TQString("Kipi-plugins"), TQString(kipiplugins_version)); exiv2Iface.setImageDimensions(newsize); exiv2Iface.save(targetFile); } @@ -269,7 +269,7 @@ void SendImages::run() d->albumName = (*it).directory().section('/', -1); d->starting = false; d->success = true; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); m_filesSendList.append(m_tmp + TempFileName); m_imagesPackage.append(*it); @@ -286,7 +286,7 @@ void SendImages::run() d->albumName = (*it).directory().section('/', -1); d->starting = true; d->success = false; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); m_filesSendList.append(m_tmp + TempFileName); m_imagesPackage.append(*it); @@ -299,10 +299,10 @@ void SendImages::run() d->action = KIPISendimagesPlugin::Progress; d->starting = false; d->success = true; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); } -bool SendImages::entry_already_exists(KURL::List filenamelist,QString entry) +bool SendImages::entry_already_exists(KURL::List filenamelist,TQString entry) { KURL::List::Iterator it = filenamelist.begin(); while( it != filenamelist.end() ) @@ -318,7 +318,7 @@ void SendImages::makeCommentsFile(void) { if ( m_sendImagesDialog->m_addComments->isChecked() == true ) { - QString ImageCommentsText; + TQString ImageCommentsText; KURL::List::Iterator it = m_imagesPackage.begin(); bool anyCommentsPresent = false; @@ -327,9 +327,9 @@ void SendImages::makeCommentsFile(void) { KIPI::ImageInfo info = m_interface->info( *it ); - QString commentItem = info.description(); + TQString commentItem = info.description(); ++it; - QString targetFile = (*it).filename(); + TQString targetFile = (*it).filename(); if ( commentItem.isEmpty() ) commentItem = i18n("no caption"); @@ -337,15 +337,15 @@ void SendImages::makeCommentsFile(void) anyCommentsPresent = true; ImageCommentsText += i18n("Caption for image \"%1\": %2\n") - .arg(targetFile).arg(commentItem); + .tqarg(targetFile).tqarg(commentItem); //Tags from the database if (m_interface->hasFeature(KIPI::HostSupportsTags)) { - QMap <QString, QVariant> attribs=info.attributes(); + TQMap <TQString, TQVariant> attribs=info.attributes(); if (attribs["tags"].asStringList().count() > 0) { - ImageCommentsText += i18n("Tags: %2\n").arg(attribs["tags"].asStringList().join(",")); + ImageCommentsText += i18n("Tags: %2\n").tqarg(attribs["tags"].asStringList().join(",")); anyCommentsPresent = true; } } @@ -356,9 +356,9 @@ void SendImages::makeCommentsFile(void) if ( anyCommentsPresent ) { - QFile commentsFile( m_tmp + i18n("comments.txt") ); - QTextStream stream( &commentsFile ); - stream.setEncoding( QTextStream::UnicodeUTF8 ); + TQFile commentsFile( m_tmp + i18n("comments.txt") ); + TQTextStream stream( &commentsFile ); + stream.setEncoding( TQTextStream::UnicodeUTF8 ); commentsFile.open( IO_WriteOnly ); stream << ImageCommentsText << "\n"; commentsFile.close(); @@ -372,7 +372,7 @@ bool SendImages::showErrors() { if ( m_imagesResizedWithError.isEmpty() == false ) { - listImagesErrorDialog *ErrorImagesDialog = new listImagesErrorDialog(kapp->activeWindow(), + listImagesErrorDialog *ErrorImagesDialog = new listImagesErrorDialog(TQT_TQWIDGET(kapp->activeWindow()), i18n("Error during resize images process."), i18n("Cannot resize the following image files:"), i18n("Do you want them to be added as attachments " @@ -419,9 +419,9 @@ KURL::List SendImages::divideEmails(void) for ( KURL::List::Iterator it = m_filesSendList.begin() ; it != m_filesSendList.end() ; ++it ) { qDebug("m_attachmentlimit: %lu ", m_attachmentlimit); - QString imageName = (*it).path(); + TQString imageName = (*it).path(); qDebug("Imagename: %s", imageName.ascii()); - QFile file(imageName); + TQFile file(imageName); qDebug("filesize: %lu", file.size()); if ((mylistsize + file.size()) <= m_attachmentlimit) @@ -460,12 +460,12 @@ bool SendImages::invokeMailAgent(void) if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Default" ) { KApplication::kApplication()->invokeMailer( - QString::null, // Destination address. - QString::null, // Carbon Copy address. - QString::null, // Blind Carbon Copy address - QString::null, // Message Subject. - QString::null, // Message Body. - QString::null, // Message Body File. + TQString(), // Destination address. + TQString(), // Carbon Copy address. + TQString(), // Blind Carbon Copy address + TQString(), // Message Subject. + TQString(), // Message Body. + TQString(), // Message Body File. filelist.toStringList()); // Images attachments (+ comments). agentInvoked = true; } @@ -480,14 +480,14 @@ bool SendImages::invokeMailAgent(void) for ( KURL::List::Iterator it = filelist.begin() ; it != filelist.end() ; ++it ) { *m_mailAgentProc << "--attach"; - *m_mailAgentProc << QFile::encodeName((*it).path()); + *m_mailAgentProc << TQFile::encodeName((*it).path()).data(); } if ( m_mailAgentProc->start() == false ) - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); else agentInvoked = true; } @@ -510,13 +510,13 @@ bool SendImages::invokeMailAgent(void) *m_mailAgentProc << "--compose" << "--attach"; for ( KURL::List::Iterator it = filelist.begin() ; it != filelist.end() ; ++it ) - *m_mailAgentProc << QFile::encodeName((*it).path()); + *m_mailAgentProc << TQFile::encodeName((*it).path()).data(); if ( m_mailAgentProc->start() == false ) - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); else agentInvoked = true; } @@ -531,14 +531,14 @@ bool SendImages::invokeMailAgent(void) for ( KURL::List::Iterator it = filelist.begin() ; it != filelist.end() ; ++it ) { *m_mailAgentProc << "-a"; - *m_mailAgentProc << QFile::encodeName((*it).path()); + *m_mailAgentProc << TQFile::encodeName((*it).path()).data(); } if ( m_mailAgentProc->start() == false ) - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); else agentInvoked = true; } @@ -550,21 +550,21 @@ bool SendImages::invokeMailAgent(void) m_mailAgentProc = new KProcess; *m_mailAgentProc << "evolution"; - QString Temp = "mailto:?subject="; + TQString Temp = "mailto:?subject="; for ( KURL::List::Iterator it = filelist.begin() ; it != filelist.end() ; ++it ) { Temp.append("&attach="); - Temp.append( QFile::encodeName((*it).path()) ); + Temp.append( TQFile::encodeName((*it).path()) ); } *m_mailAgentProc << Temp; if ( m_mailAgentProc->start() == false ) - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); else agentInvoked = true; } @@ -598,12 +598,12 @@ bool SendImages::invokeMailAgent(void) *m_mailAgentProc << "netscape" << "-remote"; } - QString Temp = " xfeDoCommand(composeMessage,attachment='"; + TQString Temp = " xfeDoCommand(composeMessage,attachment='"; for ( KURL::List::Iterator it = filelist.begin() ; it != filelist.end() ; ++it ) { Temp.append( "file://" ); - QString toencode=(*it).encodedPathAndQuery(); + TQString toencode=(*it).encodedPathAndQuery(); Temp.append(toencode); Temp.append( "," ); } @@ -615,19 +615,19 @@ bool SendImages::invokeMailAgent(void) if (!m_invokedBefore) { - connect(m_mailAgentProc, SIGNAL(processExited(KProcess *)), - this, SLOT(slotMozillaExited(KProcess*))); + connect(m_mailAgentProc, TQT_SIGNAL(processExited(KProcess *)), + this, TQT_SLOT(slotMozillaExited(KProcess*))); - connect(m_mailAgentProc, SIGNAL(receivedStderr(KProcess *, char*, int)), - this, SLOT(slotMozillaReadStderr(KProcess*, char*, int))); + connect(m_mailAgentProc, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), + this, TQT_SLOT(slotMozillaReadStderr(KProcess*, char*, int))); } qDebug ("%s", Temp.ascii()); if ( m_mailAgentProc->start(KProcess::NotifyOnExit , KProcess::All) == false ) - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); else { agentInvoked = true; m_invokedBefore=true; @@ -642,15 +642,15 @@ bool SendImages::invokeMailAgent(void) void SendImages::removeTmpFiles(void) { if (DeleteDir(m_tmp) == false) - KMessageBox::error(kapp->activeWindow(), i18n("Cannot remove temporary folder %1.").arg(m_tmp)); + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot remove temporary folder %1.").tqarg(m_tmp)); } ///Checks if directory is empty and invokes its deletion -bool SendImages::DeleteDir(QString dirname) +bool SendImages::DeleteDir(TQString dirname) { if ( !dirname.isEmpty() ) { - QDir dir; + TQDir dir; if (dir.exists ( dirname ) == true) { @@ -670,14 +670,14 @@ bool SendImages::DeleteDir(QString dirname) } ///Deletes a directory and all its contents - Please call it using "DeleteDir" -bool SendImages::deldir(QString dirname) +bool SendImages::deldir(TQString dirname) { - QDir *dir = new QDir(dirname); - dir->setFilter ( QDir::Dirs | QDir::Files | QDir::NoSymLinks ); + TQDir *dir = new TQDir(dirname); + dir->setFilter ( TQDir::Dirs | TQDir::Files | TQDir::NoSymLinks ); - const QFileInfoList* fileinfolist = dir->entryInfoList(); - QFileInfoListIterator it(*fileinfolist); - QFileInfo* fi; + const TQFileInfoList* fileinfolist = dir->entryInfoList(); + TQFileInfoListIterator it(*fileinfolist); + TQFileInfo* fi; while( (fi = it.current() ) ) { @@ -707,7 +707,7 @@ bool SendImages::deldir(QString dirname) } ///Returns the file-extension of the corresponding fileformat -QString SendImages::extension(const QString& imageFileFormat) +TQString SendImages::extension(const TQString& imageFileFormat) { if (imageFileFormat == "PNG") return ".png"; @@ -751,9 +751,9 @@ int SendImages::getSize ( int choice ) /** This function should copy the images to tempfolder in order to avoid suspicious filenames It is used, when no resizing should take place - This function can be replaced with Qt4 QFile.copy */ -bool SendImages::copyImageProcess(const QString &oldFilePath, const QString &DestPath, - const QString &ImageName) + This function can be replaced with TQt4 TQFile.copy */ +bool SendImages::copyImageProcess(const TQString &oldFilePath, const TQString &DestPath, + const TQString &ImageName) { //same file, no need to copy qDebug("DestPath: %s",(DestPath).ascii()); @@ -762,8 +762,8 @@ bool SendImages::copyImageProcess(const QString &oldFilePath, const QString &Des return true; //load both files - QFile oldFile(oldFilePath); - QFile newFile(DestPath+ImageName); + TQFile oldFile(oldFilePath); + TQFile newFile(DestPath+ImageName); bool openOld = oldFile.open( IO_ReadOnly ); bool openNew = newFile.open( IO_WriteOnly ); @@ -775,7 +775,7 @@ bool SendImages::copyImageProcess(const QString &oldFilePath, const QString &Des char* buffer = new char[BUFFER_SIZE]; while(!oldFile.atEnd()) { - Q_LONG len = oldFile.readBlock( buffer, BUFFER_SIZE ); + TQ_LONG len = oldFile.readBlock( buffer, BUFFER_SIZE ); newFile.writeBlock( buffer, len ); } @@ -786,20 +786,20 @@ bool SendImages::copyImageProcess(const QString &oldFilePath, const QString &Des } ///Resizes the Images before Sending... -bool SendImages::resizeImageProcess(const QString &SourcePath, const QString &DestPath, - const QString &ImageFormat, const QString &ImageName, - int SizeFactor, int ImageCompression, QSize &newsize) +bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString &DestPath, + const TQString &ImageFormat, const TQString &ImageName, + int SizeFactor, int ImageCompression, TQSize &newsize) { - QImage img; + TQImage img; // Check if RAW file. #if KDCRAW_VERSION < 0x000106 - QString rawFilesExt(KDcrawIface::DcrawBinary::instance()->rawFiles()); + TQString rawFilesExt(KDcrawIface::DcrawBinary::instance()->rawFiles()); #else - QString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); + TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); #endif - QFileInfo fileInfo(SourcePath); - if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() )) + TQFileInfo fileInfo(SourcePath); + if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() )) KDcrawIface::KDcraw::loadDcrawPreview(img, SourcePath); else img.load(SourcePath); @@ -830,7 +830,7 @@ bool SendImages::resizeImageProcess(const QString &SourcePath, const QString &De Q_ASSERT( w <= SizeFactor ); } - const QImage scaleImg(img.smoothScale( w, h )); + const TQImage scaleImg(img.smoothScale( w, h )); if ( scaleImg.width() != w || scaleImg.height() != h ) { @@ -862,10 +862,10 @@ void SendImages::slotMozillaExited(KProcess*) ///Here would be the right point to clear the sendlist in order to avoid infinite resendings!! m_filesSendList.clear(); ///Also disconnect SLOT - m_mailAgentProc->disconnect(SIGNAL(processExited(KProcess *)), this, SLOT(slotMozillaExited(KProcess*))); + m_mailAgentProc->disconnect(TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotMozillaExited(KProcess*))); qDebug("Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); - if ( m_mozillaStdErr.find("No running window found") != -1 ) // No remote Mozilla | Netscape | + if ( m_mozillaStdErr.tqfind("No running window found") != -1 ) // No remote Mozilla | Netscape | { // Thunderbird env. loaded ! m_mailAgentProc2 = new KProcess; // Init a new env. @@ -881,10 +881,10 @@ void SendImages::slotMozillaExited(KProcess*) if ( m_mailAgentProc2->start() == false ) { - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Cannot start '%1' program;\nplease " "check your installation.") - .arg(m_sendImagesDialog->m_mailAgentName->currentText())); + .tqarg(m_sendImagesDialog->m_mailAgentName->currentText())); } else { @@ -900,7 +900,7 @@ void SendImages::slotMozillaExited(KProcess*) ///If Mozilla wasn't started before, now it is and so we can begin with the transmission void SendImages::slotMozillaTimeout(void) { - m_mozillaTimer->disconnect(SIGNAL(timeout()), this, SLOT(slotMozillaTimeout())); + m_mozillaTimer->disconnect(TQT_SIGNAL(timeout()), this, TQT_SLOT(slotMozillaTimeout())); qDebug("slotMozillaTimeout: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); kurllistdeepcopy(m_filesSendList,m_filesSendList_copy); @@ -911,7 +911,7 @@ void SendImages::slotMozillaTimeout(void) ///Handles mozillas errors void SendImages::slotMozillaReadStderr(KProcess*, char *buffer, int buflen) { - m_mozillaStdErr = QString::fromLocal8Bit(buffer, buflen); + m_mozillaStdErr = TQString::fromLocal8Bit(buffer, buflen); } ///Makes a deep copy of a KURL-list: Real and slow copying instead of only pointer arithmetics @@ -921,9 +921,9 @@ bool SendImages::kurllistdeepcopy(KURL::List &Destination, KURL::List Source) qDebug("kurllistdeepcopy started"); for ( KURL::List::Iterator it = Source.begin() ; it != Source.end() ; ++it ) { - //QString Tempstring; - QString Getstring=(*it).path(); - QString Tempstring=Getstring.copy(); + //TQString Tempstring; + TQString Getstring=(*it).path(); + TQString Tempstring=Getstring.copy(); Destination.append(Tempstring); qDebug("%s",Tempstring.ascii()); } diff --git a/kipi-plugins/sendimages/sendimages.h b/kipi-plugins/sendimages/sendimages.h index 762300a..696aec4 100644 --- a/kipi-plugins/sendimages/sendimages.h +++ b/kipi-plugins/sendimages/sendimages.h @@ -23,12 +23,12 @@ #ifndef SENDIMAGES_H #define SENDIMAGES_H -// Qt includes. +// TQt includes. -#include <qobject.h> -#include <qstring.h> -#include <qthread.h> -#include <qstringlist.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqthread.h> +#include <tqstringlist.h> // KDE includes. @@ -39,9 +39,9 @@ #include <libkipi/imagecollection.h> #include <libkipi/interface.h> -class QFile; -class QTimer; -class QCustomEvent; +class TQFile; +class TQTimer; +class TQCustomEvent; class KProcess; @@ -50,15 +50,16 @@ namespace KIPISendimagesPlugin class SendImagesDialog; -class SendImages : public QObject, public QThread +class SendImages : public TQObject, public TQThread { Q_OBJECT + TQ_OBJECT public: ///Constructor: saves system handoff parameters in member variables - SendImages(KIPI::Interface* interface, const QString &tmpFolder, - const KIPI::ImageCollection& imagesCollection, QObject *parent=0); + SendImages(KIPI::Interface* interface, const TQString &tmpFolder, + const KIPI::ImageCollection& imagesCollection, TQObject *tqparent=0); ///Destructor ~SendImages(); @@ -104,30 +105,30 @@ private slots: private: ///Returns the file-extension of the corresponding fileformat - QString extension(const QString& imageFileFormat); + TQString extension(const TQString& imageFileFormat); ///in sendimagesplugin dialog the user can select a compression of images ///this function returns the pixel-size of the selected entry int getSize( int choice ); ///Checks if directory is empty and invokes its deletion - bool DeleteDir(QString dirname); + bool DeleteDir(TQString dirname); ///Deletes a directory and all its contents - Please call it using "DeleteDir" - bool deldir(QString dirname); + bool deldir(TQString dirname); ///Resizes the Images before Sending... - bool resizeImageProcess(const QString &SourcePath, const QString &DestPath, - const QString &ImageFormat, const QString &ImageName, - int SizeFactor, int ImageCompression, QSize &newsize); + bool resizeImageProcess(const TQString &SourcePath, const TQString &DestPath, + const TQString &ImageFormat, const TQString &ImageName, + int SizeFactor, int ImageCompression, TQSize &newsize); ///This function should copy the images to tempfolder in order to avoid suspicious filenames ///It is used, when no resizing should take place - bool copyImageProcess(const QString &oldFilePath, const QString &DestPath, - const QString &ImageName); + bool copyImageProcess(const TQString &oldFilePath, const TQString &DestPath, + const TQString &ImageName); ///Tests if an entry already exists in the filename list - bool entry_already_exists(KURL::List filenamelist,QString entry); + bool entry_already_exists(KURL::List filenamelist,TQString entry); ///Makes a deep copy of a KURL-list: Real and slow copying instead of only pointer arithmetics bool kurllistdeepcopy(KURL::List &Destination, KURL::List Source); @@ -148,16 +149,16 @@ private: /** Biggest permitted email.*/ unsigned long m_attachmentlimit; - QObject *m_parent; + TQObject *m_parent; - QTimer *m_mozillaTimer; + TQTimer *m_mozillaTimer; - QString m_mozillaStdErr; - QString m_tmp; + TQString m_mozillaStdErr; + TQString m_tmp; /** Image format option in the setup dialog.*/ - QString m_imageFormat; - QString m_thunderbirdUrl; + TQString m_imageFormat; + TQString m_thunderbirdUrl; KProcess *m_mailAgentProc; KProcess *m_mailAgentProc2; diff --git a/kipi-plugins/sendimages/sendimagesdialog.cpp b/kipi-plugins/sendimages/sendimagesdialog.cpp index de502bb..2e91b61 100644 --- a/kipi-plugins/sendimages/sendimagesdialog.cpp +++ b/kipi-plugins/sendimages/sendimagesdialog.cpp @@ -22,26 +22,26 @@ * * ============================================================ */ -// Qt includes. - -#include <qvbox.h> -#include <qlayout.h> -#include <qdir.h> -#include <qwidget.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qwhatsthis.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qprogressdialog.h> -#include <qimage.h> -#include <qevent.h> -#include <qdragobject.h> -#include <qstrlist.h> -#include <qfileinfo.h> -#include <qpushbutton.h> +// TQt includes. + +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqdir.h> +#include <tqwidget.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqwhatsthis.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqprogressdialog.h> +#include <tqimage.h> +#include <tqevent.h> +#include <tqdragobject.h> +#include <tqstrlist.h> +#include <tqfileinfo.h> +#include <tqpushbutton.h> // KDE includes. @@ -77,53 +77,53 @@ namespace KIPISendimagesPlugin { -class ImageItem : public QListBoxText +class ImageItem : public TQListBoxText { public: - ImageItem(QListBox * parent, QString const & comments, KURL const & url) - : QListBoxText(parent), _comments(comments), _url(url) + ImageItem(TQListBox * tqparent, TQString const & comments, KURL const & url) + : TQListBoxText(tqparent), _comments(comments), _url(url) {} - QString comments() { return _comments; } - QString name() { return _url.fileName(); } + TQString comments() { return _comments; } + TQString name() { return _url.fileName(); } KURL url() { return _url; } - QString album() { return _url.directory().section('/', -1); } - void setName(const QString &newName) { setText(newName); } + TQString album() { return _url.directory().section('/', -1); } + void setName(const TQString &newName) { setText(newName); } private: - QString _comments; + TQString _comments; KURL _url; }; -ListImageItems::ListImageItems(QWidget *parent, const char *name) - : KListBox(parent, name) +ListImageItems::ListImageItems(TQWidget *tqparent, const char *name) + : KListBox(tqparent, name) { - setSelectionMode (QListBox::Extended); + setSelectionMode (TQListBox::Extended); setAcceptDrops(true); } -void ListImageItems::dragEnterEvent(QDragEnterEvent *e) +void ListImageItems::dragEnterEvent(TQDragEnterEvent *e) { - e->accept(QUriDrag::canDecode(e)); + e->accept(TQUriDrag::canDecode(e)); } -void ListImageItems::dropEvent(QDropEvent *e) +void ListImageItems::dropEvent(TQDropEvent *e) { - QStrList strList; - QStringList FilesPath; + TQStrList strList; + TQStringList FilesPath; - if ( !QUriDrag::decode(e, strList) ) return; + if ( !TQUriDrag::decode(e, strList) ) return; - QStrList stringList; - QStrListIterator it(strList); + TQStrList stringList; + TQStrListIterator it(strList); char *str; while ( (str = it.current()) != 0 ) { - QString filePath = QUriDrag::uriToLocalFile(str); - QFileInfo fileInfo(filePath); + TQString filePath = TQUriDrag::uriToLocalFile(str); + TQFileInfo fileInfo(filePath); if (fileInfo.isFile() && fileInfo.exists()) FilesPath.append(fileInfo.filePath()); @@ -135,10 +135,10 @@ void ListImageItems::dropEvent(QDropEvent *e) emit addedDropItems(FilesPath); } -SendImagesDialog::SendImagesDialog(QWidget *parent, KIPI::Interface* interface, +SendImagesDialog::SendImagesDialog(TQWidget *tqparent, KIPI::Interface* interface, const KIPI::ImageCollection& images ) : KDialogBase( IconList, i18n("Email Images Options"), Help|Ok|Cancel, - Ok, parent, "SendImagesDialog", false, true ) + Ok, tqparent, "SendImagesDialog", false, true ) { m_interface = interface; m_thumbJob = 0; @@ -173,7 +173,7 @@ SendImagesDialog::SendImagesDialog(QWidget *parent, KIPI::Interface* interface, m_helpButton = actionButton( Help ); KHelpMenu* helpMenu = new KHelpMenu(this, m_about, false); helpMenu->menu()->removeItemAt(0); - helpMenu->menu()->insertItem(i18n("Plugin Handbook"), this, SLOT(slotHelp()), 0, -1, 0); + helpMenu->menu()->insertItem(i18n("Plugin Handbook"), this, TQT_SLOT(slotHelp()), 0, -1, 0); m_helpButton->setPopup( helpMenu->menu() ); slotMailAgentChanged(m_mailAgentName->currentItem()); @@ -194,7 +194,7 @@ void SendImagesDialog::readSettings(void) KConfig config("kipirc"); config.setGroup("SendImages Settings"); - QString t = config.readEntry("MailAgentName", "Default"); + TQString t = config.readEntry("MailAgentName", "Default"); // The _old_ Kmail (mind the lowercase 'm') called the default mailer. // this is now renamed to 'Default'. It should not interfere with KMail, which @@ -246,60 +246,60 @@ void SendImagesDialog::writeSettings(void) void SendImagesDialog::setupImagesList(void) { - QString whatsThis; + TQString whatsThis; page_setupImagesList = addPage(i18n("Images"), i18n("Images to EMail"), BarIcon("image", KIcon::SizeMedium)); - QVBoxLayout *vlay = new QVBoxLayout( page_setupImagesList, 0, spacingHint() ); + TQVBoxLayout *vlay = new TQVBoxLayout( page_setupImagesList, 0, spacingHint() ); //--------------------------------------------- - m_groupBoxImageList = new QGroupBox( page_setupImagesList ); + m_groupBoxImageList = new TQGroupBox( page_setupImagesList ); m_groupBoxImageList->setFlat(false); - QGridLayout* grid = new QGridLayout( m_groupBoxImageList, 2, 2 , 20, 20); + TQGridLayout* grid = new TQGridLayout( m_groupBoxImageList, 2, 2 , 20, 20); m_ImagesFilesListBox = new ListImageItems( m_groupBoxImageList, "ListImageItems" ); - QWhatsThis::add( m_ImagesFilesListBox, i18n( "<p>This is the list of images to email. " + TQWhatsThis::add( m_ImagesFilesListBox, i18n( "<p>This is the list of images to email. " "If you want to add some images click on the 'Add Images...' " "button or use the drag-and-drop.")); grid->addMultiCellWidget(m_ImagesFilesListBox, 0, 2, 0, 1); - KButtonBox* imagesListButtonBox = new KButtonBox( m_groupBoxImageList, Vertical ); - QPushButton* m_addImagesButton = imagesListButtonBox->addButton ( i18n( "&Add ..." ) ); - QWhatsThis::add( m_addImagesButton, i18n("<p>Add images to the list.") ); - QPushButton* m_remImagesButton = imagesListButtonBox->addButton ( i18n( "&Remove" )); - QWhatsThis::add( m_remImagesButton, i18n("<p>Remove selected images from the list.") ); - imagesListButtonBox->layout(); + KButtonBox* imagesListButtonBox = new KButtonBox( m_groupBoxImageList,Qt::Vertical ); + TQPushButton* m_addImagesButton = imagesListButtonBox->addButton ( i18n( "&Add ..." ) ); + TQWhatsThis::add( m_addImagesButton, i18n("<p>Add images to the list.") ); + TQPushButton* m_remImagesButton = imagesListButtonBox->addButton ( i18n( "&Remove" )); + TQWhatsThis::add( m_remImagesButton, i18n("<p>Remove selected images from the list.") ); + imagesListButtonBox->tqlayout(); grid->addMultiCellWidget(imagesListButtonBox, 0, 1, 2, 2); - m_imageLabel = new QLabel( m_groupBoxImageList ); + m_imageLabel = new TQLabel( m_groupBoxImageList ); m_imageLabel->setFixedHeight( 120 ); - m_imageLabel->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter ); - m_imageLabel->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) ); - QWhatsThis::add( m_imageLabel, i18n( "<p>Preview of the currently selected image on the list." ) ); + m_imageLabel->tqsetAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); + m_imageLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ) ); + TQWhatsThis::add( m_imageLabel, i18n( "<p>Preview of the currently selected image on the list." ) ); grid->addMultiCellWidget(m_imageLabel, 2, 2, 2, 2); vlay->addWidget( m_groupBoxImageList ); //--------------------------------------------- - QGroupBox * groupBox2 = new QGroupBox( i18n("Image Description"), page_setupImagesList ); + TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Description"), page_setupImagesList ); groupBox2->setColumnLayout(0, Qt::Vertical ); - groupBox2->layout()->setSpacing( 6 ); - groupBox2->layout()->setMargin( 11 ); - QWhatsThis::add( groupBox2, i18n("<p>The description of the currently selected image on the list.") ); + groupBox2->tqlayout()->setSpacing( 6 ); + groupBox2->tqlayout()->setMargin( 11 ); + TQWhatsThis::add( groupBox2, i18n("<p>The description of the currently selected image on the list.") ); - QVBoxLayout * groupBox2Layout = new QVBoxLayout( groupBox2->layout() ); - groupBox2Layout->setAlignment( Qt::AlignTop ); + TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->tqlayout() ); + groupBox2Layout->tqsetAlignment( TQt::AlignTop ); m_ImageComments = new KSqueezedTextLabel( groupBox2 ); - m_ImageComments->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); + m_ImageComments->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) ); groupBox2Layout->addWidget( m_ImageComments ); m_ImageAlbum = new KSqueezedTextLabel( groupBox2 ); - m_ImageAlbum->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); + m_ImageAlbum->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) ); groupBox2Layout->addWidget( m_ImageAlbum ); vlay->addWidget( groupBox2 ); @@ -307,17 +307,17 @@ void SendImagesDialog::setupImagesList(void) //--------------------------------------------- - connect(m_addImagesButton, SIGNAL(clicked()), - this, SLOT(slotImagesFilesButtonAdd())); + connect(m_addImagesButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotImagesFilesButtonAdd())); - connect(m_remImagesButton, SIGNAL(clicked()), - this, SLOT(slotImagesFilesButtonRem())); + connect(m_remImagesButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotImagesFilesButtonRem())); - connect(m_ImagesFilesListBox, SIGNAL( currentChanged( QListBoxItem * ) ), - this, SLOT( slotImageSelected( QListBoxItem * ))); + connect(m_ImagesFilesListBox, TQT_SIGNAL( currentChanged( TQListBoxItem * ) ), + this, TQT_SLOT( slotImageSelected( TQListBoxItem * ))); - connect(m_ImagesFilesListBox, SIGNAL( addedDropItems(QStringList) ), - this, SLOT( slotAddDropItems(QStringList))); + connect(m_ImagesFilesListBox, TQT_SIGNAL( addedDropItems(TQStringList) ), + this, TQT_SLOT( slotAddDropItems(TQStringList))); } void SendImagesDialog::setImagesList( const KURL::List& Files ) @@ -327,7 +327,7 @@ void SendImagesDialog::setImagesList( const KURL::List& Files ) for( KURL::List::ConstIterator it = Files.begin(); it != Files.end(); ++it ) { KIPI::ImageInfo imageInfo = m_interface->info( *it ); - QString comments = imageInfo.description(); + TQString comments = imageInfo.description(); // Check if the new item already exist in the list. @@ -359,22 +359,22 @@ void SendImagesDialog::setImagesList( const KURL::List& Files ) void SendImagesDialog::setupEmailOptions(void) { - QString whatsThis; + TQString whatsThis; page_setupEmailOptions = addPage(i18n("Mail"), i18n("Mail Options"), BarIcon("mail_generic", KIcon::SizeMedium)); - QVBoxLayout *vlay = new QVBoxLayout( page_setupEmailOptions, 0, spacingHint() ); + TQVBoxLayout *vlay = new TQVBoxLayout( page_setupEmailOptions, 0, spacingHint() ); //--------------------------------------------- - QHBoxLayout *hlay10 = new QHBoxLayout( ); + TQHBoxLayout *hlay10 = new TQHBoxLayout( ); vlay->addLayout( hlay10 ); - QLabel *m_mailAgentLabel = new QLabel( i18n("Mail agent:"), page_setupEmailOptions); + TQLabel *m_mailAgentLabel = new TQLabel( i18n("Mail agent:"), page_setupEmailOptions); - m_mailAgentName = new QComboBox( false, page_setupEmailOptions ); + m_mailAgentName = new TQComboBox( false, page_setupEmailOptions ); m_mailAgentName->insertItem( i18n("Default") ); m_mailAgentName->insertItem( "Balsa" ); m_mailAgentName->insertItem( "Claws Mail" ); @@ -387,7 +387,7 @@ void SendImagesDialog::setupEmailOptions(void) m_mailAgentName->insertItem( "Sylpheed-Claws" ); m_mailAgentName->insertItem( "Thunderbird" ); m_mailAgentName->setCurrentText( i18n("Default") ); - QWhatsThis::add( m_mailAgentName, i18n("<p>Select here your preferred external mail agent program." + TQWhatsThis::add( m_mailAgentName, i18n("<p>Select here your preferred external mail agent program." "These mail agent versions are supported:<p>" "<b>Balsa</b>: >= 2.x<p>" "<b>Claws Mail</b>: >= 2.6.1<p>" @@ -404,53 +404,53 @@ void SendImagesDialog::setupEmailOptions(void) hlay10->addStretch( 1 ); hlay10->addWidget( m_mailAgentName ); - connect(m_mailAgentName, SIGNAL(activated(int)), - this, SLOT(slotMailAgentChanged(int))); + connect(m_mailAgentName, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotMailAgentChanged(int))); //--------------------------------------------- - m_labelThunderbirdBinPath = new QLabel(i18n("&Thunderbird binary path:"), page_setupEmailOptions); + m_labelThunderbirdBinPath = new TQLabel(i18n("&Thunderbird binary path:"), page_setupEmailOptions); vlay->addWidget( m_labelThunderbirdBinPath ); m_ThunderbirdBinPath = new KURLRequester( "/usr/bin/thunderbird", page_setupEmailOptions); m_labelThunderbirdBinPath->setBuddy( m_ThunderbirdBinPath ); vlay->addWidget(m_ThunderbirdBinPath); - connect(m_ThunderbirdBinPath, SIGNAL(textChanged(const QString&)), - this, SLOT(slotThunderbirdBinPathChanged(const QString&))); + connect(m_ThunderbirdBinPath, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(slotThunderbirdBinPathChanged(const TQString&))); - QWhatsThis::add( m_ThunderbirdBinPath, i18n("<p>The path name to the Thunderbird binary program.") ); + TQWhatsThis::add( m_ThunderbirdBinPath, i18n("<p>The path name to the Thunderbird binary program.") ); //--------------------------------------------- - m_addComments = new QCheckBox( i18n("Attach a file with caption and tags"), page_setupEmailOptions); - QWhatsThis::add( m_addComments, i18n("<p>If you enable this option, all image captions and tags " + m_addComments = new TQCheckBox( i18n("Attach a file with caption and tags"), page_setupEmailOptions); + TQWhatsThis::add( m_addComments, i18n("<p>If you enable this option, all image captions and tags " "will be added as an attached file.") ); vlay->addWidget( m_addComments ); - m_comment2ImageName = new QCheckBox( i18n("Generate new filenames from image captions (if available)"), page_setupEmailOptions); + m_comment2ImageName = new TQCheckBox( i18n("Generate new filenames from image captions (if available)"), page_setupEmailOptions); vlay->addWidget( m_comment2ImageName ); //--------------------------------------------- - QGroupBox * groupBox2 = new QGroupBox( i18n("Image Properties"), page_setupEmailOptions ); + TQGroupBox * groupBox2 = new TQGroupBox( i18n("Image Properties"), page_setupEmailOptions ); groupBox2->setColumnLayout(0, Qt::Vertical ); - groupBox2->layout()->setSpacing( 6 ); - groupBox2->layout()->setMargin( 11 ); - QWhatsThis::add( groupBox2, i18n("<p>The properties of images to send.") ); + groupBox2->tqlayout()->setSpacing( 6 ); + groupBox2->tqlayout()->setMargin( 11 ); + TQWhatsThis::add( groupBox2, i18n("<p>The properties of images to send.") ); - QVBoxLayout * groupBox2Layout = new QVBoxLayout( groupBox2->layout() ); - groupBox2Layout->setAlignment( Qt::AlignTop ); + TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->tqlayout() ); + groupBox2Layout->tqsetAlignment( TQt::AlignTop ); - m_changeImagesProp = new QCheckBox(i18n("Adjust image properties"), groupBox2); - QWhatsThis::add( m_changeImagesProp, i18n("<p>If you enable this option, " + m_changeImagesProp = new TQCheckBox(i18n("Adjust image properties"), groupBox2); + TQWhatsThis::add( m_changeImagesProp, i18n("<p>If you enable this option, " "all images to send can be resized and recompressed.") ); m_changeImagesProp->setChecked( true ); groupBox2Layout->addWidget( m_changeImagesProp ); - QHBoxLayout *hlay12 = new QHBoxLayout(); + TQHBoxLayout *hlay12 = new TQHBoxLayout(); groupBox2Layout->addLayout( hlay12 ); - m_imagesResize = new QComboBox(false, groupBox2); + m_imagesResize = new TQComboBox(false, groupBox2); m_imagesResize->insertItem(i18n("Very Small (320 pixels)")); m_imagesResize->insertItem(i18n("Small (640 pixels)")); m_imagesResize->insertItem(i18n("Medium (800 pixels)")); @@ -469,15 +469,15 @@ void SendImagesDialog::setupEmailOptions(void) "and if the target mailbox size is not limited.<p>" "<b>%5</b>: use this if you have no size or speed restrictions.<p>" "<b>%6</b>: use this only for printing purpose.<p>") - .arg(i18n("very small (320 pixels)")) - .arg(i18n("small (640 pixels)")) - .arg(i18n("medium (800 pixels)")) - .arg(i18n("big (1024 pixels)")) - .arg(i18n("very big (1280 pixels)")) - .arg(i18n("huge - for printing (1600 pixels)")); - QWhatsThis::add( m_imagesResize, whatsThis ); - - m_labelImageSize = new QLabel( i18n("Sent image size:"), groupBox2); + .tqarg(i18n("very small (320 pixels)")) + .tqarg(i18n("small (640 pixels)")) + .tqarg(i18n("medium (800 pixels)")) + .tqarg(i18n("big (1024 pixels)")) + .tqarg(i18n("very big (1280 pixels)")) + .tqarg(i18n("huge - for printing (1600 pixels)")); + TQWhatsThis::add( m_imagesResize, whatsThis ); + + m_labelImageSize = new TQLabel( i18n("Sent image size:"), groupBox2); hlay12->addWidget( m_labelImageSize ); m_labelImageSize->setBuddy( m_imagesResize ); hlay12->addStretch( 1 ); @@ -496,14 +496,14 @@ void SendImagesDialog::setupEmailOptions(void) "<b>75</b>: low compression (default value)<p>" "<b>100</b>: no compression"); - QWhatsThis::add( m_imageCompression, whatsThis); + TQWhatsThis::add( m_imageCompression, whatsThis); //--------------------------------------------- - QHBoxLayout *hlay13 = new QHBoxLayout(); + TQHBoxLayout *hlay13 = new TQHBoxLayout(); groupBox2Layout->addLayout( hlay13 ); - m_imagesFormat = new QComboBox(false, groupBox2); + m_imagesFormat = new TQComboBox(false, groupBox2); m_imagesFormat->insertItem("JPEG"); m_imagesFormat->insertItem("PNG"); m_imagesFormat->setCurrentText ("JPEG"); @@ -516,9 +516,9 @@ void SendImagesDialog::setupEmailOptions(void) "PNG is designed to work well in online viewing applications, such as the World Wide Web, " "so it is fully streamable with a progressive display option. Also, PNG can store gamma " "and chromaticity data for improved color matching on heterogeneous platforms."); - QWhatsThis::add( m_imagesFormat, whatsThis ); + TQWhatsThis::add( m_imagesFormat, whatsThis ); - m_labelImageFormat = new QLabel(i18n("Image file format:"), groupBox2); + m_labelImageFormat = new TQLabel(i18n("Image file format:"), groupBox2); hlay13->addWidget(m_labelImageFormat); m_labelImageFormat->setBuddy(m_imagesFormat); hlay13->addStretch(1); @@ -535,20 +535,20 @@ void SendImagesDialog::setupEmailOptions(void) //--------------------------------------------- - connect(m_changeImagesProp, SIGNAL(toggled(bool)), - m_labelImageSize, SLOT(setEnabled(bool))); + connect(m_changeImagesProp, TQT_SIGNAL(toggled(bool)), + m_labelImageSize, TQT_SLOT(setEnabled(bool))); - connect(m_changeImagesProp, SIGNAL(toggled(bool)), - m_imagesResize, SLOT(setEnabled(bool))); + connect(m_changeImagesProp, TQT_SIGNAL(toggled(bool)), + m_imagesResize, TQT_SLOT(setEnabled(bool))); - connect(m_changeImagesProp, SIGNAL(toggled(bool)), - m_imageCompression, SLOT(setEnabled(bool))); + connect(m_changeImagesProp, TQT_SIGNAL(toggled(bool)), + m_imageCompression, TQT_SLOT(setEnabled(bool))); - connect(m_changeImagesProp, SIGNAL(toggled(bool)), - m_labelImageFormat, SLOT(setEnabled(bool))); + connect(m_changeImagesProp, TQT_SIGNAL(toggled(bool)), + m_labelImageFormat, TQT_SLOT(setEnabled(bool))); - connect(m_changeImagesProp, SIGNAL(toggled(bool)), - m_imagesFormat, SLOT(setEnabled(bool))); + connect(m_changeImagesProp, TQT_SIGNAL(toggled(bool)), + m_imagesFormat, TQT_SLOT(setEnabled(bool))); } void SendImagesDialog::slotHelp() @@ -570,13 +570,13 @@ void SendImagesDialog::slotMailAgentChanged(int) } } -void SendImagesDialog::slotThunderbirdBinPathChanged(const QString &url ) +void SendImagesDialog::slotThunderbirdBinPathChanged(const TQString &url ) { if ( m_mailAgentName->currentText() == "Thunderbird" ) enableButtonOK( !url.isEmpty()); } -void SendImagesDialog::slotAddDropItems(QStringList filesPath) +void SendImagesDialog::slotAddDropItems(TQStringList filesPath) { setImagesList( KURL::List( filesPath) ); } @@ -608,7 +608,7 @@ void SendImagesDialog::slotImagesFilesButtonRem( void ) setNbItems(); } -void SendImagesDialog::slotImageSelected( QListBoxItem * item ) +void SendImagesDialog::slotImageSelected( TQListBoxItem * item ) { if ( !item || m_ImagesFilesListBox->count() == 0 ) { @@ -620,8 +620,8 @@ void SendImagesDialog::slotImageSelected( QListBoxItem * item ) if ( !pitem ) return; - m_ImageComments->setText( i18n("Caption: %1").arg(pitem->comments()) ); - m_ImageAlbum->setText( i18n("Album: %1").arg(pitem->album()) ); + m_ImageComments->setText( i18n("Caption: %1").tqarg(pitem->comments()) ); + m_ImageAlbum->setText( i18n("Album: %1").tqarg(pitem->album()) ); m_imageLabel->clear(); if ( m_thumbJob ) @@ -629,14 +629,14 @@ void SendImagesDialog::slotImageSelected( QListBoxItem * item ) m_thumbJob = KIO::filePreview( pitem->url(), m_imageLabel->height() ); - connect(m_thumbJob, SIGNAL(gotPreview(const KFileItem*, const QPixmap&)), - SLOT(slotGotPreview(const KFileItem*, const QPixmap&))); + connect(m_thumbJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), + TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&))); - connect(m_thumbJob, SIGNAL(failed(const KFileItem*)), - SLOT(slotFailedPreview(const KFileItem*))); + connect(m_thumbJob, TQT_SIGNAL(failed(const KFileItem*)), + TQT_SLOT(slotFailedPreview(const KFileItem*))); } -void SendImagesDialog::slotGotPreview(const KFileItem*, const QPixmap &pixmap) +void SendImagesDialog::slotGotPreview(const KFileItem*, const TQPixmap &pixmap) { m_imageLabel->setPixmap(pixmap); m_thumbJob = 0L; @@ -657,7 +657,7 @@ void SendImagesDialog::slotOk() if ( m_mailAgentName->currentText() == "Thunderbird" ) { - QFile fileThunderbird(m_ThunderbirdBinPath->url()); + TQFile fileThunderbird(m_ThunderbirdBinPath->url()); if (fileThunderbird.exists() == false) { diff --git a/kipi-plugins/sendimages/sendimagesdialog.h b/kipi-plugins/sendimages/sendimagesdialog.h index 3fd4984..dd162e6 100644 --- a/kipi-plugins/sendimages/sendimagesdialog.h +++ b/kipi-plugins/sendimages/sendimagesdialog.h @@ -23,10 +23,10 @@ #ifndef SENDIMAGESDIALOG_H #define SENDIMAGESDIALOG_H -// Qt includes. +// TQt includes. -#include <qstring.h> -#include <qguardedptr.h> +#include <tqstring.h> +#include <tqguardedptr.h> // KDE includes. @@ -45,13 +45,13 @@ #include "kpaboutdata.h" -class QComboBox; -class QGroupBox; -class QLabel; -class QCheckBox; -class QFrame; -class QPushButton; -class QFileInfo; +class TQComboBox; +class TQGroupBox; +class TQLabel; +class TQCheckBox; +class TQFrame; +class TQPushButton; +class TQFileInfo; class KFileItem; class KIntNumInput; @@ -65,42 +65,44 @@ namespace KIPISendimagesPlugin class ListImageItems : public KListBox { Q_OBJECT + TQ_OBJECT public: - ListImageItems(QWidget *parent=0, const char *name=0); + ListImageItems(TQWidget *tqparent=0, const char *name=0); signals: - void addedDropItems(QStringList filesPath); + void addedDropItems(TQStringList filesPath); protected: - void dragEnterEvent(QDragEnterEvent *e); - void dropEvent(QDropEvent *e); + void dragEnterEvent(TQDragEnterEvent *e); + void dropEvent(TQDropEvent *e); }; class SendImagesDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - SendImagesDialog(QWidget *parent, KIPI::Interface* interface, + SendImagesDialog(TQWidget *tqparent, KIPI::Interface* interface, const KIPI::ImageCollection& images ); ~SendImagesDialog(); KIntNumInput *m_imageCompression; KIntNumInput *m_attachmentlimit; - QComboBox *m_imagesFormat; - QComboBox *m_imagesResize; - QComboBox *m_mailAgentName; + TQComboBox *m_imagesFormat; + TQComboBox *m_imagesResize; + TQComboBox *m_mailAgentName; - QCheckBox *m_addComments; - QCheckBox *m_comment2ImageName; - QCheckBox *m_changeImagesProp; + TQCheckBox *m_addComments; + TQCheckBox *m_comment2ImageName; + TQCheckBox *m_changeImagesProp; KURLRequester *m_ThunderbirdBinPath; @@ -108,7 +110,7 @@ public: public slots: - void slotAddDropItems(QStringList filesPath); + void slotAddDropItems(TQStringList filesPath); signals: @@ -118,12 +120,12 @@ private slots: void slotHelp(); void slotOk(); - void slotImageSelected( QListBoxItem * item ); - void slotGotPreview(const KFileItem* , const QPixmap &pixmap); + void slotImageSelected( TQListBoxItem * item ); + void slotGotPreview(const KFileItem* , const TQPixmap &pixmap); void slotFailedPreview(const KFileItem*); void slotImagesFilesButtonAdd(void); void slotImagesFilesButtonRem(void); - void slotThunderbirdBinPathChanged(const QString&); + void slotThunderbirdBinPathChanged(const TQString&); void slotMailAgentChanged(int); private: @@ -139,24 +141,24 @@ private: bool m_cancelled; - QLabel *m_labelImageFormat; - QLabel *m_labelImageSize; - QLabel *m_mailAgentLabel; - QLabel *m_labelThunderbirdBinPath; + TQLabel *m_labelImageFormat; + TQLabel *m_labelImageSize; + TQLabel *m_mailAgentLabel; + TQLabel *m_labelThunderbirdBinPath; - QPushButton *m_addImageButton; - QPushButton *m_remImagesButton; - QPushButton *m_helpButton; + TQPushButton *m_addImageButton; + TQPushButton *m_remImagesButton; + TQPushButton *m_helpButton; - QProgressDialog *m_progressDlg; + TQProgressDialog *m_progressDlg; - QGroupBox *m_groupBoxImageList; + TQGroupBox *m_groupBoxImageList; - QLabel *m_imageLabel; + TQLabel *m_imageLabel; - QFrame *page_setupImagesList; - QFrame *page_setupEmailOptions; - QFrame *page_about; + TQFrame *page_setupImagesList; + TQFrame *page_setupEmailOptions; + TQFrame *page_about; KSqueezedTextLabel *m_ImageComments; KSqueezedTextLabel *m_ImageAlbum; |