summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttXMLTools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttXMLTools.cpp')
-rw-r--r--kdgantt/KDGanttXMLTools.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kdgantt/KDGanttXMLTools.cpp b/kdgantt/KDGanttXMLTools.cpp
index e6246138c..5f2909c07 100644
--- a/kdgantt/KDGanttXMLTools.cpp
+++ b/kdgantt/KDGanttXMLTools.cpp
@@ -40,12 +40,12 @@
namespace KDGanttXML {
-void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createBoolNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, bool value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( value ? "true" : "false" );
newElement.appendChild( elementContent );
@@ -53,59 +53,59 @@ void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent,
-void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createSizeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQSize& value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
newElement.setAttribute( "Width", value.width() );
newElement.setAttribute( "Height", value.height() );
}
-void createIntNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createIntNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, int value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( TQString::number( value ) );
newElement.appendChild( elementContent );
}
-void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createDoubleNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, double value )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( TQString::number( value ) );
newElement.appendChild( elementContent );
}
-void createStringNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createStringNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQString& text )
{
TQDomElement newElement =
doc.createElement( elementName );
- tqparent.appendChild( newElement );
+ parent.appendChild( newElement );
TQDomText elementContent =
doc.createTextNode( text );
newElement.appendChild( elementContent );
}
-void createColorNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createColorNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQColor& color )
{
TQDomElement colorElement = doc.createElement( elementName );
- tqparent.appendChild( colorElement );
+ parent.appendChild( colorElement );
colorElement.setAttribute( "Red",
TQString::number( color.red() ) );
colorElement.setAttribute( "Green",
@@ -115,12 +115,12 @@ void createColorNode( TQDomDocument& doc, TQDomNode& tqparent,
}
-void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createBrushNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQBrush& brush )
{
TQDomElement brushElement = doc.createElement( elementName );
- tqparent.appendChild( brushElement );
+ parent.appendChild( brushElement );
createColorNode( doc, brushElement, "Color", brush.color() );
createStringNode( doc, brushElement, "Style",
KDGanttXML::brushStyleToString( brush.style() ) );
@@ -129,11 +129,11 @@ void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent,
}
-void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createPixmapNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPixmap& pixmap )
{
TQDomElement pixmapElement = doc.createElement( elementName );
- tqparent.appendChild( pixmapElement );
+ parent.appendChild( pixmapElement );
// Convert the pixmap to an image, save that image to an in-memory
// XPM representation and compress this representation. This
@@ -163,11 +163,11 @@ void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent,
}
-void createRectNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createRectNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQRect& rect )
{
TQDomElement rectElement = doc.createElement( elementName );
- tqparent.appendChild( rectElement );
+ parent.appendChild( rectElement );
TQDomElement xElement = doc.createElement( "X" );
rectElement.appendChild( xElement );
TQDomText xContent = doc.createTextNode( TQString::number( rect.x() ) );
@@ -187,7 +187,7 @@ void createRectNode( TQDomDocument& doc, TQDomNode& tqparent,
}
-void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent,
+void createStringListNodes( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQStringList* list )
{
@@ -197,18 +197,18 @@ void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent,
for( TQStringList::ConstIterator it = list->begin();
it != list->end(); ++it ) {
TQDomElement element = doc.createElement( elementName );
- tqparent.appendChild( element );
+ parent.appendChild( element );
TQDomText elementContent = doc.createTextNode( *it );
element.appendChild( elementContent );
}
}
-void createFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createFontNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQFont& font )
{
TQDomElement fontElement = doc.createElement( elementName );
- tqparent.appendChild( fontElement );
+ parent.appendChild( fontElement );
createStringNode( doc, fontElement, "Family", font.family() );
createIntNode( doc, fontElement, "PointSize", font.pointSize() );
createIntNode( doc, fontElement, "PixelSize", font.pixelSize() );
@@ -217,44 +217,44 @@ void createFontNode( TQDomDocument& doc, TQDomNode& tqparent,
}
-void createPenNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createPenNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQPen& pen )
{
TQDomElement penElement = doc.createElement( elementName );
- tqparent.appendChild( penElement );
+ parent.appendChild( penElement );
createIntNode( doc, penElement, "Width", pen.width() );
createColorNode( doc, penElement, "Color", pen.color() );
createStringNode( doc, penElement, "Style", penStyleToString( pen.style() ) );
}
-void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName,
const TQDateTime& datetime )
{
TQDomElement dateTimeElement = doc.createElement( elementName );
- tqparent.appendChild( dateTimeElement );
+ parent.appendChild( dateTimeElement );
createDateNode( doc, dateTimeElement, "Date", datetime.date() );
createTimeNode( doc, dateTimeElement, "Time", datetime.time() );
}
-void createDateNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createDateNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQDate& date )
{
TQDomElement dateElement = doc.createElement( elementName );
- tqparent.appendChild( dateElement );
+ parent.appendChild( dateElement );
dateElement.setAttribute( "Year", TQString::number( date.year() ) );
dateElement.setAttribute( "Month", TQString::number( date.month() ) );
dateElement.setAttribute( "Day", TQString::number( date.day() ) );
}
-void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent,
+void createTimeNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, const TQTime& time )
{
TQDomElement timeElement = doc.createElement( elementName );
- tqparent.appendChild( timeElement );
+ parent.appendChild( timeElement );
timeElement.setAttribute( "Hour",
TQString::number( time.hour() ) );
timeElement.setAttribute( "Minute",