• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt1

KDGanttXMLTools.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002    $Id: KDGanttXMLTools.h 836291 2008-07-22 04:34:42Z pradeepto $
00003    KDGantt - a multi-platform charting engine
00004 */
00005 
00006 /****************************************************************************
00007  ** Copyright (C)  2002-2004 Klarälvdalens Datakonsult AB.  All rights reserved.
00008  **
00009  ** This file is part of the KDGantt library.
00010  **
00011  ** This file may be used under the terms of the GNU General Public
00012  ** License versions 2.0 or 3.0 as published by the Free Software
00013  ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
00014  ** included in the packaging of this file.  Alternatively you may (at
00015  ** your option) use any later version of the GNU General Public
00016  ** License if such license has been publicly approved by
00017  ** Klarälvdalens Datakonsult AB (or its successors, if any).
00018  ** 
00019  ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
00020  ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
00021  ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
00022  ** not expressly granted herein.
00023  ** 
00024  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00025  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00026  **
00027  ** As a special exception, permission is given to link this program
00028  ** with any edition of Qt, and distribute the resulting executable,
00029  ** without including the source code for Qt in the source distribution.
00030  **
00031  **********************************************************************/
00032 
00033 #ifndef __KDGANTTXMLTOOLS_H__
00034 #define __KDGANTTXMLTOOLS_H__
00035 
00036 #include <QPen>
00037 #include <QString>
00038 #include <QColor>
00039 #include <QRect>
00040 #include <QFont>
00041 #include <QStringList>
00042 #include <QDateTime>
00043 
00044 #include "kdgantt_qt3_compat.h"
00045 
00046 namespace KDGanttXML {
00047     QString penStyleToString( Qt::PenStyle style );
00048     Qt::PenStyle stringToPenStyle( const QString& style );
00049     QString brushStyleToString( Qt::BrushStyle style );
00050     Qt::BrushStyle stringToBrushStyle( const QString& style );
00051 
00052     void createBoolNode( QDomDocument& doc, QDomNode& parent,
00053                          const QString& elementName, bool value );
00054     void createSizeNode( QDomDocument& doc, QDomNode& parent,
00055                          const QString& elementName, const QSize& value );
00056     void createIntNode( QDomDocument& doc, QDomNode& parent,
00057                         const QString& elementName, int value );
00058     void createDoubleNode( QDomDocument& doc, QDomNode& parent,
00059                            const QString& elementName, double value );
00060     void createStringNode( QDomDocument& doc, QDomNode& parent,
00061                            const QString& elementName,
00062                            const QString& text );
00063     void createColorNode( QDomDocument& doc, QDomNode& parent,
00064                           const QString& elementName, const QColor& color );
00065     void createBrushNode( QDomDocument& doc, QDomNode& parent,
00066                           const QString& elementName, const QBrush& brush );
00067     void createPixmapNode( QDomDocument& doc, QDomNode& parent,
00068                            const QString& elementName, const QPixmap& pixmap, int id = 0 );
00069     void createRectNode( QDomDocument& doc, QDomNode& parent,
00070                          const QString& elementName, const QRect& rect );
00071     void createStringListNodes( QDomDocument& doc, QDomNode& parent,
00072                                 const QString& elementName,
00073                                 const QStringList* list );
00074     void createFontNode( QDomDocument& doc, QDomNode& parent,
00075                          const QString& elementName, const QFont& font );
00076 
00077     void createPenNode( QDomDocument& doc, QDomNode& parent,
00078                         const QString& elementName, const QPen& pen );
00079     void createDateTimeNode( QDomDocument& doc, QDomNode& parent,
00080                              const QString& elementName,
00081                              const QDateTime& datetime );
00082     void createDateNode( QDomDocument& doc, QDomNode& parent,
00083                          const QString& elementName, const QDate& date );
00084     void createTimeNode( QDomDocument& doc, QDomNode& parent,
00085                          const QString& elementName, const QTime& time );
00086     bool readIntNode( const QDomElement& element, int& value );
00087     bool readStringNode( const QDomElement& element, QString& value );
00088     bool readDoubleNode( const QDomElement& element, double& value );
00089     bool readBoolNode( const QDomElement& element, bool& value );
00090     bool readColorNode( const QDomElement& element, QColor& value );
00091     bool readBrushNode( const QDomElement& element, QBrush& brush );
00092     bool readPixmapNode( const QDomElement& element, QPixmap& pixmap );
00093     bool readRectNode( const QDomElement& element, QRect& value );
00094     bool readFontNode( const QDomElement& element, QFont& font );
00095     bool readPenNode( const QDomElement& element, QPen& pen );
00096     bool readDateTimeNode( const QDomElement& element, QDateTime& datetime );
00097     bool readDateNode( const QDomElement& element, QDate& date );
00098     bool readTimeNode( const QDomElement& element, QTime& time );
00099 }
00100 #endif

kdgantt1

Skip menu "kdgantt1"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal