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"
31 #include "ui_geometryposition_ui.h"
33 //class QGraphicsScene;
34 class GraphicsSceneRectMove;
35 class QGraphicsRectItem;
39 class Geometryval : public QWidget
43 explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent = 0);
44 QDomElement getParamDesc();
48 MltVideoProfile m_profile;
49 //QGraphicsScene* scene;
50 GraphicsSceneRectMove *m_scene;
52 QGraphicsRectItem *m_paramRect;
53 Mlt::Geometry *m_geom;
54 KeyframeHelper *m_helper;
55 QGraphicsPathItem *m_path;
58 QAction *m_syncAction;
61 void updateTransitionPath();
62 Ui::GeometryPosition_UI *m_view;
65 void setupParam(const QDomElement&, int, int);
69 void slotPreviousFrame();
70 void slotPositionChanged(int pos, bool seek = true);
71 void slotDeleteFrame();
73 void slotUpdateTransitionProperties();
74 void slotTransparencyChanged(int transp);
78 void slotResizeCustom();
79 void slotResizeOriginal();
80 void slotAlignRight();
83 void slotAlignBottom();
84 void slotAlignCenter();
85 void slotAlignHCenter();
86 void slotAlignVCenter();
87 void slotSyncCursor();
89 void slotResetPosition();
92 void parameterChanged();