Rename additional global TQt functions

pull/1/head
Timothy Pearson 13 years ago
parent 9b89f2dc5b
commit 21b5bfab4d

@ -3415,27 +3415,27 @@ V 0.1.5-beta1 - 2007-10-07
kipi-plugins/jpeglossless/plugin_jpeglossless.h, kipi-plugins/jpeglossless/plugin_jpeglossless.h,
kipi-plugins/jpeglossless/utils.cpp, kipi-plugins/jpeglossless/utils.cpp,
kipi-plugins/jpeglossless/utils.h: kipi-plugins/jpeglossless/utils.h:
kDebug => qDebug kDebug => tqDebug
2007-09-25 10:23 cgilles 2007-09-25 10:23 cgilles
* [r716825] kipi-plugins/jpeglossless/imageflip.cpp, * [r716825] kipi-plugins/jpeglossless/imageflip.cpp,
kipi-plugins/jpeglossless/imageflip.h, kipi-plugins/jpeglossless/imageflip.h,
kipi-plugins/jpeglossless/imagerotate.h: kipi-plugins/jpeglossless/imagerotate.h:
kDegug => qDebug kDegug => tqDebug
2007-09-25 10:20 cgilles 2007-09-25 10:20 cgilles
* [r716824] kipi-plugins/jpeglossless/actions.h, * [r716824] kipi-plugins/jpeglossless/actions.h,
kipi-plugins/jpeglossless/actionthread.cpp, kipi-plugins/jpeglossless/actionthread.cpp,
kipi-plugins/jpeglossless/actionthread.h: kipi-plugins/jpeglossless/actionthread.h:
kDebug => qDebug kDebug => tqDebug
2007-09-25 10:17 cgilles 2007-09-25 10:17 cgilles
* [r716823] kipi-plugins/jpeglossless/imagerotate.cpp, * [r716823] kipi-plugins/jpeglossless/imagerotate.cpp,
kipi-plugins/jpeglossless/imagerotate.h: kipi-plugins/jpeglossless/imagerotate.h:
kDebug => qDebug kDebug => tqDebug
2007-09-24 11:47 cgilles 2007-09-24 11:47 cgilles
@ -6428,7 +6428,7 @@ V 0.1.4-beta1 - 2007-06-04
kipi-plugins/sendimages/listimageserrordialog.h, kipi-plugins/sendimages/listimageserrordialog.h,
kipi-plugins/sendimages/sendimages.cpp, kipi-plugins/sendimages/sendimages.cpp,
kipi-plugins/sendimages/sendimages.h: kipi-plugins/sendimages/sendimages.h:
qDebug Translation to english tqDebug Translation to english
Adding comments Adding comments
2007-01-25 15:55 lure 2007-01-25 15:55 lure
@ -6444,7 +6444,7 @@ V 0.1.4-beta1 - 2007-06-04
* [r626934] kipi-plugins/sendimages/sendimages.cpp: * [r626934] kipi-plugins/sendimages/sendimages.cpp:
BUG: 139074; BUG: 139074;
Changed the qDebug messages to an int-cast Changed the tqDebug messages to an int-cast
2007-01-24 23:15 anaselli 2007-01-24 23:15 anaselli
@ -7008,7 +7008,7 @@ v 0.1.3-beta1 - 2006-11-29
* [r607391] sendimages/sendimages.cpp: * [r607391] sendimages/sendimages.cpp:
kipi-plugins from trunk : SendImages : patch from Michael kipi-plugins from trunk : SendImages : patch from Michael
Höchstetter to fix kdDebug() statements to qDebug() in Höchstetter to fix kdDebug() statements to tqDebug() in
multithreaded section. multithreaded section.
Important nocice to kipi developpers : never use kdDebug() in Important nocice to kipi developpers : never use kdDebug() in
@ -14467,7 +14467,7 @@ v0.1.0-beta1 2004-09-06
sendimages/plugin_sendimages.cpp, sendimages/plugin_sendimages.cpp,
sendimages/sendimagesdialog.cpp: Fixed namespace name in sendimages/sendimagesdialog.cpp: Fixed namespace name in
JPEGLosLess plugin in according with other plugins namespaces. JPEGLosLess plugin in according with other plugins namespaces.
Used kdDebug instead qDebug. Fixed tmp folder name. Used kdDebug instead tqDebug. Fixed tmp folder name.
2004-06-28 08:53 cgilles 2004-06-28 08:53 cgilles

@ -3541,27 +3541,27 @@ V 0.1.5-beta1 - 2007-10-07
kipi-plugins/jpeglossless/plugin_jpeglossless.h, kipi-plugins/jpeglossless/plugin_jpeglossless.h,
kipi-plugins/jpeglossless/utils.cpp, kipi-plugins/jpeglossless/utils.cpp,
kipi-plugins/jpeglossless/utils.h: kipi-plugins/jpeglossless/utils.h:
kDebug => qDebug kDebug => tqDebug
2007-09-25 10:23 cgilles 2007-09-25 10:23 cgilles
* [r716825] kipi-plugins/jpeglossless/imageflip.cpp, * [r716825] kipi-plugins/jpeglossless/imageflip.cpp,
kipi-plugins/jpeglossless/imageflip.h, kipi-plugins/jpeglossless/imageflip.h,
kipi-plugins/jpeglossless/imagerotate.h: kipi-plugins/jpeglossless/imagerotate.h:
kDegug => qDebug kDegug => tqDebug
2007-09-25 10:20 cgilles 2007-09-25 10:20 cgilles
* [r716824] kipi-plugins/jpeglossless/actions.h, * [r716824] kipi-plugins/jpeglossless/actions.h,
kipi-plugins/jpeglossless/actionthread.cpp, kipi-plugins/jpeglossless/actionthread.cpp,
kipi-plugins/jpeglossless/actionthread.h: kipi-plugins/jpeglossless/actionthread.h:
kDebug => qDebug kDebug => tqDebug
2007-09-25 10:17 cgilles 2007-09-25 10:17 cgilles
* [r716823] kipi-plugins/jpeglossless/imagerotate.cpp, * [r716823] kipi-plugins/jpeglossless/imagerotate.cpp,
kipi-plugins/jpeglossless/imagerotate.h: kipi-plugins/jpeglossless/imagerotate.h:
kDebug => qDebug kDebug => tqDebug
2007-09-24 11:47 cgilles 2007-09-24 11:47 cgilles
@ -6554,7 +6554,7 @@ V 0.1.4-beta1 - 2007-06-04
kipi-plugins/sendimages/listimageserrordialog.h, kipi-plugins/sendimages/listimageserrordialog.h,
kipi-plugins/sendimages/sendimages.cpp, kipi-plugins/sendimages/sendimages.cpp,
kipi-plugins/sendimages/sendimages.h: kipi-plugins/sendimages/sendimages.h:
qDebug Translation to english tqDebug Translation to english
Adding comments Adding comments
2007-01-25 15:55 lure 2007-01-25 15:55 lure
@ -6570,7 +6570,7 @@ V 0.1.4-beta1 - 2007-06-04
* [r626934] kipi-plugins/sendimages/sendimages.cpp: * [r626934] kipi-plugins/sendimages/sendimages.cpp:
BUG: 139074; BUG: 139074;
Changed the qDebug messages to an int-cast Changed the tqDebug messages to an int-cast
2007-01-24 23:15 anaselli 2007-01-24 23:15 anaselli
@ -7134,7 +7134,7 @@ v 0.1.3-beta1 - 2006-11-29
* [r607391] sendimages/sendimages.cpp: * [r607391] sendimages/sendimages.cpp:
kipi-plugins from trunk : SendImages : patch from Michael kipi-plugins from trunk : SendImages : patch from Michael
Höchstetter to fix kdDebug() statements to qDebug() in Höchstetter to fix kdDebug() statements to tqDebug() in
multithreaded section. multithreaded section.
Important nocice to kipi developpers : never use kdDebug() in Important nocice to kipi developpers : never use kdDebug() in
@ -14593,7 +14593,7 @@ v0.1.0-beta1 2004-09-06
sendimages/plugin_sendimages.cpp, sendimages/plugin_sendimages.cpp,
sendimages/sendimagesdialog.cpp: Fixed namespace name in sendimages/sendimagesdialog.cpp: Fixed namespace name in
JPEGLosLess plugin in according with other plugins namespaces. JPEGLosLess plugin in according with other plugins namespaces.
Used kdDebug instead qDebug. Fixed tmp folder name. Used kdDebug instead tqDebug. Fixed tmp folder name.
2004-06-28 08:53 cgilles 2004-06-28 08:53 cgilles

@ -12,7 +12,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -224,7 +224,7 @@ void ActionThread::run()
} }
default: default:
{ {
qDebug("KIPIJPEGLossLessPlugin:ActionThread: " tqDebug("KIPIJPEGLossLessPlugin:ActionThread: "
"Unknown action specified"); "Unknown action specified");
delete d; delete d;
} }

@ -12,7 +12,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it

@ -10,7 +10,7 @@
* Copyright (C) 2003-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2003-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -158,7 +158,7 @@ bool ImageGrayScale::image2GrayScaleJPEG(const TQString& src, const TQString& de
input_file = fopen(TQFile::encodeName(src), "rb"); input_file = fopen(TQFile::encodeName(src), "rb");
if (!input_file) if (!input_file)
{ {
qDebug("Image2GrayScale: Error in opening input file"); tqDebug("Image2GrayScale: Error in opening input file");
err = i18n("Error in opening input file"); err = i18n("Error in opening input file");
return false; return false;
} }
@ -167,7 +167,7 @@ bool ImageGrayScale::image2GrayScaleJPEG(const TQString& src, const TQString& de
if (!output_file) if (!output_file)
{ {
fclose(input_file); fclose(input_file);
qDebug("Image2GrayScale: Error in opening output file"); tqDebug("Image2GrayScale: Error in opening output file");
err = i18n("Error in opening output file"); err = i18n("Error in opening output file");
return false; return false;
} }
@ -229,10 +229,10 @@ bool ImageGrayScale::image2GrayScaleImageMagick(const TQString& src, const TQStr
process << "-type" << "Grayscale"; process << "-type" << "Grayscale";
process << src + TQString("[0]") << dest; process << src + TQString("[0]") << dest;
qDebug("ImageMagick Command line args:"); tqDebug("ImageMagick Command line args:");
TQValueList<TQCString> args = process.args(); TQValueList<TQCString> args = process.args();
for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it) for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it)
qDebug("%s", (const char*)(*it)); tqDebug("%s", (const char*)(*it));
connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); this, TQT_SLOT(slotReadStderr(KProcess*, char*, int)));

@ -10,7 +10,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -146,7 +146,7 @@ bool ImageFlip::flipJPEG(const TQString& src, const TQString& dest, FlipAction a
} }
default: default:
{ {
qDebug("ImageFlip: Nonstandard flip action"); tqDebug("ImageFlip: Nonstandard flip action");
err = i18n("Nonstandard flip action"); err = i18n("Nonstandard flip action");
return false; return false;
} }
@ -176,7 +176,7 @@ bool ImageFlip::flipImageMagick(const TQString& src, const TQString& dest, FlipA
} }
default: default:
{ {
qDebug("ImageFlip: Nonstandard flip action"); tqDebug("ImageFlip: Nonstandard flip action");
err = i18n("Nonstandard flip action"); err = i18n("Nonstandard flip action");
return false; return false;
} }
@ -184,10 +184,10 @@ bool ImageFlip::flipImageMagick(const TQString& src, const TQString& dest, FlipA
process << src + TQString("[0]") << dest; process << src + TQString("[0]") << dest;
qDebug("ImageMagick Command line args:"); tqDebug("ImageMagick Command line args:");
TQValueList<TQCString> args = process.args(); TQValueList<TQCString> args = process.args();
for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it) for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it)
qDebug("%s", (const char*)(*it)); tqDebug("%s", (const char*)(*it));
connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); this, TQT_SLOT(slotReadStderr(KProcess*, char*, int)));

@ -11,7 +11,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -159,7 +159,7 @@ bool ImageRotate::rotateJPEG(const TQString& src, const TQString& dest, RotateAc
} }
default: default:
{ {
qDebug("ImageRotate: Nonstandard rotation angle"); tqDebug("ImageRotate: Nonstandard rotation angle");
err = i18n("Nonstandard rotation angle"); err = i18n("Nonstandard rotation angle");
return false; return false;
} }
@ -200,7 +200,7 @@ bool ImageRotate::rotateImageMagick(const TQString& src, const TQString& dest,
} }
default: default:
{ {
qDebug("ImageRotate: Nonstandard rotation angle"); tqDebug("ImageRotate: Nonstandard rotation angle");
err = i18n("Nonstandard rotation angle"); err = i18n("Nonstandard rotation angle");
return false; return false;
} }
@ -208,10 +208,10 @@ bool ImageRotate::rotateImageMagick(const TQString& src, const TQString& dest,
process << src + TQString("[0]") << dest; process << src + TQString("[0]") << dest;
qDebug("ImageMagick Command line args:"); tqDebug("ImageMagick Command line args:");
TQValueList<TQCString> args = process.args(); TQValueList<TQCString> args = process.args();
for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it) for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it)
qDebug("%s", (const char*)(*it)); tqDebug("%s", (const char*)(*it));
connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); this, TQT_SLOT(slotReadStderr(KProcess*, char*, int)));

@ -11,7 +11,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -92,7 +92,7 @@ static void jpegtransform_jpeg_error_exit(j_common_ptr cinfo)
(*cinfo->err->format_message)(cinfo, buffer); (*cinfo->err->format_message)(cinfo, buffer);
#ifdef ENABLE_DEBUG_MESSAGES #ifdef ENABLE_DEBUG_MESSAGES
qDebug("%s", buffer) tqDebug("%s", buffer)
#endif #endif
longjmp(myerr->setjmp_buffer, 1); longjmp(myerr->setjmp_buffer, 1);
@ -105,7 +105,7 @@ static void jpegtransform_jpeg_emit_message(j_common_ptr cinfo, int msg_level)
(*cinfo->err->format_message)(cinfo, buffer); (*cinfo->err->format_message)(cinfo, buffer);
#ifdef ENABLE_DEBUG_MESSAGES #ifdef ENABLE_DEBUG_MESSAGES
qDebug("%s (%i)", buffer, msg_level); tqDebug("%s (%i)", buffer, msg_level);
#endif #endif
} }
@ -115,7 +115,7 @@ static void jpegtransform_jpeg_output_message(j_common_ptr cinfo)
(*cinfo->err->format_message)(cinfo, buffer); (*cinfo->err->format_message)(cinfo, buffer);
#ifdef ENABLE_DEBUG_MESSAGES #ifdef ENABLE_DEBUG_MESSAGES
qDebug("%s", buffer) tqDebug("%s", buffer)
#endif #endif
} }
@ -158,7 +158,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
input_file = fopen(TQFile::encodeName(src), "rb"); input_file = fopen(TQFile::encodeName(src), "rb");
if (!input_file) if (!input_file)
{ {
qDebug("ImageRotate/ImageFlip: Error in opening input file"); tqDebug("ImageRotate/ImageFlip: Error in opening input file");
err = i18n("Error in opening input file"); err = i18n("Error in opening input file");
return false; return false;
} }
@ -167,7 +167,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
if (!output_file) if (!output_file)
{ {
fclose(input_file); fclose(input_file);
qDebug("ImageRotate/ImageFlip: Error in opening output file"); tqDebug("ImageRotate/ImageFlip: Error in opening output file");
err = i18n("Error in opening output file"); err = i18n("Error in opening output file");
return false; return false;
} }
@ -200,7 +200,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
// Convert action into flip+rotate action // Convert action into flip+rotate action
convertTransform(action, flip, rotate); convertTransform(action, flip, rotate);
qDebug("Transforming with option %i %i", flip, rotate); tqDebug("Transforming with option %i %i", flip, rotate);
if (flip == JXFORM_NONE && rotate == JXFORM_NONE) if (flip == JXFORM_NONE && rotate == JXFORM_NONE)
{ {
err = "nothing to do"; // magic string err = "nothing to do"; // magic string
@ -223,7 +223,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
if (!output_file) if (!output_file)
{ {
fclose(input_file); fclose(input_file);
qDebug("ImageRotate/ImageFlip: Error in opening output file"); tqDebug("ImageRotate/ImageFlip: Error in opening output file");
err = i18n("Error in opening output file"); err = i18n("Error in opening output file");
return false; return false;
} }
@ -280,7 +280,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
input_file = fopen(TQFile::encodeName(dest), "rb"); input_file = fopen(TQFile::encodeName(dest), "rb");
if (!input_file) if (!input_file)
{ {
qDebug("ImageRotate/ImageFlip: Error in opening input file"); tqDebug("ImageRotate/ImageFlip: Error in opening input file");
err = i18n("Error in opening input file"); err = i18n("Error in opening input file");
return false; return false;
} }
@ -289,7 +289,7 @@ bool transformJPEG(const TQString& src, const TQString& destGiven,
if (!output_file) if (!output_file)
{ {
fclose(input_file); fclose(input_file);
qDebug("ImageRotate/ImageFlip: Error in opening output file"); tqDebug("ImageRotate/ImageFlip: Error in opening output file");
err = i18n("Error in opening output file"); err = i18n("Error in opening output file");
return false; return false;
} }

@ -11,7 +11,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -146,10 +146,10 @@ bool Utils::updateMetadataImageMagick(const TQString& src, TQString& err)
process << src + TQString("[0]"); process << src + TQString("[0]");
qDebug("ImageMagick Command line args:"); tqDebug("ImageMagick Command line args:");
TQValueList<TQCString> args = process.args(); TQValueList<TQCString> args = process.args();
for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it) for (TQValueList<TQCString>::iterator it = args.begin(); it != args.end(); ++it)
qDebug("%s", (const char*)(*it)); tqDebug("%s", (const char*)(*it));
connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
this, TQT_SLOT(slotReadStderr(KProcess*, char*, int))); this, TQT_SLOT(slotReadStderr(KProcess*, char*, int)));
@ -244,7 +244,7 @@ bool Utils::MoveFile(const TQString& src, const TQString& dst)
struct stat stbuf; struct stat stbuf;
if (::stat(TQFile::encodeName(dst), &stbuf) != 0) if (::stat(TQFile::encodeName(dst), &stbuf) != 0)
{ {
qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to stat src"); tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to stat src");
return false; return false;
} }
@ -256,12 +256,12 @@ bool Utils::MoveFile(const TQString& src, const TQString& dst)
timbuf.modtime = stbuf.st_mtime; timbuf.modtime = stbuf.st_mtime;
if (::utime(TQFile::encodeName(dst), &timbuf) != 0) if (::utime(TQFile::encodeName(dst), &timbuf) != 0)
{ {
qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to update dst time"); tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to update dst time");
} }
if (::unlink(TQFile::encodeName(src).data()) != 0) if (::unlink(TQFile::encodeName(src).data()) != 0)
{ {
qDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to unlink src"); tqDebug("KIPIJPEGLossLessPlugin:MoveFile: failed to unlink src");
} }
return true; return true;
} }

@ -504,7 +504,7 @@ void GPCamera::getSupportedCameras(int& count, TQStringList& clist) {
count = gp_abilities_list_count( abilList ); count = gp_abilities_list_count( abilList );
if ( count < 0) { if ( count < 0) {
gp_context_unref( context ); gp_context_unref( context );
qWarning("failed to get list of cameras"); tqWarning("failed to get list of cameras");
return; return;
} else { } else {
for (int i=0; i<count; i++) { for (int i=0; i<count; i++) {

@ -209,7 +209,7 @@ void GPController::run() {
break; break;
} }
default: default:
qWarning("GPController: Unknown Command"); tqWarning("GPController: Unknown Command");
break; break;
} }
if (cmd) { if (cmd) {

@ -115,7 +115,7 @@ bool GPEventFilter::eventFilter(TQObject *, TQEvent *e) {
break; break;
} }
default: { default: {
qWarning("Event Filter: Unknown Event"); tqWarning("Event Filter: Unknown Event");
break; break;
} }
} }

@ -91,7 +91,7 @@ void GPIface::getSupportedCameras(int& count, TQStringList& clist) {
count = gp_abilities_list_count( abilList ); count = gp_abilities_list_count( abilList );
if ( count < 0) { if ( count < 0) {
gp_context_unref( context ); gp_context_unref( context );
qWarning("failed to get list of cameras"); tqWarning("failed to get list of cameras");
return; return;
} else { } else {
for (int i=0; i<count; i++) { for (int i=0; i<count; i++) {

@ -10,7 +10,7 @@
* Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -255,7 +255,7 @@ void ActionThread::run()
default: default:
{ {
qWarning("KIPIRawConverterPlugin:ActionThread: Unknown action specified"); tqWarning("KIPIRawConverterPlugin:ActionThread: Unknown action specified");
delete d; delete d;
} }
} }

@ -10,7 +10,7 @@
* Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
* *
* NOTE: Do not use kdDebug() in this implementation because * NOTE: Do not use kdDebug() in this implementation because
* it will be multithreaded. Use qDebug() instead. * it will be multithreaded. Use tqDebug() instead.
* See B.K.O #133026 for details. * See B.K.O #133026 for details.
* *
* This program is free software; you can redistribute it * This program is free software; you can redistribute it
@ -215,7 +215,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
if (!f) if (!f)
{ {
qDebug("Failed to open JPEG file for writing"); tqDebug("Failed to open JPEG file for writing");
return false; return false;
} }
@ -276,7 +276,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
if (!f) if (!f)
{ {
qDebug("Failed to open PNG file for writing"); tqDebug("Failed to open PNG file for writing");
return false; return false;
} }
@ -353,7 +353,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
if (!tif) if (!tif)
{ {
qDebug("Failed to open TIFF file for writing"); tqDebug("Failed to open TIFF file for writing");
return false; return false;
} }
@ -430,7 +430,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
if (!bufThumb) if (!bufThumb)
{ {
qDebug("Cannot allocate memory buffer for TIFF thumbnail."); tqDebug("Cannot allocate memory buffer for TIFF thumbnail.");
TIFFClose(tif); TIFFClose(tif);
return false; return false;
} }
@ -451,7 +451,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
if (!TIFFWriteScanline(tif, bufThumb, y, 0)) if (!TIFFWriteScanline(tif, bufThumb, y, 0))
{ {
qDebug("Cannot write TIFF thumbnail to target file."); tqDebug("Cannot write TIFF thumbnail to target file.");
_TIFFfree(bufThumb); _TIFFfree(bufThumb);
TIFFClose(tif); TIFFClose(tif);
return false; return false;
@ -473,7 +473,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
FILE* f = fopen(TQFile::encodeName(destPath), "wb"); FILE* f = fopen(TQFile::encodeName(destPath), "wb");
if (!f) if (!f)
{ {
qDebug("Failed to open ppm file for writing"); tqDebug("Failed to open ppm file for writing");
return false; return false;
} }
@ -484,7 +484,7 @@ bool RawDecodingIface::loadedFromDcraw(const TQString& filePath,
} }
default: default:
{ {
qDebug("Invalid output file format"); tqDebug("Invalid output file format");
return false; return false;
} }
} }
@ -515,7 +515,7 @@ void RawDecodingIface::writeRawProfile(png_struct *ping, png_info *ping_info, ch
const uchar hex[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'}; const uchar hex[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
qDebug("Writing Raw profile: type=%s, length=%i", profile_type, (int)length); tqDebug("Writing Raw profile: type=%s, length=%i", profile_type, (int)length);
text = (png_textp) png_malloc(ping, (png_uint_32) sizeof(png_text)); text = (png_textp) png_malloc(ping, (png_uint_32) sizeof(png_text));
description_length = strlen((const char *) profile_type); description_length = strlen((const char *) profile_type);

@ -168,18 +168,18 @@ void SendImages::run()
if ((m_sendImagesDialog->m_comment2ImageName->isChecked() == true ) && if ((m_sendImagesDialog->m_comment2ImageName->isChecked() == true ) &&
!commentItem.isEmpty() ) !commentItem.isEmpty() )
{ {
qDebug("commentItem: %s",commentItem.ascii()); tqDebug("commentItem: %s",commentItem.ascii());
} }
else else
{ {
commentItem = ItemName.left(ItemName.findRev('.')); commentItem = ItemName.left(ItemName.findRev('.'));
qDebug("commentItem is empty"); tqDebug("commentItem is empty");
} }
//TQString TempFileName = (*it).directory().section('/', -1); //TQString TempFileName = (*it).directory().section('/', -1);
TQString TempFileName=(*it).path().section('/', -2,-2)+"/"+commentItem+ TQString TempFileName=(*it).path().section('/', -2,-2)+"/"+commentItem+
+"."+(*it).path().section('.', -1,-1); +"."+(*it).path().section('.', -1,-1);
qDebug("TempFileName: %s",TempFileName.ascii()); tqDebug("TempFileName: %s",TempFileName.ascii());
// Thunderbird does not like (). Replace them, BUG:131343 // Thunderbird does not like (). Replace them, BUG:131343
@ -192,11 +192,11 @@ void SendImages::run()
//If TempFileName already exists, add a number oder increase number //If TempFileName already exists, add a number oder increase number
if (entry_already_exists(m_filesSendList,m_tmp + TempFileName)) if (entry_already_exists(m_filesSendList,m_tmp + TempFileName))
{ {
qDebug ("I entered"); tqDebug ("I entered");
TQString secondpart=(m_tmp+TempFileName).section(".",-1,-1); TQString secondpart=(m_tmp+TempFileName).section(".",-1,-1);
TQString firstpart= TQString firstpart=
(m_tmp+TempFileName).left((m_tmp+TempFileName).length()-secondpart.length()-1); (m_tmp+TempFileName).left((m_tmp+TempFileName).length()-secondpart.length()-1);
qDebug("Firstpart: %s \n Secondpart: %s",firstpart.ascii(), secondpart.ascii()); tqDebug("Firstpart: %s \n Secondpart: %s",firstpart.ascii(), secondpart.ascii());
//Add _integer value in the end and prove again //Add _integer value in the end and prove again
int int_index=2; int int_index=2;
TQString index=TQString::number(int_index,10); TQString index=TQString::number(int_index,10);
@ -204,7 +204,7 @@ void SendImages::run()
{ {
int_index++; int_index++;
index=TQString::number(int_index,10); index=TQString::number(int_index,10);
qDebug("Index: %s",index.ascii()); tqDebug("Index: %s",index.ascii());
} }
TQString temp=firstpart + "_"+index+"."+secondpart; TQString temp=firstpart + "_"+index+"."+secondpart;
TempFileName=temp.right(temp.length()-m_tmp.length()); TempFileName=temp.right(temp.length()-m_tmp.length());
@ -219,7 +219,7 @@ void SendImages::run()
//TQString imageNameFormat = TempFileName.replace(TQChar('.'), "_") + //TQString imageNameFormat = TempFileName.replace(TQChar('.'), "_") +
// extension(m_imageFormat); // extension(m_imageFormat);
qDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(), tqDebug( "Resizing %s-> '%s %s ' (%s ; %d )",imageName.ascii(),
m_tmp.ascii(),TempFileName.ascii(),m_imageFormat.ascii(),m_sizeFactor); m_tmp.ascii(),TempFileName.ascii(),m_imageFormat.ascii(),m_sizeFactor);
// Return value for resizeImageProcess-function, in order to avoid reopening // Return value for resizeImageProcess-function, in order to avoid reopening
@ -260,7 +260,7 @@ void SendImages::run()
} }
else else
{ {
qWarning( "createThumb::No Exif Data Found") ; tqWarning( "createThumb::No Exif Data Found") ;
} }
d = new KIPISendimagesPlugin::EventData; d = new KIPISendimagesPlugin::EventData;
@ -418,21 +418,21 @@ KURL::List SendImages::divideEmails(void)
for ( KURL::List::Iterator it = m_filesSendList.begin() ; it != m_filesSendList.end() ; ++it ) for ( KURL::List::Iterator it = m_filesSendList.begin() ; it != m_filesSendList.end() ; ++it )
{ {
qDebug("m_attachmentlimit: %lu ", m_attachmentlimit); tqDebug("m_attachmentlimit: %lu ", m_attachmentlimit);
TQString imageName = (*it).path(); TQString imageName = (*it).path();
qDebug("Imagename: %s", imageName.ascii()); tqDebug("Imagename: %s", imageName.ascii());
TQFile file(imageName); TQFile file(imageName);
qDebug("filesize: %lu", file.size()); tqDebug("filesize: %lu", file.size());
if ((mylistsize + file.size()) <= m_attachmentlimit) if ((mylistsize + file.size()) <= m_attachmentlimit)
{ {
mylistsize+=file.size(); mylistsize+=file.size();
sendnow.append(*it); sendnow.append(*it);
qDebug("mylistsize: %lu; attachmentlimit: %lu",mylistsize, m_attachmentlimit); tqDebug("mylistsize: %lu; attachmentlimit: %lu",mylistsize, m_attachmentlimit);
} }
else else
{ {
qDebug("file %s is out of %lu",imageName.ascii(),m_attachmentlimit); tqDebug("file %s is out of %lu",imageName.ascii(),m_attachmentlimit);
filesSendList.append(*it); filesSendList.append(*it);
} }
} }
@ -450,13 +450,13 @@ bool SendImages::invokeMailAgent(void)
KURL::List filelist; KURL::List filelist;
kurllistdeepcopy(m_filesSendList_copy,m_filesSendList); kurllistdeepcopy(m_filesSendList_copy,m_filesSendList);
qDebug("invokeMailagent1: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); tqDebug("invokeMailagent1: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size());
while (!((filelist=divideEmails()).empty())) while (!((filelist=divideEmails()).empty()))
{ {
qDebug("invokeMailagent2: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int) m_filesSendList.size(),(int)m_filesSendList_copy.size()); tqDebug("invokeMailagent2: Number of elements in m_filesSendList=%d, and in m_filesSendList_copy=%d)",(int) m_filesSendList.size(),(int)m_filesSendList_copy.size());
qDebug("number of elements in filelist %d",(int)filelist.size()); tqDebug("number of elements in filelist %d",(int)filelist.size());
qDebug("number of elements in m_filelist %d", (int)m_filesSendList.size()); tqDebug("number of elements in m_filelist %d", (int)m_filesSendList.size());
if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Default" ) if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Default" )
{ {
KApplication::kApplication()->invokeMailer( KApplication::kApplication()->invokeMailer(
@ -587,7 +587,7 @@ bool SendImages::invokeMailAgent(void)
else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Thunderbird" ) else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Thunderbird" )
{ {
*m_mailAgentProc << m_thunderbirdUrl << "-remote"; *m_mailAgentProc << m_thunderbirdUrl << "-remote";
qDebug("URL: %s", m_thunderbirdUrl.ascii()); tqDebug("URL: %s", m_thunderbirdUrl.ascii());
} }
else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "GmailAgent" ) else if ( m_sendImagesDialog->m_mailAgentName->currentText() == "GmailAgent" )
{ {
@ -621,7 +621,7 @@ bool SendImages::invokeMailAgent(void)
connect(m_mailAgentProc, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)), connect(m_mailAgentProc, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
this, TQT_SLOT(slotMozillaReadStderr(KProcess*, char*, int))); this, TQT_SLOT(slotMozillaReadStderr(KProcess*, char*, int)));
} }
qDebug ("%s", Temp.ascii()); tqDebug ("%s", Temp.ascii());
if ( m_mailAgentProc->start(KProcess::NotifyOnExit , KProcess::All) == false ) if ( m_mailAgentProc->start(KProcess::NotifyOnExit , KProcess::All) == false )
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
@ -756,8 +756,8 @@ bool SendImages::copyImageProcess(const TQString &oldFilePath, const TQString &D
const TQString &ImageName) const TQString &ImageName)
{ {
//same file, no need to copy //same file, no need to copy
qDebug("DestPath: %s",(DestPath).ascii()); tqDebug("DestPath: %s",(DestPath).ascii());
qDebug("ImageName: %s",(ImageName).ascii()); tqDebug("ImageName: %s",(ImageName).ascii());
if(oldFilePath.compare(DestPath+ImageName) == 0) if(oldFilePath.compare(DestPath+ImageName) == 0)
return true; return true;
@ -834,7 +834,7 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString &
if ( scaleImg.width() != w || scaleImg.height() != h ) if ( scaleImg.width() != w || scaleImg.height() != h )
{ {
qDebug ("Resizing failed. Aborting."); tqDebug ("Resizing failed. Aborting.");
return false; return false;
} }
@ -844,7 +844,7 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString &
if ( !img.save(DestPath + ImageName, ImageFormat.latin1(), ImageCompression) ) if ( !img.save(DestPath + ImageName, ImageFormat.latin1(), ImageCompression) )
{ {
qDebug("Saving failed with specific compression value. Aborting."); tqDebug("Saving failed with specific compression value. Aborting.");
return false; return false;
} }
@ -858,13 +858,13 @@ bool SendImages::resizeImageProcess(const TQString &SourcePath, const TQString &
wait 5 seconds and start SlotMozillaTimeout() */ wait 5 seconds and start SlotMozillaTimeout() */
void SendImages::slotMozillaExited(KProcess*) void SendImages::slotMozillaExited(KProcess*)
{ {
qDebug("slotMozillaExited"); tqDebug("slotMozillaExited");
///Here would be the right point to clear the sendlist in order to avoid infinite resendings!! ///Here would be the right point to clear the sendlist in order to avoid infinite resendings!!
m_filesSendList.clear(); m_filesSendList.clear();
///Also disconnect SLOT ///Also disconnect SLOT
m_mailAgentProc->disconnect(TQT_SIGNAL(processExited(KProcess *)), this, TQT_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()); tqDebug("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.find("No running window found") != -1 ) // No remote Mozilla | Netscape |
{ // Thunderbird env. loaded ! { // Thunderbird env. loaded !
m_mailAgentProc2 = new KProcess; // Init a new env. m_mailAgentProc2 = new KProcess; // Init a new env.
@ -902,7 +902,7 @@ void SendImages::slotMozillaTimeout(void)
{ {
m_mozillaTimer->disconnect(TQT_SIGNAL(timeout()), this, TQT_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()); tqDebug("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); kurllistdeepcopy(m_filesSendList,m_filesSendList_copy);
invokeMailAgent(); invokeMailAgent();
@ -918,26 +918,26 @@ void SendImages::slotMozillaReadStderr(KProcess*, char *buffer, int buflen)
bool SendImages::kurllistdeepcopy(KURL::List &Destination, KURL::List Source) bool SendImages::kurllistdeepcopy(KURL::List &Destination, KURL::List Source)
{ {
Destination.clear(); Destination.clear();
qDebug("kurllistdeepcopy started"); tqDebug("kurllistdeepcopy started");
for ( KURL::List::Iterator it = Source.begin() ; it != Source.end() ; ++it ) for ( KURL::List::Iterator it = Source.begin() ; it != Source.end() ; ++it )
{ {
//TQString Tempstring; //TQString Tempstring;
TQString Getstring=(*it).path(); TQString Getstring=(*it).path();
TQString Tempstring=Getstring.copy(); TQString Tempstring=Getstring.copy();
Destination.append(Tempstring); Destination.append(Tempstring);
qDebug("%s",Tempstring.ascii()); tqDebug("%s",Tempstring.ascii());
} }
/* /*
qDebug("deepcopytest"); tqDebug("deepcopytest");
Source.clear(); Source.clear();
for ( KURL::List::Iterator it = Destination.begin() ; it != Destination.end() ; ++it ) for ( KURL::List::Iterator it = Destination.begin() ; it != Destination.end() ; ++it )
{ {
qDebug("%s",(*it).path().ascii()); tqDebug("%s",(*it).path().ascii());
} }
*/ */
qDebug("kurllistdeepcopy ended\n"); tqDebug("kurllistdeepcopy ended\n");
return true; return true;
} }

@ -60,7 +60,7 @@ namespace KIPISlideShowPlugin
activeScreen)); activeScreen));
screenRate = XRRConfigCurrentRate(config); screenRate = XRRConfigCurrentRate(config);
XRRFreeScreenConfigInfo(config); XRRFreeScreenConfigInfo(config);
//qDebug("monitor refresh rate %d Hz", screenRate); //tqDebug("monitor refresh rate %d Hz", screenRate);
// Find the frame rate, that matches the monitor's refresh rate best. // Find the frame rate, that matches the monitor's refresh rate best.
// We will choose between 25, 28 and 30 Hz, to get smooth animations. // We will choose between 25, 28 and 30 Hz, to get smooth animations.
@ -88,7 +88,7 @@ namespace KIPISlideShowPlugin
} }
} while (++i < 3); } while (++i < 3);
//qDebug("using %d Hz as framerate for effects", bestRate); //tqDebug("using %d Hz as framerate for effects", bestRate);
return bestRate; return bestRate;
} }

@ -544,7 +544,7 @@ void SlideShowGL::montage(TQImage& top, TQImage& bot)
int bw = bot.width(); int bh = bot.height(); int bw = bot.width(); int bh = bot.height();
if (tw > bw || th > bh) if (tw > bw || th > bh)
qFatal("Top Image should be smaller or same size as Bottom Image"); tqFatal("Top Image should be smaller or same size as Bottom Image");
if (top.depth() != 32) top = top.convertDepth(32); if (top.depth() != 32) top = top.convertDepth(32);
if (bot.depth() != 32) bot = bot.convertDepth(32); if (bot.depth() != 32) bot = bot.convertDepth(32);

@ -258,7 +258,7 @@ namespace KIPISlideShowPlugin
m_effect = new BlendKBEffect(this, needFadeIn); m_effect = new BlendKBEffect(this, needFadeIn);
break; break;
default: default:
qDebug("Unknown transition effect, falling back to crossfade"); tqDebug("Unknown transition effect, falling back to crossfade");
m_effect = new BlendKBEffect(this, needFadeIn); m_effect = new BlendKBEffect(this, needFadeIn);
} }
} }

Loading…
Cancel
Save