]> git.sesse.net Git - mlt/blob - src/modules/qimage/kdenlivetitle_wrapper.h
d07a4054295d18b825c9cd6520df1be6c596eb88
[mlt] / src / modules / qimage / kdenlivetitle_wrapper.h
1 /*
2  * kdenlivetitle_wrapper.h -- kdenlivetitle wrapper
3  * Copyright (c) 2009 Marco Gittler <g.marco@freenet.de>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19  
20 #include <QtCore/QObject>
21 #include <framework/mlt_frame.h>
22 #include <QtXml/QDomElement>
23 class QCoreApplication;
24 class QApplication;
25 class QObject;
26 class Title;
27 class QGraphicsView;
28 class QGraphicsScene;
29 QApplication *app;
30 Title* titleclass;
31
32 class Title: public QObject {
33
34     public:
35             Title(const QString &);
36             void drawKdenliveTitle(void*,int,int,double);
37     private:
38            int  loadFromXml(QDomDocument doc, QGraphicsPolygonItem* /*startv*/, QGraphicsPolygonItem* /*endv*/);
39            int loadDocument(const QString& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
40             QGraphicsView *view;
41             QGraphicsScene *m_scene;
42     QString colorToString(const QColor&);
43     QString rectFToString(const QRectF&);
44     QRectF stringToRect(const QString &);
45     QColor stringToColor(const QString &);
46     QTransform stringToTransform(const QString &);
47 };