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
42 explicit Geometryval(const MltVideoProfile profile, QWidget* parent = 0);
43 QDomElement getParamDesc();
47 MltVideoProfile m_profile;
48 //QGraphicsScene* scene;
49 GraphicsSceneRectMove *m_scene;
51 QGraphicsRectItem *m_paramRect;
52 Mlt::Geometry *m_geom;
53 KeyframeHelper *m_helper;
54 QGraphicsPathItem *m_path;
57 QAction *m_syncAction;
59 void updateTransitionPath();
62 void setupParam(const QDomElement&, int, int);
66 void slotPreviousFrame();
67 void slotPositionChanged(int pos, bool seek = true);
68 void slotDeleteFrame();
70 void slotUpdateTransitionProperties();
71 void slotTransparencyChanged(int transp);
75 void slotResizeCustom();
76 void slotAlignRight();
79 void slotAlignBottom();
80 void slotAlignCenter();
81 void slotAlignHCenter();
82 void slotAlignVCenter();
83 void slotSyncCursor();
86 void parameterChanged();