summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/diapathparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/kiviosdk/diapathparser.cpp')
-rw-r--r--kivio/kiviopart/kiviosdk/diapathparser.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kivio/kiviopart/kiviosdk/diapathparser.cpp b/kivio/kiviopart/kiviosdk/diapathparser.cpp
index d0ceb271..1af85056 100644
--- a/kivio/kiviopart/kiviosdk/diapathparser.cpp
+++ b/kivio/kiviopart/kiviosdk/diapathparser.cpp
@@ -19,7 +19,7 @@
#include "diapathparser.h"
-DiaPointFinder::DiaPointFinder(QValueList<float> *xlist, QValueList<float> *ylist) :
+DiaPointFinder::DiaPointFinder(TQValueList<float> *xlist, TQValueList<float> *ylist) :
SVGPathParser(), m_xlist(xlist), m_ylist(ylist)
{
;
@@ -48,8 +48,8 @@ void DiaPointFinder::svgClosePath()
{
}
-DiaPathParser::DiaPathParser(QDomDocument *doc, QDomElement *shape, float xscale, float yscale, float lowestx, float lowesty) :
- SVGPathParser(), m_doc(doc), m_shape(shape),
+DiaPathParser::DiaPathParser(TQDomDocument *doc, TQDomElement *tqshape, float xscale, float yscale, float lowestx, float lowesty) :
+ SVGPathParser(), m_doc(doc), m_tqshape(tqshape),
m_xscale(xscale), m_yscale(yscale),
m_lowestx(lowestx), m_lowesty(lowesty)
{
@@ -69,15 +69,15 @@ void DiaPathParser::svgLineTo( double x1, double y1, bool )
float currentY = y1;
// Create the line
- QDomElement kivioPointElement = m_doc->createElement("KivioPoint");
- kivioPointElement.setAttribute("x", QString::number(diaPointToKivio(lastX,true) * m_xscale));
- kivioPointElement.setAttribute("y", QString::number(diaPointToKivio(lastY, false) * m_yscale));
- m_shape->appendChild(kivioPointElement);
+ TQDomElement kivioPointElement = m_doc->createElement("KivioPoint");
+ kivioPointElement.setAttribute("x", TQString::number(diaPointToKivio(lastX,true) * m_xscale));
+ kivioPointElement.setAttribute("y", TQString::number(diaPointToKivio(lastY, false) * m_yscale));
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
- kivioPointElement.setAttribute("x", QString::number(diaPointToKivio(currentX,true) * m_xscale));
- kivioPointElement.setAttribute("y", QString::number(diaPointToKivio(currentY, false) * m_yscale));
- m_shape->appendChild(kivioPointElement);
+ kivioPointElement.setAttribute("x", TQString::number(diaPointToKivio(currentX,true) * m_xscale));
+ kivioPointElement.setAttribute("y", TQString::number(diaPointToKivio(currentY, false) * m_yscale));
+ m_tqshape->appendChild(kivioPointElement);
lastX = currentX;
lastY = currentY;
}
@@ -93,37 +93,37 @@ void DiaPathParser::svgCurveToCubic( double x1, double y1, double x2, double y2,
float currentY = y3;
// Create the bezier
- QDomElement kivioPointElement = m_doc->createElement("KivioPoint");
+ TQDomElement kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
- QString::number(diaPointToKivio(lastX,true) * m_xscale));
+ TQString::number(diaPointToKivio(lastX,true) * m_xscale));
kivioPointElement.setAttribute("y",
- QString::number(diaPointToKivio(lastY, false) * m_yscale));
+ TQString::number(diaPointToKivio(lastY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
- QString::number(diaPointToKivio(lastControlX,true) * m_xscale));
+ TQString::number(diaPointToKivio(lastControlX,true) * m_xscale));
kivioPointElement.setAttribute("y",
- QString::number(diaPointToKivio(lastControlY, false) * m_yscale));
+ TQString::number(diaPointToKivio(lastControlY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
- QString::number(diaPointToKivio(currentControlX,true) * m_xscale));
+ TQString::number(diaPointToKivio(currentControlX,true) * m_xscale));
kivioPointElement.setAttribute("y",
- QString::number(diaPointToKivio(currentControlY, false) * m_yscale));
+ TQString::number(diaPointToKivio(currentControlY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
- QString::number(diaPointToKivio(currentX,true) * m_xscale));
+ TQString::number(diaPointToKivio(currentX,true) * m_xscale));
kivioPointElement.setAttribute("y",
- QString::number(diaPointToKivio(currentY, false) * m_yscale));
+ TQString::number(diaPointToKivio(currentY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
lastX = currentX;
lastY = currentY;
}