]> git.sesse.net Git - kdenlive/blob - src/geometryval.h
Keyframe in composite transitions can be moved:
[kdenlive] / src / geometryval.h
1 /***************************************************************************
2                           geomeytrval.h  -  description
3                              -------------------
4     begin                : 03 Aug 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef GEOMETRYVAL_H
19 #define GEOMETRYVAL_H
20
21
22 #include <QWidget>
23 #include <QDomElement>
24 #include <QGraphicsPathItem>
25
26 #include <mlt++/Mlt.h>
27
28 #include "ui_geometryval_ui.h"
29 #include "definitions.h"
30 #include "keyframehelper.h"
31 #include "ui_geometryposition_ui.h"
32
33 //class QGraphicsScene;
34 class GraphicsSceneRectMove;
35 class QGraphicsRectItem;
36 class QMouseEvent;
37
38
39 class Geometryval : public QWidget
40 {
41     Q_OBJECT
42 public:
43     explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent = 0);
44     virtual ~Geometryval();
45     QDomElement getParamDesc();
46     void setFrameSize(QPoint p);
47
48 private:
49     Ui::Geometryval m_ui;
50     MltVideoProfile m_profile;
51     GraphicsSceneRectMove *m_scene;
52     QDomElement m_param;
53     QGraphicsRectItem *m_paramRect;
54     Mlt::Geometry *m_geom;
55     KeyframeHelper *m_helper;
56     QGraphicsPathItem *m_path;
57     QMenu *m_configMenu;
58     QMenu *m_scaleMenu;
59     QMenu *m_alignMenu;
60     QAction *m_syncAction;
61     QAction *m_editGeom;
62     bool m_fixedMode;
63     QPoint m_frameSize;
64     Ui::GeometryPosition_UI m_view;
65     void updateTransitionPath();
66
67 public slots:
68     void setupParam(const QDomElement, int, int);
69
70 private slots:
71     void slotNextFrame();
72     void slotPreviousFrame();
73     void slotPositionChanged(int pos, bool seek = true);
74     void slotDeleteFrame();
75     void slotAddFrame();
76     void slotUpdateTransitionProperties();
77     void slotTransparencyChanged(int transp);
78     void slotResize50();
79     void slotResize100();
80     void slotResize200();
81     void slotResizeCustom();
82     void slotResizeOriginal();
83     void slotAlignRight();
84     void slotAlignLeft();
85     void slotAlignTop();
86     void slotAlignBottom();
87     void slotAlignCenter();
88     void slotAlignHCenter();
89     void slotAlignVCenter();
90     void slotSyncCursor();
91     void slotGeometry();
92     void slotResetPosition();
93     void slotKeyframeMoved(int);
94
95 signals:
96     void parameterChanged();
97     void seekToPos(int);
98 };
99
100 #endif