1 /***************************************************************************
2 geomeytrval.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 ***************************************************************************/
23 #include <QDomElement>
24 #include <QGraphicsPathItem>
26 #include <mlt++/Mlt.h>
28 #include "ui_geometryval_ui.h"
29 #include "definitions.h"
30 #include "keyframehelper.h"
32 //class QGraphicsScene;
33 class GraphicsSceneRectMove;
34 class QGraphicsRectItem;
38 class Geometryval : public QWidget {
41 Geometryval(const MltVideoProfile profile, QWidget* parent = 0);
42 QDomElement getParamDesc();
46 MltVideoProfile m_profile;
47 //QGraphicsScene* scene;
48 GraphicsSceneRectMove *scene;
50 QGraphicsRectItem *paramRect;
51 Mlt::Geometry *m_geom;
52 KeyframeHelper *m_helper;
53 QGraphicsPathItem *m_path;
57 void updateTransitionPath();
60 void setupParam(const QDomElement&, int, int);
64 void slotPreviousFrame();
65 void slotPositionChanged(int pos);
66 void slotDeleteFrame();
68 void slotUpdateTransitionProperties();
69 void slotTransparencyChanged(int transp);
73 void slotAlignRight();
76 void slotAlignBottom();
77 void slotAlignCenter();
78 void slotAlignHCenter();
79 void slotAlignVCenter();
82 void parameterChanged();