summaryrefslogtreecommitdiffstats
path: root/ksvg/impl
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /ksvg/impl
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg/impl')
-rw-r--r--ksvg/impl/LRUCache.h4
-rw-r--r--ksvg/impl/SVGAngleImpl.cc2
-rw-r--r--ksvg/impl/SVGAnimateColorElementImpl.cc6
-rw-r--r--ksvg/impl/SVGAnimateColorElementImpl.h2
-rw-r--r--ksvg/impl/SVGAnimateElementImpl.cc4
-rw-r--r--ksvg/impl/SVGAnimateElementImpl.h4
-rw-r--r--ksvg/impl/SVGAnimateMotionElementImpl.cc6
-rw-r--r--ksvg/impl/SVGAnimateTransformElementImpl.cc14
-rw-r--r--ksvg/impl/SVGAnimateTransformElementImpl.h6
-rw-r--r--ksvg/impl/SVGAnimatedPointsImpl.cc12
-rw-r--r--ksvg/impl/SVGAnimatedPointsImpl.h4
-rw-r--r--ksvg/impl/SVGAnimationElementImpl.cc36
-rw-r--r--ksvg/impl/SVGAnimationElementImpl.h24
-rw-r--r--ksvg/impl/SVGColorImpl.cc20
-rw-r--r--ksvg/impl/SVGColorImpl.h2
-rw-r--r--ksvg/impl/SVGColorProfileElementImpl.cc14
-rw-r--r--ksvg/impl/SVGColorProfileElementImpl.h6
-rw-r--r--ksvg/impl/SVGContainerImpl.cc2
-rw-r--r--ksvg/impl/SVGDocumentImpl.cc34
-rw-r--r--ksvg/impl/SVGDocumentImpl.h42
-rw-r--r--ksvg/impl/SVGEcma.cc2
-rw-r--r--ksvg/impl/SVGElementImpl.cc44
-rw-r--r--ksvg/impl/SVGElementImpl.h28
-rw-r--r--ksvg/impl/SVGEventImpl.cc10
-rw-r--r--ksvg/impl/SVGEventImpl.h10
-rw-r--r--ksvg/impl/SVGFitToViewBoxImpl.cc10
-rw-r--r--ksvg/impl/SVGFitToViewBoxImpl.h4
-rw-r--r--ksvg/impl/SVGGlyphElementImpl.cc2
-rw-r--r--ksvg/impl/SVGGlyphElementImpl.h4
-rw-r--r--ksvg/impl/SVGGradientElementImpl.cc12
-rw-r--r--ksvg/impl/SVGGradientElementImpl.h4
-rw-r--r--ksvg/impl/SVGHelperImpl.cc42
-rw-r--r--ksvg/impl/SVGHelperImpl.h18
-rw-r--r--ksvg/impl/SVGImageElementImpl.cc32
-rw-r--r--ksvg/impl/SVGImageElementImpl.h20
-rw-r--r--ksvg/impl/SVGLangSpaceImpl.cc12
-rw-r--r--ksvg/impl/SVGLangSpaceImpl.h2
-rw-r--r--ksvg/impl/SVGLengthImpl.cc28
-rw-r--r--ksvg/impl/SVGLengthImpl.h6
-rw-r--r--ksvg/impl/SVGLinearGradientElementImpl.cc6
-rw-r--r--ksvg/impl/SVGLinearGradientElementImpl.h2
-rw-r--r--ksvg/impl/SVGList.h4
-rw-r--r--ksvg/impl/SVGMarkerElementImpl.cc2
-rw-r--r--ksvg/impl/SVGMaskElementImpl.cc24
-rw-r--r--ksvg/impl/SVGMaskElementImpl.h16
-rw-r--r--ksvg/impl/SVGMatrixImpl.cc32
-rw-r--r--ksvg/impl/SVGMatrixImpl.h12
-rw-r--r--ksvg/impl/SVGPaintImpl.cc2
-rw-r--r--ksvg/impl/SVGPaintImpl.h2
-rw-r--r--ksvg/impl/SVGPaintServerImpl.cc2
-rw-r--r--ksvg/impl/SVGPaintServerImpl.h2
-rw-r--r--ksvg/impl/SVGPathElementImpl.cc10
-rw-r--r--ksvg/impl/SVGPathElementImpl.h8
-rw-r--r--ksvg/impl/SVGPathSegArcImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegClosePathImpl.h2
-rw-r--r--ksvg/impl/SVGPathSegCurvetoCubicImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegImpl.h2
-rw-r--r--ksvg/impl/SVGPathSegLinetoHorizontalImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegLinetoImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegLinetoVerticalImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegMovetoImpl.h4
-rw-r--r--ksvg/impl/SVGPatternElementImpl.cc28
-rw-r--r--ksvg/impl/SVGPatternElementImpl.h22
-rw-r--r--ksvg/impl/SVGPreserveAspectRatioImpl.cc8
-rw-r--r--ksvg/impl/SVGPreserveAspectRatioImpl.h4
-rw-r--r--ksvg/impl/SVGRadialGradientElementImpl.cc6
-rw-r--r--ksvg/impl/SVGRadialGradientElementImpl.h2
-rw-r--r--ksvg/impl/SVGRectImpl.cc10
-rw-r--r--ksvg/impl/SVGRectImpl.h8
-rw-r--r--ksvg/impl/SVGSVGElementImpl.cc32
-rw-r--r--ksvg/impl/SVGSVGElementImpl.h14
-rw-r--r--ksvg/impl/SVGScriptElementImpl.cc24
-rw-r--r--ksvg/impl/SVGScriptElementImpl.h12
-rw-r--r--ksvg/impl/SVGSetElementImpl.h2
-rw-r--r--ksvg/impl/SVGShapeImpl.cc4
-rw-r--r--ksvg/impl/SVGShapeImpl.h4
-rw-r--r--ksvg/impl/SVGStringListImpl.cc4
-rw-r--r--ksvg/impl/SVGStringListImpl.h4
-rw-r--r--ksvg/impl/SVGStylableImpl.cc74
-rw-r--r--ksvg/impl/SVGStylableImpl.h48
-rw-r--r--ksvg/impl/SVGTRefElementImpl.cc4
-rw-r--r--ksvg/impl/SVGTSpanElementImpl.cc2
-rw-r--r--ksvg/impl/SVGTSpanElementImpl.h2
-rw-r--r--ksvg/impl/SVGTestsImpl.cc8
-rw-r--r--ksvg/impl/SVGTestsImpl.h6
-rw-r--r--ksvg/impl/SVGTextContentElementImpl.cc10
-rw-r--r--ksvg/impl/SVGTextContentElementImpl.h2
-rw-r--r--ksvg/impl/SVGTextElementImpl.cc6
-rw-r--r--ksvg/impl/SVGTextElementImpl.h4
-rw-r--r--ksvg/impl/SVGTextPathElementImpl.cc10
-rw-r--r--ksvg/impl/SVGTextPathElementImpl.h2
-rw-r--r--ksvg/impl/SVGTimeScheduler.cc26
-rw-r--r--ksvg/impl/SVGTimeScheduler.h24
-rw-r--r--ksvg/impl/SVGTransformImpl.cc18
-rw-r--r--ksvg/impl/SVGTransformImpl.h4
-rw-r--r--ksvg/impl/SVGTransformableImpl.h2
-rw-r--r--ksvg/impl/SVGURIReferenceImpl.cc8
-rw-r--r--ksvg/impl/SVGURIReferenceImpl.h8
-rw-r--r--ksvg/impl/SVGUnitConverter.h12
-rw-r--r--ksvg/impl/SVGUseElementImpl.cc16
-rw-r--r--ksvg/impl/SVGViewSpecImpl.cc8
-rw-r--r--ksvg/impl/SVGViewSpecImpl.h2
-rw-r--r--ksvg/impl/SVGWindowImpl.cc22
-rw-r--r--ksvg/impl/SVGWindowImpl.h8
-rw-r--r--ksvg/impl/libs/libtext2path/src/QtUnicode.cpp4
-rw-r--r--ksvg/impl/svgpathparser.cc6
-rw-r--r--ksvg/impl/svgpathparser.h4
110 files changed, 618 insertions, 618 deletions
diff --git a/ksvg/impl/LRUCache.h b/ksvg/impl/LRUCache.h
index 879f1856..f9045262 100644
--- a/ksvg/impl/LRUCache.h
+++ b/ksvg/impl/LRUCache.h
@@ -21,7 +21,7 @@
#ifndef LRUCACHE_H
#define LRUCACHE_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
namespace KSVG
{
@@ -61,7 +61,7 @@ protected:
int m_cost;
};
- typedef QValueList<CacheItem> CacheItemList;
+ typedef TQValueList<CacheItem> CacheItemList;
typename CacheItemList::iterator find(const keyType& key);
void enforceCostConstraint();
diff --git a/ksvg/impl/SVGAngleImpl.cc b/ksvg/impl/SVGAngleImpl.cc
index 6102329d..26e70b1b 100644
--- a/ksvg/impl/SVGAngleImpl.cc
+++ b/ksvg/impl/SVGAngleImpl.cc
@@ -89,7 +89,7 @@ void SVGAngleImpl::setValueAsString(const DOM::DOMString &valueAsString)
{
m_valueAsString = valueAsString;
- QString s = valueAsString.string();
+ TQString s = valueAsString.string();
bool bOK;
m_valueInSpecifiedUnits = s.toFloat(&bOK);
diff --git a/ksvg/impl/SVGAnimateColorElementImpl.cc b/ksvg/impl/SVGAnimateColorElementImpl.cc
index c4cc0ad4..55d71e40 100644
--- a/ksvg/impl/SVGAnimateColorElementImpl.cc
+++ b/ksvg/impl/SVGAnimateColorElementImpl.cc
@@ -75,14 +75,14 @@ void SVGAnimateColorElementImpl::handleTimerEvent()
}
else
{
- QColor fromColor(m_fromColor->rgbColor().color());
- QColor toColor(m_toColor->rgbColor().color());
+ TQColor fromColor(m_fromColor->rgbColor().color());
+ TQColor toColor(m_toColor->rgbColor().color());
int red = (int) rint(((toColor.red() - fromColor.red()) / static_cast<double>(m_steps)) * m_step + fromColor.red());
int green = (int) rint(((toColor.green() - fromColor.green()) / static_cast<double>(m_steps)) * m_step + fromColor.green());
int blue = (int) rint(((toColor.blue() - fromColor.blue()) / static_cast<double>(m_steps)) * m_step + fromColor.blue());
- QString color = "rgb(" + QString::number(red) + "," + QString::number(green) + "," + QString::number(blue) + ")";
+ TQString color = "rgb(" + TQString::number(red) + "," + TQString::number(green) + "," + TQString::number(blue) + ")";
applyAttribute(getAttributeName(), color);
}
diff --git a/ksvg/impl/SVGAnimateColorElementImpl.h b/ksvg/impl/SVGAnimateColorElementImpl.h
index 2832802e..5e6fc24d 100644
--- a/ksvg/impl/SVGAnimateColorElementImpl.h
+++ b/ksvg/impl/SVGAnimateColorElementImpl.h
@@ -25,7 +25,7 @@
#include "SVGAnimationElementImpl.h"
-class QTimer;
+class TQTimer;
namespace KSVG
{
diff --git a/ksvg/impl/SVGAnimateElementImpl.cc b/ksvg/impl/SVGAnimateElementImpl.cc
index ab9bc52c..ccf8565d 100644
--- a/ksvg/impl/SVGAnimateElementImpl.cc
+++ b/ksvg/impl/SVGAnimateElementImpl.cc
@@ -81,7 +81,7 @@ void SVGAnimateElementImpl::handleTimerEvent()
else
{
m_animVal += m_addStep;
- applyAttribute(getAttributeName(), QString::number(m_animVal));
+ applyAttribute(getAttributeName(), TQString::number(m_animVal));
}
if(m_step < m_steps)
@@ -130,7 +130,7 @@ void SVGAnimateElementImpl::handleTimerEvent()
if(m_additive == "replace" && needCombine)
needCombine = false;
- applyAttribute(m_attributeName, QString::number(m_from), needCombine);
+ applyAttribute(m_attributeName, TQString::number(m_from), needCombine);
m_step++;
diff --git a/ksvg/impl/SVGAnimateElementImpl.h b/ksvg/impl/SVGAnimateElementImpl.h
index 855ced6e..7418f7b1 100644
--- a/ksvg/impl/SVGAnimateElementImpl.h
+++ b/ksvg/impl/SVGAnimateElementImpl.h
@@ -24,7 +24,7 @@
#include "ksvg_lookup.h"
#include "SVGAnimationElementImpl.h"
-class QTimer;
+class TQTimer;
namespace KSVG
{
@@ -40,7 +40,7 @@ public:
private:
double m_addStep, m_animVal;
- QTimer *m_timer;
+ TQTimer *m_timer;
int m_steps, m_step;
diff --git a/ksvg/impl/SVGAnimateMotionElementImpl.cc b/ksvg/impl/SVGAnimateMotionElementImpl.cc
index ce756d55..fe816769 100644
--- a/ksvg/impl/SVGAnimateMotionElementImpl.cc
+++ b/ksvg/impl/SVGAnimateMotionElementImpl.cc
@@ -85,9 +85,9 @@ void SVGAnimateMotionElementImpl::handleTimerEvent(bool /*needCombine*/)
if(m_step <= m_pathArray->count() - 1)
{
- QPoint p = m_pathArray->point(m_step - 50);
- applyAttribute("x", QString::number(p.x()));
- applyAttribute("y", QString::number(p.y()));
+ TQPoint p = m_pathArray->point(m_step - 50);
+ applyAttribute("x", TQString::number(p.x()));
+ applyAttribute("y", TQString::number(p.y()));
kdDebug() << " X " << p.x() << " Y " << p.y() << " (" << m_pathArray->count() << "; " << m_step << ")" <<endl;
}
diff --git a/ksvg/impl/SVGAnimateTransformElementImpl.cc b/ksvg/impl/SVGAnimateTransformElementImpl.cc
index d2634bb1..cf3922f8 100644
--- a/ksvg/impl/SVGAnimateTransformElementImpl.cc
+++ b/ksvg/impl/SVGAnimateTransformElementImpl.cc
@@ -18,7 +18,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "SVGLengthImpl.h"
#include "SVGHelperImpl.h"
@@ -85,7 +85,7 @@ void SVGAnimateTransformElementImpl::setAttributes()
m_from = list->getFirst()->angle();
- QStringList stringList = QStringList::split(' ', list->getFirst()->toString());
+ TQStringList stringList = TQStringList::split(' ', list->getFirst()->toString());
m_rotateX = stringList[1].toInt();
m_rotateY = stringList[2].mid(0, stringList[2].length() - 1).toInt();
@@ -127,13 +127,13 @@ void SVGAnimateTransformElementImpl::setAttributes()
DOM::DOMString _values = getAttribute("values");
if(!_values.isNull())
{
- QString test = _values.string();
+ TQString test = _values.string();
if(test.contains(";"))
{
SVGLengthImpl *temp = SVGSVGElementImpl::createSVGLength();
- QStringList list = QStringList::split(';', test);
+ TQStringList list = TQStringList::split(';', test);
temp->setValueAsString(list[0]);
m_from = temp->value();
temp->setValueAsString(list[1]);
@@ -192,8 +192,8 @@ void SVGAnimateTransformElementImpl::handleTimerEvent(bool)
else if(m_type == "skewy")
transform->setSkewY(m_from);
- QString trans = transform->toString();
- QString last = trans;
+ TQString trans = transform->toString();
+ TQString last = trans;
if(targetElement()->hasAttribute("transform"))
{
@@ -203,7 +203,7 @@ void SVGAnimateTransformElementImpl::handleTimerEvent(bool)
{
int pos = trans.find(m_lastTransform);
- QString extract;
+ TQString extract;
extract += trans.mid(0, pos);
extract += trans.mid(pos + m_lastTransform.length() + 1, trans.length());
diff --git a/ksvg/impl/SVGAnimateTransformElementImpl.h b/ksvg/impl/SVGAnimateTransformElementImpl.h
index 7e6e2653..ddd73989 100644
--- a/ksvg/impl/SVGAnimateTransformElementImpl.h
+++ b/ksvg/impl/SVGAnimateTransformElementImpl.h
@@ -25,7 +25,7 @@
#include "SVGAnimationElementImpl.h"
-class QTimer;
+class TQTimer;
namespace KSVG
{
@@ -42,7 +42,7 @@ public:
virtual void setAttributes();
private:
- QString m_type, m_lastTransform;
+ TQString m_type, m_lastTransform;
int m_times;
@@ -53,7 +53,7 @@ private:
double m_from, m_to, m_newFrom, m_newTo;
double m_addStep;
- QTimer *m_transformTimer;
+ TQTimer *m_transformTimer;
SVGTransformListImpl *m_transformList;
bool m_firstEvent;
diff --git a/ksvg/impl/SVGAnimatedPointsImpl.cc b/ksvg/impl/SVGAnimatedPointsImpl.cc
index 093ded77..07db7d3b 100644
--- a/ksvg/impl/SVGAnimatedPointsImpl.cc
+++ b/ksvg/impl/SVGAnimatedPointsImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "CanvasItem.h"
#include "SVGPointListImpl.h"
@@ -62,7 +62,7 @@ SVGPointListImpl *SVGAnimatedPointsImpl::animatedPoints() const
return m_animatedPoints;
}
-void SVGAnimatedPointsImpl::parsePoints(QString _points, SVGPointListImpl *points)
+void SVGAnimatedPointsImpl::parsePoints(TQString _points, SVGPointListImpl *points)
{
if(_points.isEmpty())
return;
@@ -73,13 +73,13 @@ void SVGAnimatedPointsImpl::parsePoints(QString _points, SVGPointListImpl *point
return;
_points.replace(',', ' ');
- _points.replace('\r', QString::null);
- _points.replace('\n', QString::null);
+ _points.replace('\r', TQString::null);
+ _points.replace('\n', TQString::null);
_points = _points.simplifyWhiteSpace();
- QStringList pointList = QStringList::split(' ', _points);
- for(QStringList::Iterator it = pointList.begin(); it != pointList.end(); it++)
+ TQStringList pointList = TQStringList::split(' ', _points);
+ for(TQStringList::Iterator it = pointList.begin(); it != pointList.end(); it++)
{
SVGPointImpl *point = SVGSVGElementImpl::createSVGPoint();
point->setX((*(it++)).toFloat());
diff --git a/ksvg/impl/SVGAnimatedPointsImpl.h b/ksvg/impl/SVGAnimatedPointsImpl.h
index ef4dafca..9c4c88d7 100644
--- a/ksvg/impl/SVGAnimatedPointsImpl.h
+++ b/ksvg/impl/SVGAnimatedPointsImpl.h
@@ -25,7 +25,7 @@
#include "ksvg_lookup.h"
-class QString;
+class TQString;
namespace KSVG
{
@@ -40,7 +40,7 @@ public:
SVGPointListImpl *points() const;
SVGPointListImpl *animatedPoints() const;
- static void parsePoints(QString _points, SVGPointListImpl *points);
+ static void parsePoints(TQString _points, SVGPointListImpl *points);
protected:
SVGPointListImpl *m_points;
diff --git a/ksvg/impl/SVGAnimationElementImpl.cc b/ksvg/impl/SVGAnimationElementImpl.cc
index 454a323e..45c4af2b 100644
--- a/ksvg/impl/SVGAnimationElementImpl.cc
+++ b/ksvg/impl/SVGAnimationElementImpl.cc
@@ -22,7 +22,7 @@
#include <kdebug.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "CanvasItem.h"
#include "SVGHelperImpl.h"
@@ -74,10 +74,10 @@ SVGElementImpl *SVGAnimationElementImpl::targetElement() const
return m_targetElement;
}
-double SVGAnimationElementImpl::parseClockValue(const QString &data) const
+double SVGAnimationElementImpl::parseClockValue(const TQString &data) const
{
- QString parse = data.stripWhiteSpace();
- QString debugOutput = "parseClockValue(" + parse + ") -> ";
+ TQString parse = data.stripWhiteSpace();
+ TQString debugOutput = "parseClockValue(" + parse + ") -> ";
if(parse == "indefinite") // Saves some time...
return -1;
@@ -98,7 +98,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
if(parse.find('.') != -1)
{
- QString temp = parse.mid(9, 2);
+ TQString temp = parse.mid(9, 2);
milliseconds = temp.toUInt();
result += (milliseconds * (1 / pow(10.0, temp.length())));
}
@@ -113,7 +113,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
if(parse.find('.') != -1)
{
- QString temp = parse.mid(6, 2);
+ TQString temp = parse.mid(6, 2);
milliseconds = temp.toUInt();
result += (milliseconds * (1 / pow(10.0, temp.length())));
}
@@ -129,7 +129,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
else
{
result = parse.mid(0, dotPosition).toUInt() * 3600;
- QString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 2);
+ TQString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 2);
result += (3600.0 * temp.toUInt()) * (1 / pow(10.0, temp.length()));
}
}
@@ -140,7 +140,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
else
{
result = parse.mid(0, dotPosition).toUInt() * 60;
- QString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 4);
+ TQString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 4);
result += (60.0 * temp.toUInt()) * (1 / pow(10.0, temp.length()));
}
}
@@ -151,7 +151,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
else
{
result = parse.mid(0, dotPosition).toUInt() / 1000.0;
- QString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 3);
+ TQString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 3);
result += (temp.toUInt() / 1000.0) * (1 / pow(10.0, temp.length()));
}
}
@@ -162,7 +162,7 @@ double SVGAnimationElementImpl::parseClockValue(const QString &data) const
else
{
result = parse.mid(0, dotPosition).toUInt();
- QString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 2);
+ TQString temp = parse.mid(dotPosition + 1, parse.length() - dotPosition - 2);
result += temp.toUInt() * (1 / pow(10.0, temp.length()));
}
}
@@ -229,7 +229,7 @@ void SVGAnimationElementImpl::putValueProperty(ExecState *exec, int token, const
if(!(attr & KJS::Internal))
return;
- QString val = value.toString(exec).qstring();
+ TQString val = value.toString(exec).qstring();
switch(token)
{
case Href:
@@ -293,12 +293,12 @@ void SVGAnimationElementImpl::putValueProperty(ExecState *exec, int token, const
// Parse data
for(unsigned int i = 0; i < temp->numberOfItems(); i++)
{
- QString current = temp->getItem(i)->string();
+ TQString current = temp->getItem(i)->string();
if(current.startsWith("accessKey"))
{
// Register keyDownEventListener for the character
- QString character = current.mid(current.length() - 2, 1);
+ TQString character = current.mid(current.length() - 2, 1);
kdDebug() << "ACCESSKEY CHARACTER " << character << endl;
}
@@ -307,7 +307,7 @@ void SVGAnimationElementImpl::putValueProperty(ExecState *exec, int token, const
int firstBrace = current.find("(");
int secondBrace = current.find(")");
- QString wallclockValue = current.mid(firstBrace + 1, secondBrace - firstBrace - 2);
+ TQString wallclockValue = current.mid(firstBrace + 1, secondBrace - firstBrace - 2);
kdDebug() << "WALLCLOCK VALUE " << wallclockValue << endl;
}
@@ -315,8 +315,8 @@ void SVGAnimationElementImpl::putValueProperty(ExecState *exec, int token, const
{
int dotPosition = current.find(".");
- QString element = current.mid(0, dotPosition);
- QString clockValue;
+ TQString element = current.mid(0, dotPosition);
+ TQString clockValue;
if(current.contains("begin"))
clockValue = current.mid(dotPosition + 6);
@@ -333,7 +333,7 @@ void SVGAnimationElementImpl::putValueProperty(ExecState *exec, int token, const
else if(current.contains("-"))
plusMinusPosition = current.find("-");
- QString event = current.mid(dotPosition + 1, plusMinusPosition - dotPosition - 1);
+ TQString event = current.mid(dotPosition + 1, plusMinusPosition - dotPosition - 1);
clockValue = current.mid(dotPosition + event.length() + 1);
kdDebug() << "EVENT " << event << endl;
@@ -427,7 +427,7 @@ void SVGAnimationElementImpl::setTargetElement(SVGElementImpl *target)
m_targetElement->ref();
}
-void SVGAnimationElementImpl::applyAttribute(const QString &name, const QString &value)
+void SVGAnimationElementImpl::applyAttribute(const TQString &name, const TQString &value)
{
SVGElementImpl *target = targetElement();
if(!target)
diff --git a/ksvg/impl/SVGAnimationElementImpl.h b/ksvg/impl/SVGAnimationElementImpl.h
index 9fd9446e..7a42a77e 100644
--- a/ksvg/impl/SVGAnimationElementImpl.h
+++ b/ksvg/impl/SVGAnimationElementImpl.h
@@ -81,7 +81,7 @@ public:
SVGElementImpl *targetElement() const;
void setTargetElement(SVGElementImpl *target);
- void applyAttribute(const QString &name, const QString &value);
+ void applyAttribute(const TQString &name, const TQString &value);
virtual void handleTimerEvent() { } //= 0;
virtual void setAttributes();
@@ -90,16 +90,16 @@ public:
double getCurrentTime() const;
double getSimpleDuration() const;
- QString getRepeatCount() const { return m_repeatCount; }
- QString getRepeatDuration() const { return m_repeatDur; }
+ TQString getRepeatCount() const { return m_repeatCount; }
+ TQString getRepeatDuration() const { return m_repeatDur; }
- QString getAttributeName() const { return m_attributeName; }
- QString getFrom() const { return m_from; }
- QString getTo() const { return m_to; }
- QString getBy() const { return m_by; }
+ TQString getAttributeName() const { return m_attributeName; }
+ TQString getFrom() const { return m_from; }
+ TQString getTo() const { return m_to; }
+ TQString getBy() const { return m_by; }
protected:
- double parseClockValue(const QString &data) const;
+ double parseClockValue(const TQString &data) const;
bool m_connected;
EFillMode m_fill : 1;
@@ -110,13 +110,13 @@ protected:
EAttributeType m_attributeType : 2;
SVGElementImpl *m_targetElement;
- QString m_href;
- QString m_attributeName;
- QString m_from, m_to, m_by;
+ TQString m_href;
+ TQString m_attributeName;
+ TQString m_from, m_to, m_by;
double m_begin, m_end, m_duration;
- QString m_repeatCount, m_repeatDur;
+ TQString m_repeatCount, m_repeatDur;
SVGStringListImpl *m_values, *m_keyTimes, *m_keySplines;
diff --git a/ksvg/impl/SVGColorImpl.cc b/ksvg/impl/SVGColorImpl.cc
index a01e1113..799c43ec 100644
--- a/ksvg/impl/SVGColorImpl.cc
+++ b/ksvg/impl/SVGColorImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "SVGColor.h"
@@ -83,7 +83,7 @@ SVGICCColorImpl *SVGColorImpl::iccColor() const
return m_iccColor;
}
-void SVGColorImpl::setRGBColor(QColor color)
+void SVGColorImpl::setRGBColor(TQColor color)
{
m_colorType = SVG_COLORTYPE_RGBCOLOR;
m_rgbColor = DOM::RGBColor(color.rgb());
@@ -92,7 +92,7 @@ void SVGColorImpl::setRGBColor(QColor color)
void SVGColorImpl::setRGBColor(int r, int g, int b)
{
m_colorType = SVG_COLORTYPE_RGBCOLOR;
- m_rgbColor = DOM::RGBColor(QColor(r, g, b).rgb());
+ m_rgbColor = DOM::RGBColor(TQColor(r, g, b).rgb());
}
void SVGColorImpl::setRGBColor(const DOM::DOMString &rgbColor)
@@ -395,15 +395,15 @@ void SVGColorImpl::setRGBColor(const DOM::DOMString &rgbColor)
void SVGColorImpl::setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor)
{
- QColor color;
+ TQColor color;
- QString content = iccColor.string().right(iccColor.string().length() - 10);
- QString iccTarget = content.mid(0, content.find(','));
+ TQString content = iccColor.string().right(iccColor.string().length() - 10);
+ TQString iccTarget = content.mid(0, content.find(','));
- QStringList colors = QStringList::split(',', content);
- QString r = colors[1];
- QString g = colors[2];
- QString b = colors[3].left(colors[3].length() - 1);
+ TQStringList colors = TQStringList::split(',', content);
+ TQString r = colors[1];
+ TQString g = colors[2];
+ TQString b = colors[3].left(colors[3].length() - 1);
iccTarget = SVGURIReferenceImpl::getTarget(iccTarget);
diff --git a/ksvg/impl/SVGColorImpl.h b/ksvg/impl/SVGColorImpl.h
index d49c6f82..abefd069 100644
--- a/ksvg/impl/SVGColorImpl.h
+++ b/ksvg/impl/SVGColorImpl.h
@@ -47,7 +47,7 @@ public:
virtual void setRGBColor(const DOM::DOMString &rgbColor);
virtual void setRGBColor(int r, int g, int b);
- virtual void setRGBColor(QColor color);
+ virtual void setRGBColor(TQColor color);
virtual void setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor);
virtual void setColor(unsigned short colorType, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor);
diff --git a/ksvg/impl/SVGColorProfileElementImpl.cc b/ksvg/impl/SVGColorProfileElementImpl.cc
index f898188b..385a836b 100644
--- a/ksvg/impl/SVGColorProfileElementImpl.cc
+++ b/ksvg/impl/SVGColorProfileElementImpl.cc
@@ -22,7 +22,7 @@
#include <kdebug.h>
#include <kio/netaccess.h>
-#include <qimage.h>
+#include <tqimage.h>
#include "SVGDocumentImpl.h"
#include "SVGSVGElementImpl.h"
@@ -97,7 +97,7 @@ void SVGColorProfileElementImpl::putValueProperty(ExecState *exec, int token, co
break;
case RenderingIntent:
{
- QString compare = value.toString(exec).qstring().lower();
+ TQString compare = value.toString(exec).qstring().lower();
if(compare == "perceptual")
m_renderingIntent = RENDERING_INTENT_PERCEPTUAL;
@@ -148,12 +148,12 @@ unsigned short SVGColorProfileElementImpl::renderingIntent() const
bool SVGColorProfileElementImpl::canLoad()
{
- QString open;
+ TQString open;
bool temp;
return canLoad(false, temp, open, true);
}
-bool SVGColorProfileElementImpl::canLoad(bool remote, bool &tempFile, QString &open, bool verbose)
+bool SVGColorProfileElementImpl::canLoad(bool remote, bool &tempFile, TQString &open, bool verbose)
{
KURL file;
@@ -174,7 +174,7 @@ bool SVGColorProfileElementImpl::canLoad(bool remote, bool &tempFile, QString &o
{
open = file.path();
- if(!QFile::exists(open))
+ if(!TQFile::exists(open))
{
if(verbose)
kdDebug() << "Couldn't load color profile " << file.path() << "! It does not exist." << endl;
@@ -196,7 +196,7 @@ bool SVGColorProfileElementImpl::canLoad(bool remote, bool &tempFile, QString &o
bool SVGColorProfileElementImpl::loadColorProfile()
{
- QString open;
+ TQString open;
bool tempFile = false;
if(!canLoad(true, tempFile, open, false))
@@ -251,7 +251,7 @@ QRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b)
return qRgb(0, 0, 0);
}
-QImage *SVGColorProfileElementImpl::correctImage(QImage *input)
+TQImage *SVGColorProfileElementImpl::correctImage(TQImage *input)
{
if(!canLoad())
return input;
diff --git a/ksvg/impl/SVGColorProfileElementImpl.h b/ksvg/impl/SVGColorProfileElementImpl.h
index 2f735f03..ad498c4b 100644
--- a/ksvg/impl/SVGColorProfileElementImpl.h
+++ b/ksvg/impl/SVGColorProfileElementImpl.h
@@ -33,7 +33,7 @@
#include "ksvg_lookup.h"
-class QImage;
+class TQImage;
namespace KSVG
{
@@ -54,7 +54,7 @@ public:
void setRenderingIntent(unsigned short renderingIntent);
unsigned short renderingIntent() const;
- QImage *correctImage(QImage *input);
+ TQImage *correctImage(TQImage *input);
QRgb correctPixel(float r, float g, float b);
private:
@@ -62,7 +62,7 @@ private:
void closeColorProfile();
bool canLoad();
- bool canLoad(bool remote, bool &tempFile, QString &open, bool verbose);
+ bool canLoad(bool remote, bool &tempFile, TQString &open, bool verbose);
DOM::DOMString m_local;
DOM::DOMString m_name;
diff --git a/ksvg/impl/SVGContainerImpl.cc b/ksvg/impl/SVGContainerImpl.cc
index 88fb87a8..e4a7c0db 100644
--- a/ksvg/impl/SVGContainerImpl.cc
+++ b/ksvg/impl/SVGContainerImpl.cc
@@ -37,7 +37,7 @@ SVGContainerImpl::~SVGContainerImpl()
SVGRectImpl *SVGContainerImpl::getBBox()
{
// just get the union of the children bboxes
- QRect rect;
+ TQRect rect;
DOM::Node node = firstChild();
for(; !node.isNull(); node = node.nextSibling())
{
diff --git a/ksvg/impl/SVGDocumentImpl.cc b/ksvg/impl/SVGDocumentImpl.cc
index 4bbe2664..c2b412f3 100644
--- a/ksvg/impl/SVGDocumentImpl.cc
+++ b/ksvg/impl/SVGDocumentImpl.cc
@@ -42,7 +42,7 @@
#include "KSVGCanvas.h"
#include "CanvasItem.h"
-#include <qpaintdevicemetrics.h>
+#include <tqpaintdevicemetrics.h>
using namespace KSVG;
@@ -53,7 +53,7 @@ using namespace KSVG;
// A sequence of prime numbers that sets the m_elemDict's hash table size as the
// number of elements in the dictionary passes each level. This keeps the lookup
-// performance high as the number of elements grows. See the QDict documentation.
+// performance high as the number of elements grows. See the TQDict documentation.
unsigned int SVGDocumentImpl::elemDictHashSizes [] =
{
101,
@@ -74,7 +74,7 @@ unsigned int SVGDocumentImpl::elemDictHashSizes [] =
const int SVGDocumentImpl::numElemDictHashSizes = sizeof(elemDictHashSizes) / sizeof(elemDictHashSizes[0]);
-SVGDocumentImpl::SVGDocumentImpl(bool anim, bool fit, SVGImageElementImpl *parentImage) : QObject(), DOM::DomShared(), DOM::Document(), SVGDOMNodeBridge(static_cast<DOM::Node>(*this))
+SVGDocumentImpl::SVGDocumentImpl(bool anim, bool fit, SVGImageElementImpl *parentImage) : TQObject(), DOM::DomShared(), DOM::Document(), SVGDOMNodeBridge(static_cast<DOM::Node>(*this))
{
m_animations = anim;
@@ -107,7 +107,7 @@ SVGDocumentImpl::~SVGDocumentImpl()
if(rootElement() && rootElement()->hasEventListener(SVGEvent::UNLOAD_EVENT, true))
rootElement()->dispatchEvent(SVGEvent::UNLOAD_EVENT, false, false);
- QPtrList<SVGShapeImpl> killList;
+ TQPtrList<SVGShapeImpl> killList;
DOM::Node node = firstChild();
for(; !node.isNull(); node = node.nextSibling())
@@ -148,7 +148,7 @@ float SVGDocumentImpl::screenPixelsPerMillimeterX() const
{
if(canvas() && canvas()->drawWindow())
{
- QPaintDeviceMetrics metrics(canvas()->drawWindow());
+ TQPaintDeviceMetrics metrics(canvas()->drawWindow());
return float(metrics.width()) / float(metrics.widthMM());
}
else
@@ -159,7 +159,7 @@ float SVGDocumentImpl::screenPixelsPerMillimeterY() const
{
if(canvas() && canvas()->drawWindow())
{
- QPaintDeviceMetrics metrics(canvas()->drawWindow());
+ TQPaintDeviceMetrics metrics(canvas()->drawWindow());
return float(metrics.height()) / float(metrics.heightMM());
}
else
@@ -231,7 +231,7 @@ bool SVGDocumentImpl::open(const ::KURL &url)
if(!m_loader)
m_loader = new KSVGLoader();
- connect(m_loader, SIGNAL(gotResult(QIODevice *)), this, SLOT(slotSVGContent(QIODevice *)));
+ connect(m_loader, TQT_SIGNAL(gotResult(TQIODevice *)), this, TQT_SLOT(slotSVGContent(TQIODevice *)));
m_loader->getSVGContent(url);
}
else
@@ -240,9 +240,9 @@ bool SVGDocumentImpl::open(const ::KURL &url)
return true;
}
-void SVGDocumentImpl::slotSVGContent(QIODevice *dev)
+void SVGDocumentImpl::slotSVGContent(TQIODevice *dev)
{
- QXmlInputSource *inputSource = new QXmlInputSource(dev);
+ TQXmlInputSource *inputSource = new TQXmlInputSource(dev);
if(m_reader)
delete m_reader;
@@ -251,13 +251,13 @@ void SVGDocumentImpl::slotSVGContent(QIODevice *dev)
args.fit = m_fit;
args.getURLMode = false;
- QString url = m_baseURL.prettyURL();
+ TQString url = m_baseURL.prettyURL();
int pos = url.find('#'); // url can become like this.svg#svgView(viewBox(63,226,74,74)), get part after '#'
if(pos > -1)
args.SVGFragmentId = url.mid(pos + 1);
m_reader = new KSVGReader(this, m_canvas, args);
- connect(m_reader, SIGNAL(finished(bool, const QString &)), this, SLOT(slotFinishedParsing(bool, const QString &)));
+ connect(m_reader, TQT_SIGNAL(finished(bool, const TQString &)), this, TQT_SLOT(slotFinishedParsing(bool, const TQString &)));
m_t.start();
#if USE_VALGRIND
@@ -268,7 +268,7 @@ void SVGDocumentImpl::slotSVGContent(QIODevice *dev)
delete dev;
}
-void SVGDocumentImpl::parseSVG(QXmlInputSource *inputSource, bool getURLMode)
+void SVGDocumentImpl::parseSVG(TQXmlInputSource *inputSource, bool getURLMode)
{
if(m_reader)
delete m_reader;
@@ -277,7 +277,7 @@ void SVGDocumentImpl::parseSVG(QXmlInputSource *inputSource, bool getURLMode)
args.fit = m_fit;
args.getURLMode = getURLMode;
m_reader = new KSVGReader(this, 0, args);
- connect(m_reader, SIGNAL(finished(bool, const QString &)), this, SLOT(slotFinishedParsing(bool, const QString &)));
+ connect(m_reader, TQT_SIGNAL(finished(bool, const TQString &)), this, TQT_SLOT(slotFinishedParsing(bool, const TQString &)));
#if USE_VALGRIND
CALLTREE_ZERO_STATS();
@@ -286,13 +286,13 @@ void SVGDocumentImpl::parseSVG(QXmlInputSource *inputSource, bool getURLMode)
m_reader->parse(inputSource);
}
-void SVGDocumentImpl::finishParsing(bool error, const QString &errorDesc)
+void SVGDocumentImpl::finishParsing(bool error, const TQString &errorDesc)
{
if(m_reader)
m_reader->finishParsing(error, errorDesc);
}
-void SVGDocumentImpl::slotFinishedParsing(bool error, const QString &errorDesc)
+void SVGDocumentImpl::slotFinishedParsing(bool error, const TQString &errorDesc)
{
kdDebug(26000) << k_funcinfo << "total time : " << m_t.elapsed() << endl;
@@ -454,7 +454,7 @@ void SVGDocumentImpl::executeScripts()
bool test = executeScriptsRecursiveCheck(*rootElement());
if(!test)
- QTimer::singleShot(50, this, SLOT(executeScripts()));
+ TQTimer::singleShot(50, this, TQT_SLOT(executeScripts()));
else
{
executeScriptsRecursive(*rootElement());
@@ -690,7 +690,7 @@ SVGElementImpl *SVGDocumentImpl::getElementByIdRecursive(SVGSVGElementImpl *star
// #3 Search in other documents
if(!dontSearch)
{
- QPtrDictIterator<SVGDocumentImpl> it(m_documentDict);
+ TQPtrDictIterator<SVGDocumentImpl> it(m_documentDict);
for(; it.current(); ++it)
{
SVGElementImpl *temp = it.current()->getElementByIdRecursive(0, elementId, true);
diff --git a/ksvg/impl/SVGDocumentImpl.h b/ksvg/impl/SVGDocumentImpl.h
index c4156910..10eae77e 100644
--- a/ksvg/impl/SVGDocumentImpl.h
+++ b/ksvg/impl/SVGDocumentImpl.h
@@ -23,12 +23,12 @@
#include <kurl.h>
-#include <qxml.h>
-#include <qobject.h>
-#include <qptrdict.h>
-#include <qptrlist.h>
-#include <qdatetime.h>
-#include <qstringlist.h>
+#include <tqxml.h>
+#include <tqobject.h>
+#include <tqptrdict.h>
+#include <tqptrlist.h>
+#include <tqdatetime.h>
+#include <tqstringlist.h>
#include <kjs/object.h>
@@ -66,7 +66,7 @@ class SVGScriptElementImpl;
class SVGDescElementImpl;
class SVGTitleElementImpl;
class SVGUseElementImpl;
-class SVGDocumentImpl : public QObject,
+class SVGDocumentImpl : public TQObject,
public DOM::DomShared,
public DOM::Document,
public SVGDOMNodeBridge
@@ -109,7 +109,7 @@ public:
// Ecma stuff
KSVGEcma *ecmaEngine() { return m_ecmaEngine; }
- void parseSVG(QXmlInputSource *inputSource, bool getURLMode = false);
+ void parseSVG(TQXmlInputSource *inputSource, bool getURLMode = false);
virtual bool implementsCall() const { return true; }
@@ -139,7 +139,7 @@ public:
SVGElementImpl *recursiveSearch(DOM::Node start, const DOM::DOMString &id);
- void finishParsing(bool error, const QString &errorDesc);
+ void finishParsing(bool error, const TQString &errorDesc);
void newImageJob(SVGImageElementImpl *);
@@ -148,7 +148,7 @@ public:
void resortZIndicesOnFinishedLoading() { m_resortZIndicesOnFinishedLoading = true; }
void addForwardReferencingUseElement(SVGUseElementImpl *use);
- QValueList<SVGUseElementImpl *> forwardReferencingUseElements() const { return m_forwardReferencingUseElements; }
+ TQValueList<SVGUseElementImpl *> forwardReferencingUseElements() const { return m_forwardReferencingUseElements; }
// Traverse the element hierarchy and update any cached matrices that are
// no longer valid.
@@ -159,18 +159,18 @@ public slots:
void executeScripts();
private slots:
- void slotSVGContent(QIODevice *);
- void slotFinishedParsing(bool error, const QString &errorDesc);
+ void slotSVGContent(TQIODevice *);
+ void slotFinishedParsing(bool error, const TQString &errorDesc);
// KDE invents public signals :)
#undef signals
#define signals public
signals:
- void gotDescription(const QString &);
- void gotTitle(const QString &);
- void gotURL(const QString &);
+ void gotDescription(const TQString &);
+ void gotTitle(const TQString &);
+ void gotURL(const TQString &);
- void finishedParsing(bool error, const QString &errorDesc);
+ void finishedParsing(bool error, const TQString &errorDesc);
void finishedRendering();
void finishedLoading();
@@ -195,8 +195,8 @@ private:
KSVGEcma *m_ecmaEngine;
- QPtrDict<SVGElementImpl> m_elemDict;
- QPtrDict<SVGDocumentImpl> m_documentDict;
+ TQPtrDict<SVGElementImpl> m_elemDict;
+ TQPtrDict<SVGDocumentImpl> m_documentDict;
static uint elemDictHashSizes[];
static const int numElemDictHashSizes;
@@ -211,12 +211,12 @@ private:
bool m_fit;
- QTime m_t;
+ TQTime m_t;
- QValueList<SVGImageElementImpl *> m_imagesLoading;
+ TQValueList<SVGImageElementImpl *> m_imagesLoading;
bool m_resortZIndicesOnFinishedLoading;
- QValueList<SVGUseElementImpl *> m_forwardReferencingUseElements;
+ TQValueList<SVGUseElementImpl *> m_forwardReferencingUseElements;
public:
KSVG_BASECLASS_GET
diff --git a/ksvg/impl/SVGEcma.cc b/ksvg/impl/SVGEcma.cc
index 08870d0c..39843a07 100644
--- a/ksvg/impl/SVGEcma.cc
+++ b/ksvg/impl/SVGEcma.cc
@@ -405,7 +405,7 @@ Value SVGDOMNodeBridgeProtoFunc::call(ExecState *exec, Object &thisObj, const Li
{
SVGEvent::EventId eventId = SVGEvent::typeToId(args[0].toString(exec).string());
if(eventId != SVGEvent::UNKNOWN_EVENT)
- element->setEventListener(eventId, new KSVGEcmaEventListener(Object::dynamicCast(args[1]), QString::null, doc->ecmaEngine()));
+ element->setEventListener(eventId, new KSVGEcmaEventListener(Object::dynamicCast(args[1]), TQString::null, doc->ecmaEngine()));
}
return Undefined();
}
diff --git a/ksvg/impl/SVGElementImpl.cc b/ksvg/impl/SVGElementImpl.cc
index 2f3d70c6..940790f2 100644
--- a/ksvg/impl/SVGElementImpl.cc
+++ b/ksvg/impl/SVGElementImpl.cc
@@ -18,7 +18,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qxml.h>
+#include <tqxml.h>
#include <kdebug.h>
@@ -78,7 +78,7 @@ int SVGElementImpl::getEventListeners(bool local)
{
int events = 0;
- QPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
for(; it.current(); ++it)
events |= (1 << it.current()->id);
@@ -91,7 +91,7 @@ int SVGElementImpl::getEventListeners(bool local)
if(element)
{
- QPtrListIterator<SVGRegisteredEventListener> it(element->m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(element->m_eventListeners);
for(; it.current(); ++it)
events |= (1 << it.current()->id);
}
@@ -109,12 +109,12 @@ void SVGElementImpl::setupEventListeners(SVGDocumentImpl *doc, SVGDocumentImpl *
// Needed for parseXML'ed elements with events, their listeners
// are created in the temporary document fragment and need to be
// registered in the main document (Niko)
- QPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
for(; it.current(); ++it)
{
SVGRegisteredEventListener *current = it.current();
- QString valueOfCurrent = newDoc->ecmaEngine()->valueOfEventListener(current->listener);
+ TQString valueOfCurrent = newDoc->ecmaEngine()->valueOfEventListener(current->listener);
setEventListener(current->id, doc->createEventListener(valueOfCurrent));
}
}
@@ -122,7 +122,7 @@ void SVGElementImpl::setupEventListeners(SVGDocumentImpl *doc, SVGDocumentImpl *
bool SVGElementImpl::hasEventListener(int id, bool local)
{
// First check if we have the listener, locally
- QPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
for(; it.current(); ++it)
{
if(it.current()->id == id)
@@ -141,7 +141,7 @@ bool SVGElementImpl::hasEventListener(int id, bool local)
if(element)
{
- QPtrListIterator<SVGRegisteredEventListener> it(element->m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(element->m_eventListeners);
for(; it.current(); ++it)
{
if(it.current()->id == id)
@@ -155,7 +155,7 @@ bool SVGElementImpl::hasEventListener(int id, bool local)
void SVGElementImpl::removeEventListener(int id)
{
- QPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
for(; it.current(); ++it)
{
if(it.current()->id == id)
@@ -168,7 +168,7 @@ void SVGElementImpl::removeEventListener(int id)
void SVGElementImpl::handleLocalEvents(SVGEventImpl *evt, bool useCapture)
{
- QPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
+ TQPtrListIterator<SVGRegisteredEventListener> it(m_eventListeners);
for(; it.current(); ++it)
{
if(it.current()->id == evt->id() && it.current()->useCapture == useCapture)
@@ -320,7 +320,7 @@ Value SVGElementImplProtoFunc::call(ExecState *exec, Object &thisObj, const List
return Undefined();
}
-QDict<DOM::DOMString> &SVGElementImpl::attributes()
+TQDict<DOM::DOMString> &SVGElementImpl::attributes()
{
return m_attributes;
}
@@ -376,11 +376,11 @@ bool SVGElementImpl::hasAttributes()
return m_attributes.count() > 0;
}
-void SVGElementImpl::setApplyAttribute(const QString &name, const QString &value)
+void SVGElementImpl::setApplyAttribute(const TQString &name, const TQString &value)
{
if(hasAttribute(name))
{
- QString cur = getAttribute(name).string();
+ TQString cur = getAttribute(name).string();
cur = cur.simplifyWhiteSpace();
if(!cur.endsWith(";"))
@@ -451,7 +451,7 @@ SVGElementImpl *SVGElementImpl::viewportElement() const
return m_viewportElement;
}
-void SVGElementImpl::setAttributes(const QXmlAttributes &attrs)
+void SVGElementImpl::setAttributes(const TQXmlAttributes &attrs)
{
for(int i = 0; i < attrs.length(); i++)
{
@@ -494,7 +494,7 @@ void SVGElementImpl::setAttributes(bool deep)
}
}
-bool SVGElementImpl::prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *mev)
+bool SVGElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *mev)
{
SVGShapeImpl *shape = dynamic_cast<SVGShapeImpl *>(this);
if(shape)
@@ -519,7 +519,7 @@ bool SVGElementImpl::dispatchEvent(SVGEventImpl *evt, bool tempEvent)
evt->setTarget(this);
// Find out, where to send to -> collect parent nodes
- QPtrList<SVGElementImpl> nodeChain;
+ TQPtrList<SVGElementImpl> nodeChain;
for(DOM::Element e = *this; !e.isNull(); e = e.parentNode())
nodeChain.prepend(ownerDoc()->getElementFromHandle(e.handle()));
@@ -527,7 +527,7 @@ bool SVGElementImpl::dispatchEvent(SVGEventImpl *evt, bool tempEvent)
// Trigger any capturing event handlers on our way down
evt->setEventPhase(DOM::Event::CAPTURING_PHASE);
- QPtrListIterator<SVGElementImpl> it(nodeChain);
+ TQPtrListIterator<SVGElementImpl> it(nodeChain);
for(; it.current() && it.current() != this && !evt->propagationStopped(); ++it)
{
evt->setCurrentTarget(it.current());
@@ -583,17 +583,17 @@ bool SVGElementImpl::dispatchEvent(SVGEventImpl *evt, bool tempEvent)
return !evt->defaultPrevented(); // ### what if defaultPrevented was called before dispatchEvent?
}
-bool SVGElementImpl::dispatchKeyEvent(QKeyEvent *ke)
+bool SVGElementImpl::dispatchKeyEvent(TQKeyEvent *ke)
{
DOM::AbstractView temp;
SVGEvent::EventId evtId = SVGEvent::UNKNOWN_EVENT;
- if(ke->type() == QEvent::KeyRelease && !ke->isAutoRepeat())
+ if(ke->type() == TQEvent::KeyRelease && !ke->isAutoRepeat())
evtId = SVGEvent::KEYUP_EVENT;
else if(ke->isAutoRepeat())
evtId = SVGEvent::KEYPRESS_EVENT;
- else if(ke->type() == QEvent::KeyPress)
+ else if(ke->type() == TQEvent::KeyPress)
evtId = SVGEvent::KEYDOWN_EVENT;
if(evtId == SVGEvent::KEYUP_EVENT && hasEventListener(SVGEvent::DOMACTIVATE_EVENT, false))
@@ -679,7 +679,7 @@ void SVGElementImpl::cloneChildNodes(SVGElementImpl *clone)
}
}
-void SVGElementImpl::gotError(const QString &errorDesc)
+void SVGElementImpl::gotError(const TQString &errorDesc)
{
if(ownerDoc())
{
@@ -689,9 +689,9 @@ void SVGElementImpl::gotError(const QString &errorDesc)
}
}
-QString SVGElementImpl::collectText()
+TQString SVGElementImpl::collectText()
{
- QString text;
+ TQString text;
if(hasChildNodes())
{
diff --git a/ksvg/impl/SVGElementImpl.h b/ksvg/impl/SVGElementImpl.h
index c69a83e8..a12098ab 100644
--- a/ksvg/impl/SVGElementImpl.h
+++ b/ksvg/impl/SVGElementImpl.h
@@ -24,8 +24,8 @@
#include <map>
#include <string>
-#include <qdict.h>
-#include <qptrlist.h>
+#include <tqdict.h>
+#include <tqptrlist.h>
#include <dom/dom_string.h>
@@ -33,8 +33,8 @@
#include "ksvg_lookup.h"
-class QKeyEvent;
-class QXmlAttributes;
+class TQKeyEvent;
+class TQXmlAttributes;
namespace KJS
{
@@ -70,8 +70,8 @@ public:
bool hasAttribute(const DOM::DOMString &name);
bool hasAttributes();
- QDict<DOM::DOMString> &attributes();
- void setApplyAttribute(const QString &name, const QString &value);
+ TQDict<DOM::DOMString> &attributes();
+ void setApplyAttribute(const TQString &name, const TQString &value);
void setId(DOM::DOMString);
DOM::DOMString id() const;
@@ -85,11 +85,11 @@ public:
SVGSVGElementImpl *ownerSVGElement() const;
SVGElementImpl *viewportElement() const;
- void setAttributes(const QXmlAttributes &);
+ void setAttributes(const TQXmlAttributes &);
virtual void setAttributes();
void setAttributes(bool deep);
- QString collectText();
+ TQString collectText();
void setOwnerDoc(SVGDocumentImpl *doc);
SVGDocumentImpl *ownerDoc() const;
@@ -101,7 +101,7 @@ public:
bool dispatchEvent(int id, bool canBubbleArg, bool cancelableArg);
bool dispatchEvent(SVGEventImpl *evt, bool tempEvent);
bool dispatchMouseEvent(int id, bool canBubbleArg, bool cancelableArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, unsigned short buttonArg, SVGElementImpl *relatedTargetArg);
- bool dispatchKeyEvent(QKeyEvent *ke);
+ bool dispatchKeyEvent(TQKeyEvent *ke);
void setEventListener(int id, SVGEventListener *listener);
bool hasEventListener(int id, bool local);
@@ -110,7 +110,7 @@ public:
void setupEventListeners(SVGDocumentImpl *doc, SVGDocumentImpl *newDoc);
// Use with care! Internal only.
- const QPtrList<SVGRegisteredEventListener> &eventListeners() { return m_eventListeners; }
+ const TQPtrList<SVGRegisteredEventListener> &eventListeners() { return m_eventListeners; }
void handleLocalEvents(SVGEventImpl *evt, bool useCapture);
virtual void defaultEventHandler(SVGEventImpl *evt);
@@ -121,7 +121,7 @@ public:
bool focus() { return m_focus; }
void setFocus(bool v) { m_focus = v; }
- virtual bool prepareMouseEvent(const QPoint &, const QPoint &, SVGMouseEventImpl *);
+ virtual bool prepareMouseEvent(const TQPoint &, const TQPoint &, SVGMouseEventImpl *);
virtual void createItem(KSVGCanvas *c = 0) { Q_UNUSED(c); }
virtual void removeItem(KSVGCanvas *c) { Q_UNUSED(c); }
@@ -183,7 +183,7 @@ public:
static SVGElementImpl::Registrar<Class> Class##Registrar(Tag);
protected:
- void gotError(const QString &errorDesc);
+ void gotError(const TQString &errorDesc);
private:
SVGSVGElementImpl *m_ownerSVGElement;
@@ -193,8 +193,8 @@ private:
bool m_mouseOver : 1;
bool m_focus : 1;
- QPtrList<SVGRegisteredEventListener> m_eventListeners;
- QDict<DOM::DOMString> m_attributes;
+ TQPtrList<SVGRegisteredEventListener> m_eventListeners;
+ TQDict<DOM::DOMString> m_attributes;
public:
KSVG_BASECLASS_GET
diff --git a/ksvg/impl/SVGEventImpl.cc b/ksvg/impl/SVGEventImpl.cc
index 418e0044..17338f45 100644
--- a/ksvg/impl/SVGEventImpl.cc
+++ b/ksvg/impl/SVGEventImpl.cc
@@ -43,7 +43,7 @@ SVGEventImpl::SVGEventImpl()
m_defaultPrevented = false;
m_id = SVGEvent::UNKNOWN_EVENT;
m_eventPhase = 0;
- m_createTime = QDateTime::currentDateTime();
+ m_createTime = TQDateTime::currentDateTime();
m_defaultHandled = false;
m_target = 0;
@@ -62,7 +62,7 @@ SVGEventImpl::SVGEventImpl(SVGEvent::EventId _id, bool canBubbleArg, bool cancel
m_defaultPrevented = false;
m_id = _id;
m_eventPhase = 0;
- m_createTime = QDateTime::currentDateTime();
+ m_createTime = TQDateTime::currentDateTime();
m_defaultHandled = false;
m_target = 0;
@@ -120,7 +120,7 @@ bool SVGEventImpl::cancelable() const
DOM::DOMTimeStamp SVGEventImpl::timeStamp()
{
- QDateTime epoch(QDate(1970, 1, 1), QTime(0, 0));
+ TQDateTime epoch(TQDate(1970, 1, 1), TQTime(0, 0));
// ### kjs does not yet support long long (?) so the value wraps around
return epoch.secsTo(m_createTime) * 1000 + m_createTime.time().msec();
@@ -341,9 +341,9 @@ SVGKeyEventImpl::SVGKeyEventImpl() : SVGUIEventImpl()
qKeyEvent = 0;
}
-SVGKeyEventImpl::SVGKeyEventImpl(QKeyEvent *key, DOM::AbstractView &view, SVGEvent::EventId _id) : SVGUIEventImpl(_id, true, true, view, 0)
+SVGKeyEventImpl::SVGKeyEventImpl(TQKeyEvent *key, DOM::AbstractView &view, SVGEvent::EventId _id) : SVGUIEventImpl(_id, true, true, view, 0)
{
- qKeyEvent = new QKeyEvent(key->type(), key->key(), key->ascii(), key->state(), key->text(), key->isAutoRepeat(), key->count());
+ qKeyEvent = new TQKeyEvent(key->type(), key->key(), key->ascii(), key->state(), key->text(), key->isAutoRepeat(), key->count());
// Events are supposed to be accepted by default in Qt!
// This line made QLineEdit's keyevents be ignored, so they were sent to the khtmlview
diff --git a/ksvg/impl/SVGEventImpl.h b/ksvg/impl/SVGEventImpl.h
index a123b09e..2c70c0d2 100644
--- a/ksvg/impl/SVGEventImpl.h
+++ b/ksvg/impl/SVGEventImpl.h
@@ -25,8 +25,8 @@
#ifndef SVGEventImpl_H
#define SVGEventImpl_H
-#include <qevent.h>
-#include <qdatetime.h>
+#include <tqevent.h>
+#include <tqdatetime.h>
#include <dom/dom_misc.h>
#include <dom/dom_node.h>
@@ -98,7 +98,7 @@ protected:
SVGElementImpl *m_target;
unsigned short m_eventPhase;
- QDateTime m_createTime;
+ TQDateTime m_createTime;
public:
KSVG_BASECLASS_GET
@@ -278,7 +278,7 @@ public:
bool inputGeneratedArg,
bool numPadArg);
- SVGKeyEventImpl(QKeyEvent *key, DOM::AbstractView &view, SVGEvent::EventId _id);
+ SVGKeyEventImpl(TQKeyEvent *key, DOM::AbstractView &view, SVGEvent::EventId _id);
virtual bool isKeyEvent() { return true; }
@@ -363,7 +363,7 @@ public:
unsigned long virtKeyVal() const { return m_virtKeyVal; }
- QKeyEvent *qKeyEvent;
+ TQKeyEvent *qKeyEvent;
private:
unsigned long m_keyVal;
diff --git a/ksvg/impl/SVGFitToViewBoxImpl.cc b/ksvg/impl/SVGFitToViewBoxImpl.cc
index fee367b9..aaee3045 100644
--- a/ksvg/impl/SVGFitToViewBoxImpl.cc
+++ b/ksvg/impl/SVGFitToViewBoxImpl.cc
@@ -20,8 +20,8 @@
#include <kdebug.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include "SVGPreserveAspectRatio.h"
@@ -65,7 +65,7 @@ SVGAnimatedPreserveAspectRatioImpl *SVGFitToViewBoxImpl::preserveAspectRatio() c
return m_preserveAspectRatio;
}
-void SVGFitToViewBoxImpl::parseViewBox(const QString &s)
+void SVGFitToViewBoxImpl::parseViewBox(const TQString &s)
{
// Set default if preserveAspectRatio wasnt parsed earlier (Rob)
if(m_preserveAspectRatio->baseVal()->align() == SVG_PRESERVEASPECTRATIO_UNKNOWN)
@@ -74,8 +74,8 @@ void SVGFitToViewBoxImpl::parseViewBox(const QString &s)
m_preserveAspectRatio->baseVal()->setMeetOrSlice(SVG_MEETORSLICE_MEET);
// allow for viewbox def with ',' or whitespace
- QString viewbox(s);
- QStringList points = QStringList::split(' ', viewbox.replace(',', ' ').simplifyWhiteSpace());
+ TQString viewbox(s);
+ TQStringList points = TQStringList::split(' ', viewbox.replace(',', ' ').simplifyWhiteSpace());
viewBox()->baseVal()->setX(points[0].toFloat());
viewBox()->baseVal()->setY(points[1].toFloat());
diff --git a/ksvg/impl/SVGFitToViewBoxImpl.h b/ksvg/impl/SVGFitToViewBoxImpl.h
index b511d63e..501a4061 100644
--- a/ksvg/impl/SVGFitToViewBoxImpl.h
+++ b/ksvg/impl/SVGFitToViewBoxImpl.h
@@ -23,7 +23,7 @@
#include "ksvg_lookup.h"
-class QString;
+class TQString;
namespace KSVG
{
@@ -40,7 +40,7 @@ public:
SVGAnimatedRectImpl *viewBox() const;
SVGAnimatedPreserveAspectRatioImpl *preserveAspectRatio() const;
- void parseViewBox(const QString &);
+ void parseViewBox(const TQString &);
SVGMatrixImpl *viewBoxToViewTransform(float viewWidth, float viewHeight) const;
diff --git a/ksvg/impl/SVGGlyphElementImpl.cc b/ksvg/impl/SVGGlyphElementImpl.cc
index dd201466..4fbc6bb7 100644
--- a/ksvg/impl/SVGGlyphElementImpl.cc
+++ b/ksvg/impl/SVGGlyphElementImpl.cc
@@ -35,7 +35,7 @@ SVGGlyphElementImpl::~SVGGlyphElementImpl()
{
}
-QString SVGGlyphElementImpl::d() const
+TQString SVGGlyphElementImpl::d() const
{
return m_d;
}
diff --git a/ksvg/impl/SVGGlyphElementImpl.h b/ksvg/impl/SVGGlyphElementImpl.h
index 35781b2c..576e554e 100644
--- a/ksvg/impl/SVGGlyphElementImpl.h
+++ b/ksvg/impl/SVGGlyphElementImpl.h
@@ -36,10 +36,10 @@ public:
SVGGlyphElementImpl(DOM::ElementImpl *);
virtual ~SVGGlyphElementImpl();
- QString d() const;
+ TQString d() const;
private:
- QString m_d;
+ TQString m_d;
public:
KSVG_GET
diff --git a/ksvg/impl/SVGGradientElementImpl.cc b/ksvg/impl/SVGGradientElementImpl.cc
index 180b230a..eae9059e 100644
--- a/ksvg/impl/SVGGradientElementImpl.cc
+++ b/ksvg/impl/SVGGradientElementImpl.cc
@@ -129,7 +129,7 @@ void SVGGradientElementImpl::putValueProperty(ExecState *exec, int token, const
break;
case SpreadMethod:
{
- QString spreadMethod = value.toString(exec).qstring();
+ TQString spreadMethod = value.toString(exec).qstring();
if(spreadMethod == "repeat")
m_spreadMethod->setBaseVal(SVG_SPREADMETHOD_REPEAT);
@@ -160,7 +160,7 @@ void SVGGradientElementImpl::setAttributes()
void SVGGradientElementImpl::setAttributesFromHref()
{
- QString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
+ TQString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
if(!_href.isEmpty())
{
@@ -168,12 +168,12 @@ void SVGGradientElementImpl::setAttributesFromHref()
if(refGradient)
{
- QMap<QString, DOM::DOMString> refAttributes = refGradient->gradientAttributes();
- QMap<QString, DOM::DOMString>::iterator it;
+ TQMap<TQString, DOM::DOMString> refAttributes = refGradient->gradientAttributes();
+ TQMap<TQString, DOM::DOMString>::iterator it;
for(it = refAttributes.begin(); it != refAttributes.end(); ++it)
{
- QString name = it.key();
+ TQString name = it.key();
DOM::DOMString value = it.data();
if(!hasAttribute(name))
@@ -210,7 +210,7 @@ SVGGradientElementImpl *SVGGradientElementImpl::stopsSource()
if(!haveStops)
{
- QString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
+ TQString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
if(!_href.isEmpty())
{
diff --git a/ksvg/impl/SVGGradientElementImpl.h b/ksvg/impl/SVGGradientElementImpl.h
index e9be92d8..60b9d3a9 100644
--- a/ksvg/impl/SVGGradientElementImpl.h
+++ b/ksvg/impl/SVGGradientElementImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGGradientElementImpl_H
#define SVGGradientElementImpl_H
-#include <qmap.h>
+#include <tqmap.h>
#include "SVGElementImpl.h"
#include "SVGStylableImpl.h"
@@ -64,7 +64,7 @@ public:
// Returns the linear/radial gradient attributes set on this element,
// taking into account indirection through href.
- virtual QMap<QString, DOM::DOMString> gradientAttributes() = 0;
+ virtual TQMap<TQString, DOM::DOMString> gradientAttributes() = 0;
protected:
void setAttributesFromHref();
diff --git a/ksvg/impl/SVGHelperImpl.cc b/ksvg/impl/SVGHelperImpl.cc
index ed7e8be4..7378b8f4 100644
--- a/ksvg/impl/SVGHelperImpl.cc
+++ b/ksvg/impl/SVGHelperImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include "SVGRectImpl.h"
#include "SVGMatrixImpl.h"
@@ -77,7 +77,7 @@ void SVGHelperImpl::updateItem(KJS::ExecState *exec, const DOM::Node node)
void SVGHelperImpl::copyAttributes(SVGElementImpl *src, SVGElementImpl *dst)
{
- QDictIterator<DOM::DOMString> it(src->attributes());
+ TQDictIterator<DOM::DOMString> it(src->attributes());
for(; it.current(); ++it)
{
DOM::DOMString name = it.currentKey();
@@ -91,14 +91,14 @@ void SVGHelperImpl::copyAttributes(SVGElementImpl *src, SVGElementImpl *dst)
}
}
-void SVGHelperImpl::parseList(SVGStringListImpl *list, char seperator, const QString &data)
+void SVGHelperImpl::parseList(SVGStringListImpl *list, char seperator, const TQString &data)
{
// TODO : more error checking/reporting
list->clear();
- QStringList substrings = QStringList::split(seperator, data);
- QStringList::ConstIterator it = substrings.begin();
- QStringList::ConstIterator end = substrings.end();
+ TQStringList substrings = TQStringList::split(seperator, data);
+ TQStringList::ConstIterator it = substrings.begin();
+ TQStringList::ConstIterator end = substrings.end();
for(; it != end; ++it)
{
SharedString *string = new SharedString(*it);
@@ -108,13 +108,13 @@ void SVGHelperImpl::parseList(SVGStringListImpl *list, char seperator, const QSt
}
}
-void SVGHelperImpl::parseLengthList(SVGAnimatedLengthListImpl *list, const QString &lengths, LengthMode mode, SVGElementImpl *object)
+void SVGHelperImpl::parseLengthList(SVGAnimatedLengthListImpl *list, const TQString &lengths, LengthMode mode, SVGElementImpl *object)
{
// get either comma or space delimited lists
// TODO : more error checking/reporting
- QStringList sublengths = QStringList::split(QRegExp("[, ]"), lengths);
- QStringList::ConstIterator it = sublengths.begin();
- QStringList::ConstIterator end = sublengths.end();
+ TQStringList sublengths = TQStringList::split(TQRegExp("[, ]"), lengths);
+ TQStringList::ConstIterator it = sublengths.begin();
+ TQStringList::ConstIterator end = sublengths.end();
SVGLengthImpl *lengthImpl = 0;
for(; it != end; ++it)
@@ -127,32 +127,32 @@ void SVGHelperImpl::parseLengthList(SVGAnimatedLengthListImpl *list, const QStri
}
}
-void SVGHelperImpl::parseCommaSeperatedList(SVGStringListImpl *list, const QString &data)
+void SVGHelperImpl::parseCommaSeperatedList(SVGStringListImpl *list, const TQString &data)
{
parseList(list, ',', data);
}
-void SVGHelperImpl::parseSemicolonSeperatedList(SVGStringListImpl *list, const QString &data)
+void SVGHelperImpl::parseSemicolonSeperatedList(SVGStringListImpl *list, const TQString &data)
{
parseList(list, ';', data);
}
-void SVGHelperImpl::parseTransformAttribute(SVGTransformListImpl *list, const QString &transform)
+void SVGHelperImpl::parseTransformAttribute(SVGTransformListImpl *list, const TQString &transform)
{
// Split string for handling 1 transform statement at a time
- QStringList subtransforms = QStringList::split(')', transform);
- QStringList::ConstIterator it = subtransforms.begin();
- QStringList::ConstIterator end = subtransforms.end();
+ TQStringList subtransforms = TQStringList::split(')', transform);
+ TQStringList::ConstIterator it = subtransforms.begin();
+ TQStringList::ConstIterator end = subtransforms.end();
for(; it != end; ++it)
{
- QStringList subtransform = QStringList::split('(', (*it));
+ TQStringList subtransform = TQStringList::split('(', (*it));
subtransform[0] = subtransform[0].stripWhiteSpace().lower();
subtransform[1] = subtransform[1].simplifyWhiteSpace();
- QRegExp reg("([-]?\\d*\\.?\\d+(?:e[-]?\\d+)?)");
+ TQRegExp reg("([-]?\\d*\\.?\\d+(?:e[-]?\\d+)?)");
int pos = 0;
- QStringList params;
+ TQStringList params;
while(pos >= 0)
{
@@ -215,9 +215,9 @@ void SVGHelperImpl::parseTransformAttribute(SVGTransformListImpl *list, const QS
}
/// convert from user space to "real" pixels on rendering area
-QRect SVGHelperImpl::fromUserspace(SVGElementImpl *obj, const QRect &r)
+TQRect SVGHelperImpl::fromUserspace(SVGElementImpl *obj, const TQRect &r)
{
- QRect sr;
+ TQRect sr;
SVGLocatableImpl *locate = dynamic_cast<SVGLocatableImpl *>(obj);
diff --git a/ksvg/impl/SVGHelperImpl.h b/ksvg/impl/SVGHelperImpl.h
index e8bbdb39..86edbf66 100644
--- a/ksvg/impl/SVGHelperImpl.h
+++ b/ksvg/impl/SVGHelperImpl.h
@@ -30,8 +30,8 @@
#include "ksvg_lookup.h"
-class QRect;
-class QString;
+class TQRect;
+class TQString;
namespace KSVG
{
@@ -47,7 +47,7 @@ public:
// Dynamic attribute updating
template<class T>
- static void applyContainer(T *obj, int token, const QString &value)
+ static void applyContainer(T *obj, int token, const TQString &value)
{
SVGElementImpl *element = dynamic_cast<SVGElementImpl *>(obj);
if(!element || !element->hasChildNodes())
@@ -67,18 +67,18 @@ public:
static void copyAttributes(SVGElementImpl *src, SVGElementImpl *dst);
// SVGAnimatedLengthList
- static void parseLengthList(SVGAnimatedLengthListImpl *list, const QString &lengths, LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = 0);
+ static void parseLengthList(SVGAnimatedLengthListImpl *list, const TQString &lengths, LengthMode mode = LENGTHMODE_UNKNOWN, SVGElementImpl *object = 0);
// SVGStringList
- static void parseList(SVGStringListImpl *list, char seperator, const QString &data);
- static void parseCommaSeperatedList(SVGStringListImpl *list, const QString &data);
- static void parseSemicolonSeperatedList(SVGStringListImpl *list, const QString &data);
+ static void parseList(SVGStringListImpl *list, char seperator, const TQString &data);
+ static void parseCommaSeperatedList(SVGStringListImpl *list, const TQString &data);
+ static void parseSemicolonSeperatedList(SVGStringListImpl *list, const TQString &data);
// SVGTransformList
- static void parseTransformAttribute(SVGTransformListImpl *list, const QString &transform);
+ static void parseTransformAttribute(SVGTransformListImpl *list, const TQString &transform);
// Tools
- static QRect fromUserspace(SVGElementImpl *, const QRect &);
+ static TQRect fromUserspace(SVGElementImpl *, const TQRect &);
};
}
diff --git a/ksvg/impl/SVGImageElementImpl.cc b/ksvg/impl/SVGImageElementImpl.cc
index 608dbda5..49f48e7d 100644
--- a/ksvg/impl/SVGImageElementImpl.cc
+++ b/ksvg/impl/SVGImageElementImpl.cc
@@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qimage.h>
-#include <qtimer.h>
+#include <tqimage.h>
+#include <tqtimer.h>
#include <kdebug.h>
@@ -51,7 +51,7 @@ using namespace KSVG;
#include "ksvg_bridge.h"
#include "ksvg_ecma.h"
-SVGImageElementImpl::SVGImageElementImpl(DOM::ElementImpl *impl) : QObject(), SVGShapeImpl(impl), SVGURIReferenceImpl(), SVGTestsImpl(), SVGLangSpaceImpl(), SVGExternalResourcesRequiredImpl(), SVGStylableImpl(this), SVGTransformableImpl()
+SVGImageElementImpl::SVGImageElementImpl(DOM::ElementImpl *impl) : TQObject(), SVGShapeImpl(impl), SVGURIReferenceImpl(), SVGTestsImpl(), SVGLangSpaceImpl(), SVGExternalResourcesRequiredImpl(), SVGStylableImpl(this), SVGTransformableImpl()
{
KSVG_EMPTY_FLAGS
@@ -240,7 +240,7 @@ void SVGImageElementImpl::setAttributes()
}
}
-void SVGImageElementImpl::slotParsingFinished(bool error, const QString &errorDesc)
+void SVGImageElementImpl::slotParsingFinished(bool error, const TQString &errorDesc)
{
if(error)
kdDebug(26003) << "Finished with error : " << errorDesc << endl;
@@ -273,8 +273,8 @@ void SVGImageElementImpl::createItem(KSVGCanvas *c)
m_doc->ref();
m_doc->attach(c);
- connect(m_doc, SIGNAL(finishedParsing(bool, const QString &)), this, SLOT(slotParsingFinished(bool, const QString &)));
- connect(m_doc, SIGNAL(finishedLoading()), this, SLOT(slotLoadingFinished()));
+ connect(m_doc, TQT_SIGNAL(finishedParsing(bool, const TQString &)), this, TQT_SLOT(slotParsingFinished(bool, const TQString &)));
+ connect(m_doc, TQT_SIGNAL(finishedLoading()), this, TQT_SLOT(slotLoadingFinished()));
KURL file;
@@ -320,12 +320,12 @@ void SVGImageElementImpl::removeItem(KSVGCanvas *c)
void SVGImageElementImpl::setupSVGElement(SVGSVGElementImpl *svg)
{
// Set up the root svg for an svg image.
- svg->setAttributeInternal("x", QString("%1").arg(x()->baseVal()->value()));
- svg->setAttributeInternal("y", QString("%1").arg(y()->baseVal()->value()));
- svg->setAttributeInternal("width", QString("%1").arg(width()->baseVal()->value()));
- svg->setAttributeInternal("height", QString("%1").arg(height()->baseVal()->value()));
+ svg->setAttributeInternal("x", TQString("%1").arg(x()->baseVal()->value()));
+ svg->setAttributeInternal("y", TQString("%1").arg(y()->baseVal()->value()));
+ svg->setAttributeInternal("width", TQString("%1").arg(width()->baseVal()->value()));
+ svg->setAttributeInternal("height", TQString("%1").arg(height()->baseVal()->value()));
- QString par = getAttribute("preserveAspectRatio").string().stripWhiteSpace();
+ TQString par = getAttribute("preserveAspectRatio").string().stripWhiteSpace();
if(par.startsWith("defer"))
{
@@ -358,7 +358,7 @@ void SVGImageElementImpl::onScreenCTMUpdated()
}
}
-bool SVGImageElementImpl::prepareMouseEvent(const QPoint &p, const QPoint &, SVGMouseEventImpl *mev)
+bool SVGImageElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &, SVGMouseEventImpl *mev)
{
// TODO : pointer-events should be stored here, not in SVGStylableImpl.
SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(this);
@@ -390,7 +390,7 @@ bool SVGImageElementImpl::prepareMouseEvent(const QPoint &p, const QPoint &, SVG
return false;
}
-void SVGImageElementImpl::setImage(QImage *image)
+void SVGImageElementImpl::setImage(TQImage *image)
{
m_image = image;
@@ -416,7 +416,7 @@ void SVGImageElementImpl::setImage(QImage *image)
ownerDoc()->notifyImageLoaded(this);
}
-QImage SVGImageElementImpl::scaledImage()
+TQImage SVGImageElementImpl::scaledImage()
{
SVGMatrixImpl *matrix = imageMatrix();
double sx, sy;
@@ -424,7 +424,7 @@ QImage SVGImageElementImpl::scaledImage()
matrix->removeScale(&sx, &sy);
matrix->deref();
- QImage img;
+ TQImage img;
if(sx != 1 || sy != 1)
{
@@ -488,7 +488,7 @@ KSVGPolygon SVGImageElementImpl::clippingShape()
return p;
}
-QString SVGImageElementImpl::fileName() const
+TQString SVGImageElementImpl::fileName() const
{
return href()->baseVal().string();
}
diff --git a/ksvg/impl/SVGImageElementImpl.h b/ksvg/impl/SVGImageElementImpl.h
index 35ae161f..922ef3f8 100644
--- a/ksvg/impl/SVGImageElementImpl.h
+++ b/ksvg/impl/SVGImageElementImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGImageElementImpl_H
#define SVGImageElementImpl_H
-#include <qobject.h>
+#include <tqobject.h>
#include "ksvg_lookup.h"
@@ -42,7 +42,7 @@ class SVGSVGElementImpl;
class SVGAnimatedLengthImpl;
class SVGColorProfileElementImpl;
class SVGAnimatedPreserveAspectRatioImpl;
-class SVGImageElementImpl : public QObject,
+class SVGImageElementImpl : public TQObject,
public SVGShapeImpl,
public SVGURIReferenceImpl,
public SVGTestsImpl,
@@ -67,12 +67,12 @@ public:
virtual void setAttributes();
- virtual bool prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *mev);
+ virtual bool prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *mev);
- void setImage(QImage *image);
- QImage *image() { return m_image; }
+ void setImage(TQImage *image);
+ TQImage *image() { return m_image; }
- QImage scaledImage();
+ TQImage scaledImage();
SVGMatrixImpl *imageMatrix();
SVGMatrixImpl *scaledImageMatrix();
@@ -81,7 +81,7 @@ public:
void applyColorProfile();
static void applyColorProfile(SVGColorProfileElementImpl *profile, SVGImageElementImpl *image);
- QString fileName() const;
+ TQString fileName() const;
virtual SVGRectImpl *getBBox();
@@ -93,7 +93,7 @@ public:
void setupSVGElement(SVGSVGElementImpl *svg);
private slots:
- void slotParsingFinished(bool error, const QString &errorDesc);
+ void slotParsingFinished(bool error, const TQString &errorDesc);
void slotLoadingFinished();
private:
@@ -102,7 +102,7 @@ private:
SVGAnimatedLengthImpl *m_width;
SVGAnimatedLengthImpl *m_height;
- QImage *m_image;
+ TQImage *m_image;
bool m_colorProfileApplied;
SVGAnimatedPreserveAspectRatioImpl *m_preserveAspectRatio;
@@ -127,7 +127,7 @@ public:
struct ImageStreamMap
{
- QByteArray *data;
+ TQByteArray *data;
SVGImageElementImpl *imageElement;
};
diff --git a/ksvg/impl/SVGLangSpaceImpl.cc b/ksvg/impl/SVGLangSpaceImpl.cc
index 0eaada47..92919698 100644
--- a/ksvg/impl/SVGLangSpaceImpl.cc
+++ b/ksvg/impl/SVGLangSpaceImpl.cc
@@ -59,16 +59,16 @@ DOM::DOMString SVGLangSpaceImpl::xmlspace() const
return m_xmlspace;
}
-QString SVGLangSpaceImpl::handleText(const QString &data) const
+TQString SVGLangSpaceImpl::handleText(const TQString &data) const
{
- QString result = data;
+ TQString result = data;
if(xmlspace() == "preserve")
{
// Spec: What to do here?
// It will convert all newline and tab characters into space characters
- result.replace("\n\r", QString(" "));
- result.replace("\r\n", QString(" "));
+ result.replace("\n\r", TQString(" "));
+ result.replace("\r\n", TQString(" "));
result.replace('\t', ' ');
}
else if(xmlspace() == "default")
@@ -78,8 +78,8 @@ QString SVGLangSpaceImpl::handleText(const QString &data) const
// Then it will convert all tab characters into space characters (simplifyWhiteSpace)
// Then, it will strip off all leading and trailing space characters (stripWhiteSpace)
// Then, all contiguous space characters will be consolidated. (simplifyWhiteSpace)
- result.replace('\n', QString::null);
- result.replace('\r', QString::null);
+ result.replace('\n', TQString::null);
+ result.replace('\r', TQString::null);
result = result.stripWhiteSpace().simplifyWhiteSpace();
}
diff --git a/ksvg/impl/SVGLangSpaceImpl.h b/ksvg/impl/SVGLangSpaceImpl.h
index 4a8c199a..099884dc 100644
--- a/ksvg/impl/SVGLangSpaceImpl.h
+++ b/ksvg/impl/SVGLangSpaceImpl.h
@@ -40,7 +40,7 @@ public:
void setXmlspace(const DOM::DOMString &xmlspace);
DOM::DOMString xmlspace() const;
- QString handleText(const QString &data) const;
+ TQString handleText(const TQString &data) const;
private:
DOM::DOMString m_xmllang;
diff --git a/ksvg/impl/SVGLengthImpl.cc b/ksvg/impl/SVGLengthImpl.cc
index 46529022..a8c9080c 100644
--- a/ksvg/impl/SVGLengthImpl.cc
+++ b/ksvg/impl/SVGLengthImpl.cc
@@ -20,10 +20,10 @@
#include <kdebug.h>
-#include <qfont.h>
-#include <qregexp.h>
-#include <qwidget.h>
-#include <qpaintdevicemetrics.h>
+#include <tqfont.h>
+#include <tqregexp.h>
+#include <tqwidget.h>
+#include <tqpaintdevicemetrics.h>
#include "SVGLength.h"
@@ -48,7 +48,7 @@ using namespace KSVG;
#include "ksvg_cacheimpl.h"
// keep track of textual description of the unit type
-QString UnitText[] =
+TQString UnitText[] =
{
"", "", "%", "em", "ex", "px", "cm", "mm", "in", "pt", "pc"
};
@@ -153,7 +153,7 @@ void SVGLengthImpl::setValueAsString(const DOM::DOMString &valueAsString)
DOM::DOMString SVGLengthImpl::valueAsString() const
{
- DOM::DOMString valueAsString = QString::number(m_valueInSpecifiedUnits);
+ DOM::DOMString valueAsString = TQString::number(m_valueInSpecifiedUnits);
valueAsString += UnitText[m_unitType];
return valueAsString;
}
@@ -209,7 +209,7 @@ bool SVGLengthImpl::getValFromPx()
return true;
}
-void SVGLengthImpl::convertStringToPx(QString s)
+void SVGLengthImpl::convertStringToPx(TQString s)
{
if(s.isEmpty())
return;
@@ -289,7 +289,7 @@ void SVGLengthImpl::convertNumToPx()
// Look up font-size in a SAFE way, because at this place
// processStyle() has NOT yet been called, so we need
// a different solution (Niko)
- QString useFont = "Arial";
+ TQString useFont = "Arial";
double useSize = 12;
if(sizeLocal)
@@ -307,10 +307,10 @@ void SVGLengthImpl::convertNumToPx()
else
{
// Easiest way, use qfont (Niko)
- QFont font(useFont);
+ TQFont font(useFont);
font.setPixelSize(static_cast<int>(useSize));
- QFontMetrics fm(font);
+ TQFontMetrics fm(font);
m_value = m_valueInSpecifiedUnits * fm.boundingRect('x').height();
}
}
@@ -318,7 +318,7 @@ void SVGLengthImpl::convertNumToPx()
};
}
-void SVGLengthImpl::convertPercentageToFloat(const QString &perc, float &result)
+void SVGLengthImpl::convertPercentageToFloat(const TQString &perc, float &result)
{
// TODO : more error checking ?
if(perc.endsWith("%"))
@@ -327,12 +327,12 @@ void SVGLengthImpl::convertPercentageToFloat(const QString &perc, float &result)
result = perc.toFloat();
}
-QString SVGLengthImpl::convertValToPercentage(const QString &val, float benchmark)
+TQString SVGLengthImpl::convertValToPercentage(const TQString &val, float benchmark)
{
if(val.endsWith("%"))
return val;
- QString result;
+ TQString result;
float temp = val.toFloat();
temp = (temp / benchmark) * 100.0;
@@ -388,7 +388,7 @@ float SVGLengthImpl::percentageOfViewport()
if(!m_context->ownerDoc()->canvas()) // Happens when parsing <svg width="100%"> with printnodetest
return 0.0;
- QPaintDeviceMetrics metrics(m_context->ownerDoc()->canvas()->drawWindow());
+ TQPaintDeviceMetrics metrics(m_context->ownerDoc()->canvas()->drawWindow());
if(m_mode == LENGTHMODE_WIDTH)
return value * metrics.width();
diff --git a/ksvg/impl/SVGLengthImpl.h b/ksvg/impl/SVGLengthImpl.h
index 5879a091..f1254c25 100644
--- a/ksvg/impl/SVGLengthImpl.h
+++ b/ksvg/impl/SVGLengthImpl.h
@@ -64,7 +64,7 @@ public:
operator float();
- static void convertPercentageToFloat(const QString &perc, float &result);
+ static void convertPercentageToFloat(const TQString &perc, float &result);
// This method converts the value val to percentage notation ("xxx%").
// If the value string ends with the percentage sign it is returned,
@@ -72,7 +72,7 @@ public:
// for benchmark 1.0. This method should be useful in contexts that
// know the values should be in percentages up front, like bbox
// calculations.
- static QString convertValToPercentage(const QString &val, float benchmark = 1.0);
+ static TQString convertValToPercentage(const TQString &val, float benchmark = 1.0);
SVGElementImpl *context() const;
void setContext(SVGElementImpl *context);
@@ -84,7 +84,7 @@ private:
float percentageOfViewport();
- void convertStringToPx(QString s);
+ void convertStringToPx(TQString s);
void convertNumToPx();
bool getValFromPx();
diff --git a/ksvg/impl/SVGLinearGradientElementImpl.cc b/ksvg/impl/SVGLinearGradientElementImpl.cc
index 54c97f01..c08f1417 100644
--- a/ksvg/impl/SVGLinearGradientElementImpl.cc
+++ b/ksvg/impl/SVGLinearGradientElementImpl.cc
@@ -177,12 +177,12 @@ void SVGLinearGradientElementImpl::setAttributes()
KSVG_SET_ALT_ATTRIBUTE(Y2, "0")
}
-QMap<QString, DOM::DOMString> SVGLinearGradientElementImpl::gradientAttributes()
+TQMap<TQString, DOM::DOMString> SVGLinearGradientElementImpl::gradientAttributes()
{
setAttributes();
- QMap<QString, DOM::DOMString> gradAttributes;
- QDictIterator<DOM::DOMString> it(attributes());
+ TQMap<TQString, DOM::DOMString> gradAttributes;
+ TQDictIterator<DOM::DOMString> it(attributes());
for(; it.current(); ++it)
{
diff --git a/ksvg/impl/SVGLinearGradientElementImpl.h b/ksvg/impl/SVGLinearGradientElementImpl.h
index a230a0fe..87744708 100644
--- a/ksvg/impl/SVGLinearGradientElementImpl.h
+++ b/ksvg/impl/SVGLinearGradientElementImpl.h
@@ -42,7 +42,7 @@ public:
virtual void setAttributes();
- virtual QMap<QString, DOM::DOMString> gradientAttributes();
+ virtual TQMap<TQString, DOM::DOMString> gradientAttributes();
private:
SVGAnimatedLengthImpl *m_x1;
diff --git a/ksvg/impl/SVGList.h b/ksvg/impl/SVGList.h
index dfa07dd0..fdf13bd9 100644
--- a/ksvg/impl/SVGList.h
+++ b/ksvg/impl/SVGList.h
@@ -24,7 +24,7 @@
#include "ksvg_bridge.h"
#include "ksvg_lookup.h"
#include "ksvg_scriptinterpreter.h"
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <dom/dom_misc.h>
namespace KSVG
@@ -162,7 +162,7 @@ public:
}
private:
- QPtrList<T> m_impl;
+ TQPtrList<T> m_impl;
};
}
diff --git a/ksvg/impl/SVGMarkerElementImpl.cc b/ksvg/impl/SVGMarkerElementImpl.cc
index 0fc1d263..a621b47f 100644
--- a/ksvg/impl/SVGMarkerElementImpl.cc
+++ b/ksvg/impl/SVGMarkerElementImpl.cc
@@ -356,7 +356,7 @@ void SVGMarkerElementImpl::putValueProperty(ExecState *exec, int token, const Va
break;
case Orient:
{
- QString param = value.toString(exec).qstring();
+ TQString param = value.toString(exec).qstring();
if(param == "auto")
orientType()->setBaseVal(SVG_MARKER_ORIENT_AUTO);
diff --git a/ksvg/impl/SVGMaskElementImpl.cc b/ksvg/impl/SVGMaskElementImpl.cc
index 5cd2151e..d0f90974 100644
--- a/ksvg/impl/SVGMaskElementImpl.cc
+++ b/ksvg/impl/SVGMaskElementImpl.cc
@@ -21,7 +21,7 @@
#include <cfloat>
#include <kdebug.h>
-#include <qimage.h>
+#include <tqimage.h>
#include "SVGMaskElement.h"
@@ -336,12 +336,12 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
{
// Note: r and b reversed
- //QImage maskImage(reinterpret_cast<unsigned char *>(imageBits), imageWidth, imageHeight, 32, 0, 0, QImage::IgnoreEndian);
+ //TQImage maskImage(reinterpret_cast<unsigned char *>(imageBits), imageWidth, imageHeight, 32, 0, 0, TQImage::IgnoreEndian);
//maskImage.setAlphaBuffer(true);
//maskImage.save("mask.png", "PNG");
}
- QByteArray maskData(imageWidth * imageHeight);
+ TQByteArray maskData(imageWidth * imageHeight);
const double epsilon = DBL_EPSILON;
// Convert the rgba image into an 8-bit mask, according to the specs.
@@ -390,7 +390,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
// The screenToMask matrix is calculated each time the mask is used so we don't
// need to set it here.
- QWMatrix tempMatrix;
+ TQWMatrix tempMatrix;
return Mask(maskData, tempMatrix, imageWidth, imageHeight);
}
@@ -444,7 +444,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
matrix->scaleNonUniform(1 / xScale, 1 / yScale);
- QWMatrix screenToMask = matrix->qmatrix().invert();
+ TQWMatrix screenToMask = matrix->qmatrix().invert();
matrix->deref();
mask.setScreenToMask(screenToMask);
@@ -453,9 +453,9 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin
return mask;
}
-QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& screenRectangle)
+TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect& screenRectangle)
{
- QByteArray cumulativeMask;
+ TQByteArray cumulativeMask;
do
{
@@ -475,7 +475,7 @@ QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& s
if(!mask.isEmpty())
{
- QByteArray maskData = mask.rectangle(screenRectangle);
+ TQByteArray maskData = mask.rectangle(screenRectangle);
if(cumulativeMask.size() == 0)
cumulativeMask = maskData;
@@ -514,14 +514,14 @@ QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& s
return cumulativeMask;
}
-SVGMaskElementImpl::Mask::Mask(const QByteArray& mask, const QWMatrix& screenToMask, int width, int height)
+SVGMaskElementImpl::Mask::Mask(const TQByteArray& mask, const TQWMatrix& screenToMask, int width, int height)
: m_width(width), m_height(height), m_mask(mask), m_screenToMask(screenToMask)
{
}
-QByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int width, int height)
+TQByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int width, int height)
{
- QByteArray rect(width * height);
+ TQByteArray rect(width * height);
for(int x = 0; x < width; x++)
{
@@ -534,7 +534,7 @@ QByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int wid
return rect;
}
-QByteArray SVGMaskElementImpl::Mask::rectangle(const QRect& rect)
+TQByteArray SVGMaskElementImpl::Mask::rectangle(const TQRect& rect)
{
return rectangle(rect.x(), rect.y(), rect.width(), rect.height());
}
diff --git a/ksvg/impl/SVGMaskElementImpl.h b/ksvg/impl/SVGMaskElementImpl.h
index cdd1c125..2a96967c 100644
--- a/ksvg/impl/SVGMaskElementImpl.h
+++ b/ksvg/impl/SVGMaskElementImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGMaskElementImpl_H
#define SVGMaskElementImpl_H
-#include <qwmatrix.h>
+#include <tqwmatrix.h>
#include "SVGTestsImpl.h"
#include "SVGBBoxTarget.h"
@@ -56,20 +56,20 @@ public:
{
public:
Mask() : m_width(0), m_height(0) {}
- Mask(const QByteArray& mask, const QWMatrix& screenToMask, int width, int height);
+ Mask(const TQByteArray& mask, const TQWMatrix& screenToMask, int width, int height);
~Mask() {}
bool isEmpty() const { return m_width == 0; }
unsigned char value(int screenX, int screenY) const;
- QByteArray rectangle(int screenX, int screenY, int width, int height);
- QByteArray rectangle(const QRect& rect);
- void setScreenToMask(const QWMatrix& matrix) { m_screenToMask = matrix; }
+ TQByteArray rectangle(int screenX, int screenY, int width, int height);
+ TQByteArray rectangle(const TQRect& rect);
+ void setScreenToMask(const TQWMatrix& matrix) { m_screenToMask = matrix; }
private:
int m_width;
int m_height;
- QByteArray m_mask;
- QWMatrix m_screenToMask;
+ TQByteArray m_mask;
+ TQWMatrix m_screenToMask;
};
SVGMaskElementImpl(DOM::ElementImpl *);
@@ -92,7 +92,7 @@ public:
// Compute the mask on a given shape, taking into account all masks defined
// on the shape's ancestors. This is a workaround for us not having a buffer
// for container elements, so we can't mask containers directly.
- static QByteArray maskRectangle(SVGShapeImpl *shape, const QRect& screenRectangle);
+ static TQByteArray maskRectangle(SVGShapeImpl *shape, const TQRect& screenRectangle);
private:
class CacheKey
diff --git a/ksvg/impl/SVGMatrixImpl.cc b/ksvg/impl/SVGMatrixImpl.cc
index 81f14f66..0210b8f7 100644
--- a/ksvg/impl/SVGMatrixImpl.cc
+++ b/ksvg/impl/SVGMatrixImpl.cc
@@ -37,7 +37,7 @@ SVGMatrixImpl::SVGMatrixImpl()
KSVG_EMPTY_FLAGS
}
-SVGMatrixImpl::SVGMatrixImpl(QWMatrix mat)
+SVGMatrixImpl::SVGMatrixImpl(TQWMatrix mat)
{
m_mat = mat;
}
@@ -118,7 +118,7 @@ void SVGMatrixImpl::copy(const SVGMatrixImpl *other)
SVGMatrixImpl *SVGMatrixImpl::postMultiply(const SVGMatrixImpl *secondMatrix)
{
- QWMatrix temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());
+ TQWMatrix temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());
m_mat *= temp;
return this;
}
@@ -132,7 +132,7 @@ SVGMatrixImpl *SVGMatrixImpl::inverse()
SVGMatrixImpl *SVGMatrixImpl::postTranslate(const double &x, const double &y)
{
// Could optimise these.
- QWMatrix temp;
+ TQWMatrix temp;
temp.translate(x, y);
m_mat *= temp;
return this;
@@ -140,7 +140,7 @@ SVGMatrixImpl *SVGMatrixImpl::postTranslate(const double &x, const double &y)
SVGMatrixImpl *SVGMatrixImpl::postScale(const double &scaleFactor)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.scale(scaleFactor, scaleFactor);
m_mat *= temp;
return this;
@@ -148,7 +148,7 @@ SVGMatrixImpl *SVGMatrixImpl::postScale(const double &scaleFactor)
SVGMatrixImpl *SVGMatrixImpl::postScaleNonUniform(const double &scaleFactorX, const double &scaleFactorY)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.scale(scaleFactorX, scaleFactorY);
m_mat *= temp;
return this;
@@ -156,7 +156,7 @@ SVGMatrixImpl *SVGMatrixImpl::postScaleNonUniform(const double &scaleFactorX, co
SVGMatrixImpl *SVGMatrixImpl::postRotate(const double &angle)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.rotate(angle);
m_mat *= temp;
return this;
@@ -164,7 +164,7 @@ SVGMatrixImpl *SVGMatrixImpl::postRotate(const double &angle)
SVGMatrixImpl *SVGMatrixImpl::postRotateFromVector(const double &x, const double &y)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.rotate(SVGAngleImpl::todeg(atan2(y, x)));
m_mat *= temp;
return this;
@@ -172,21 +172,21 @@ SVGMatrixImpl *SVGMatrixImpl::postRotateFromVector(const double &x, const double
SVGMatrixImpl *SVGMatrixImpl::postFlipX()
{
- QWMatrix temp(-1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F);
+ TQWMatrix temp(-1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F);
m_mat *= temp;
return this;
}
SVGMatrixImpl *SVGMatrixImpl::postFlipY()
{
- QWMatrix temp(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, 0.0F);
+ TQWMatrix temp(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, 0.0F);
m_mat *= temp;
return this;
}
SVGMatrixImpl *SVGMatrixImpl::postSkewX(const double &angle)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.shear(tan(SVGAngleImpl::torad(angle)), 0.0F);
m_mat *= temp;
return this;
@@ -194,7 +194,7 @@ SVGMatrixImpl *SVGMatrixImpl::postSkewX(const double &angle)
SVGMatrixImpl *SVGMatrixImpl::postSkewY(const double &angle)
{
- QWMatrix temp;
+ TQWMatrix temp;
temp.shear(0.0F, tan(SVGAngleImpl::torad(angle)));
m_mat *= temp;
return this;
@@ -202,7 +202,7 @@ SVGMatrixImpl *SVGMatrixImpl::postSkewY(const double &angle)
SVGMatrixImpl *SVGMatrixImpl::multiply(const SVGMatrixImpl *secondMatrix)
{
- QWMatrix temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());
+ TQWMatrix temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());
temp *= m_mat;
m_mat = temp;
return this;
@@ -262,17 +262,17 @@ SVGMatrixImpl *SVGMatrixImpl::skewY(const double &angle)
return this;
}
-void SVGMatrixImpl::setMatrix(QWMatrix mat)
+void SVGMatrixImpl::setMatrix(TQWMatrix mat)
{
m_mat = mat;
}
-QWMatrix &SVGMatrixImpl::qmatrix()
+TQWMatrix &SVGMatrixImpl::qmatrix()
{
return m_mat;
}
-const QWMatrix &SVGMatrixImpl::qmatrix() const
+const TQWMatrix &SVGMatrixImpl::qmatrix() const
{
return m_mat;
}
@@ -315,7 +315,7 @@ KSVGPolygon SVGMatrixImpl::map(const KSVGPolygon& polygon) const
KSVGPolygon SVGMatrixImpl::inverseMap(const KSVGPolygon& polygon) const
{
- QWMatrix inverse = m_mat.invert();
+ TQWMatrix inverse = m_mat.invert();
KSVGPolygon mapped;
for(unsigned int i = 0; i < polygon.numPoints(); i++)
diff --git a/ksvg/impl/SVGMatrixImpl.h b/ksvg/impl/SVGMatrixImpl.h
index a5d8edf3..7cf7ed92 100644
--- a/ksvg/impl/SVGMatrixImpl.h
+++ b/ksvg/impl/SVGMatrixImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGMatrixImpl_H
#define SVGMatrixImpl_H
-#include <qwmatrix.h>
+#include <tqwmatrix.h>
#include <dom/dom_misc.h>
@@ -35,7 +35,7 @@ class SVGMatrixImpl : public DOM::DomShared
{
public:
SVGMatrixImpl();
- SVGMatrixImpl(QWMatrix mat);
+ SVGMatrixImpl(TQWMatrix mat);
SVGMatrixImpl(double, double, double, double, double, double);
~SVGMatrixImpl();
@@ -88,8 +88,8 @@ public:
void reset();
// KSVG helper method
- QWMatrix &qmatrix();
- const QWMatrix &qmatrix() const;
+ TQWMatrix &qmatrix();
+ const TQWMatrix &qmatrix() const;
// Determine the scaling component of the matrix and factor it out. After
// this operation, the matrix has x and y scale of one.
@@ -99,8 +99,8 @@ public:
KSVGPolygon inverseMap(const KSVGPolygon& polygon) const;
private:
- void setMatrix(QWMatrix mat);
- QWMatrix m_mat;
+ void setMatrix(TQWMatrix mat);
+ TQWMatrix m_mat;
public:
KSVG_GET
diff --git a/ksvg/impl/SVGPaintImpl.cc b/ksvg/impl/SVGPaintImpl.cc
index c1818892..aa52811a 100644
--- a/ksvg/impl/SVGPaintImpl.cc
+++ b/ksvg/impl/SVGPaintImpl.cc
@@ -77,7 +77,7 @@ void SVGPaintImpl::setPaint(unsigned short paintType, const DOM::DOMString &/*ur
m_paintType = paintType;
}
-void SVGPaintImpl::setRGBColor(QColor color)
+void SVGPaintImpl::setRGBColor(TQColor color)
{
m_paintType = SVG_PAINTTYPE_RGBCOLOR;
SVGColorImpl::setRGBColor(color);
diff --git a/ksvg/impl/SVGPaintImpl.h b/ksvg/impl/SVGPaintImpl.h
index f2aa0691..03cb2153 100644
--- a/ksvg/impl/SVGPaintImpl.h
+++ b/ksvg/impl/SVGPaintImpl.h
@@ -46,7 +46,7 @@ public:
virtual void setRGBColor(const DOM::DOMString &rgbColor);
virtual void setRGBColor(int r, int g, int b);
- virtual void setRGBColor(QColor color);
+ virtual void setRGBColor(TQColor color);
virtual void setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor);
virtual void setColor(unsigned short colorType, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor);
diff --git a/ksvg/impl/SVGPaintServerImpl.cc b/ksvg/impl/SVGPaintServerImpl.cc
index b3275231..e87882b1 100644
--- a/ksvg/impl/SVGPaintServerImpl.cc
+++ b/ksvg/impl/SVGPaintServerImpl.cc
@@ -35,7 +35,7 @@ SVGPaintServerImpl::~SVGPaintServerImpl()
{
}
-CanvasPaintServer *SVGPaintServerImpl::paintServer(SVGDocumentImpl *doc, const QString& id)
+CanvasPaintServer *SVGPaintServerImpl::paintServer(SVGDocumentImpl *doc, const TQString& id)
{
CanvasPaintServer *pserver = 0;
SVGElementImpl *element = doc->rootElement()->getElementById(id);
diff --git a/ksvg/impl/SVGPaintServerImpl.h b/ksvg/impl/SVGPaintServerImpl.h
index df276758..d9f4a898 100644
--- a/ksvg/impl/SVGPaintServerImpl.h
+++ b/ksvg/impl/SVGPaintServerImpl.h
@@ -36,7 +36,7 @@ public:
CanvasPaintServer *paintServer() { return m_paintServer; }
- static CanvasPaintServer *paintServer(SVGDocumentImpl *doc, const QString& id);
+ static CanvasPaintServer *paintServer(SVGDocumentImpl *doc, const TQString& id);
protected:
CanvasPaintServer *m_paintServer;
diff --git a/ksvg/impl/SVGPathElementImpl.cc b/ksvg/impl/SVGPathElementImpl.cc
index f34600b8..506ad01a 100644
--- a/ksvg/impl/SVGPathElementImpl.cc
+++ b/ksvg/impl/SVGPathElementImpl.cc
@@ -446,7 +446,7 @@ Value SVGPathElementImpl::getValueProperty(ExecState *exec, int token) const
case D:
// if(!attributeMode)
{
- QString d;
+ TQString d;
unsigned int nrSegs = pathSegList()->numberOfItems();
SVGPathSegImpl *curseg = 0;
for(unsigned int i = 0; i < nrSegs; i++)
@@ -475,7 +475,7 @@ void SVGPathElementImpl::putValueProperty(ExecState *exec, int token, const Valu
case D:
{
pathSegList()->clear();
- QString d = value.toString(exec).qstring();
+ TQString d = value.toString(exec).qstring();
parseSVG(d, false);
if(hasMarkers())
m_markerData = MarkerData(pathSegList());
@@ -596,7 +596,7 @@ SVGPathElementImpl::MarkerData::MarkerData(SVGPathSegListImpl *path)
double previousCubicX2 = 0;
double previousCubicY2 = 0;
- QValueVector<SegmentData> pathSegmentData(numSegments);
+ TQValueVector<SegmentData> pathSegmentData(numSegments);
for(unsigned int i = 0; i < numSegments; i++)
{
@@ -797,7 +797,7 @@ SVGPathElementImpl::MarkerData::MarkerData(SVGPathSegListImpl *path)
}
}
-bool SVGPathElementImpl::MarkerData::getStartSlope(QValueVector<SegmentData> segments, unsigned int i, double *pStartSlope)
+bool SVGPathElementImpl::MarkerData::getStartSlope(TQValueVector<SegmentData> segments, unsigned int i, double *pStartSlope)
{
if(i > segments.count() - 1 || segments[i].type == PATHSEG_MOVETO_ABS || segments[i].type == PATHSEG_MOVETO_REL)
return false;
@@ -831,7 +831,7 @@ bool SVGPathElementImpl::MarkerData::getStartSlope(QValueVector<SegmentData> seg
}
}
-bool SVGPathElementImpl::MarkerData::getEndSlope(QValueVector<SegmentData> segments, unsigned int i, double *pEndSlope)
+bool SVGPathElementImpl::MarkerData::getEndSlope(TQValueVector<SegmentData> segments, unsigned int i, double *pEndSlope)
{
if(i > segments.count() - 1 || segments[i].type == PATHSEG_MOVETO_ABS || segments[i].type == PATHSEG_MOVETO_REL)
return false;
diff --git a/ksvg/impl/SVGPathElementImpl.h b/ksvg/impl/SVGPathElementImpl.h
index a9af56fc..8dda0f8f 100644
--- a/ksvg/impl/SVGPathElementImpl.h
+++ b/ksvg/impl/SVGPathElementImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGPathElementImpl_H
#define SVGPathElementImpl_H
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include "svgpathparser.h"
@@ -133,10 +133,10 @@ public:
int type;
};
- static bool getStartSlope(QValueVector<SegmentData> segments, unsigned int i, double *pStartSlope);
- static bool getEndSlope(QValueVector<SegmentData> segments, unsigned int i, double *pEndSlope);
+ static bool getStartSlope(TQValueVector<SegmentData> segments, unsigned int i, double *pStartSlope);
+ static bool getEndSlope(TQValueVector<SegmentData> segments, unsigned int i, double *pEndSlope);
- QValueVector<Marker> m_markers;
+ TQValueVector<Marker> m_markers;
};
MarkerData markerData() const { return m_markerData; }
diff --git a/ksvg/impl/SVGPathSegArcImpl.h b/ksvg/impl/SVGPathSegArcImpl.h
index f0e375d6..d8a1f8f9 100644
--- a/ksvg/impl/SVGPathSegArcImpl.h
+++ b/ksvg/impl/SVGPathSegArcImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_ARC_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "A"; }
- virtual QString toString() const { return QString("A %1 %2 %3 %4 %5 %6 %7").arg(m_r1).arg(m_r2).arg(m_angle).arg(m_largeArcFlag).arg(m_sweepFlag).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("A %1 %2 %3 %4 %5 %6 %7").arg(m_r1).arg(m_r2).arg(m_angle).arg(m_largeArcFlag).arg(m_sweepFlag).arg(m_x).arg(m_y); }
void setX(double x);
double x() const;
@@ -94,7 +94,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_ARC_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "a"; }
- virtual QString toString() const { return QString("a %1 %2 %3 %4 %5 %6 %7").arg(m_r1).arg(m_r2).arg(m_angle).arg(m_largeArcFlag).arg(m_sweepFlag).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("a %1 %2 %3 %4 %5 %6 %7").arg(m_r1).arg(m_r2).arg(m_angle).arg(m_largeArcFlag).arg(m_sweepFlag).arg(m_x).arg(m_y); }
void setX(double x);
double x() const;
diff --git a/ksvg/impl/SVGPathSegClosePathImpl.h b/ksvg/impl/SVGPathSegClosePathImpl.h
index c4cf63ce..c9c93ca0 100644
--- a/ksvg/impl/SVGPathSegClosePathImpl.h
+++ b/ksvg/impl/SVGPathSegClosePathImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CLOSEPATH; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "Z"; }
- virtual QString toString() const { return "Z"; }
+ virtual TQString toString() const { return "Z"; }
void setX(double x) { m_x = x; }
void setY(double y) { m_y = y; }
diff --git a/ksvg/impl/SVGPathSegCurvetoCubicImpl.h b/ksvg/impl/SVGPathSegCurvetoCubicImpl.h
index 8f408f91..83f4de6b 100644
--- a/ksvg/impl/SVGPathSegCurvetoCubicImpl.h
+++ b/ksvg/impl/SVGPathSegCurvetoCubicImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "C"; }
- virtual QString toString() const { return QString("C %1 %2 %3 %4 %5 %6").arg(m_x1).arg(m_y1).arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("C %1 %2 %3 %4 %5 %6").arg(m_x1).arg(m_y1).arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -88,7 +88,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "c"; }
- virtual QString toString() const { return QString("c %1 %2 %3 %4 %5 %6").arg(m_x1).arg(m_y1).arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("c %1 %2 %3 %4 %5 %6").arg(m_x1).arg(m_y1).arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h b/ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h
index 0def6514..3bcc8c87 100644
--- a/ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h
+++ b/ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "S"; }
- virtual QString toString() const { return QString("S %1 %2 %3 %4").arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("S %1 %2 %3 %4").arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -88,7 +88,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_SMOOTH_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "s"; }
- virtual QString toString() const { return QString("s %1 %2 %3 %4").arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("s %1 %2 %3 %4").arg(m_x2).arg(m_y2).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h b/ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h
index 6fe9ef15..6772605f 100644
--- a/ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h
+++ b/ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "Q"; }
- virtual QString toString() const { return QString("Q %1 %2 %3 %4").arg(m_x1).arg(m_y1).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("Q %1 %2 %3 %4").arg(m_x1).arg(m_y1).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -80,7 +80,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "q"; }
- virtual QString toString() const { return QString("q %1 %2 %3 %4").arg(m_x1).arg(m_y1).arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("q %1 %2 %3 %4").arg(m_x1).arg(m_y1).arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h b/ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h
index dffa3355..6c471bd6 100644
--- a/ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h
+++ b/ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "T"; }
- virtual QString toString() const { return QString("T %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("T %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -80,7 +80,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "t"; }
- virtual QString toString() const { return QString("t %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("t %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegImpl.h b/ksvg/impl/SVGPathSegImpl.h
index 64d8b5b0..8f07baea 100644
--- a/ksvg/impl/SVGPathSegImpl.h
+++ b/ksvg/impl/SVGPathSegImpl.h
@@ -39,7 +39,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_UNKNOWN; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return ""; }
- virtual QString toString() const { return ""; }
+ virtual TQString toString() const { return ""; }
virtual void getDeltasAndSlopes(double curx, double cury, double *dx, double *dy, double *startSlope, double *endSlope) const;
diff --git a/ksvg/impl/SVGPathSegLinetoHorizontalImpl.h b/ksvg/impl/SVGPathSegLinetoHorizontalImpl.h
index 020d29d7..52355c5d 100644
--- a/ksvg/impl/SVGPathSegLinetoHorizontalImpl.h
+++ b/ksvg/impl/SVGPathSegLinetoHorizontalImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "H"; }
- virtual QString toString() const { return QString("H %1").arg(m_x); }
+ virtual TQString toString() const { return TQString("H %1").arg(m_x); }
void setX(const double &);
double x() const;
@@ -68,7 +68,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "h"; }
- virtual QString toString() const { return QString("h %1").arg(m_x); }
+ virtual TQString toString() const { return TQString("h %1").arg(m_x); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegLinetoImpl.h b/ksvg/impl/SVGPathSegLinetoImpl.h
index 3e315022..78df51b9 100644
--- a/ksvg/impl/SVGPathSegLinetoImpl.h
+++ b/ksvg/impl/SVGPathSegLinetoImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "L"; }
- virtual QString toString() const { return QString("L %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("L %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -72,7 +72,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "l"; }
- virtual QString toString() const { return QString("l %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("l %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPathSegLinetoVerticalImpl.h b/ksvg/impl/SVGPathSegLinetoVerticalImpl.h
index c50906d9..1bbf41f4 100644
--- a/ksvg/impl/SVGPathSegLinetoVerticalImpl.h
+++ b/ksvg/impl/SVGPathSegLinetoVerticalImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "V"; }
- virtual QString toString() const { return QString("V %1").arg(m_y); }
+ virtual TQString toString() const { return TQString("V %1").arg(m_y); }
void setY(const double &);
double y() const;
@@ -68,7 +68,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "v"; }
- virtual QString toString() const { return QString("v %1").arg(m_y); }
+ virtual TQString toString() const { return TQString("v %1").arg(m_y); }
void setY(const double &);
double y() const;
diff --git a/ksvg/impl/SVGPathSegMovetoImpl.h b/ksvg/impl/SVGPathSegMovetoImpl.h
index dfbad355..6db95702 100644
--- a/ksvg/impl/SVGPathSegMovetoImpl.h
+++ b/ksvg/impl/SVGPathSegMovetoImpl.h
@@ -36,7 +36,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_ABS; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "M"; }
- virtual QString toString() const { return QString("M %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("M %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
@@ -72,7 +72,7 @@ public:
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_REL; }
virtual DOM::DOMString pathSegTypeAsLetter() const { return "m"; }
- virtual QString toString() const { return QString("m %1 %2").arg(m_x).arg(m_y); }
+ virtual TQString toString() const { return TQString("m %1 %2").arg(m_x).arg(m_y); }
void setX(const double &);
double x() const;
diff --git a/ksvg/impl/SVGPatternElementImpl.cc b/ksvg/impl/SVGPatternElementImpl.cc
index 0b591487..24d03239 100644
--- a/ksvg/impl/SVGPatternElementImpl.cc
+++ b/ksvg/impl/SVGPatternElementImpl.cc
@@ -47,7 +47,7 @@ using namespace KSVG;
#include "ksvg_bridge.h"
#include "ksvg_ecma.h"
-QValueList<SVGPatternElementImpl *> SVGPatternElementImpl::m_patternElements;
+TQValueList<SVGPatternElementImpl *> SVGPatternElementImpl::m_patternElements;
SVGPatternElementImpl::SVGPatternElementImpl(DOM::ElementImpl *impl) : SVGElementImpl(impl), SVGURIReferenceImpl(), SVGTestsImpl(), SVGLangSpaceImpl(), SVGExternalResourcesRequiredImpl(), SVGStylableImpl(this), SVGFitToViewBoxImpl(), SVGPaintServerImpl()
{
@@ -293,7 +293,7 @@ void SVGPatternElementImpl::setAttributes()
void SVGPatternElementImpl::flushCachedTiles()
{
- QValueList<SVGPatternElementImpl *>::iterator it;
+ TQValueList<SVGPatternElementImpl *>::iterator it;
for(it = m_patternElements.begin(); it != m_patternElements.end(); it++)
{
@@ -304,11 +304,11 @@ void SVGPatternElementImpl::flushCachedTiles()
}
}
-QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight)
+TQImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight)
{
converter()->finalize(referencingElement, ownerSVGElement(), patternUnits()->baseVal());
- QImage image(imageWidth, imageHeight, 32);
+ TQImage image(imageWidth, imageHeight, 32);
image.setAlphaBuffer(true);
if(m_canvas == 0)
@@ -376,15 +376,15 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
if(getOverflow())
{
- QPtrList<CanvasItem> items = m_canvas->allItems();
- QRect allItemsBBox;
+ TQPtrList<CanvasItem> items = m_canvas->allItems();
+ TQRect allItemsBBox;
- QPtrListIterator<CanvasItem> it(items);
+ TQPtrListIterator<CanvasItem> it(items);
CanvasItem *item;
while((item = *it) != 0)
{
- QRect bbox = item->bbox();
+ TQRect bbox = item->bbox();
allItemsBBox |= bbox;
++it;
}
@@ -404,7 +404,7 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
{
if(tileX != 0 || tileY !=0)
{
- QPoint panPoint(-(tileX * imageWidth), -(tileY * imageHeight));
+ TQPoint panPoint(-(tileX * imageWidth), -(tileY * imageHeight));
m_canvas->update(panPoint, false);
}
}
@@ -423,7 +423,7 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
return image;
}
-void SVGPatternElementImpl::reference(const QString &href)
+void SVGPatternElementImpl::reference(const TQString &href)
{
// Copy attributes
SVGElementImpl *src = ownerSVGElement()->getElementById(href);
@@ -445,7 +445,7 @@ void SVGPatternElementImpl::finalizePaintServer()
// inside a pattern has finished loading.
m_tileCache.clear();
- QString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
+ TQString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
if(!_href.isEmpty())
reference(_href);
}
@@ -483,8 +483,8 @@ SVGPatternElementImpl::Tile SVGPatternElementImpl::createTile(SVGShapeImpl *refe
if(imageWidth > 0 && imageHeight > 0)
{
- QSize size(imageWidth, imageHeight);
- QImage image;
+ TQSize size(imageWidth, imageHeight);
+ TQImage image;
if(!m_tileCache.find(size, image))
{
@@ -497,7 +497,7 @@ SVGPatternElementImpl::Tile SVGPatternElementImpl::createTile(SVGShapeImpl *refe
double adjustYScale = tileHeight / imageHeight;
matrix->scaleNonUniform(adjustXScale, adjustYScale);
- QWMatrix screenToTile = matrix->qmatrix().invert();
+ TQWMatrix screenToTile = matrix->qmatrix().invert();
tile = Tile(image, screenToTile);
}
diff --git a/ksvg/impl/SVGPatternElementImpl.h b/ksvg/impl/SVGPatternElementImpl.h
index 612fcfae..0c9abc8e 100644
--- a/ksvg/impl/SVGPatternElementImpl.h
+++ b/ksvg/impl/SVGPatternElementImpl.h
@@ -21,8 +21,8 @@
#ifndef SVGPatternElementImpl_H
#define SVGPatternElementImpl_H
-#include <qimage.h>
-#include <qwmatrix.h>
+#include <tqimage.h>
+#include <tqwmatrix.h>
#include "SVGTestsImpl.h"
#include "SVGElementImpl.h"
@@ -72,21 +72,21 @@ public:
SVGUnitConverter *converter() const { return m_converter; }
- void reference(const QString &href);
+ void reference(const TQString &href);
void finalizePaintServer();
class Tile
{
public:
Tile() {}
- Tile(const QImage& image, const QWMatrix& screenToTile) : m_image(image), m_screenToTile(screenToTile) {}
+ Tile(const TQImage& image, const TQWMatrix& screenToTile) : m_image(image), m_screenToTile(screenToTile) {}
- QImage image() const { return m_image; }
- const QWMatrix& screenToTile() const { return m_screenToTile; }
+ TQImage image() const { return m_image; }
+ const TQWMatrix& screenToTile() const { return m_screenToTile; }
private:
- QImage m_image;
- QWMatrix m_screenToTile;
+ TQImage m_image;
+ TQWMatrix m_screenToTile;
};
Tile createTile(SVGShapeImpl *referencingElement);
@@ -94,7 +94,7 @@ public:
static void flushCachedTiles();
private:
- QImage createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight);
+ TQImage createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight);
SVGAnimatedEnumerationImpl *m_patternUnits;
SVGAnimatedEnumerationImpl *m_patternContentUnits;
@@ -108,9 +108,9 @@ private:
KSVGCanvas *m_canvas;
SVGElementImpl *m_location; // the referenced element
- MinOneLRUCache<QSize, QImage> m_tileCache;
+ MinOneLRUCache<TQSize, TQImage> m_tileCache;
- static QValueList<SVGPatternElementImpl *> m_patternElements;
+ static TQValueList<SVGPatternElementImpl *> m_patternElements;
public:
KSVG_GET
diff --git a/ksvg/impl/SVGPreserveAspectRatioImpl.cc b/ksvg/impl/SVGPreserveAspectRatioImpl.cc
index c8660e61..f9e95405 100644
--- a/ksvg/impl/SVGPreserveAspectRatioImpl.cc
+++ b/ksvg/impl/SVGPreserveAspectRatioImpl.cc
@@ -20,8 +20,8 @@
#include <kdebug.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include "SVGPreserveAspectRatio.h"
@@ -68,13 +68,13 @@ unsigned short SVGPreserveAspectRatioImpl::meetOrSlice() const
return m_meetOrSlice;
}
-void SVGPreserveAspectRatioImpl::parsePreserveAspectRatio(const QString &str)
+void SVGPreserveAspectRatioImpl::parsePreserveAspectRatio(const TQString &str)
{
// Spec: set the defaults
setAlign(SVG_PRESERVEASPECTRATIO_NONE);
setMeetOrSlice(SVG_MEETORSLICE_MEET);
- QStringList params = QStringList::split(' ', str.simplifyWhiteSpace());
+ TQStringList params = TQStringList::split(' ', str.simplifyWhiteSpace());
if(params[0].compare("none") == 0)
m_align = SVG_PRESERVEASPECTRATIO_NONE;
diff --git a/ksvg/impl/SVGPreserveAspectRatioImpl.h b/ksvg/impl/SVGPreserveAspectRatioImpl.h
index 4a14a6b0..2a768521 100644
--- a/ksvg/impl/SVGPreserveAspectRatioImpl.h
+++ b/ksvg/impl/SVGPreserveAspectRatioImpl.h
@@ -25,7 +25,7 @@
#include "ksvg_lookup.h"
-class QString;
+class TQString;
namespace KSVG
{
@@ -43,7 +43,7 @@ public:
void setMeetOrSlice(unsigned short);
unsigned short meetOrSlice() const;
- void parsePreserveAspectRatio(const QString &);
+ void parsePreserveAspectRatio(const TQString &);
SVGMatrixImpl *getCTM(float logicX, float logicY, float logicWidth, float logicHeight,
float physX, float physY, float physWidth, float physHeight);
diff --git a/ksvg/impl/SVGRadialGradientElementImpl.cc b/ksvg/impl/SVGRadialGradientElementImpl.cc
index 8d00cf15..44ece001 100644
--- a/ksvg/impl/SVGRadialGradientElementImpl.cc
+++ b/ksvg/impl/SVGRadialGradientElementImpl.cc
@@ -192,12 +192,12 @@ void SVGRadialGradientElementImpl::setAttributes()
KSVG_SET_ALT_ATTRIBUTE(R, "50%")
}
-QMap<QString, DOM::DOMString> SVGRadialGradientElementImpl::gradientAttributes()
+TQMap<TQString, DOM::DOMString> SVGRadialGradientElementImpl::gradientAttributes()
{
setAttributes();
- QMap<QString, DOM::DOMString> gradAttributes;
- QDictIterator<DOM::DOMString> it(attributes());
+ TQMap<TQString, DOM::DOMString> gradAttributes;
+ TQDictIterator<DOM::DOMString> it(attributes());
for(; it.current(); ++it)
{
diff --git a/ksvg/impl/SVGRadialGradientElementImpl.h b/ksvg/impl/SVGRadialGradientElementImpl.h
index 2f6c58c1..54edea08 100644
--- a/ksvg/impl/SVGRadialGradientElementImpl.h
+++ b/ksvg/impl/SVGRadialGradientElementImpl.h
@@ -43,7 +43,7 @@ public:
virtual void setAttributes();
- virtual QMap<QString, DOM::DOMString> gradientAttributes();
+ virtual TQMap<TQString, DOM::DOMString> gradientAttributes();
private:
SVGAnimatedLengthImpl *m_cx;
diff --git a/ksvg/impl/SVGRectImpl.cc b/ksvg/impl/SVGRectImpl.cc
index 1f6c0d51..3889ec79 100644
--- a/ksvg/impl/SVGRectImpl.cc
+++ b/ksvg/impl/SVGRectImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qrect.h>
+#include <tqrect.h>
#include "SVGRectImpl.h"
@@ -40,7 +40,7 @@ SVGRectImpl::SVGRectImpl()
m_height = 0;
}
-SVGRectImpl::SVGRectImpl(const QRect &other)
+SVGRectImpl::SVGRectImpl(const TQRect &other)
{
(*this) = other;
}
@@ -89,13 +89,13 @@ float SVGRectImpl::height() const
return m_height;
}
-QRect SVGRectImpl::qrect() const
+TQRect SVGRectImpl::qrect() const
{
// ceil() so the integer rectangle contains the whole real one.
- return QRect(int(m_x), int(m_y), int(ceil(m_width)), int(ceil(m_height)));
+ return TQRect(int(m_x), int(m_y), int(ceil(m_width)), int(ceil(m_height)));
}
-SVGRectImpl &SVGRectImpl::operator=(const QRect &other)
+SVGRectImpl &SVGRectImpl::operator=(const TQRect &other)
{
m_x = other.x();
m_y = other.y();
diff --git a/ksvg/impl/SVGRectImpl.h b/ksvg/impl/SVGRectImpl.h
index e0b0e889..dab7bbcf 100644
--- a/ksvg/impl/SVGRectImpl.h
+++ b/ksvg/impl/SVGRectImpl.h
@@ -25,7 +25,7 @@
#include "ksvg_lookup.h"
-class QRect;
+class TQRect;
namespace KSVG
{
@@ -34,7 +34,7 @@ class SVGRectImpl : public DOM::DomShared
{
public:
SVGRectImpl();
- SVGRectImpl(const QRect &);
+ SVGRectImpl(const TQRect &);
virtual ~SVGRectImpl();
void setX(float x);
@@ -49,9 +49,9 @@ public:
void setHeight(float height);
float height() const;
- QRect qrect() const;
+ TQRect qrect() const;
- SVGRectImpl &operator=(const QRect &);
+ SVGRectImpl &operator=(const TQRect &);
private:
float m_x;
diff --git a/ksvg/impl/SVGSVGElementImpl.cc b/ksvg/impl/SVGSVGElementImpl.cc
index b54cf521..c9b82445 100644
--- a/ksvg/impl/SVGSVGElementImpl.cc
+++ b/ksvg/impl/SVGSVGElementImpl.cc
@@ -20,9 +20,9 @@
#include <kdebug.h>
-#include <qtimer.h>
-#include <qstringlist.h>
-#include <qdatetime.h>
+#include <tqtimer.h>
+#include <tqstringlist.h>
+#include <tqdatetime.h>
#define USE_VALGRIND 0
@@ -283,7 +283,7 @@ float SVGSVGElementImpl::currentScale() const
return m_currentScale;
}
-void SVGSVGElementImpl::setCurrentTranslate(const QPoint &p)
+void SVGSVGElementImpl::setCurrentTranslate(const TQPoint &p)
{
if(m_currentTranslate->x() != p.x() || m_currentTranslate->y() != p.y())
{
@@ -319,7 +319,7 @@ void SVGSVGElementImpl::forceRedraw()
CALLTREE_ZERO_STATS();
#endif
- QTime timer;
+ TQTime timer;
timer.start();
if(ownerDoc() && ownerDoc()->canvas())
@@ -461,7 +461,7 @@ SVGMatrixImpl *SVGSVGElementImpl::createSVGMatrix()
{
// Spec: Creates an SVGMatrix object outside of any document
// trees. The object is initialized to the identity matrix.
- SVGMatrixImpl *ret = new SVGMatrixImpl(QWMatrix(1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F));
+ SVGMatrixImpl *ret = new SVGMatrixImpl(TQWMatrix(1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F));
ret->ref();
return ret;
}
@@ -503,7 +503,7 @@ SVGElementImpl *SVGSVGElementImpl::getElementById(const DOM::DOMString &elementI
return m_map[elementId.string()];
}
-void SVGSVGElementImpl::addToIdMap(const QString &id, SVGElementImpl *obj)
+void SVGSVGElementImpl::addToIdMap(const TQString &id, SVGElementImpl *obj)
{
m_map.insert(id, obj);
}
@@ -542,15 +542,15 @@ const SVGMatrixImpl *SVGSVGElementImpl::localMatrix()
return m_localMatrix;
}
-void SVGSVGElementImpl::setClip(const QString &clip)
+void SVGSVGElementImpl::setClip(const TQString &clip)
{
// TODO : this routine should probably be shared between all classes that establish new viewports (Rob)
if(!clip.startsWith("rect(") || !clip.endsWith(")"))
return;
- QString work = clip.mid(5, clip.length() - 6);
- QStringList substrings = QStringList::split(',', clip);
- QStringList::ConstIterator it = substrings.begin();
+ TQString work = clip.mid(5, clip.length() - 6);
+ TQStringList substrings = TQStringList::split(',', clip);
+ TQStringList::ConstIterator it = substrings.begin();
if(m_clip[0])
m_clip[0]->deref();
@@ -584,13 +584,13 @@ void SVGSVGElementImpl::setClip(const QString &clip)
m_clip[3]->setValueAsString(*it);
}
-QRect SVGSVGElementImpl::clip()
+TQRect SVGSVGElementImpl::clip()
{
// Get viewport in user coordinates.
- QRect v(0, 0, m_viewport->qrect().width(), m_viewport->qrect().height());
+ TQRect v(0, 0, m_viewport->qrect().width(), m_viewport->qrect().height());
SVGMatrixImpl *ctm = getCTM();
- QRect r = ctm->qmatrix().invert().mapRect(v);
+ TQRect r = ctm->qmatrix().invert().mapRect(v);
ctm->deref();
if(m_clip[0])
@@ -614,14 +614,14 @@ void SVGSVGElementImpl::setRootParentScreenCTM(SVGMatrixImpl *screenCTM)
screenCTM->ref();
}
-bool SVGSVGElementImpl::prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *mev)
+bool SVGSVGElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *mev)
{
// mop: central bool var which turns to true once the current "mouseover" element has been found
bool ret = false, dorerender = false;
SVGElementImpl *elem = 0;
SVGMatrixImpl *ctm = getCTM();
- QPoint userA = ctm->qmatrix().invert().map(a);
+ TQPoint userA = ctm->qmatrix().invert().map(a);
ctm->deref();
// Just check the lastTarget once (mop)
diff --git a/ksvg/impl/SVGSVGElementImpl.h b/ksvg/impl/SVGSVGElementImpl.h
index 2405458e..d2667a35 100644
--- a/ksvg/impl/SVGSVGElementImpl.h
+++ b/ksvg/impl/SVGSVGElementImpl.h
@@ -23,7 +23,7 @@
#include <dom/dom_string.h>
-#include <qmap.h>
+#include <tqmap.h>
#include "SVGTestsImpl.h"
#include "SVGElementImpl.h"
@@ -91,7 +91,7 @@ public:
float currentScale() const;
SVGPointImpl *currentTranslate();
- void setCurrentTranslate(const QPoint &p);
+ void setCurrentTranslate(const TQPoint &p);
unsigned long suspendRedraw(unsigned long max_wait_milliseconds);
void unsuspendRedraw(unsigned long suspend_handle_id);
@@ -122,19 +122,19 @@ public:
static SVGTransformImpl *createSVGTransformFromMatrix(SVGMatrixImpl *matrix);
SVGElementImpl *getElementById(const DOM::DOMString &elementId);
- void addToIdMap(const QString &id, SVGElementImpl *obj);
+ void addToIdMap(const TQString &id, SVGElementImpl *obj);
virtual SVGMatrixImpl *getCTM();
virtual const SVGMatrixImpl *localMatrix();
void setAttributes();
- bool prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *event);
+ bool prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *event);
virtual bool isContainer() const { return true; }
- virtual void setClip(const QString &clip);
- virtual QRect clip();
+ virtual void setClip(const TQString &clip);
+ virtual TQRect clip();
void setRootParentScreenCTM(SVGMatrixImpl *screenCTM);
@@ -156,7 +156,7 @@ private:
SVGLengthImpl *m_clip[4];
- QMap<QString, SVGElementImpl *> m_map;
+ TQMap<TQString, SVGElementImpl *> m_map;
// Transformation provided by the 'parent' of the outermost svg element
SVGMatrixImpl *m_rootParentScreenCTM;
diff --git a/ksvg/impl/SVGScriptElementImpl.cc b/ksvg/impl/SVGScriptElementImpl.cc
index 9a211425..230adf25 100644
--- a/ksvg/impl/SVGScriptElementImpl.cc
+++ b/ksvg/impl/SVGScriptElementImpl.cc
@@ -22,7 +22,7 @@
#include <kio/job.h>
#include <kfilterdev.h>
-#include <qbuffer.h>
+#include <tqbuffer.h>
#include "SVGDocumentImpl.h"
#include "SVGAnimatedStringImpl.h"
@@ -35,7 +35,7 @@ using namespace KSVG;
#include "ksvg_bridge.h"
#include "ksvg_ecma.h"
-SVGScriptElementImpl::SVGScriptElementImpl(DOM::ElementImpl *impl) : QObject(), SVGElementImpl(impl), SVGURIReferenceImpl(), SVGExternalResourcesRequiredImpl()
+SVGScriptElementImpl::SVGScriptElementImpl(DOM::ElementImpl *impl) : TQObject(), SVGElementImpl(impl), SVGURIReferenceImpl(), SVGExternalResourcesRequiredImpl()
{
KSVG_EMPTY_FLAGS
@@ -66,7 +66,7 @@ void SVGScriptElementImpl::setAttributes()
KSVG_SET_ALT_ATTRIBUTE(Type, "text/ecmascript")
// Remote downloading
- QString href = m_href->baseVal().string();
+ TQString href = m_href->baseVal().string();
if(!href.isEmpty())
{
@@ -75,14 +75,14 @@ void SVGScriptElementImpl::setAttributes()
if(m_job == 0)
m_job = KIO::get(url, false, false);
- connect(m_job, SIGNAL(data(KIO::Job *, const QByteArray &)), this, SLOT(slotData(KIO::Job *, const QByteArray &)));
- connect(m_job, SIGNAL(result(KIO::Job *)), this, SLOT(slotResult(KIO::Job *)));
+ connect(m_job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)), this, TQT_SLOT(slotData(KIO::Job *, const TQByteArray &)));
+ connect(m_job, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotResult(KIO::Job *)));
}
}
-void SVGScriptElementImpl::slotData(KIO::Job *, const QByteArray &data)
+void SVGScriptElementImpl::slotData(KIO::Job *, const TQByteArray &data)
{
- QDataStream dataStream(m_data, IO_WriteOnly | IO_Append);
+ TQDataStream dataStream(m_data, IO_WriteOnly | IO_Append);
dataStream.writeRawBytes(data.data(), data.size());
}
@@ -94,13 +94,13 @@ void SVGScriptElementImpl::slotResult(KIO::Job *)
m_data.resize(m_data.size() + 1);
m_data[m_data.size() - 1] = '\0';
- QBuffer buf(m_data);
- QIODevice *dev = KFilterDev::device(&buf, "application/x-gzip", false);
- QByteArray contents;
+ TQBuffer buf(m_data);
+ TQIODevice *dev = KFilterDev::device(&buf, "application/x-gzip", false);
+ TQByteArray contents;
if(dev->open(IO_ReadOnly))
contents = dev->readAll();
delete dev;
- m_text = QString::fromUtf8(contents.data());
+ m_text = TQString::fromUtf8(contents.data());
m_data.resize(0);
}
@@ -124,7 +124,7 @@ bool SVGScriptElementImpl::executeScript(DOM::Node node)
return SVGScriptElementImpl::executeScript(node, ownerDoc(), m_text);
}
-bool SVGScriptElementImpl::executeScript(DOM::Node node, SVGDocumentImpl *document, const QString &text)
+bool SVGScriptElementImpl::executeScript(DOM::Node node, SVGDocumentImpl *document, const TQString &text)
{
#ifdef KJS_VERBOSE
kdDebug(6070) << "SVGScriptElementImpl::executeScript n=" << node.nodeName().string().latin1() << "(" << (node.isNull() ? 0 : node.nodeType()) << ") " << text << endl;
diff --git a/ksvg/impl/SVGScriptElementImpl.h b/ksvg/impl/SVGScriptElementImpl.h
index 95affee2..f3662fa6 100644
--- a/ksvg/impl/SVGScriptElementImpl.h
+++ b/ksvg/impl/SVGScriptElementImpl.h
@@ -25,7 +25,7 @@
#include <kio/jobclasses.h>
-#include <qobject.h>
+#include <tqobject.h>
#include "SVGElementImpl.h"
#include "SVGURIReferenceImpl.h"
@@ -36,7 +36,7 @@
namespace KSVG
{
-class SVGScriptElementImpl : public QObject,
+class SVGScriptElementImpl : public TQObject,
public SVGElementImpl,
public SVGURIReferenceImpl,
public SVGExternalResourcesRequiredImpl
@@ -54,16 +54,16 @@ public:
bool canExecuteScript();
bool executeScript(DOM::Node node);
- static bool executeScript(DOM::Node node, SVGDocumentImpl *document, const QString &text);
+ static bool executeScript(DOM::Node node, SVGDocumentImpl *document, const TQString &text);
private slots:
- void slotData(KIO::Job *, const QByteArray &);
+ void slotData(KIO::Job *, const TQByteArray &);
void slotResult(KIO::Job *);
private:
KIO::TransferJob *m_job;
- QByteArray m_data;
- QString m_text;
+ TQByteArray m_data;
+ TQString m_text;
bool m_added;
public:
diff --git a/ksvg/impl/SVGSetElementImpl.h b/ksvg/impl/SVGSetElementImpl.h
index ab9f5ec5..0a0c050c 100644
--- a/ksvg/impl/SVGSetElementImpl.h
+++ b/ksvg/impl/SVGSetElementImpl.h
@@ -25,7 +25,7 @@
#include "SVGAnimationElementImpl.h"
-class QTimer;
+class TQTimer;
namespace KSVG
{
diff --git a/ksvg/impl/SVGShapeImpl.cc b/ksvg/impl/SVGShapeImpl.cc
index 68e89aaa..d8ef45c5 100644
--- a/ksvg/impl/SVGShapeImpl.cc
+++ b/ksvg/impl/SVGShapeImpl.cc
@@ -77,7 +77,7 @@ SVGRectImpl *SVGShapeImpl::getBBoxInternal()
SVGRectImpl *ret = SVGSVGElementImpl::createSVGRect();
if(m_item)
{
- QRect r = m_item->bbox();
+ TQRect r = m_item->bbox();
ret->setX(r.x());
ret->setY(r.y());
ret->setWidth(r.width());
@@ -86,7 +86,7 @@ SVGRectImpl *SVGShapeImpl::getBBoxInternal()
return ret;
}
-bool SVGShapeImpl::prepareMouseEvent(const QPoint &p, const QPoint &, SVGMouseEventImpl *mev)
+bool SVGShapeImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &, SVGMouseEventImpl *mev)
{
// TODO : pointer-events should be stored here, not in SVGStylableImpl.
SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(this);
diff --git a/ksvg/impl/SVGShapeImpl.h b/ksvg/impl/SVGShapeImpl.h
index ae183251..c61038d2 100644
--- a/ksvg/impl/SVGShapeImpl.h
+++ b/ksvg/impl/SVGShapeImpl.h
@@ -24,7 +24,7 @@
#include "SVGElementImpl.h"
#include "CanvasItem.h"
-class QPoint;
+class TQPoint;
namespace KSVG
{
@@ -43,7 +43,7 @@ public:
virtual SVGRectImpl *getBBox();
virtual SVGRectImpl *getBBoxInternal();
- virtual bool prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *mev);
+ virtual bool prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *mev);
virtual bool directRender();
virtual bool isContainer() const { return false; }
diff --git a/ksvg/impl/SVGStringListImpl.cc b/ksvg/impl/SVGStringListImpl.cc
index b70adfdd..58a0dc0f 100644
--- a/ksvg/impl/SVGStringListImpl.cc
+++ b/ksvg/impl/SVGStringListImpl.cc
@@ -68,11 +68,11 @@ Value SVGStringListImplProtoFunc::call(ExecState *exec, Object &thisObj, const L
return obj->call(exec, static_cast<SVGList<SharedString> *>(obj), args, id);
}
-QString SVGStringListImpl::join(const QString &seperator) const
+TQString SVGStringListImpl::join(const TQString &seperator) const
{
SVGStringListImpl *self = const_cast<SVGStringListImpl *>(this);
- QString result;
+ TQString result;
if(!self->getItem(0))
return result;
diff --git a/ksvg/impl/SVGStringListImpl.h b/ksvg/impl/SVGStringListImpl.h
index 7f69a3c9..8d92b660 100644
--- a/ksvg/impl/SVGStringListImpl.h
+++ b/ksvg/impl/SVGStringListImpl.h
@@ -35,7 +35,7 @@ class SharedString : public DOM::DomShared,
{
public:
SharedString() : DOM::DomShared(), DOM::DOMString() { }
- SharedString(const QString &string) : DOM::DomShared(), DOM::DOMString(string) { }
+ SharedString(const TQString &string) : DOM::DomShared(), DOM::DOMString(string) { }
SharedString(const SharedString &string) : DOM::DomShared(), DOM::DOMString(string) { }
SharedString(DOM::DOMString *string) : DOM::DomShared(), DOM::DOMString(string->implementation()) { }
virtual ~SharedString() { }
@@ -69,7 +69,7 @@ public:
KJS::Value getValueProperty(KJS::ExecState *exec, int token) const;
- QString join(const QString &seperator) const;
+ TQString join(const TQString &seperator) const;
};
}
diff --git a/ksvg/impl/SVGStylableImpl.cc b/ksvg/impl/SVGStylableImpl.cc
index 096ebf93..17a3e8cd 100644
--- a/ksvg/impl/SVGStylableImpl.cc
+++ b/ksvg/impl/SVGStylableImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qrect.h>
+#include <tqrect.h>
#include "CanvasItem.h"
#include "KSVGCanvas.h"
@@ -484,7 +484,7 @@ void SVGStylableImpl::processStyle()
if(parentStyle)
m_startMarker = parentStyle->getStartMarker();
else
- m_startMarker = QString::null;
+ m_startMarker = TQString::null;
}
// Spec: default "none"
@@ -493,7 +493,7 @@ void SVGStylableImpl::processStyle()
if(parentStyle)
m_midMarker = parentStyle->getMidMarker();
else
- m_midMarker = QString::null;
+ m_midMarker = TQString::null;
}
// Spec: default "none"
@@ -502,7 +502,7 @@ void SVGStylableImpl::processStyle()
if(parentStyle)
m_endMarker = parentStyle->getEndMarker();
else
- m_endMarker = QString::null;
+ m_endMarker = TQString::null;
}
}
@@ -526,9 +526,9 @@ bool SVGStylableImpl::isFilled() const
m_fillColor->paintType() != SVG_PAINTTYPE_URI_NONE;
}
-QString SVGStylableImpl::extractUrlId(const QString &url)
+TQString SVGStylableImpl::extractUrlId(const TQString &url)
{
- QString id;
+ TQString id;
if(url.startsWith("url(#"))
{
@@ -541,14 +541,14 @@ QString SVGStylableImpl::extractUrlId(const QString &url)
return id;
}
-void SVGStylableImpl::setMarkers(const QString &marker)
+void SVGStylableImpl::setMarkers(const TQString &marker)
{
setStartMarker(marker);
setMidMarker(marker);
setEndMarker(marker);
}
-void SVGStylableImpl::setStartMarker(const QString &startMarker)
+void SVGStylableImpl::setStartMarker(const TQString &startMarker)
{
if(startMarker.startsWith("url(#"))
{
@@ -556,10 +556,10 @@ void SVGStylableImpl::setStartMarker(const QString &startMarker)
m_startMarker = startMarker.mid(idstart, startMarker.length() - idstart - 1);
}
else if(startMarker == "none")
- m_startMarker = QString::null;
+ m_startMarker = TQString::null;
}
-void SVGStylableImpl::setMidMarker(const QString &midMarker)
+void SVGStylableImpl::setMidMarker(const TQString &midMarker)
{
if(midMarker.startsWith("url(#"))
{
@@ -567,10 +567,10 @@ void SVGStylableImpl::setMidMarker(const QString &midMarker)
m_midMarker = midMarker.mid(idstart, midMarker.length() - idstart - 1);
}
else if(midMarker == "none")
- m_midMarker = QString::null;
+ m_midMarker = TQString::null;
}
-void SVGStylableImpl::setEndMarker(const QString &endMarker)
+void SVGStylableImpl::setEndMarker(const TQString &endMarker)
{
if(endMarker.startsWith("url(#"))
{
@@ -578,7 +578,7 @@ void SVGStylableImpl::setEndMarker(const QString &endMarker)
m_endMarker = endMarker.mid(idstart, endMarker.length() - idstart - 1);
}
else if(endMarker == "none")
- m_endMarker = QString::null;
+ m_endMarker = TQString::null;
}
bool SVGStylableImpl::hasMarkers() const
@@ -586,7 +586,7 @@ bool SVGStylableImpl::hasMarkers() const
return !m_startMarker.isEmpty() || !m_midMarker.isEmpty() || !m_endMarker.isEmpty();
}
-void SVGStylableImpl::setPaint(const QString &param, SVGPaintImpl *svgPaint)
+void SVGStylableImpl::setPaint(const TQString &param, SVGPaintImpl *svgPaint)
{
if(param.stripWhiteSpace() == "none")
svgPaint->setPaint(SVG_PAINTTYPE_NONE, DOM::DOMString(""), DOM::DOMString(""));
@@ -596,48 +596,48 @@ void SVGStylableImpl::setPaint(const QString &param, SVGPaintImpl *svgPaint)
setColor(param, svgPaint);
}
-void SVGStylableImpl::setColor(const QString &param, SVGColorImpl *svgColor)
+void SVGStylableImpl::setColor(const TQString &param, SVGColorImpl *svgColor)
{
if(param.stripWhiteSpace().startsWith("#"))
{
if(param.contains("icc-color"))
{
- QString first = param.left(7);
- QString last = param.right(param.length() - 8);
+ TQString first = param.left(7);
+ TQString last = param.right(param.length() - 8);
svgColor->setRGBColorICCColor(first, last);
}
else
{
- QColor color;
+ TQColor color;
color.setNamedColor(param.stripWhiteSpace());
svgColor->setRGBColor(color);
}
}
else if(param.stripWhiteSpace().startsWith("rgb("))
{
- QString parse = param.stripWhiteSpace();
- QStringList colors = QStringList::split(',', parse);
- QString r = colors[0].right((colors[0].length() - 4));
- QString g = colors[1];
- QString b = colors[2].left((colors[2].length() - 1));
+ TQString parse = param.stripWhiteSpace();
+ TQStringList colors = TQStringList::split(',', parse);
+ TQString r = colors[0].right((colors[0].length() - 4));
+ TQString g = colors[1];
+ TQString b = colors[2].left((colors[2].length() - 1));
if(r.contains("%"))
{
r = r.left(r.length() - 1);
- r = QString::number(int((double(255 * r.toDouble()) / 100.0)));
+ r = TQString::number(int((double(255 * r.toDouble()) / 100.0)));
}
if(g.contains("%"))
{
g = g.left(g.length() - 1);
- g = QString::number(int((double(255 * g.toDouble()) / 100.0)));
+ g = TQString::number(int((double(255 * g.toDouble()) / 100.0)));
}
if(b.contains("%"))
{
b = b.left(b.length() - 1);
- b = QString::number(int((double(255 * b.toDouble()) / 100.0)));
+ b = TQString::number(int((double(255 * b.toDouble()) / 100.0)));
}
svgColor->setRGBColor(int(r.toFloat()), int(g.toFloat()), int(b.toFloat()));
@@ -651,16 +651,16 @@ void SVGStylableImpl::setColor(const QString &param, SVGColorImpl *svgColor)
}
}
-QRect SVGStylableImpl::clip()
+TQRect SVGStylableImpl::clip()
{
- return QRect();
+ return TQRect();
}
-void SVGStylableImpl::setClip(const QString &)
+void SVGStylableImpl::setClip(const TQString &)
{
}
-float SVGStylableImpl::fontSizeForText(const QString &value)
+float SVGStylableImpl::fontSizeForText(const TQString &value)
{
float ret = -1;
@@ -772,7 +772,7 @@ void SVGStylableImpl::putValueProperty(ExecState *exec, int token, const Value &
if(!(attr & KJS::Internal))
return;
- QString param = value.toString(exec).qstring();
+ TQString param = value.toString(exec).qstring();
if (param.isEmpty())
return;
@@ -788,10 +788,10 @@ void SVGStylableImpl::putValueProperty(ExecState *exec, int token, const Value &
if(!m_object)
return;
- QStringList substyles = QStringList::split(';', param);
- for(QStringList::Iterator it = substyles.begin(); it != substyles.end(); ++it)
+ TQStringList substyles = TQStringList::split(';', param);
+ for(TQStringList::Iterator it = substyles.begin(); it != substyles.end(); ++it)
{
- QStringList substyle = QStringList::split(':', (*it));
+ TQStringList substyle = TQStringList::split(':', (*it));
m_object->setAttributeInternal(substyle[0].stripWhiteSpace(), substyle[1].stripWhiteSpace());
}
break;
@@ -946,7 +946,7 @@ void SVGStylableImpl::putValueProperty(ExecState *exec, int token, const Value &
// Hacks
// #1 Replace "'" characters by ""
- param = param.replace('\'', QString::null);
+ param = param.replace('\'', TQString::null);
// #2 Replace "MS-Gothic" by "MS Gothic"
param = param.replace("MS-Gothic", "MS Gothic");
// #3 Replace "Helvetica" by "Arial"
@@ -983,8 +983,8 @@ void SVGStylableImpl::putValueProperty(ExecState *exec, int token, const Value &
{
// CSS2 allows multiple decorations
m_textDecoration = TDNONE;
- QStringList decorations = QStringList::split(' ', param);
- for(QStringList::Iterator it = decorations.begin(); it != decorations.end(); ++it)
+ TQStringList decorations = TQStringList::split(' ', param);
+ for(TQStringList::Iterator it = decorations.begin(); it != decorations.end(); ++it)
{
if(*it == "underline")
m_textDecoration |= UNDERLINE;
diff --git a/ksvg/impl/SVGStylableImpl.h b/ksvg/impl/SVGStylableImpl.h
index 0a399a4c..50a37568 100644
--- a/ksvg/impl/SVGStylableImpl.h
+++ b/ksvg/impl/SVGStylableImpl.h
@@ -21,14 +21,14 @@
#ifndef SVGStylableImpl_H
#define SVGStylableImpl_H
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <dom/dom_string.h>
#include "ksvg_lookup.h"
-class QRect;
+class TQRect;
// from libart, but now no dependency
typedef enum
@@ -210,7 +210,7 @@ public:
SVGStylableImpl(SVGElementImpl *object);
virtual ~SVGStylableImpl();
- static void setColor(const QString &, SVGColorImpl *);
+ static void setColor(const TQString &, SVGColorImpl *);
STYLE_GET(SVGAnimatedLengthImpl *, DashOffset, m_dashOffset)
STYLE_GET(SVGAnimatedLengthListImpl *, DashArray, m_dashArray)
@@ -221,17 +221,17 @@ public:
STYLE_GET(SVGAnimatedLengthImpl *, StrokeWidth, m_strokeWidth)
STYLE_GET(SVGStringListImpl *, FontFamily, m_fontFamily);
STYLE_GET(float, FontSize, m_fontSize)
- STYLE_GET(QString, LetterSpacing, m_letterSpacing)
- STYLE_GET(QString, WordSpacing, m_wordSpacing)
- STYLE_GET(QString, FontWeight, m_fontWeight)
- STYLE_GET(QString, ClipPath, m_clipPath)
- STYLE_GET(QString, Mask, m_mask)
- STYLE_GET(QString, StartMarker, m_startMarker)
- STYLE_GET(QString, MidMarker, m_midMarker)
- STYLE_GET(QString, EndMarker, m_endMarker)
- STYLE_GET(QString, BaselineShift, m_baselineShift)
- STYLE_GET(QString, GlyphOrientationVertical, m_glyphOrientationVertical)
- STYLE_GET(QString, GlyphOrientationHorizontal, m_glyphOrientationHorizontal)
+ STYLE_GET(TQString, LetterSpacing, m_letterSpacing)
+ STYLE_GET(TQString, WordSpacing, m_wordSpacing)
+ STYLE_GET(TQString, FontWeight, m_fontWeight)
+ STYLE_GET(TQString, ClipPath, m_clipPath)
+ STYLE_GET(TQString, Mask, m_mask)
+ STYLE_GET(TQString, StartMarker, m_startMarker)
+ STYLE_GET(TQString, MidMarker, m_midMarker)
+ STYLE_GET(TQString, EndMarker, m_endMarker)
+ STYLE_GET(TQString, BaselineShift, m_baselineShift)
+ STYLE_GET(TQString, GlyphOrientationVertical, m_glyphOrientationVertical)
+ STYLE_GET(TQString, GlyphOrientationHorizontal, m_glyphOrientationHorizontal)
STYLE_GET(float, Opacity, m_opacity)
STYLE_GET(float, FillOpacity, m_fillOpacity)
STYLE_GET(float, StrokeOpacity, m_strokeOpacity)
@@ -261,10 +261,10 @@ public:
STYLE_HAS(EndMarker, m_endMarker)
// Special "set" cases
- void setStartMarker(const QString &);
- void setMidMarker(const QString &);
- void setEndMarker(const QString &);
- void setMarkers(const QString &);
+ void setStartMarker(const TQString &);
+ void setMidMarker(const TQString &);
+ void setEndMarker(const TQString &);
+ void setMarkers(const TQString &);
// Special "has" cases
bool hasMarkers() const;
@@ -277,17 +277,17 @@ public:
void processStyle();
// Special virtual functions
- virtual void setClip(const QString &clip);
- virtual QRect clip();
+ virtual void setClip(const TQString &clip);
+ virtual TQRect clip();
protected:
- float fontSizeForText(const QString &);
+ float fontSizeForText(const TQString &);
SVGElementImpl *m_object;
private:
- void setPaint(const QString &, SVGPaintImpl *);
- QString extractUrlId(const QString& string);
+ void setPaint(const TQString &, SVGPaintImpl *);
+ TQString extractUrlId(const TQString& string);
unsigned long long m_flags;
diff --git a/ksvg/impl/SVGTRefElementImpl.cc b/ksvg/impl/SVGTRefElementImpl.cc
index c1c7e540..73cb2532 100644
--- a/ksvg/impl/SVGTRefElementImpl.cc
+++ b/ksvg/impl/SVGTRefElementImpl.cc
@@ -46,9 +46,9 @@ void SVGTRefElementImpl::setAttributes()
href()->setBaseVal(DOM::DOMString(SVGURIReferenceImpl::getTarget(_href.string())));
// get the text of the referenced element
- QString text;
+ TQString text;
- QString url = _href.string().stripWhiteSpace(), filename, id;
+ TQString url = _href.string().stripWhiteSpace(), filename, id;
if(!SVGURIReferenceImpl::parseURIReference(url, filename, id))
return;
diff --git a/ksvg/impl/SVGTSpanElementImpl.cc b/ksvg/impl/SVGTSpanElementImpl.cc
index 7265c66e..2d3fef15 100644
--- a/ksvg/impl/SVGTSpanElementImpl.cc
+++ b/ksvg/impl/SVGTSpanElementImpl.cc
@@ -44,7 +44,7 @@ long SVGTSpanElementImpl::getNumberOfChars()
return text().length();
}
-QString SVGTSpanElementImpl::text()
+TQString SVGTSpanElementImpl::text()
{
// Otherwhise some js scripts which require a child, don't work (Niko)
if(!hasChildNodes())
diff --git a/ksvg/impl/SVGTSpanElementImpl.h b/ksvg/impl/SVGTSpanElementImpl.h
index 26e4903d..631b7896 100644
--- a/ksvg/impl/SVGTSpanElementImpl.h
+++ b/ksvg/impl/SVGTSpanElementImpl.h
@@ -34,7 +34,7 @@ public:
SVGTSpanElementImpl(DOM::ElementImpl *);
virtual ~SVGTSpanElementImpl();
- QString text();
+ TQString text();
virtual long getNumberOfChars();
diff --git a/ksvg/impl/SVGTestsImpl.cc b/ksvg/impl/SVGTestsImpl.cc
index 8bbccf80..b88de60a 100644
--- a/ksvg/impl/SVGTestsImpl.cc
+++ b/ksvg/impl/SVGTestsImpl.cc
@@ -52,17 +52,17 @@ SVGTestsImpl::~SVGTestsImpl()
m_systemLanguage->deref();
}
-void SVGTestsImpl::parseRequiredFeatures(const QString &/*value*/)
+void SVGTestsImpl::parseRequiredFeatures(const TQString &/*value*/)
{
// FIXME
}
-void SVGTestsImpl::parseRequiredExtensions(const QString &value)
+void SVGTestsImpl::parseRequiredExtensions(const TQString &value)
{
m_requiredExtensions->appendItem(new SharedString(value));
}
-void SVGTestsImpl::parseSystemLanguage(const QString &value)
+void SVGTestsImpl::parseSystemLanguage(const TQString &value)
{
m_systemLanguage->appendItem(new SharedString(value));
}
@@ -91,7 +91,7 @@ bool SVGTestsImpl::ok()
}
for(unsigned int i = 0;i < m_systemLanguage->numberOfItems();i++)
{
- QString value = m_systemLanguage->getItem(i)->string();
+ TQString value = m_systemLanguage->getItem(i)->string();
if(value.isEmpty() || value != (KGlobal::locale()->language()).left(2))
return false;
}
diff --git a/ksvg/impl/SVGTestsImpl.h b/ksvg/impl/SVGTestsImpl.h
index c5b05a5f..25c0e02b 100644
--- a/ksvg/impl/SVGTestsImpl.h
+++ b/ksvg/impl/SVGTestsImpl.h
@@ -35,9 +35,9 @@ public:
SVGTestsImpl();
~SVGTestsImpl();
- void parseRequiredFeatures(const QString &value);
- void parseRequiredExtensions(const QString &value);
- void parseSystemLanguage(const QString &value);
+ void parseRequiredFeatures(const TQString &value);
+ void parseRequiredExtensions(const TQString &value);
+ void parseSystemLanguage(const TQString &value);
SVGStringListImpl *requiredFeatures() const;
SVGStringListImpl *requiredExtensions() const;
diff --git a/ksvg/impl/SVGTextContentElementImpl.cc b/ksvg/impl/SVGTextContentElementImpl.cc
index f51d8807..302b54b7 100644
--- a/ksvg/impl/SVGTextContentElementImpl.cc
+++ b/ksvg/impl/SVGTextContentElementImpl.cc
@@ -59,9 +59,9 @@ SVGTextContentElementImpl::~SVGTextContentElementImpl()
m_textLength->deref();
}
-QString SVGTextContentElementImpl::textDirectionAwareText()
+TQString SVGTextContentElementImpl::textDirectionAwareText()
{
- QString text;
+ TQString text;
if(hasChildNodes())
{
@@ -73,11 +73,11 @@ QString SVGTextContentElementImpl::textDirectionAwareText()
if(node.nodeType() == TEXT_NODE)
{
DOM::Text textNode = node;
- QString temp = textNode.data().string();
+ TQString temp = textNode.data().string();
if(!ltr)
{
- QString convert = temp;
+ TQString convert = temp;
for(int i = temp.length(); i > 0; i--)
convert[temp.length() - i] = temp[i - 1];
@@ -237,7 +237,7 @@ void SVGTextContentElementImpl::putValueProperty(ExecState *exec, int token, con
break;
case LengthAdjust:
{
- QString temp = value.toString(exec).qstring();
+ TQString temp = value.toString(exec).qstring();
if(temp == "spacingAndGlyphs")
m_lengthAdjust->setBaseVal(LENGTHADJUST_SPACINGANDGLYPHS);
else if(temp == "spacing")
diff --git a/ksvg/impl/SVGTextContentElementImpl.h b/ksvg/impl/SVGTextContentElementImpl.h
index 26bbc041..bd962037 100644
--- a/ksvg/impl/SVGTextContentElementImpl.h
+++ b/ksvg/impl/SVGTextContentElementImpl.h
@@ -50,7 +50,7 @@ public:
SVGTextContentElementImpl(DOM::ElementImpl *impl);
virtual ~SVGTextContentElementImpl();
- QString textDirectionAwareText();
+ TQString textDirectionAwareText();
virtual T2P::GlyphLayoutParams *layoutParams() const;
diff --git a/ksvg/impl/SVGTextElementImpl.cc b/ksvg/impl/SVGTextElementImpl.cc
index 634c227d..82a53ea9 100644
--- a/ksvg/impl/SVGTextElementImpl.cc
+++ b/ksvg/impl/SVGTextElementImpl.cc
@@ -49,7 +49,7 @@ long SVGTextElementImpl::getNumberOfChars()
return text().length();
}
-QString SVGTextElementImpl::text()
+TQString SVGTextElementImpl::text()
{
// Otherwhise some js scripts which require a child, don't work (Niko)
if(!hasChildNodes())
@@ -80,7 +80,7 @@ void SVGTextElementImpl::createItem(KSVGCanvas *c )
{
m_item = c->createText(this);
// Set up bbox before insert(), as that may render the item
- QRect rect = m_item->bbox();
+ TQRect rect = m_item->bbox();
m_bboxX = rect.x();
m_bboxY = rect.y();
m_bboxWidth = rect.width();
@@ -89,7 +89,7 @@ void SVGTextElementImpl::createItem(KSVGCanvas *c )
}
}
-bool SVGTextElementImpl::prepareMouseEvent(const QPoint &p, const QPoint &, SVGMouseEventImpl *mev)
+bool SVGTextElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &, SVGMouseEventImpl *mev)
{
// TODO : pointer-events should be stored here, not in SVGStylableImpl.
SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(this);
diff --git a/ksvg/impl/SVGTextElementImpl.h b/ksvg/impl/SVGTextElementImpl.h
index e0c2ca8d..fe87848a 100644
--- a/ksvg/impl/SVGTextElementImpl.h
+++ b/ksvg/impl/SVGTextElementImpl.h
@@ -37,7 +37,7 @@ public:
SVGTextElementImpl(DOM::ElementImpl *);
virtual ~SVGTextElementImpl();
- QString text();
+ TQString text();
virtual long getNumberOfChars();
@@ -45,7 +45,7 @@ public:
virtual SVGRectImpl *getBBox();
- virtual bool prepareMouseEvent(const QPoint &p, const QPoint &a, SVGMouseEventImpl *mev);
+ virtual bool prepareMouseEvent(const TQPoint &p, const TQPoint &a, SVGMouseEventImpl *mev);
private:
int m_bboxX, m_bboxY, m_bboxWidth, m_bboxHeight;
diff --git a/ksvg/impl/SVGTextPathElementImpl.cc b/ksvg/impl/SVGTextPathElementImpl.cc
index ec218046..78c272f8 100644
--- a/ksvg/impl/SVGTextPathElementImpl.cc
+++ b/ksvg/impl/SVGTextPathElementImpl.cc
@@ -75,7 +75,7 @@ SVGAnimatedEnumerationImpl *SVGTextPathElementImpl::spacing() const
return m_spacing;
}
-QString SVGTextPathElementImpl::text()
+TQString SVGTextPathElementImpl::text()
{
// Otherwhise some js scripts which require a child, don't work (Niko)
if(!hasChildNodes())
@@ -161,11 +161,11 @@ void SVGTextPathElementImpl::putValueProperty(ExecState *exec, int token, const
{
case StartOffset:
{
- QString param = value.toString(exec).qstring();
+ TQString param = value.toString(exec).qstring();
if(param.endsWith("%"))
{
- QString value = param.left(param.length() - 1);
+ TQString value = param.left(param.length() - 1);
bool ok = false;
double dValue = value.toDouble(&ok);
if(ok)
@@ -182,7 +182,7 @@ void SVGTextPathElementImpl::putValueProperty(ExecState *exec, int token, const
}
case Method:
{
- QString param = value.toString(exec).qstring();
+ TQString param = value.toString(exec).qstring();
if(param == "align")
method()->setBaseVal(TEXTPATH_METHODTYPE_ALIGN);
@@ -195,7 +195,7 @@ void SVGTextPathElementImpl::putValueProperty(ExecState *exec, int token, const
}
case Spacing:
{
- QString param = value.toString(exec).qstring();
+ TQString param = value.toString(exec).qstring();
if(param == "auto")
spacing()->setBaseVal(TEXTPATH_SPACINGTYPE_AUTO);
diff --git a/ksvg/impl/SVGTextPathElementImpl.h b/ksvg/impl/SVGTextPathElementImpl.h
index 8231f0cd..98a88d33 100644
--- a/ksvg/impl/SVGTextPathElementImpl.h
+++ b/ksvg/impl/SVGTextPathElementImpl.h
@@ -34,7 +34,7 @@ public:
SVGTextPathElementImpl(DOM::ElementImpl *);
virtual ~SVGTextPathElementImpl();
- QString text();
+ TQString text();
SVGAnimatedLengthImpl *startOffset() const;
SVGAnimatedEnumerationImpl *method() const;
diff --git a/ksvg/impl/SVGTimeScheduler.cc b/ksvg/impl/SVGTimeScheduler.cc
index efff77ac..caddf81f 100644
--- a/ksvg/impl/SVGTimeScheduler.cc
+++ b/ksvg/impl/SVGTimeScheduler.cc
@@ -26,11 +26,11 @@
using namespace KSVG;
-SVGTimer::SVGTimer(QObject *scheduler, unsigned int ms, bool singleShot)
+SVGTimer::SVGTimer(TQObject *scheduler, unsigned int ms, bool singleShot)
{
m_ms = ms;
m_singleShot = singleShot;
- m_timer = new QTimer(scheduler);
+ m_timer = new TQTimer(scheduler);
}
SVGTimer::~SVGTimer()
@@ -38,19 +38,19 @@ SVGTimer::~SVGTimer()
delete m_timer;
}
-bool SVGTimer::operator==(const QTimer *timer)
+bool SVGTimer::operator==(const TQTimer *timer)
{
return (m_timer == timer);
}
-const QTimer *SVGTimer::qtimer() const
+const TQTimer *SVGTimer::qtimer() const
{
return m_timer;
}
-void SVGTimer::start(QObject *receiver, const char *member)
+void SVGTimer::start(TQObject *receiver, const char *member)
{
- QObject::connect(m_timer, SIGNAL(timeout()), receiver, member);
+ TQObject::connect(m_timer, TQT_SIGNAL(timeout()), receiver, member);
m_timer->start(m_ms, m_singleShot);
}
@@ -79,7 +79,7 @@ void SVGTimer::notifyAll()
if(m_notifyList.isEmpty())
return;
- QValueList<SVGElementImpl *> elements;
+ TQValueList<SVGElementImpl *> elements;
for(unsigned int i = m_notifyList.count();i > 0; i--)
{
SVGElementImpl *element = m_notifyList[i - 1];
@@ -98,7 +98,7 @@ void SVGTimer::notifyAll()
}
// Optimized update logic (to avoid 4 updates, on the same element)
- QValueList<SVGElementImpl *>::iterator it2;
+ TQValueList<SVGElementImpl *>::iterator it2;
for(it2 = elements.begin(); it2 != elements.end(); ++it2)
{
SVGShapeImpl *shape = dynamic_cast<SVGShapeImpl *>(*it2);
@@ -122,7 +122,7 @@ void SVGTimer::removeNotify(SVGElementImpl *element)
const unsigned int SVGTimeScheduler::staticTimerInterval = 15; // milliseconds
-SVGTimeScheduler::SVGTimeScheduler(SVGDocumentImpl *doc) : QObject(), m_doc(doc)
+SVGTimeScheduler::SVGTimeScheduler(SVGDocumentImpl *doc) : TQObject(), m_doc(doc)
{
// Create static interval timers but don't start it yet!
m_intervalTimer = new SVGTimer(this, staticTimerInterval, false);
@@ -165,7 +165,7 @@ void SVGTimeScheduler::startAnimations()
{
SVGTimer *svgTimer = *it;
if(svgTimer && !svgTimer->isActive())
- svgTimer->start(this, SLOT(slotTimerNotify()));
+ svgTimer->start(this, TQT_SLOT(slotTimerNotify()));
}
}
@@ -174,7 +174,7 @@ void SVGTimeScheduler::toggleAnimations()
if(m_intervalTimer->isActive())
m_intervalTimer->stop();
else
- m_intervalTimer->start(this, SLOT(slotTimerNotify()));
+ m_intervalTimer->start(this, TQT_SLOT(slotTimerNotify()));
}
bool SVGTimeScheduler::animationsPaused() const
@@ -184,7 +184,7 @@ bool SVGTimeScheduler::animationsPaused() const
void SVGTimeScheduler::slotTimerNotify()
{
- QTimer *senderTimer = const_cast<QTimer *>(static_cast<const QTimer *>(sender()));
+ TQTimer *senderTimer = const_cast<TQTimer *>(static_cast<const TQTimer *>(sender()));
SVGTimer *svgTimer = 0;
SVGTimerList::iterator it;
@@ -223,7 +223,7 @@ void SVGTimeScheduler::slotTimerNotify()
// by the previous call, and now all connections to the interval timer
// are created and now we just need to fire that timer (Niko)
if(svgTimer != m_intervalTimer && !m_intervalTimer->isActive())
- m_intervalTimer->start(this, SLOT(slotTimerNotify()));
+ m_intervalTimer->start(this, TQT_SLOT(slotTimerNotify()));
}
float SVGTimeScheduler::elapsed() const
diff --git a/ksvg/impl/SVGTimeScheduler.h b/ksvg/impl/SVGTimeScheduler.h
index ae4c6d37..52f9c9b9 100644
--- a/ksvg/impl/SVGTimeScheduler.h
+++ b/ksvg/impl/SVGTimeScheduler.h
@@ -21,10 +21,10 @@
#ifndef SVGTimeScheduler_H
#define SVGTimeScheduler_H
-#include <qtimer.h>
-#include <qdatetime.h>
-#include <qobject.h>
-#include <qvaluelist.h>
+#include <tqtimer.h>
+#include <tqdatetime.h>
+#include <tqobject.h>
+#include <tqvaluelist.h>
#include "SVGElementImpl.h"
#include "SVGAnimationElementImpl.h"
@@ -32,17 +32,17 @@
namespace KSVG
{
-typedef QValueList<SVGElementImpl *> SVGNotifyList;
+typedef TQValueList<SVGElementImpl *> SVGNotifyList;
class SVGTimer
{
public:
- SVGTimer(QObject *scheduler, unsigned int ms, bool singleShot);
+ SVGTimer(TQObject *scheduler, unsigned int ms, bool singleShot);
~SVGTimer();
- bool operator==(const QTimer *timer);
- const QTimer *qtimer() const;
+ bool operator==(const TQTimer *timer);
+ const TQTimer *qtimer() const;
- void start(QObject *receiver, const char *member);
+ void start(TQObject *receiver, const char *member);
void stop();
bool isActive() const;
@@ -58,11 +58,11 @@ private:
unsigned int m_ms;
bool m_invoked, m_singleShot;
- QTimer *m_timer;
+ TQTimer *m_timer;
SVGNotifyList m_notifyList;
};
-typedef QValueList<SVGTimer *> SVGTimerList;
+typedef TQValueList<SVGTimer *> SVGTimerList;
class SVGDocumentImpl;
class SVGTimeScheduler : public QObject
{
@@ -94,7 +94,7 @@ private:
SVGDocumentImpl *m_doc;
SVGTimerList m_timerList;
SVGTimer *m_intervalTimer;
- QTime m_creationTime;
+ TQTime m_creationTime;
};
}
diff --git a/ksvg/impl/SVGTransformImpl.cc b/ksvg/impl/SVGTransformImpl.cc
index 53ea9bf3..5b2d754a 100644
--- a/ksvg/impl/SVGTransformImpl.cc
+++ b/ksvg/impl/SVGTransformImpl.cc
@@ -120,27 +120,27 @@ void SVGTransformImpl::setSkewY(double angle)
m_matrix->skewY(angle);
}
-QString SVGTransformImpl::toString() const
+TQString SVGTransformImpl::toString() const
{
switch (m_type)
{
case SVG_TRANSFORM_UNKNOWN:
- return QString();
+ return TQString();
case SVG_TRANSFORM_MATRIX:
- return QString("matrix(" + QString::number(m_matrix->a()) + " " + QString::number(m_matrix->b()) + " " + QString::number(m_matrix->c()) + " " + QString::number(m_matrix->d()) + " " + QString::number(m_matrix->e()) + " " + QString::number(m_matrix->f()) + ")");
+ return TQString("matrix(" + TQString::number(m_matrix->a()) + " " + TQString::number(m_matrix->b()) + " " + TQString::number(m_matrix->c()) + " " + TQString::number(m_matrix->d()) + " " + TQString::number(m_matrix->e()) + " " + TQString::number(m_matrix->f()) + ")");
case SVG_TRANSFORM_TRANSLATE:
- return QString("translate(" + QString::number(m_matrix->e()) + " " + QString::number(m_matrix->f()) + ")");
+ return TQString("translate(" + TQString::number(m_matrix->e()) + " " + TQString::number(m_matrix->f()) + ")");
case SVG_TRANSFORM_SCALE:
- return QString("scale(" + QString::number(m_matrix->a()) + " " + QString::number(m_matrix->d()) + ")");
+ return TQString("scale(" + TQString::number(m_matrix->a()) + " " + TQString::number(m_matrix->d()) + ")");
case SVG_TRANSFORM_ROTATE:
- return QString("rotate(" + QString::number(m_angle) + " " + QString::number(m_cx) + " " + QString::number(m_cy) + ")");
+ return TQString("rotate(" + TQString::number(m_angle) + " " + TQString::number(m_cx) + " " + TQString::number(m_cy) + ")");
case SVG_TRANSFORM_SKEWX:
- return QString("skewX(" + QString::number(m_angle) + ")");
+ return TQString("skewX(" + TQString::number(m_angle) + ")");
case SVG_TRANSFORM_SKEWY:
- return QString("skewY(" + QString::number(m_angle) + ")");
+ return TQString("skewY(" + TQString::number(m_angle) + ")");
default:
kdWarning() << "Unknown transform type " << m_type << endl;
- return QString();
+ return TQString();
}
}
diff --git a/ksvg/impl/SVGTransformImpl.h b/ksvg/impl/SVGTransformImpl.h
index 69d71b8f..c52ffdf2 100644
--- a/ksvg/impl/SVGTransformImpl.h
+++ b/ksvg/impl/SVGTransformImpl.h
@@ -26,7 +26,7 @@
#include "ksvg_lookup.h"
-class QString;
+class TQString;
namespace KSVG
{
@@ -51,7 +51,7 @@ public:
void setSkewX(double);
void setSkewY(double);
- QString toString() const;
+ TQString toString() const;
private:
// mop: we have to store the optional rotate stuff :( anyone with a better solution please fix that ;)
diff --git a/ksvg/impl/SVGTransformableImpl.h b/ksvg/impl/SVGTransformableImpl.h
index edff5831..0ccd4908 100644
--- a/ksvg/impl/SVGTransformableImpl.h
+++ b/ksvg/impl/SVGTransformableImpl.h
@@ -21,7 +21,7 @@
#ifndef SVGTransformableImpl_H
#define SVGTransformableImpl_H
-#include <qstring.h>
+#include <tqstring.h>
#include "SVGLocatableImpl.h"
diff --git a/ksvg/impl/SVGURIReferenceImpl.cc b/ksvg/impl/SVGURIReferenceImpl.cc
index a68b7442..8a6fda76 100644
--- a/ksvg/impl/SVGURIReferenceImpl.cc
+++ b/ksvg/impl/SVGURIReferenceImpl.cc
@@ -48,7 +48,7 @@ SVGAnimatedStringImpl *SVGURIReferenceImpl::href() const
return m_href;
}
-bool SVGURIReferenceImpl::parseURIReference(const QString &urireference, QString &uri, QString &elementreference)
+bool SVGURIReferenceImpl::parseURIReference(const TQString &urireference, TQString &uri, TQString &elementreference)
{
int seperator = urireference.find("#");
@@ -61,13 +61,13 @@ bool SVGURIReferenceImpl::parseURIReference(const QString &urireference, QString
return true;
}
-bool SVGURIReferenceImpl::isUrl(const QString &url)
+bool SVGURIReferenceImpl::isUrl(const TQString &url)
{
- QString temp = url.stripWhiteSpace();
+ TQString temp = url.stripWhiteSpace();
return temp.startsWith("url(#") && temp.endsWith(")");
}
-QString SVGURIReferenceImpl::getTarget(const QString &url)
+TQString SVGURIReferenceImpl::getTarget(const TQString &url)
{
if(url.startsWith("url(")) // URI References, ie. fill:url(#target)
{
diff --git a/ksvg/impl/SVGURIReferenceImpl.h b/ksvg/impl/SVGURIReferenceImpl.h
index d6ee42c5..8d6500b0 100644
--- a/ksvg/impl/SVGURIReferenceImpl.h
+++ b/ksvg/impl/SVGURIReferenceImpl.h
@@ -23,7 +23,7 @@
#include "ksvg_lookup.h"
-class QString;
+class TQString;
namespace KSVG
{
@@ -36,9 +36,9 @@ public:
~SVGURIReferenceImpl();
SVGAnimatedStringImpl *href() const;
- static QString getTarget(const QString &url);
- static bool isUrl(const QString &url);
- static bool parseURIReference(const QString &urireference, QString &uri, QString &elementreference);
+ static TQString getTarget(const TQString &url);
+ static bool isUrl(const TQString &url);
+ static bool parseURIReference(const TQString &urireference, TQString &uri, TQString &elementreference);
protected:
SVGAnimatedStringImpl *m_href;
diff --git a/ksvg/impl/SVGUnitConverter.h b/ksvg/impl/SVGUnitConverter.h
index 90c95796..78eb2528 100644
--- a/ksvg/impl/SVGUnitConverter.h
+++ b/ksvg/impl/SVGUnitConverter.h
@@ -21,7 +21,7 @@
#ifndef SVGUnitConverter_H
#define SVGUnitConverter_H
-#include <qptrdict.h>
+#include <tqptrdict.h>
#include <dom/dom_string.h>
@@ -41,12 +41,12 @@ public:
void add(SVGAnimatedLengthImpl *obj)
{
UnitData *data = new UnitData();
- data->valueAsString = QString::null;
+ data->valueAsString = TQString::null;
m_dict.insert(obj, data);
}
- void modify(SVGAnimatedLengthImpl *obj, const QString &value)
+ void modify(SVGAnimatedLengthImpl *obj, const TQString &value)
{
UnitData *data = m_dict.find(obj);
@@ -62,7 +62,7 @@ public:
if(!user && !bbox) // Invalid unit type
return;
- QPtrDictIterator<UnitData> it(m_dict);
+ TQPtrDictIterator<UnitData> it(m_dict);
for(; it.current(); ++it)
{
UnitData *data = it.current();
@@ -87,10 +87,10 @@ public:
private:
typedef struct
{
- QString valueAsString; // Original value
+ TQString valueAsString; // Original value
} UnitData;
- QPtrDict<UnitData> m_dict;
+ TQPtrDict<UnitData> m_dict;
};
}
diff --git a/ksvg/impl/SVGUseElementImpl.cc b/ksvg/impl/SVGUseElementImpl.cc
index 3bd38a42..457436cb 100644
--- a/ksvg/impl/SVGUseElementImpl.cc
+++ b/ksvg/impl/SVGUseElementImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qstring.h>
+#include <tqstring.h>
#include "KSVGLoader.h"
#include "KSVGCanvas.h"
@@ -169,7 +169,7 @@ void SVGUseElementImpl::putValueProperty(ExecState *exec, int token, const Value
break;
case Href:
{
- QString url = value.toString(exec).qstring();
+ TQString url = value.toString(exec).qstring();
href()->setBaseVal(SVGURIReferenceImpl::getTarget(url));
break;
}
@@ -212,7 +212,7 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
{
// ownerSVGElement()->getElementById() is wrong here.
// It could reference elements from other documents when using getURL (Niko)
- QString filename, id;
+ TQString filename, id;
DOM::DOMString url = getAttribute("href");
if(!SVGURIReferenceImpl::parseURIReference(url.string(), filename, id))
return;
@@ -223,7 +223,7 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
KURL fragmentUrl(ownerDoc()->baseUrl(), url.string());
id = fragmentUrl.ref();
- fragmentUrl.setRef(QString::null);
+ fragmentUrl.setRef(TQString::null);
orig = KSVGLoader::getSVGFragment(fragmentUrl, ownerDoc(), id);
}
@@ -250,11 +250,11 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
SVGElementImpl *clone = orig->cloneNode(true);
// Apply the use-correction
- QString trans;
+ TQString trans;
trans += " translate(";
- trans += QString::number(x()->baseVal()->value());
+ trans += TQString::number(x()->baseVal()->value());
trans += " ";
- trans += QString::number(y()->baseVal()->value());
+ trans += TQString::number(y()->baseVal()->value());
trans += ")";
// Apply the transform attribute and render the element
@@ -304,7 +304,7 @@ void SVGUseElementImpl::createItem(KSVGCanvas *c)
dynamic_cast<SVGLocatableImpl *>(parent)->updateCachedScreenCTM(screenCTM());
// Redirect local ecma event handlers to the correspondingElement
- QPtrListIterator<SVGRegisteredEventListener> it(eventListeners());
+ TQPtrListIterator<SVGRegisteredEventListener> it(eventListeners());
SVGRegisteredEventListener *eventListener;
while((eventListener = it.current()) != 0)
{
diff --git a/ksvg/impl/SVGViewSpecImpl.cc b/ksvg/impl/SVGViewSpecImpl.cc
index 07412cc5..6a225626 100644
--- a/ksvg/impl/SVGViewSpecImpl.cc
+++ b/ksvg/impl/SVGViewSpecImpl.cc
@@ -20,7 +20,7 @@
#include <kdebug.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "SVGElementImpl.h"
#include "SVGViewSpecImpl.h"
@@ -75,15 +75,15 @@ DOM::DOMString SVGViewSpecImpl::viewTargetString() const
return m_viewTargetString;
}
-bool SVGViewSpecImpl::parseViewSpec(const QString &s)
+bool SVGViewSpecImpl::parseViewSpec(const TQString &s)
{
if(!s.startsWith("svgView("))
return false;
// remove 'svgView(' and ')'
- QStringList subAttrs = QStringList::split(';', s.mid(8));
+ TQStringList subAttrs = TQStringList::split(';', s.mid(8));
- for(QStringList::ConstIterator it = subAttrs.begin() ; it != subAttrs.end(); ++it)
+ for(TQStringList::ConstIterator it = subAttrs.begin() ; it != subAttrs.end(); ++it)
{
if((*it).startsWith("viewBox("))
m_viewBoxString = (*it).mid(8);
diff --git a/ksvg/impl/SVGViewSpecImpl.h b/ksvg/impl/SVGViewSpecImpl.h
index f9e01e48..2bdf849b 100644
--- a/ksvg/impl/SVGViewSpecImpl.h
+++ b/ksvg/impl/SVGViewSpecImpl.h
@@ -47,7 +47,7 @@ public:
DOM::DOMString transformString() const;
DOM::DOMString viewTargetString() const;
- bool parseViewSpec(const QString &);
+ bool parseViewSpec(const TQString &);
private:
SVGTransformListImpl *m_transform;
diff --git a/ksvg/impl/SVGWindowImpl.cc b/ksvg/impl/SVGWindowImpl.cc
index b19847a4..476185f1 100644
--- a/ksvg/impl/SVGWindowImpl.cc
+++ b/ksvg/impl/SVGWindowImpl.cc
@@ -26,7 +26,7 @@
#include <ksvg_ecma.h>
#include <ksvg_scriptinterpreter.h>
-#include <qstylesheet.h>
+#include <tqstylesheet.h>
#include <kurl.h>
#include <kmessagebox.h>
@@ -113,7 +113,7 @@ void SVGWindowImpl::postURL(const DOM::DOMString &/*uri*/, const DOM::DOMString
DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short level)
{
- QString ret;
+ TQString ret;
if(node.isNull()) return ret;
SVGElementImpl *elem = m_document->getElementFromHandle(node.handle());
if(node.nodeType() == DOM::Node::DOCUMENT_NODE)
@@ -130,7 +130,7 @@ DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short le
printIndentation(ret, level);
ret += "<" + elem->tagName().string();
// handle attrs
- QDictIterator<DOM::DOMString> it(elem->attributes());
+ TQDictIterator<DOM::DOMString> it(elem->attributes());
for(;it.current(); ++it)
ret += " " + it.currentKey() + "=\"" + it.current()->string() + '\"';
if(elem->firstChild().isNull()) // no children
@@ -147,7 +147,7 @@ DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short le
return ret;
}
-void SVGWindowImpl::printIndentation(QString &ret, unsigned short level, unsigned short indent)
+void SVGWindowImpl::printIndentation(TQString &ret, unsigned short level, unsigned short indent)
{
for(int i = 0;i < indent * level;i++)
ret += " ";
@@ -163,21 +163,21 @@ long SVGWindowImpl::setTimeout(const DOM::DOMString &/*code*/, const long &/*del
return 0;
}
-void SVGWindowImpl::alert(const DOM::DOMString &message, const QString &title)
+void SVGWindowImpl::alert(const DOM::DOMString &message, const TQString &title)
{
- KMessageBox::error(0L, QStyleSheet::convertFromPlainText(message.string()), title);
+ KMessageBox::error(0L, TQStyleSheet::convertFromPlainText(message.string()), title);
}
-bool SVGWindowImpl::confirm(const DOM::DOMString &message, const QString &title)
+bool SVGWindowImpl::confirm(const DOM::DOMString &message, const TQString &title)
{
- return KMessageBox::warningContinueCancel(0L, QStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue;
+ return KMessageBox::warningContinueCancel(0L, TQStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue;
}
-DOM::DOMString SVGWindowImpl::prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const QString &)
+DOM::DOMString SVGWindowImpl::prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const TQString &)
{
bool ok;
- QString str;
- str = KInputDialog::getText(i18n("Prompt"), QStyleSheet::convertFromPlainText(message.string()), _default.string(), &ok);
+ TQString str;
+ str = KInputDialog::getText(i18n("Prompt"), TQStyleSheet::convertFromPlainText(message.string()), _default.string(), &ok);
if(ok)
return str;
else
diff --git a/ksvg/impl/SVGWindowImpl.h b/ksvg/impl/SVGWindowImpl.h
index 0861809e..72e95741 100644
--- a/ksvg/impl/SVGWindowImpl.h
+++ b/ksvg/impl/SVGWindowImpl.h
@@ -54,12 +54,12 @@ public:
DOM::DOMString printNode(const DOM::Node &node, unsigned short level = 0);
long setInterval(const DOM::DOMString &code, const long &delay);
long setTimeout(const DOM::DOMString &code, const long &delay);
- static void alert(const DOM::DOMString &message, const QString &title = "SVG Window");
- static bool confirm(const DOM::DOMString &message, const QString &title = "SVG Window");
- static DOM::DOMString prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const QString &title = "SVG Window");
+ static void alert(const DOM::DOMString &message, const TQString &title = "SVG Window");
+ static bool confirm(const DOM::DOMString &message, const TQString &title = "SVG Window");
+ static DOM::DOMString prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const TQString &title = "SVG Window");
private:
- void printIndentation(QString &ret, unsigned short level, unsigned short indent = 2);
+ void printIndentation(TQString &ret, unsigned short level, unsigned short indent = 2);
private:
//StyleSheet m_defaultStyleSheet;
diff --git a/ksvg/impl/libs/libtext2path/src/QtUnicode.cpp b/ksvg/impl/libs/libtext2path/src/QtUnicode.cpp
index 694ed5c7..33855a81 100644
--- a/ksvg/impl/libs/libtext2path/src/QtUnicode.cpp
+++ b/ksvg/impl/libs/libtext2path/src/QtUnicode.cpp
@@ -38,8 +38,8 @@
using namespace T2P;
// START OF GENERATED DATA
-// copied form qfont.h, as we can't include it in tools. Do not modify without
-// changing the script enum in qfont.h aswell.
+// copied form tqfont.h, as we can't include it in tools. Do not modify without
+// changing the script enum in tqfont.h aswell.
const unsigned char QtUnicode::otherScripts [120] = {
#define SCRIPTS_02 0
0xaf, Latin, 0xff, SpacingModifiers, // row 0x02, index 0
diff --git a/ksvg/impl/svgpathparser.cc b/ksvg/impl/svgpathparser.cc
index 0f7521e0..590ac2ba 100644
--- a/ksvg/impl/svgpathparser.cc
+++ b/ksvg/impl/svgpathparser.cc
@@ -18,7 +18,7 @@
*/
#include "svgpathparser.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <math.h>
// parses the number into parameter number
@@ -95,11 +95,11 @@ SVGPathParser::getCoord( const char *ptr, double &number )
}
void
-SVGPathParser::parseSVG( const QString &s, bool process )
+SVGPathParser::parseSVG( const TQString &s, bool process )
{
if(!s.isEmpty())
{
- QString d = s;
+ TQString d = s;
d = d.replace(',', ' ');
d = d.simplifyWhiteSpace();
const char *ptr = d.latin1();
diff --git a/ksvg/impl/svgpathparser.h b/ksvg/impl/svgpathparser.h
index 3a9495d0..efbe4b79 100644
--- a/ksvg/impl/svgpathparser.h
+++ b/ksvg/impl/svgpathparser.h
@@ -20,7 +20,7 @@
#ifndef __SVGPATHPARSER_H__
#define __SVGPATHPARSER_H__
-class QString;
+class TQString;
namespace KSVG
{
@@ -41,7 +41,7 @@ namespace KSVG
class SVGPathParser
{
public:
- void parseSVG( const QString &d, bool process = false );
+ void parseSVG( const TQString &d, bool process = false );
static const char *getCoord( const char *, double & );