diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:21:06 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:21:06 -0600 |
commit | 7d18baa666593a494ceea480732a8540ba471fe5 (patch) | |
tree | 1c656ba0da61a3bfcf4c4de730e66322865844fe /filters | |
parent | 951839808408bed4165fc025dbf00caf59ea319b (diff) | |
download | koffice-7d18baa666593a494ceea480732a8540ba471fe5.tar.gz koffice-7d18baa666593a494ceea480732a8540ba471fe5.zip |
Rename additional global TQt functions
Diffstat (limited to 'filters')
-rw-r--r-- | filters/chalk/gmagick/kis_image_magick_converter.cc | 8 | ||||
-rw-r--r-- | filters/chalk/magick/kis_image_magick_converter.cc | 8 | ||||
-rw-r--r-- | filters/karbon/ai/ai3handler.cc | 4 | ||||
-rw-r--r-- | filters/karbon/ai/ai88handler.cc | 22 | ||||
-rw-r--r-- | filters/karbon/ai/aicolor.cc | 4 | ||||
-rw-r--r-- | filters/karbon/ai/ailexer.cc | 46 | ||||
-rw-r--r-- | filters/karbon/ai/aiparserbase.cc | 282 | ||||
-rw-r--r-- | filters/karbon/ai/karbonaiparserbase.cc | 88 | ||||
-rw-r--r-- | filters/karbon/eps/epsimport.cc | 4 | ||||
-rw-r--r-- | filters/karbon/eps/pscommentlexer.cc | 20 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/import/powerpointimport.cc | 10 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/powerpoint.cpp | 26 | ||||
-rw-r--r-- | filters/kword/latex/import/generator/document.cc | 2 | ||||
-rw-r--r-- | filters/kword/palmdoc/palmdb.cpp | 20 | ||||
-rw-r--r-- | filters/kword/palmdoc/palmdoc.cpp | 10 |
15 files changed, 277 insertions, 277 deletions
diff --git a/filters/chalk/gmagick/kis_image_magick_converter.cc b/filters/chalk/gmagick/kis_image_magick_converter.cc index 2b014388..22982cc5 100644 --- a/filters/chalk/gmagick/kis_image_magick_converter.cc +++ b/filters/chalk/gmagick/kis_image_magick_converter.cc @@ -391,7 +391,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB images = BlobToImage(ii, &m_data[0], m_data.size(), &ei); } else { - qstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); + tqstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); if (ii -> filename[MaxTextExtent - 1]) { emit notifyProgressError(); @@ -721,7 +721,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB ii = CloneImageInfo(0); - qstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); + tqstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); if (ii -> filename[MaxTextExtent - 1]) { emit notifyProgressError(); @@ -767,10 +767,10 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB TQString ext = TQFileInfo(TQFile::encodeName(uri.path())).extension(false).upper(); if (ext == "BMP") { alpha = false; - qstrncpy(ii->magick, "BMP2", MaxTextExtent - 1); + tqstrncpy(ii->magick, "BMP2", MaxTextExtent - 1); } else if (ext == "RGB") { - qstrncpy(ii->magick, "SGI", MaxTextExtent - 1); + tqstrncpy(ii->magick, "SGI", MaxTextExtent - 1); } for (y = 0; y < height; y++) { diff --git a/filters/chalk/magick/kis_image_magick_converter.cc b/filters/chalk/magick/kis_image_magick_converter.cc index 225177c4..ec70f179 100644 --- a/filters/chalk/magick/kis_image_magick_converter.cc +++ b/filters/chalk/magick/kis_image_magick_converter.cc @@ -339,7 +339,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB images = BlobToImage(ii, &m_data[0], m_data.size(), &ei); } else { - qstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); + tqstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); if (ii -> filename[MaxTextExtent - 1]) { emit notifyProgressError(); @@ -663,7 +663,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB ii = CloneImageInfo(0); - qstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); + tqstrncpy(ii -> filename, TQFile::encodeName(uri.path()), MaxTextExtent - 1); if (ii -> filename[MaxTextExtent - 1]) { emit notifyProgressError(); @@ -709,10 +709,10 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB TQString ext = TQFileInfo(TQFile::encodeName(uri.path())).extension(false).upper(); if (ext == "BMP") { alpha = false; - qstrncpy(ii->magick, "BMP2", MaxTextExtent - 1); + tqstrncpy(ii->magick, "BMP2", MaxTextExtent - 1); } else if (ext == "RGB") { - qstrncpy(ii->magick, "SGI", MaxTextExtent - 1); + tqstrncpy(ii->magick, "SGI", MaxTextExtent - 1); } for (y = 0; y < height; y++) { diff --git a/filters/karbon/ai/ai3handler.cc b/filters/karbon/ai/ai3handler.cc index ae0252a3..c014d930 100644 --- a/filters/karbon/ai/ai3handler.cc +++ b/filters/karbon/ai/ai3handler.cc @@ -41,9 +41,9 @@ bool AI3Handler::handleAIOperation (AIOperation op) { return true; break; case AIO_EndGroupNoClip : - if (m_delegate->m_debug) qDebug ("got end group noclip"); + if (m_delegate->m_debug) tqDebug ("got end group noclip"); if (m_delegate->m_structureHandler) m_delegate->m_structureHandler->gotEndGroup (false); - if (m_delegate->m_debug) qDebug ("/got end group noclip"); + if (m_delegate->m_debug) tqDebug ("/got end group noclip"); return true; break; case AIO_BeginCombination : diff --git a/filters/karbon/ai/ai88handler.cc b/filters/karbon/ai/ai88handler.cc index a271f33f..7b5019be 100644 --- a/filters/karbon/ai/ai88handler.cc +++ b/filters/karbon/ai/ai88handler.cc @@ -110,9 +110,9 @@ bool AI88Handler::handleAIOperation (AIOperation op) { return true; break; case AIO_EndGroupClip : - if (m_delegate->m_debug) qDebug ("got end group clip"); + if (m_delegate->m_debug) tqDebug ("got end group clip"); if (m_delegate->m_structureHandler) m_delegate->m_structureHandler->gotEndGroup (true); - if (m_delegate->m_debug) qDebug ("/got end group clip"); + if (m_delegate->m_debug) tqDebug ("/got end group clip"); return true; break; @@ -315,7 +315,7 @@ void AI88Handler::_handleSetFillColorCMYK() double m = m_delegate->getDoubleValue(); double c = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 1 are %f %f %f %f",c,m,y,k); + if (m_delegate->m_debug) tqDebug ("values 1 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k); if (m_delegate->m_gstateHandler) m_delegate->m_gstateHandler->gotFillColor (color); @@ -376,7 +376,7 @@ void AI88Handler::_handleSetStrokeColorCMYK() double y = m_delegate->getDoubleValue(); double m = m_delegate->getDoubleValue(); double c = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 2 are %f %f %f %f",c,m,y,k); + if (m_delegate->m_debug) tqDebug ("values 2 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k); @@ -386,7 +386,7 @@ void AI88Handler::_handleSetStrokeColorCMYK() void AI88Handler::_handleSetFillColorGray() { double g = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 3 are %f",g); + if (m_delegate->m_debug) tqDebug ("values 3 are %f",g); AIColor color (g); @@ -396,7 +396,7 @@ void AI88Handler::_handleSetFillColorGray() void AI88Handler::_handleSetStrokeColorGray() { double g = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 4 are %f",g); + if (m_delegate->m_debug) tqDebug ("values 4 are %f",g); AIColor color (g); @@ -411,7 +411,7 @@ void AI88Handler::_handleSetFillColorCustom() double y = m_delegate->getDoubleValue(); double m = m_delegate->getDoubleValue(); double c = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 5 are %f %f %f %f",c,m,y,k); + if (m_delegate->m_debug) tqDebug ("values 5 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k,name.latin1(),g); @@ -420,7 +420,7 @@ void AI88Handler::_handleSetFillColorCustom() void AI88Handler::_handleSetDash() { -// qDebug ("found dash operation"); +// tqDebug ("found dash operation"); double fval = m_delegate->getDoubleValue(); AIElement elem (m_delegate->m_stack.top()); @@ -428,7 +428,7 @@ void AI88Handler::_handleSetDash() const TQValueVector<AIElement> aval = elem.toElementArray(); if (m_delegate->m_gstateHandler) m_delegate->m_gstateHandler->gotDash (aval, fval); -// qDebug ("dash operation finished"); +// tqDebug ("dash operation finished"); } void AI88Handler::_handlePatternDefinition() @@ -499,7 +499,7 @@ void AI88Handler::_handleSetCurrentText() { void AI88Handler::_handleTextBlock (TextOperation to) { AIElement elem (m_delegate->m_stack.top()); - qDebug ("to element is (%s)",elem.typeName()); + tqDebug ("to element is (%s)",elem.typeName()); m_delegate->m_stack.pop(); const TQValueVector<AIElement> aval = elem.toElementArray(); @@ -556,7 +556,7 @@ void AI88Handler::_handleSetStrokeColorCustom() double y = m_delegate->getDoubleValue(); double m = m_delegate->getDoubleValue(); double c = m_delegate->getDoubleValue(); - if (m_delegate->m_debug) qDebug ("values 6 are %f %f %f %f",c,m,y,k); + if (m_delegate->m_debug) tqDebug ("values 6 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k,name.latin1(),g); diff --git a/filters/karbon/ai/aicolor.cc b/filters/karbon/ai/aicolor.cc index 67384167..cabc932f 100644 --- a/filters/karbon/ai/aicolor.cc +++ b/filters/karbon/ai/aicolor.cc @@ -71,7 +71,7 @@ void AIColor::toRGB (double &r, double &g, double &b) b = cdata.graydata; break; default : - qDebug ("unknown colortype %d", ctype); + tqDebug ("unknown colortype %d", ctype); } } @@ -93,7 +93,7 @@ void AIColor::toCMYK (double &c, double &m, double &y, double &k) k = cdata.graydata; break; default : - qDebug ("unknown colortype %d", ctype); + tqDebug ("unknown colortype %d", ctype); } } diff --git a/filters/karbon/ai/ailexer.cc b/filters/karbon/ai/ailexer.cc index a1ab4bda..935403d9 100644 --- a/filters/karbon/ai/ailexer.cc +++ b/filters/karbon/ai/ailexer.cc @@ -185,7 +185,7 @@ bool AILexer::parse (TQIODevice& fin){ { c = fin.getch (); -// qDebug ("got %c", c); +// tqDebug ("got %c", c); State newState; Action action; @@ -212,7 +212,7 @@ bool AILexer::parse (TQIODevice& fin){ /* ignore */ break; case Action_Abort : - qWarning ( "state %s / %s char %c (%d)" , statetoa(m_curState), statetoa(newState), c, c ); + tqWarning ( "state %s / %s char %c (%d)" , statetoa(m_curState), statetoa(newState), c, c ); parsingAborted(); return false; break; @@ -233,7 +233,7 @@ bool AILexer::parse (TQIODevice& fin){ fin.ungetch(c); break; default : - qWarning ( "unknown action: %d ", action); + tqWarning ( "unknown action: %d ", action); } m_curState = newState; @@ -288,76 +288,76 @@ void AILexer::doOutput () doHandleByteArray (); break; default: - qWarning ( "unknown state: %d", m_curState ); + tqWarning ( "unknown state: %d", m_curState ); } m_buffer.clear(); } void AILexer::gotComment (const char *value) { - qDebug ( "gotComment: %s ", value ); + tqDebug ( "gotComment: %s ", value ); } void AILexer::gotIntValue (int value) { - qDebug ( "gotInt: %d ", value ); + tqDebug ( "gotInt: %d ", value ); } void AILexer::gotDoubleValue (double value) { - qDebug ( "gotDouble: %f ", value ); + tqDebug ( "gotDouble: %f ", value ); } void AILexer::gotStringValue (const char *value) { - qDebug ( "gotString: %s ", value ); + tqDebug ( "gotString: %s ", value ); } void AILexer::gotToken (const char *value) { - qDebug ( "gotToken: %s ", value ); + tqDebug ( "gotToken: %s ", value ); } void AILexer::gotReference (const char *value) { - qDebug ( "gotReference: %s ", value ); + tqDebug ( "gotReference: %s ", value ); } void AILexer::gotBlockStart (){ - qDebug ( "gotBlockStart" ); + tqDebug ( "gotBlockStart" ); } void AILexer::gotBlockEnd (){ - qDebug ( "gotBlockEnd" ); + tqDebug ( "gotBlockEnd" ); } void AILexer::gotArrayStart (){ - qDebug ( "gotArrayStart" ); + tqDebug ( "gotArrayStart" ); } void AILexer::gotArrayEnd (){ - qDebug ( "gotArrayEnd" ); + tqDebug ( "gotArrayEnd" ); } void AILexer::parsingStarted() { - qDebug ( "parsing started" ); + tqDebug ( "parsing started" ); } void AILexer::parsingFinished() { - qDebug ( "parsing finished" ); + tqDebug ( "parsing finished" ); } void AILexer::parsingAborted() { - qDebug ( "parsing aborted" ); + tqDebug ( "parsing aborted" ); } void AILexer::gotByte (uchar value) { - qDebug ( "got byte %d" , value ); + tqDebug ( "got byte %d" , value ); } void AILexer::gotByteArray (const TQByteArray &data) { - qDebug ( "got byte array" ); + tqDebug ( "got byte array" ); /* for ( uint i = 0; i < data.size(); i++ ) { uchar value = data[i]; - qDebug( "%d: %x", i, value ); + tqDebug( "%d: %x", i, value ); } - qDebug ( "/byte array" ); */ + tqDebug ( "/byte array" ); */ } @@ -429,7 +429,7 @@ void AILexer::doHandleByteArray () uchar AILexer::getByte() { -// qDebug ("convert string to byte (%s)", m_buffer.latin1()); +// tqDebug ("convert string to byte (%s)", m_buffer.latin1()); TQStringList list = TQStringList::split ("#", m_buffer.toString()); int radix = list[0].toShort(); @@ -441,7 +441,7 @@ uchar AILexer::getByte() uchar AILexer::decode() { uchar value = m_temp.toString().toShort(NULL, 8); -// qDebug ("got encoded char %c",value); +// tqDebug ("got encoded char %c",value); return value; } diff --git a/filters/karbon/ai/aiparserbase.cc b/filters/karbon/ai/aiparserbase.cc index 817c3d7e..24f9920e 100644 --- a/filters/karbon/ai/aiparserbase.cc +++ b/filters/karbon/ai/aiparserbase.cc @@ -230,12 +230,12 @@ void AIParserBase::gotComment (const char *value) { break; case CO_BeginProcSet : if (m_moduleHandler) m_moduleHandler->gotBeginSection (ST_ProcSet, value); - if (m_debug) qDebug ("start ignoring"); + if (m_debug) tqDebug ("start ignoring"); m_ignoring = true; break; case CO_BeginResource : if (m_moduleHandler) m_moduleHandler->gotBeginSection (ST_Resource, value); - if (m_debug) qDebug ("start ignoring"); + if (m_debug) tqDebug ("start ignoring"); m_ignoring = true; break; case CO_BeginEncoding : @@ -243,7 +243,7 @@ void AIParserBase::gotComment (const char *value) { m_ignoring = false; break; case CO_IncludeFont : - if (m_debug) qDebug ("start ignoring"); + if (m_debug) tqDebug ("start ignoring"); m_ignoring = true; break; case CO_BeginBrushPattern : @@ -253,7 +253,7 @@ void AIParserBase::gotComment (const char *value) { if (m_moduleHandler) m_moduleHandler->gotBeginSection (ST_Gradient, value); break; case CO_Trailer : - if (m_debug) qDebug ("start ignoring"); + if (m_debug) tqDebug ("start ignoring"); m_ignoring = true; break; case CO_BeginPalette : @@ -271,12 +271,12 @@ void AIParserBase::gotComment (const char *value) { break; case CO_EndProcSet : if (m_moduleHandler) m_moduleHandler->gotEndSection (ST_ProcSet, value); - if (m_debug) qDebug ("stop ignoring"); + if (m_debug) tqDebug ("stop ignoring"); m_ignoring = false; break; case CO_EndResource : if (m_moduleHandler) m_moduleHandler->gotEndSection (ST_Resource, value); - if (m_debug) qDebug ("stop ignoring"); + if (m_debug) tqDebug ("stop ignoring"); m_ignoring = false; break; case CO_EndEncoding : @@ -360,12 +360,12 @@ void AIParserBase::gotComment (const char *value) { case CM_CMYKCustomColor : _handleCMYKCustomColor (value); break; case CM_DocumentNeededResources : _handleDocumentNeededResources (value); break; - default : qWarning ("unknown continuation mode %d",m_continuationMode); + default : tqWarning ("unknown continuation mode %d",m_continuationMode); } break; default : - qWarning( "unhandled comment: %s", value ); + tqWarning( "unhandled comment: %s", value ); } } @@ -375,70 +375,70 @@ void AIParserBase::handleElement (AIElement &element) if (m_sink == DS_Array) { - if (m_debug) qDebug ("in mode array"); + if (m_debug) tqDebug ("in mode array"); TQValueVector<AIElement> &elementArray = m_arrayStack.top(); elementArray.push_back(element); } if (m_sink == DS_Block) { - if (m_debug) qDebug ("in mode block"); + if (m_debug) tqDebug ("in mode block"); TQValueVector<AIElement> &elementArray = m_blockStack.top(); elementArray.push_back(element); } else { - if (m_debug) qDebug ("in mode stack"); + if (m_debug) tqDebug ("in mode stack"); m_stack.push (element); } } void AIParserBase::gotIntValue (int value) { - if (m_debug) qDebug ("got int value"); + if (m_debug) tqDebug ("got int value"); if (m_ignoring) return; AIElement element (value); handleElement (element); - if (m_debug) qDebug ("/got int value"); + if (m_debug) tqDebug ("/got int value"); } void AIParserBase::gotDoubleValue (double value) { - if (m_debug) qDebug ("got double value"); + if (m_debug) tqDebug ("got double value"); if (m_ignoring) return; AIElement element (value); handleElement (element); - if (m_debug) qDebug ("/got double value"); + if (m_debug) tqDebug ("/got double value"); } void AIParserBase::gotStringValue (const char *value) { - if (m_debug) qDebug ("got string value"); + if (m_debug) tqDebug ("got string value"); if (m_ignoring) return; if (value == NULL) value = ""; - if (m_debug) qDebug ("string: %s", value); + if (m_debug) tqDebug ("string: %s", value); AIElement element (value); handleElement (element); - if (m_debug) qDebug ("/got string value"); + if (m_debug) tqDebug ("/got string value"); } void AIParserBase::gotReference (const char *value) { - if (m_debug) qDebug ("got reference value"); + if (m_debug) tqDebug ("got reference value"); if (m_ignoring) return; if (value == NULL) value = ""; - if (m_debug) qDebug ("reference: %s", value); + if (m_debug) tqDebug ("reference: %s", value); TQString string(value); AIElement element (string, AIElement::Reference); handleElement (element); - if (m_debug) qDebug ("/got reference value"); + if (m_debug) tqDebug ("/got reference value"); } void AIParserBase::gotByte (uchar value) { - if (m_debug) qDebug ("got byte value"); + if (m_debug) tqDebug ("got byte value"); if (m_ignoring) return; AIElement element (value); handleElement (element); - if (m_debug) qDebug ("/got byte value"); + if (m_debug) tqDebug ("/got byte value"); } void AIParserBase::gotByteArray (const TQByteArray &data) { @@ -450,7 +450,7 @@ void AIParserBase::gotByteArray (const TQByteArray &data) { void AIParserBase::gotArrayStart () { if (m_ignoring) return; - if (m_debug) qDebug ("got array start"); + if (m_debug) tqDebug ("got array start"); TQValueVector<AIElement> array; m_arrayStack.push (array); @@ -460,7 +460,7 @@ void AIParserBase::gotArrayStart () { void AIParserBase::gotBlockStart () { if (m_ignoring) return; - if (m_debug) qDebug ("got block start"); + if (m_debug) tqDebug ("got block start"); TQValueVector<AIElement> array; m_blockStack.push (array); @@ -470,19 +470,19 @@ void AIParserBase::gotBlockStart () { void AIParserBase::gotArrayEnd () { if (m_ignoring) return; - if (m_debug) qDebug ("got array end"); + if (m_debug) tqDebug ("got array end"); TQValueVector<AIElement> stackArray = m_arrayStack.pop(); if (m_arrayStack.empty()) { - if (m_debug) qDebug ("put elements to stack"); + if (m_debug) tqDebug ("put elements to stack"); AIElement realElement (stackArray); if (m_debug) { - qDebug ("going to stack"); + tqDebug ("going to stack"); elementtoa (realElement); - qDebug ("done"); + tqDebug ("done"); } m_stack.push (realElement); @@ -490,7 +490,7 @@ void AIParserBase::gotArrayEnd () { } else { - if (m_debug) qDebug ("put elements to nest stack level"); + if (m_debug) tqDebug ("put elements to nest stack level"); TQValueVector<AIElement> currentTOS = m_arrayStack.top(); currentTOS.push_back (stackArray); } @@ -498,19 +498,19 @@ void AIParserBase::gotArrayEnd () { void AIParserBase::gotBlockEnd () { if (m_ignoring) return; - if (m_debug) qDebug ("got block end"); + if (m_debug) tqDebug ("got block end"); TQValueVector<AIElement> stackArray = m_blockStack.pop(); if (m_blockStack.empty()) { - if (m_debug) qDebug ("put elements to stack"); + if (m_debug) tqDebug ("put elements to stack"); AIElement realElement (stackArray, AIElement::Block); if (m_debug) { - qDebug ("going to stack"); + tqDebug ("going to stack"); elementtoa (realElement); - qDebug ("done"); + tqDebug ("done"); } m_stack.push (realElement); @@ -518,7 +518,7 @@ void AIParserBase::gotBlockEnd () { } else { - if (m_debug) qDebug ("put elements to nest stack level"); + if (m_debug) tqDebug ("put elements to nest stack level"); TQValueVector<AIElement> currentTOS = m_blockStack.top(); currentTOS.push_back (stackArray); } @@ -542,7 +542,7 @@ void AIParserBase::gotBlockEnd () { double m = getDoubleValue(); double c = getDoubleValue(); - if (m_debug) qDebug ("values 1 are %f %f %f %f",c,m,y,k); + if (m_debug) tqDebug ("values 1 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k); if (m_gstateHandler) m_gstateHandler->gotFillColor (color); @@ -602,7 +602,7 @@ void AIParserBase::gotBlockEnd () { double y = getDoubleValue(); double m = getDoubleValue(); double c = getDoubleValue(); - if (m_debug) qDebug ("values 2 are %f %f %f %f",c,m,y,k); + if (m_debug) tqDebug ("values 2 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k); @@ -612,7 +612,7 @@ void AIParserBase::gotBlockEnd () { /*Ai88*/ /* void AIParserBase::_handleSetFillColorGray() { double g = getDoubleValue(); - if (m_debug) qDebug ("values 3 are %f",g); + if (m_debug) tqDebug ("values 3 are %f",g); AIColor color (g); @@ -622,7 +622,7 @@ void AIParserBase::gotBlockEnd () { /*Ai88*/ /* void AIParserBase::_handleSetStrokeColorGray() { double g = getDoubleValue(); - if (m_debug) qDebug ("values 4 are %f",g); + if (m_debug) tqDebug ("values 4 are %f",g); AIColor color (g); @@ -637,7 +637,7 @@ void AIParserBase::gotBlockEnd () { double y = getDoubleValue(); double m = getDoubleValue(); double c = getDoubleValue(); - if (m_debug) qDebug ("values 5 are %f %f %f %f",c,m,y,k); + if (m_debug) tqDebug ("values 5 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k,name.latin1(),g); @@ -745,7 +745,7 @@ void AIParserBase::_handlePSDef() { double y = getDoubleValue(); double m = getDoubleValue(); double c = getDoubleValue(); - if (m_debug) qDebug ("values 6 are %f %f %f %f",c,m,y,k); + if (m_debug) tqDebug ("values 6 are %f %f %f %f",c,m,y,k); AIColor color (c,m,y,k,name.latin1(),g); @@ -856,7 +856,7 @@ void AIParserBase::_handleCMYKCustomColor(const char *) { /*Ai88*/ /* void AIParserBase::_handleTextBlock (TextOperation to) { AIElement elem (m_stack.top()); - qDebug ("to element is (%s)",elem.typeName()); + tqDebug ("to element is (%s)",elem.typeName()); m_stack.pop(); const TQValueVector<AIElement> aval = elem.toElementArray(); @@ -899,14 +899,14 @@ void AIParserBase::_handleCreationDate (const char *data) } void AIParserBase::gotToken (const char *value) { - if (m_debug) qDebug ("got token"); + if (m_debug) tqDebug ("got token"); if (m_ignoring) return; - if (m_debug) qDebug ("token: %s", value); + if (m_debug) tqDebug ("token: %s", value); if (m_sink == DS_Array) { - if (m_debug) qDebug ("token in array"); + if (m_debug) tqDebug ("token in array"); TQString op (value); AIElement realElement (op, AIElement::Operator); handleElement (realElement); @@ -915,7 +915,7 @@ void AIParserBase::gotToken (const char *value) { } if (m_sink == DS_Block) { - if (m_debug) qDebug ("token in block"); + if (m_debug) tqDebug ("token in block"); TQString op (value); AIElement realElement (op, AIElement::Operator); handleElement (realElement); @@ -923,7 +923,7 @@ void AIParserBase::gotToken (const char *value) { return; } - if (m_debug) qDebug ("get ai operation"); + if (m_debug) tqDebug ("get ai operation"); AIOperation op = getAIOperation (value); // PathElement pathElement; @@ -941,7 +941,7 @@ void AIParserBase::gotToken (const char *value) { { if (handlePS (value)) return; } - qWarning ( "unknown operator: %s", value ); + tqWarning ( "unknown operator: %s", value ); TQString string(value); @@ -953,12 +953,12 @@ void AIParserBase::gotToken (const char *value) { } if (m_debug) stacktoa (m_stack); - qWarning ( "pushing %s to stack", value ); + tqWarning ( "pushing %s to stack", value ); AIElement element (string, AIElement::Operator); handleElement (element); } - if (m_debug) qDebug ("/got token value"); + if (m_debug) tqDebug ("/got token value"); } bool AIParserBase::handlePS (const char *operand){ @@ -1074,15 +1074,15 @@ CommentOperation AIParserBase::getCommentOperation (const char *command) { } void GStateHandlerBase::gotFillPattern (const char *pname, double px, double py, double sx, double sy, double angle, double rf, double r, double k, double ka, const TQValueVector<AIElement>& transformData) { - qDebug ( "got fill pattern %s %f %f %f %f %f %f %f %f %f", pname, px, py, sx, sy, angle, rf, r, k, ka); + tqDebug ( "got fill pattern %s %f %f %f %f %f %f %f %f %f", pname, px, py, sx, sy, angle, rf, r, k, ka); arraytoa (transformData); - qDebug ("/got fill pattern"); + tqDebug ("/got fill pattern"); } void GStateHandlerBase::gotStrokePattern (const char *pname, double px, double py, double sx, double sy, double angle, double rf, double r, double k, double ka, const TQValueVector<AIElement>& transformData) { - qDebug ( "got stroke pattern %s %f %f %f %f %f %f %f %f %f", pname, px, py, sx, sy, angle, rf, r, k, ka); + tqDebug ( "got stroke pattern %s %f %f %f %f %f %f %f %f %f", pname, px, py, sx, sy, angle, rf, r, k, ka); arraytoa (transformData); - qDebug ("/got stroke pattern"); + tqDebug ("/got stroke pattern"); } const char *AIParserBase::getValue (const char *input) { @@ -1126,7 +1126,7 @@ bool AIParserBase::getPoint (const char* input, int &x, int &y) { void AIParserBase::cleanupArrays() { - if (m_sink == DS_Array) qDebug ("unclosed array(s)."); + if (m_sink == DS_Array) tqDebug ("unclosed array(s)."); while (m_sink == DS_Array) gotArrayEnd (); stacktoa (m_stack); } @@ -1154,37 +1154,37 @@ void AIParserBase::cleanupArrays() void TextHandlerBase::gotFontEncoding (const TQValueVector<AIElement>& encodingData, const char*oldFontName, const char*newFontName) { - qDebug ("font encoding %s to %s",oldFontName, newFontName); + tqDebug ("font encoding %s to %s",oldFontName, newFontName); arraytoa (encodingData); - qDebug ("/font encoding"); + tqDebug ("/font encoding"); } void TextHandlerBase::gotFontDefinition (const char*fontName, double size, double leading, double kerning, TextAlign align) { - qDebug ("font definition: name %s size %f leading %f kerning %f align %d", fontName, size, leading, kerning, align); + tqDebug ("font definition: name %s size %f leading %f kerning %f align %d", fontName, size, leading, kerning, align); } void TextHandlerBase::gotTextBlockBegin (const TQValueVector<AIElement>& transData, TextOperation mode) { - qDebug ("text block begin %d",mode); + tqDebug ("text block begin %d",mode); arraytoa (transData); - qDebug ("/text block begin"); + tqDebug ("/text block begin"); } void TextHandlerBase::gotTextOutput (const char*text, int length) { - qDebug ("text output (%s) %d",text,length); + tqDebug ("text output (%s) %d",text,length); } void TextHandlerBase::gotTextBlockEnd () { - qDebug ("text block end"); + tqDebug ("text block end"); } const void elementtoa (const AIElement &/*data*/) { /* AIElement::Type type = data.type(); - qDebug ("type: %s", AIElement::typeToName (type)); + tqDebug ("type: %s", AIElement::typeToName (type)); switch (type) { @@ -1193,13 +1193,13 @@ const void elementtoa (const AIElement &/*data*/) case AIElement::Int : case AIElement::UInt : case AIElement::Double : - qDebug ("string value : %s",data.toString().latin1()); + tqDebug ("string value : %s",data.toString().latin1()); break; case AIElement::Reference : - qDebug ("string value : %s",data.toReference().latin1()); + tqDebug ("string value : %s",data.toReference().latin1()); break; case AIElement::Operator : - qDebug ("string value : %s",data.toOperator().latin1()); + tqDebug ("string value : %s",data.toOperator().latin1()); break; case AIElement::ElementArray : arraytoa (data.toElementArray()); @@ -1209,50 +1209,50 @@ const void elementtoa (const AIElement &/*data*/) break; default : - qDebug ("could not fetch data"); + tqDebug ("could not fetch data"); } */ } const void arraytoa (const TQValueVector<AIElement> &/*data*/) { -/* qDebug ("array size is %d ",data.size()); +/* tqDebug ("array size is %d ",data.size()); if (data.size() > 0) { - qDebug ("[[[[[[[[[[[[[[[[[[[["); + tqDebug ("[[[[[[[[[[[[[[[[[[[["); for (uint i=0; i< data.size(); i++) { elementtoa (data[i]); } - qDebug ("]]]]]]]]]]]]]]]]]]]]"); + tqDebug ("]]]]]]]]]]]]]]]]]]]]"); } */ } const void stacktoa (const TQValueStack<AIElement> &/*data*/) { -/* qDebug ("stack size is %d",data.size()); +/* tqDebug ("stack size is %d",data.size()); if (data.size() > 0) { - qDebug ("<<<<<<<<<<<<<<<<<<"); + tqDebug ("<<<<<<<<<<<<<<<<<<"); for (uint i=0; i< data.size(); i++) { elementtoa (data[i]); } } - qDebug (">>>>>>>>>>>>>>>>>>"); */ + tqDebug (">>>>>>>>>>>>>>>>>>"); */ } const void stacktoa2 (const TQValueStack<TQValueVector<AIElement> >&/*data*/) { -/* qDebug ("stack size is %d",data.size()); +/* tqDebug ("stack size is %d",data.size()); if (data.size() > 0) { - qDebug ("((((((((((((((((((((((("); + tqDebug ("((((((((((((((((((((((("); for (uint i=0; i< data.size(); i++) { arraytoa (data[i]); } - qDebug (")))))))))))))))))))))))"); + tqDebug (")))))))))))))))))))))))"); } */ } @@ -1260,59 +1260,59 @@ const void aiotoa (AIOperation &data) { switch (data) { - case AIO_SetFillColorCMYK : qDebug ("AIO_SetFillColorCMYK"); break; - case AIO_SetStrokeColorCMYK : qDebug ("AIO_SetStrokeColorCMYK"); break; - case AIO_SetFillColorGray : qDebug ("AIO_SetFillColorGray"); break; - case AIO_SetStrokeColorGray : qDebug ("AIO_SetStrokeColorGray"); break; - case AIO_SetFillColorCustom : qDebug ("AIO_SetFillColorCustom"); break; - case AIO_SetStrokeColorCustom : qDebug ("AIO_SetStrokeColorCustom"); break; - case AIO_SetFillPattern : qDebug ("AIO_SetFillPattern"); break; - case AIO_SetStrokePattern : qDebug ("AIO_SetStrokePattern"); break; - case AIO_SetFillOverprinting : qDebug ("AIO_SetFillOverprinting"); break; - case AIO_SetStrokeOverprinting : qDebug ("AIO_SetStrokeOverprinting"); break; - case AIO_SetFlatness : qDebug ("AIO_SetFlatness"); break; - case AIO_SetLineCap : qDebug ("AIO_SetLineCap"); break; - case AIO_SetLineJoin : qDebug ("AIO_SetLineJoin"); break; - case AIO_SetLineWidth : qDebug ("AIO_SetLineWidth"); break; - case AIO_SetMiterLimit : qDebug ("AIO_SetMiterLimit"); break; - case AIO_SetDash : qDebug ("AIO_SetDash"); break; - case AIO_BeginGroupClip : qDebug ("AIO_BeginGroupClip"); break; - case AIO_EndGroupClip : qDebug ("AIO_EndGroupClip"); break; - case AIO_MoveTo : qDebug ("AIO_MoveTo"); break; - case AIO_LineToCorner : qDebug ("AIO_LineToCorner"); break; - case AIO_LineToSmooth : qDebug ("AIO_LineToSmooth"); break; - case AIO_CurveToSmooth : qDebug ("AIO_CurveToSmooth"); break; - case AIO_CurveToCorner : qDebug ("AIO_CurveToCorner"); break; - case AIO_CurveToOmitC1Smooth : qDebug ("AIO_CurveToOmitC1Smooth"); break; - case AIO_CurveToOmitC1Corner : qDebug ("AIO_CurveToOmitC1Corner"); break; - case AIO_CurveToOmitC2Smooth : qDebug ("AIO_CurveToOmitC2Smooth"); break; - case AIO_CurveToOmitC2Corner : qDebug ("AIO_CurveToOmitC2Corner"); break; - case AIO_PathIgnoreNoReset : qDebug ("AIO_PathIgnoreNoReset"); break; - case AIO_PathIgnoreNoResetClose : qDebug ("AIO_PathIgnoreNoResetClose"); break; - case AIO_PathClipPath : qDebug ("AIO_PathClipPath"); break; - case AIO_PathIgnoreReset : qDebug ("AIO_PathIgnoreReset"); break; - case AIO_PathIgnoreResetClose : qDebug ("AIO_PathIgnoreResetClose"); break; - case AIO_PathFillNonZero : qDebug ("AIO_PathFillNonZero"); break; - case AIO_PathFillNonZeroClose : qDebug ("AIO_PathFillNonZeroClose"); break; - case AIO_PathStroke : qDebug ("AIO_PathStroke"); break; - case AIO_PathStrokeClose : qDebug ("AIO_PathStrokeClose"); break; - case AIO_PathFillNoReset : qDebug ("AIO_PathFillNoReset"); break; - case AIO_PathFillNoResetClose : qDebug ("AIO_PathFillNoResetClose"); break; - case AIO_FontEncoding : qDebug ("AIO_FontEncoding"); break; - case AIO_PatternDefinition : qDebug ("AIO_PatternDefinition"); break; - case AIO_SetCurrentText : qDebug ("AIO_SetCurrentText"); break; - case AIO_TextBlockFillStroke : qDebug ("AIO_TextBlockFillStroke"); break; - case AIO_TextBlockFill : qDebug ("AIO_TextBlockFill"); break; - case AIO_TextBlockAppend : qDebug ("AIO_TextBlockAppend"); break; - case AIO_TextBlockIgnore : qDebug ("AIO_TextBlockIgnore"); break; - case AIO_TextBlockStroke : qDebug ("AIO_TextBlockStroke"); break; - case AIO_TextOutput : qDebug ("AIO_TextOutput"); break; - case AIO_TextBlockEnd : qDebug ("AIO_TextBlockEnd"); break; - case AIO_GsaveIncludeDocument : qDebug ("AIO_GsaveIncludeDocument"); break; - case AIO_Grestore : qDebug ("AIO_Grestore"); break; - case AIO_LockElement : qDebug ("AIO_LockElement"); break; - case AIO_SetWindingOrder : qDebug ("AIO_SetWindingOrder"); break; - default : qDebug ("unknown"); + case AIO_SetFillColorCMYK : tqDebug ("AIO_SetFillColorCMYK"); break; + case AIO_SetStrokeColorCMYK : tqDebug ("AIO_SetStrokeColorCMYK"); break; + case AIO_SetFillColorGray : tqDebug ("AIO_SetFillColorGray"); break; + case AIO_SetStrokeColorGray : tqDebug ("AIO_SetStrokeColorGray"); break; + case AIO_SetFillColorCustom : tqDebug ("AIO_SetFillColorCustom"); break; + case AIO_SetStrokeColorCustom : tqDebug ("AIO_SetStrokeColorCustom"); break; + case AIO_SetFillPattern : tqDebug ("AIO_SetFillPattern"); break; + case AIO_SetStrokePattern : tqDebug ("AIO_SetStrokePattern"); break; + case AIO_SetFillOverprinting : tqDebug ("AIO_SetFillOverprinting"); break; + case AIO_SetStrokeOverprinting : tqDebug ("AIO_SetStrokeOverprinting"); break; + case AIO_SetFlatness : tqDebug ("AIO_SetFlatness"); break; + case AIO_SetLineCap : tqDebug ("AIO_SetLineCap"); break; + case AIO_SetLineJoin : tqDebug ("AIO_SetLineJoin"); break; + case AIO_SetLineWidth : tqDebug ("AIO_SetLineWidth"); break; + case AIO_SetMiterLimit : tqDebug ("AIO_SetMiterLimit"); break; + case AIO_SetDash : tqDebug ("AIO_SetDash"); break; + case AIO_BeginGroupClip : tqDebug ("AIO_BeginGroupClip"); break; + case AIO_EndGroupClip : tqDebug ("AIO_EndGroupClip"); break; + case AIO_MoveTo : tqDebug ("AIO_MoveTo"); break; + case AIO_LineToCorner : tqDebug ("AIO_LineToCorner"); break; + case AIO_LineToSmooth : tqDebug ("AIO_LineToSmooth"); break; + case AIO_CurveToSmooth : tqDebug ("AIO_CurveToSmooth"); break; + case AIO_CurveToCorner : tqDebug ("AIO_CurveToCorner"); break; + case AIO_CurveToOmitC1Smooth : tqDebug ("AIO_CurveToOmitC1Smooth"); break; + case AIO_CurveToOmitC1Corner : tqDebug ("AIO_CurveToOmitC1Corner"); break; + case AIO_CurveToOmitC2Smooth : tqDebug ("AIO_CurveToOmitC2Smooth"); break; + case AIO_CurveToOmitC2Corner : tqDebug ("AIO_CurveToOmitC2Corner"); break; + case AIO_PathIgnoreNoReset : tqDebug ("AIO_PathIgnoreNoReset"); break; + case AIO_PathIgnoreNoResetClose : tqDebug ("AIO_PathIgnoreNoResetClose"); break; + case AIO_PathClipPath : tqDebug ("AIO_PathClipPath"); break; + case AIO_PathIgnoreReset : tqDebug ("AIO_PathIgnoreReset"); break; + case AIO_PathIgnoreResetClose : tqDebug ("AIO_PathIgnoreResetClose"); break; + case AIO_PathFillNonZero : tqDebug ("AIO_PathFillNonZero"); break; + case AIO_PathFillNonZeroClose : tqDebug ("AIO_PathFillNonZeroClose"); break; + case AIO_PathStroke : tqDebug ("AIO_PathStroke"); break; + case AIO_PathStrokeClose : tqDebug ("AIO_PathStrokeClose"); break; + case AIO_PathFillNoReset : tqDebug ("AIO_PathFillNoReset"); break; + case AIO_PathFillNoResetClose : tqDebug ("AIO_PathFillNoResetClose"); break; + case AIO_FontEncoding : tqDebug ("AIO_FontEncoding"); break; + case AIO_PatternDefinition : tqDebug ("AIO_PatternDefinition"); break; + case AIO_SetCurrentText : tqDebug ("AIO_SetCurrentText"); break; + case AIO_TextBlockFillStroke : tqDebug ("AIO_TextBlockFillStroke"); break; + case AIO_TextBlockFill : tqDebug ("AIO_TextBlockFill"); break; + case AIO_TextBlockAppend : tqDebug ("AIO_TextBlockAppend"); break; + case AIO_TextBlockIgnore : tqDebug ("AIO_TextBlockIgnore"); break; + case AIO_TextBlockStroke : tqDebug ("AIO_TextBlockStroke"); break; + case AIO_TextOutput : tqDebug ("AIO_TextOutput"); break; + case AIO_TextBlockEnd : tqDebug ("AIO_TextBlockEnd"); break; + case AIO_GsaveIncludeDocument : tqDebug ("AIO_GsaveIncludeDocument"); break; + case AIO_Grestore : tqDebug ("AIO_Grestore"); break; + case AIO_LockElement : tqDebug ("AIO_LockElement"); break; + case AIO_SetWindingOrder : tqDebug ("AIO_SetWindingOrder"); break; + default : tqDebug ("unknown"); } } @@ -1320,18 +1320,18 @@ const void sttoa (SectionType &data, bool begin) { switch (data) { - case ST_Setup : begin ? qDebug ("start setup") : qDebug ("end setup"); break; - case ST_Prolog : begin ? qDebug ("start prolog") : qDebug ("end prolog"); break; - case ST_ProcSet : begin ? qDebug ("start procset") : qDebug ("end procset"); break; - case ST_Encoding : begin ? qDebug ("start encoding") : qDebug ("end encoding"); break; - case ST_Pattern : begin ? qDebug ("start pattern") : qDebug ("end pattern"); break; - case ST_Document : begin ? qDebug ("start document") : qDebug ("end document"); break; - case ST_BrushPattern : begin ? qDebug ("start brush pattern") : qDebug ("end brush pattern"); break; - case ST_Gradient : begin ? qDebug ("start gradient") : qDebug ("end gradient"); break; - case ST_Palette : begin ? qDebug ("start palette") : qDebug ("end palette"); break; - case ST_Resource : begin ? qDebug ("start resource") : qDebug ("end resouce"); break; - - default : begin ? qDebug ("unknown") : qDebug ("end unknown"); + case ST_Setup : begin ? tqDebug ("start setup") : tqDebug ("end setup"); break; + case ST_Prolog : begin ? tqDebug ("start prolog") : tqDebug ("end prolog"); break; + case ST_ProcSet : begin ? tqDebug ("start procset") : tqDebug ("end procset"); break; + case ST_Encoding : begin ? tqDebug ("start encoding") : tqDebug ("end encoding"); break; + case ST_Pattern : begin ? tqDebug ("start pattern") : tqDebug ("end pattern"); break; + case ST_Document : begin ? tqDebug ("start document") : tqDebug ("end document"); break; + case ST_BrushPattern : begin ? tqDebug ("start brush pattern") : tqDebug ("end brush pattern"); break; + case ST_Gradient : begin ? tqDebug ("start gradient") : tqDebug ("end gradient"); break; + case ST_Palette : begin ? tqDebug ("start palette") : tqDebug ("end palette"); break; + case ST_Resource : begin ? tqDebug ("start resource") : tqDebug ("end resouce"); break; + + default : begin ? tqDebug ("unknown") : tqDebug ("end unknown"); } } diff --git a/filters/karbon/ai/karbonaiparserbase.cc b/filters/karbon/ai/karbonaiparserbase.cc index 77945723..c4321252 100644 --- a/filters/karbon/ai/karbonaiparserbase.cc +++ b/filters/karbon/ai/karbonaiparserbase.cc @@ -73,12 +73,12 @@ KarbonAIParserBase::~KarbonAIParserBase(){ // generic void KarbonAIParserBase::parsingStarted(){ -// qDebug ( getHeader().latin1() ); +// tqDebug ( getHeader().latin1() ); } // generic void KarbonAIParserBase::parsingFinished(){ -// qDebug ( getFooter().latin1() ); +// tqDebug ( getFooter().latin1() ); // handle bounding box if (m_document) @@ -119,17 +119,17 @@ TQString KarbonAIParserBase::getParamList(Parameters& params){ // generic void KarbonAIParserBase::gotStartTag (const char *tagName, Parameters& params){ - qDebug ("<%s%s>", tagName, getParamList (params).latin1() ); + tqDebug ("<%s%s>", tagName, getParamList (params).latin1() ); } // generic void KarbonAIParserBase::gotEndTag (const char *tagName){ - qDebug ("</%s>", tagName ); + tqDebug ("</%s>", tagName ); } // generic void KarbonAIParserBase::gotSimpleTag (const char *tagName, Parameters& params){ - qDebug ("<%s%s/>", tagName, getParamList (params).latin1() ); + tqDebug ("<%s%s/>", tagName, getParamList (params).latin1() ); } // generic @@ -160,8 +160,8 @@ void KarbonAIParserBase::gotPathElement (PathElement &element){ // generic void KarbonAIParserBase::gotFillPath (bool closed, bool reset, FillMode /*fm*/){ -// qDebug ("found fill path"); -// if (!reset) qDebug ("retain filled path"); +// tqDebug ("found fill path"); +// if (!reset) tqDebug ("retain filled path"); if (closed) m_curKarbonPath->close(); @@ -176,7 +176,7 @@ void KarbonAIParserBase::gotFillPath (bool closed, bool reset, FillMode /*fm*/){ // generic void KarbonAIParserBase::gotIgnorePath (bool closed, bool reset){ -// qDebug ("found ignore path"); +// tqDebug ("found ignore path"); if (closed) m_curKarbonPath->close(); @@ -191,7 +191,7 @@ void KarbonAIParserBase::gotIgnorePath (bool closed, bool reset){ // generic void KarbonAIParserBase::gotStrokePath (bool closed) { -// qDebug ("found stroke path"); +// tqDebug ("found stroke path"); if (closed) m_curKarbonPath->close(); @@ -216,7 +216,7 @@ void KarbonAIParserBase::gotClipPath (bool /*closed*/){ void KarbonAIParserBase::gotFillColor (AIColor &color){ // double r, g, b; // color.toRGB (r,g,b); -// qDebug ("set fillcolor to %f %f %f",r,g,b); +// tqDebug ("set fillcolor to %f %f %f",r,g,b); // m_fillColor = color; VColor karbonColor = toKarbonColor (color); @@ -227,7 +227,7 @@ void KarbonAIParserBase::gotFillColor (AIColor &color){ void KarbonAIParserBase::gotStrokeColor (AIColor &color){ // double r, g, b; // color.toRGB (r,g,b); -// qDebug ("set strokecolor to %f %f %f",r,g,b); +// tqDebug ("set strokecolor to %f %f %f",r,g,b); // m_strokeColor = color; VColor karbonColor = toKarbonColor (color); @@ -299,7 +299,7 @@ void KarbonAIParserBase::gotWindingOrder (int val) void KarbonAIParserBase::gotBeginGroup (bool clipping) { -// qDebug ("start begin group"); +// tqDebug ("start begin group"); if (clipping) { VClipGroup *group = new VClipGroup( 0L ); @@ -311,47 +311,47 @@ void KarbonAIParserBase::gotBeginGroup (bool clipping) m_groupStack.push (group); } -// qDebug ("end begin group"); +// tqDebug ("end begin group"); } void KarbonAIParserBase::gotEndGroup (bool /*clipping*/) { -// qDebug ("start end group"); +// tqDebug ("start end group"); - if (m_debug) qDebug ("got end group"); + if (m_debug) tqDebug ("got end group"); if (m_groupStack.isEmpty()) return; - if (m_debug) qDebug ("got end group 2"); + if (m_debug) tqDebug ("got end group 2"); VGroup *group = m_groupStack.pop(); - if (m_debug) qDebug ("got end group 3"); + if (m_debug) tqDebug ("got end group 3"); if (m_debug) { - if (!group) qDebug ("group is NULL"); + if (!group) tqDebug ("group is NULL"); } if (m_groupStack.isEmpty()) { - if (m_debug) qDebug ("insert object"); + if (m_debug) tqDebug ("insert object"); ensureLayer(); m_layer->append (group); - if (m_debug) qDebug ("/insert object"); + if (m_debug) tqDebug ("/insert object"); } else { - if (m_debug) qDebug ("insert object to group"); + if (m_debug) tqDebug ("insert object to group"); m_groupStack.top()->append (group); - if (m_debug) qDebug ("/insert object to group"); + if (m_debug) tqDebug ("/insert object to group"); } - if (m_debug) qDebug ("/got end group"); + if (m_debug) tqDebug ("/got end group"); -// qDebug ("end end group"); +// tqDebug ("end end group"); } void KarbonAIParserBase::gotBeginCombination () { @@ -359,7 +359,7 @@ void KarbonAIParserBase::gotBeginCombination () { } void KarbonAIParserBase::gotEndCombination () { -// qDebug ( "got end combination" ); +// tqDebug ( "got end combination" ); m_ptt = PTT_Output; @@ -409,7 +409,7 @@ void KarbonAIParserBase::doOutputCurrentPath2(PathOutputType type) /* VFill fill; fill.setColor (toKarbonColor (m_fillColor)); m_curKarbonPath->setFill(fill); */ -// qDebug ("set filled"); +// tqDebug ("set filled"); m_curKarbonPath->setFill(m_fill); } @@ -418,7 +418,7 @@ void KarbonAIParserBase::doOutputCurrentPath2(PathOutputType type) /* VStroke stroke; stroke.setColor (toKarbonColor (m_strokeColor)); m_curKarbonPath->setStroke (stroke); */ -// qDebug ("set stroked"); +// tqDebug ("set stroked"); m_curKarbonPath->setStroke (m_stroke); } } @@ -455,10 +455,10 @@ bool KarbonAIParserBase::parse (TQIODevice& fin, TQDomDocument &doc) bool res = AIParserBase::parse (fin); -// qDebug ("document is %s",doc.toString().latin1()); +// tqDebug ("document is %s",doc.toString().latin1()); if (res) { - qDebug ("before save document"); + tqDebug ("before save document"); doc = m_document->saveXML(); // add paper info, we always need custom for svg (Rob) TQDomElement paper = doc.createElement( "PAPER" ); @@ -467,7 +467,7 @@ bool KarbonAIParserBase::parse (TQIODevice& fin, TQDomDocument &doc) paper.setAttribute( "width", m_document->width() ); paper.setAttribute( "height", m_document->height() ); - qDebug ("after save document"); + tqDebug ("after save document"); } else { @@ -490,7 +490,7 @@ void KarbonAIParserBase::ensureLayer () void KarbonAIParserBase::setupHandlers() { -// qDebug("setupHandler called"); +// tqDebug("setupHandler called"); m_gstateHandler = new KarbonGStateHandler(this); m_structureHandler = new KarbonStructureHandler(this); m_pathHandler = new KarbonPathHandler(this); @@ -502,7 +502,7 @@ void KarbonAIParserBase::setupHandlers() void KarbonAIParserBase::teardownHandlers() { -// qDebug("teardownHandler called"); +// tqDebug("teardownHandler called"); delete m_textHandler; delete m_gstateHandler; @@ -519,15 +519,15 @@ void KarbonDocumentHandler::gotBoundingBox (int llx, int lly, int urx, int ury) void KarbonDocumentHandler::gotCreationDate (const char */*val1*/,const char */*val2*/) { -// qDebug ("got creation date [%s], [%s]",val1,val2); +// tqDebug ("got creation date [%s], [%s]",val1,val2); } void KarbonDocumentHandler::gotProcessColors (int /*colors*/) { -/* if (colors && PC_Cyan) qDebug ("contains cyan"); - if (colors && PC_Magenta) qDebug ("contains magenta"); - if (colors && PC_Yellow) qDebug ("contains yellow"); - if (colors && PC_Black) qDebug ("contains black"); */ +/* if (colors && PC_Cyan) tqDebug ("contains cyan"); + if (colors && PC_Magenta) tqDebug ("contains magenta"); + if (colors && PC_Yellow) tqDebug ("contains yellow"); + if (colors && PC_Black) tqDebug ("contains black"); */ } @@ -625,13 +625,13 @@ const void pottoa (PathOutputType &data) { switch (data) { - case POT_Filled : qDebug ("filled"); break; - case POT_Stroked : qDebug ("stroked"); break; - case POT_FilledStroked : qDebug ("filled/stroked"); break; - case POT_Clip : qDebug ("clip"); break; - case POT_Ignore : qDebug ("ignore"); break; - case POT_Leave : qDebug ("leave"); break; - default : qDebug ("unknown"); + case POT_Filled : tqDebug ("filled"); break; + case POT_Stroked : tqDebug ("stroked"); break; + case POT_FilledStroked : tqDebug ("filled/stroked"); break; + case POT_Clip : tqDebug ("clip"); break; + case POT_Ignore : tqDebug ("ignore"); break; + case POT_Leave : tqDebug ("leave"); break; + default : tqDebug ("unknown"); } } diff --git a/filters/karbon/eps/epsimport.cc b/filters/karbon/eps/epsimport.cc index 77a650bb..19742a4d 100644 --- a/filters/karbon/eps/epsimport.cc +++ b/filters/karbon/eps/epsimport.cc @@ -89,7 +89,7 @@ EpsImport::convert( const TQCString& from, const TQCString& to ) file.close(); } else - qDebug ("file could not be opened"); + tqDebug ("file could not be opened"); // sed filter TQString sedFilter = TQString ("sed -e \"s/%%BoundingBox: 0 0 612 792/%%BoundingBox: %1 %2 %3 %4/g\""). @@ -104,7 +104,7 @@ EpsImport::convert( const TQCString& from, const TQCString& to ) command += " > "; command += KProcess::quote(m_chain->outputFile()); - qDebug ("command to execute is (%s)", TQFile::encodeName(command).data()); + tqDebug ("command to execute is (%s)", TQFile::encodeName(command).data()); // Execute it: if( !system( TQFile::encodeName(command)) ) diff --git a/filters/karbon/eps/pscommentlexer.cc b/filters/karbon/eps/pscommentlexer.cc index 04aa9aaa..a321cc0d 100644 --- a/filters/karbon/eps/pscommentlexer.cc +++ b/filters/karbon/eps/pscommentlexer.cc @@ -94,7 +94,7 @@ bool PSCommentLexer::parse (TQIODevice& fin){ { c = fin.getch (); -// qDebug ("got %c", c); +// tqDebug ("got %c", c); State newState; Action action; @@ -121,7 +121,7 @@ bool PSCommentLexer::parse (TQIODevice& fin){ /* ignore */ break; case Action_Abort : - qWarning ( "state %s / %s char %c (%d)" , statetoa(m_curState), statetoa(newState), c, c ); + tqWarning ( "state %s / %s char %c (%d)" , statetoa(m_curState), statetoa(newState), c, c ); parsingAborted(); return false; break; @@ -136,7 +136,7 @@ bool PSCommentLexer::parse (TQIODevice& fin){ fin.ungetch(c); break; default : - qWarning ( "unknown action: %d ", action); + tqWarning ( "unknown action: %d ", action); } m_curState = newState; @@ -155,26 +155,26 @@ void PSCommentLexer::doOutput () gotComment (m_buffer.latin1()); break; default: - qWarning ( "unknown state: %d", m_curState ); + tqWarning ( "unknown state: %d", m_curState ); } m_buffer.clear(); } void PSCommentLexer::gotComment (const char *value) { - qDebug ( "gotComment: %s ", value ); + tqDebug ( "gotComment: %s ", value ); } void PSCommentLexer::parsingStarted() { - qDebug ( "parsing started" ); + tqDebug ( "parsing started" ); } void PSCommentLexer::parsingFinished() { - qDebug ( "parsing finished" ); + tqDebug ( "parsing finished" ); } void PSCommentLexer::parsingAborted() { - qDebug ( "parsing aborted" ); + tqDebug ( "parsing aborted" ); } void PSCommentLexer::nextStep (char c, State *newState, Action *newAction) { @@ -219,7 +219,7 @@ void PSCommentLexer::nextStep (char c, State *newState, Action *newAction) { uchar PSCommentLexer::decode() { uchar value = m_temp.toString().toShort(NULL, 8); -// qDebug ("got encoded char %c",value); +// tqDebug ("got encoded char %c",value); return value; } @@ -312,7 +312,7 @@ bool BoundingBoxExtractor::getRectangle (const char* input, int &llx, int &lly, TQString s2 = s.remove("%BoundingBox:"); TQStringList values = TQStringList::split (" ", s2.latin1()); - qDebug("size is %d",values.size()); + tqDebug("size is %d",values.size()); // if (values.size() < 5) return false; llx = values[0].toInt(); lly = values[1].toInt(); diff --git a/filters/kpresenter/powerpoint/import/powerpointimport.cc b/filters/kpresenter/powerpoint/import/powerpointimport.cc index 7b84c3d0..4291c0a4 100644 --- a/filters/kpresenter/powerpoint/import/powerpointimport.cc +++ b/filters/kpresenter/powerpoint/import/powerpointimport.cc @@ -250,7 +250,7 @@ TQByteArray PowerPointImport::createStyles() TQString dbg; for( unsigned i=0; i<stylesData.size(); i++ ) dbg.append( stylesData[i] ); - qDebug("\nstyles.xml:\n%s\n", dbg.latin1() ); + tqDebug("\nstyles.xml:\n%s\n", dbg.latin1() ); return stylesData; } @@ -311,7 +311,7 @@ TQByteArray PowerPointImport::createContent() TQString dbg; for( unsigned i=0; i<contentData.size(); i++ ) dbg.append( contentData[i] ); - qDebug("\ncontent.xml:\n%s\n", dbg.latin1() ); + tqDebug("\ncontent.xml:\n%s\n", dbg.latin1() ); return contentData; } @@ -342,7 +342,7 @@ TQByteArray PowerPointImport::createManifest() TQString dbg; for( unsigned i=0; i<manifestData.size(); i++ ) dbg.append( manifestData[i] ); - qDebug("\nmanifest.xml:\n%s\n", dbg.latin1() ); + tqDebug("\nmanifest.xml:\n%s\n", dbg.latin1() ); return manifestData; } @@ -1479,8 +1479,8 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX std::string s = drawObject->getStrProperty("draw:stroke-dash"); TQString ss( s.c_str() ); xmlWriter->addAttribute( "draw:stroke-dash", ss ); - qDebug("=============stroke dash==================="); -// qDebug("test %g\n",angka); + tqDebug("=============stroke dash==================="); +// tqDebug("test %g\n",angka); } else if (drawObject->getStrProperty( "draw:stroke" ) == "solid") xmlWriter->addAttribute( "draw:stroke", "solid" ); diff --git a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp index af035c69..8c991742 100644 --- a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp +++ b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp @@ -5617,7 +5617,7 @@ void PPTReader::handleTextCharsAtom( TextCharsAtom* atom ) for (uint i=0; i<atom->listSize(); i++) { text->setText(atom->strValue(i)); - // qDebug("=====================text list ================"); + // tqDebug("=====================text list ================"); } if( (d->currentTextType == TextObject::Title) | (d->currentTextType == TextObject::CenterTitle) ) @@ -5653,7 +5653,7 @@ void PPTReader::handleTextBytesAtom( TextBytesAtom* atom ) for (uint i=0; i<atom->listSize(); i++) { text->setText(atom->strValue(i)); - // qDebug("=====================text list ================"); + // tqDebug("=====================text list ================"); } if( (d->currentTextType == TextObject::Title) | (d->currentTextType == TextObject::CenterTitle) ) @@ -6016,60 +6016,60 @@ void PPTReader::handleEscherPropertiesAtom( msofbtOPTAtom* atom ) { case msofbtOPTAtom::LineSolid : {d->currentObject->setProperty( "draw:stroke", "solid"); - //qDebug("=====================solid================"); + //tqDebug("=====================solid================"); } break; case msofbtOPTAtom::LineDashSys : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_2"); - //qDebug("===================== solid================"); + //tqDebug("===================== solid================"); } break; case msofbtOPTAtom::LineDotSys : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_3"); - //qDebug("===================== dash 2================"); + //tqDebug("===================== dash 2================"); } break; case msofbtOPTAtom::LineDashDotSys : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_2"); - //qDebug("===================== dash 3================"); + //tqDebug("===================== dash 3================"); } break; case msofbtOPTAtom::LineDashDotDotSys : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_2"); - //qDebug("===================== dash 4================"); + //tqDebug("===================== dash 4================"); } break; case msofbtOPTAtom::LineDotGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_2"); - //qDebug("===================== dash 5================"); + //tqDebug("===================== dash 5================"); } break; case msofbtOPTAtom::LineDashGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_4"); - //qDebug("===================== dash 6================"); + //tqDebug("===================== dash 6================"); } break; case msofbtOPTAtom::LineLongDashGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_6"); - //qDebug("=====================dash 7================"); + //tqDebug("=====================dash 7================"); } break; case msofbtOPTAtom::LineDashDotGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_5"); - //qDebug("=====================dash 8================"); + //tqDebug("=====================dash 8================"); } break; case msofbtOPTAtom::LineLongDashDotGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_7"); - //qDebug("=====================dash 9================"); + //tqDebug("=====================dash 9================"); } break; case msofbtOPTAtom::LineLongDashDotDotGEL : { d->currentObject->setProperty( "draw:stroke", "dash"); d->currentObject->setProperty( "draw:stroke-dash", "Dash_20_8"); - //qDebug("=====================dash 10================"); + //tqDebug("=====================dash 10================"); } break; default: d->currentObject->setProperty( "draw:stroke", "solid"); break; diff --git a/filters/kword/latex/import/generator/document.cc b/filters/kword/latex/import/generator/document.cc index 13685e02..cb333d41 100644 --- a/filters/kword/latex/import/generator/document.cc +++ b/filters/kword/latex/import/generator/document.cc @@ -85,7 +85,7 @@ bool Document::generate(KoStore* store) void Document::serialize(KoStore* store, TQDomDocument doc) { TQCString str = doc.toCString(); - qWarning(str); + tqWarning(str); if(store->open("root")) { store->write((const char *)str, str.length()); diff --git a/filters/kword/palmdoc/palmdb.cpp b/filters/kword/palmdoc/palmdb.cpp index b7155fa8..50471ede 100644 --- a/filters/kword/palmdoc/palmdb.cpp +++ b/filters/kword/palmdoc/palmdb.cpp @@ -161,17 +161,17 @@ bool PalmDB::load( const char* filename ) // debugging #ifdef PDB_DEBUG - qDebug( "name: \"%s\"", m_name.latin1() ); - qDebug( "type: \"%s\"", m_type.latin1() ); - qDebug( "creator: \"%s\"", m_creator.latin1() ); - qDebug( "attributes: 0x%04X", m_attributes ); - qDebug( "version: 0x%04X", m_version ); - qDebug( "creation date: %s", m_creationDate.toString().latin1() ); - qDebug( "modification date: %s", m_modificationDate.toString().latin1() ); - qDebug( "last backup date: %s", m_lastBackupDate.toString().latin1() ); - qDebug( "number of records: %d", numrec ); + tqDebug( "name: \"%s\"", m_name.latin1() ); + tqDebug( "type: \"%s\"", m_type.latin1() ); + tqDebug( "creator: \"%s\"", m_creator.latin1() ); + tqDebug( "attributes: 0x%04X", m_attributes ); + tqDebug( "version: 0x%04X", m_version ); + tqDebug( "creation date: %s", m_creationDate.toString().latin1() ); + tqDebug( "modification date: %s", m_modificationDate.toString().latin1() ); + tqDebug( "last backup date: %s", m_lastBackupDate.toString().latin1() ); + tqDebug( "number of records: %d", numrec ); for( int r = 0; r < numrec; r++ ) - qDebug( " rec %d at 0x%X size %d", r, recpos[r], recsize[r] ); + tqDebug( " rec %d at 0x%X size %d", r, recpos[r], recsize[r] ); #endif // load all records diff --git a/filters/kword/palmdoc/palmdoc.cpp b/filters/kword/palmdoc/palmdoc.cpp index 72bb0434..9898ad00 100644 --- a/filters/kword/palmdoc/palmdoc.cpp +++ b/filters/kword/palmdoc/palmdoc.cpp @@ -47,14 +47,14 @@ bool PalmDoc::load( const char* filename ) if( type() != "TEXt" ) { - qDebug( "Type is \"%s\", not \"TEXt\", so this is not Palm DOC!", type().latin1() ); + tqDebug( "Type is \"%s\", not \"TEXt\", so this is not Palm DOC!", type().latin1() ); m_result = PalmDoc::InvalidFormat; return FALSE; } if( creator() != "REAd" ) { - qDebug( "Creator is \"%s\", not \"REAd\", so this is not Palm DOC!", + tqDebug( "Creator is \"%s\", not \"REAd\", so this is not Palm DOC!", creator().latin1() ); m_result = PalmDoc::InvalidFormat; return FALSE; @@ -63,7 +63,7 @@ bool PalmDoc::load( const char* filename ) // must have at least two records if( records.count() < 2 ) { - qDebug( "Palm DOC has at least 2 records!" ); + tqDebug( "Palm DOC has at least 2 records!" ); m_result = PalmDoc::InvalidFormat; return FALSE; } @@ -74,13 +74,13 @@ bool PalmDoc::load( const char* filename ) // format of the DOC int format = (header[0]<<8) + header[1]; - qDebug( "DOC format: %d (%s)", format, + tqDebug( "DOC format: %d (%s)", format, (format==1) ? "Plain" : (format==2) ? "Compressed" : "Unknown" ); // supported is only Plain or Compressed if( ( format != 1 ) && ( format != 2 ) ) { - qDebug( "Unknown format of document!" ); + tqDebug( "Unknown format of document!" ); m_result = PalmDoc::InvalidFormat; return FALSE; } |