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;
56 QAction *m_syncAction;
58 void updateTransitionPath();
61 void setupParam(const QDomElement&, int, int);
65 void slotPreviousFrame();
66 void slotPositionChanged(int pos, bool seek = true);
67 void slotDeleteFrame();
69 void slotUpdateTransitionProperties();
70 void slotTransparencyChanged(int transp);
74 void slotAlignRight();
77 void slotAlignBottom();
78 void slotAlignCenter();
79 void slotAlignHCenter();
80 void slotAlignVCenter();
81 void slotSyncCursor();
84 void parameterChanged();