diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch) | |
tree | 0212ba6d2c749043134005a41f2bd0379619d40f /kdgantt/KDGanttXMLTools.cpp | |
parent | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff) | |
download | tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttXMLTools.cpp')
-rw-r--r-- | kdgantt/KDGanttXMLTools.cpp | 60 |
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", |