diff options
Diffstat (limited to 'kdgantt/KDGanttXMLTools.h')
-rw-r--r-- | kdgantt/KDGanttXMLTools.h | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/kdgantt/KDGanttXMLTools.h b/kdgantt/KDGanttXMLTools.h index bbb573bb..30d890a2 100644 --- a/kdgantt/KDGanttXMLTools.h +++ b/kdgantt/KDGanttXMLTools.h @@ -4,7 +4,7 @@ */ /**************************************************************************** - ** Copyright (C) 2002-2004 Klarälvdalens Datakonsult AB. All rights reserved. + ** Copyright (C) 2002-2004 Klar�lvdalens Datakonsult AB. All rights reserved. ** ** This file is part of the KDGantt library. ** @@ -27,75 +27,75 @@ ** licensing are not clear to you. ** ** As a special exception, permission is given to link this program - ** with any edition of Qt, and distribute the resulting executable, - ** without including the source code for Qt in the source distribution. + ** with any edition of TQt, and distribute the resulting executable, + ** without including the source code for TQt in the source distribution. ** **********************************************************************/ #ifndef __KDGANTTXMLTOOLS_H__ #define __KDGANTTXMLTOOLS_H__ -#include <qpen.h> -#include <qdom.h> -#include <qstring.h> -#include <qcolor.h> -#include <qrect.h> -#include <qfont.h> -#include <qstringlist.h> -#include <qdatetime.h> +#include <tqpen.h> +#include <tqdom.h> +#include <tqstring.h> +#include <tqcolor.h> +#include <tqrect.h> +#include <tqfont.h> +#include <tqstringlist.h> +#include <tqdatetime.h> namespace KDGanttXML { - QString penStyleToString( Qt::PenStyle style ); - Qt::PenStyle stringToPenStyle( const QString& style ); - QString brushStyleToString( Qt::BrushStyle style ); - Qt::BrushStyle stringToBrushStyle( const QString& style ); + TQString penStyleToString( Qt::PenStyle style ); + Qt::PenStyle stringToPenStyle( const TQString& style ); + TQString brushStyleToString( Qt::BrushStyle style ); + Qt::BrushStyle stringToBrushStyle( const TQString& style ); - void createBoolNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, bool value ); - void createSizeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QSize& value ); - void createIntNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, int value ); - void createDoubleNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, double value ); - void createStringNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QString& text ); - void createColorNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QColor& color ); - void createBrushNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QBrush& brush ); - void createPixmapNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QPixmap& pixmap ); - void createRectNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QRect& rect ); - void createStringListNodes( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QStringList* list ); - void createFontNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QFont& font ); + void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, bool value ); + void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQSize& value ); + void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, int value ); + void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, double value ); + void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQString& text ); + void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQColor& color ); + void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQBrush& brush ); + void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQPixmap& pixmap ); + void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQRect& rect ); + void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQStringList* list ); + void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQFont& font ); - void createPenNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QPen& pen ); - void createDateTimeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, - const QDateTime& datetime ); - void createDateNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QDate& date ); - void createTimeNode( QDomDocument& doc, QDomNode& parent, - const QString& elementName, const QTime& time ); - bool readIntNode( const QDomElement& element, int& value ); - bool readStringNode( const QDomElement& element, QString& value ); - bool readDoubleNode( const QDomElement& element, double& value ); - bool readBoolNode( const QDomElement& element, bool& value ); - bool readColorNode( const QDomElement& element, QColor& value ); - bool readBrushNode( const QDomElement& element, QBrush& brush ); - bool readPixmapNode( const QDomElement& element, QPixmap& pixmap ); - bool readRectNode( const QDomElement& element, QRect& value ); - bool readFontNode( const QDomElement& element, QFont& font ); - bool readPenNode( const QDomElement& element, QPen& pen ); - bool readDateTimeNode( const QDomElement& element, QDateTime& datetime ); - bool readDateNode( const QDomElement& element, QDate& date ); - bool readTimeNode( const QDomElement& element, QTime& time ); + void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQPen& pen ); + void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, + const TQDateTime& datetime ); + void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQDate& date ); + void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + const TQString& elementName, const TQTime& time ); + bool readIntNode( const TQDomElement& element, int& value ); + bool readStringNode( const TQDomElement& element, TQString& value ); + bool readDoubleNode( const TQDomElement& element, double& value ); + bool readBoolNode( const TQDomElement& element, bool& value ); + bool readColorNode( const TQDomElement& element, TQColor& value ); + bool readBrushNode( const TQDomElement& element, TQBrush& brush ); + bool readPixmapNode( const TQDomElement& element, TQPixmap& pixmap ); + bool readRectNode( const TQDomElement& element, TQRect& value ); + bool readFontNode( const TQDomElement& element, TQFont& font ); + bool readPenNode( const TQDomElement& element, TQPen& pen ); + bool readDateTimeNode( const TQDomElement& element, TQDateTime& datetime ); + bool readDateNode( const TQDomElement& element, TQDate& date ); + bool readTimeNode( const TQDomElement& element, TQTime& time ); } #endif |