1 /***************************************************************************
2 titledocument.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
17 #ifndef TITLEDOCUMENT_H
18 #define TITLEDOCUMENT_H
20 #include <QDomDocument>
25 class QGraphicsPolygonItem;
28 QGraphicsScene* scene;
31 void setScene(QGraphicsScene* scene);
32 bool saveDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
33 int loadDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
34 QDomDocument xml(QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
35 int loadFromXml(QDomDocument doc, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
38 QString colorToString(const QColor&);
39 QString rectFToString(const QRectF&);
40 QRectF stringToRect(const QString &);
41 QColor stringToColor(const QString &);
42 QTransform stringToTransform(const QString &);