*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#include <QtCore/QObject>
+#include <QtCore/QString>
#include <framework/mlt_frame.h>
+#include <QtXml/QDomElement>
+class QGraphicsPolygonItem;
class QCoreApplication;
+class QApplication;
class QObject;
class Title;
-QCoreApplication *app;
-Title* titleclass;
+class QGraphicsView;
+class QGraphicsScene;
-class Title: public QObject {
+class Title: public QObject
+{
- public:
- Title(const QString &);
- void drawKdenliveTitle(void*,int,int,double);
+public:
+ Title( const QString & );
+ void drawKdenliveTitle( uint8_t*, int, int, double, char*, char* );
+private:
+ QString m_filename;
+ int loadDocument( const QString& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv, const QString templateXml, const QString templateText );
+ int loadFromXml( QDomDocument doc, QGraphicsPolygonItem* /*startv*/, QGraphicsPolygonItem* /*endv*/, const QString templateText );
+ QGraphicsView *view;
+ QGraphicsScene *m_scene;
+ QGraphicsPolygonItem *start,*end;
+ QString colorToString( const QColor& );
+ QString rectFToString( const QRectF& );
+ QRectF stringToRect( const QString & );
+ QColor stringToColor( const QString & );
+ QTransform stringToTransform( const QString & );
};
+