]> git.sesse.net Git - kdenlive/blob - src/geometryval.h
Composite transition: add new "Resize to original size" option that will allow for...
[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
32 //class QGraphicsScene;
33 class GraphicsSceneRectMove;
34 class QGraphicsRectItem;
35 class QMouseEvent;
36
37
38 class Geometryval : public QWidget
39 {
40     Q_OBJECT
41 public:
42     explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent = 0);
43     QDomElement getParamDesc();
44
45 private:
46     Ui::Geometryval m_ui;
47     MltVideoProfile m_profile;
48     //QGraphicsScene* scene;
49     GraphicsSceneRectMove *m_scene;
50     QDomElement m_param;
51     QGraphicsRectItem *m_paramRect;
52     Mlt::Geometry *m_geom;
53     KeyframeHelper *m_helper;
54     QGraphicsPathItem *m_path;
55     QMenu *m_scaleMenu;
56     QMenu *m_alignMenu;
57     QAction *m_syncAction;
58     QPoint m_frameSize;
59     bool m_fixedMode;
60     void updateTransitionPath();
61
62 public slots:
63     void setupParam(const QDomElement&, int, int);
64
65 private slots:
66     void slotNextFrame();
67     void slotPreviousFrame();
68     void slotPositionChanged(int pos, bool seek = true);
69     void slotDeleteFrame();
70     void slotAddFrame();
71     void slotUpdateTransitionProperties();
72     void slotTransparencyChanged(int transp);
73     void slotResize50();
74     void slotResize100();
75     void slotResize200();
76     void slotResizeCustom();
77     void slotResizeOriginal();
78     void slotAlignRight();
79     void slotAlignLeft();
80     void slotAlignTop();
81     void slotAlignBottom();
82     void slotAlignCenter();
83     void slotAlignHCenter();
84     void slotAlignVCenter();
85     void slotSyncCursor();
86
87 signals:
88     void parameterChanged();
89     void seekToPos(int);
90 };
91
92 #endif