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>
25 #include <QGraphicsView>
27 #include <mlt++/Mlt.h>
29 #include "ui_geometryval_ui.h"
30 #include "definitions.h"
31 #include "keyframehelper.h"
32 #include "ui_geometryposition_ui.h"
34 //class QGraphicsScene;
35 class GraphicsSceneRectMove;
36 class QGraphicsRectItem;
40 class Geometryval : public QWidget, public Ui::Geometryval
44 explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, int startPoint = 0, QWidget* parent = 0);
45 virtual ~Geometryval();
46 QDomElement getParamDesc();
47 QString getValue() const;
48 void setFrameSize(QPoint p);
51 MltVideoProfile m_profile;
53 GraphicsSceneRectMove *m_scene;
54 QGraphicsRectItem *m_paramRect;
55 Mlt::Geometry *m_geom;
56 KeyframeHelper *m_helper;
57 QGraphicsPathItem *m_path;
59 QAction *m_syncAction;
60 QAction *m_editOptions;
64 Ui::GeometryPosition_UI m_view;
65 void updateTransitionPath();
68 QGraphicsView *m_sceneview;
69 bool keyframeSelected();
72 void setupParam(const QDomElement, int, int);
76 void slotPreviousFrame();
77 void slotPositionChanged(int pos, bool seek = true);
78 void slotDeleteFrame(int pos = -1);
79 void slotAddFrame(int pos = -1);
80 void slotUpdateTransitionProperties();
81 void slotTransparencyChanged(int transp);
82 void slotResizeCustom(int value);
83 void slotResizeOriginal();
84 void slotAlignRight();
87 void slotAlignBottom();
88 void slotAlignHCenter();
89 void slotAlignVCenter();
90 void slotSyncCursor();
91 void slotResetPosition();
92 void slotKeyframeMoved(int);
93 void slotSwitchOptions();
94 void slotUpdateGeometry();
95 void slotGeometryX(int value);
96 void slotGeometryY(int value);
97 void slotGeometryWidth(int value);
98 void slotGeometryHeight(int value);
101 void parameterChanged();