]> git.sesse.net Git - kdenlive/blob - src/geometryval.h
several usability fixes for composite transition
[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     Q_OBJECT
40 public:
41     Geometryval(const MltVideoProfile profile, QWidget* parent = 0);
42     QDomElement getParamDesc();
43
44 private:
45     Ui::Geometryval ui;
46     MltVideoProfile m_profile;
47     //QGraphicsScene* scene;
48     GraphicsSceneRectMove *scene;
49     QDomElement param;
50     QGraphicsRectItem *paramRect;
51     Mlt::Geometry *m_geom;
52     KeyframeHelper *m_helper;
53     QGraphicsPathItem *m_path;
54     QMenu *m_scaleMenu;
55     QMenu *m_alignMenu;
56
57     void updateTransitionPath();
58
59 public slots:
60     void setupParam(const QDomElement&, int, int);
61
62 private slots:
63     void slotNextFrame();
64     void slotPreviousFrame();
65     void slotPositionChanged(int pos);
66     void slotDeleteFrame();
67     void slotAddFrame();
68     void slotUpdateTransitionProperties();
69     void slotTransparencyChanged(int transp);
70     void slotResize50();
71     void slotResize100();
72     void slotResize200();
73     void slotAlignRight();
74     void slotAlignLeft();
75     void slotAlignTop();
76     void slotAlignBottom();
77     void slotAlignCenter();
78     void slotAlignHCenter();
79     void slotAlignVCenter();
80
81 signals:
82     void parameterChanged();
83 };
84
85 #endif