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, public Ui::Geometryval
43 explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent = 0);
44 virtual ~Geometryval();
45 QDomElement getParamDesc();
46 QString getValue() const;
47 void setFrameSize(QPoint p);
50 MltVideoProfile m_profile;
52 GraphicsSceneRectMove *m_scene;
53 QGraphicsRectItem *m_paramRect;
54 Mlt::Geometry *m_geom;
55 KeyframeHelper *m_helper;
56 QGraphicsPathItem *m_path;
60 QAction *m_syncAction;
64 Ui::GeometryPosition_UI m_view;
65 void updateTransitionPath();
69 void setupParam(const QDomElement, int, int);
73 void slotPreviousFrame();
74 void slotPositionChanged(int pos, bool seek = true);
75 void slotDeleteFrame(int pos = -1);
76 void slotAddFrame(int pos = -1);
77 void slotUpdateTransitionProperties();
78 void slotTransparencyChanged(int transp);
82 void slotResizeCustom();
83 void slotResizeOriginal();
84 void slotAlignRight();
87 void slotAlignBottom();
88 void slotAlignCenter();
89 void slotAlignHCenter();
90 void slotAlignVCenter();
91 void slotSyncCursor();
93 void slotResetPosition();
94 void slotKeyframeMoved(int);
97 void parameterChanged();