]> git.sesse.net Git - kdenlive/blob - src/titledocument.h
47733a79169d3aa6f018b19aa4515e07179f272f
[kdenlive] / src / titledocument.h
1 /***************************************************************************
2                           titledocument.h  -  description
3                              -------------------
4     begin                : Feb 28 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 #ifndef TITLEDOCUMENT_H
18 #define TITLEDOCUMENT_H
19 #include <KUrl>
20
21 class QGraphicsScene;
22 class QGraphicsPolygonItem;
23
24 class TitleDocument {
25         QGraphicsScene* scene;
26         public:
27                 TitleDocument();
28                 void setScene(QGraphicsScene* scene);
29                 bool saveDocument(const KUrl& url,QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
30                 bool loadDocument(const KUrl& url,QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
31         private:
32                 QString colorToString(const QColor&);
33                 QString rectFToString(const QRectF&);
34                 QRectF stringToRect(const QString &);
35                 QColor stringToColor(const QString &);
36                 QTransform stringToTransform(const QString &);
37 };
38
39 #endif
40
41