]> git.sesse.net Git - kdenlive/blob - src/geometryval.h
New option in composite transition: double click in rectangle to manually adjust...
[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     QDomElement getParamDesc();
45
46 private:
47     Ui::Geometryval m_ui;
48     MltVideoProfile m_profile;
49     //QGraphicsScene* scene;
50     GraphicsSceneRectMove *m_scene;
51     QDomElement m_param;
52     QGraphicsRectItem *m_paramRect;
53     Mlt::Geometry *m_geom;
54     KeyframeHelper *m_helper;
55     QGraphicsPathItem *m_path;
56     QMenu *m_scaleMenu;
57     QMenu *m_alignMenu;
58     QAction *m_syncAction;
59     QPoint m_frameSize;
60     bool m_fixedMode;
61     void updateTransitionPath();
62     Ui::GeometryPosition_UI *m_view;
63
64 public slots:
65     void setupParam(const QDomElement&, int, int);
66
67 private slots:
68     void slotNextFrame();
69     void slotPreviousFrame();
70     void slotPositionChanged(int pos, bool seek = true);
71     void slotDeleteFrame();
72     void slotAddFrame();
73     void slotUpdateTransitionProperties();
74     void slotTransparencyChanged(int transp);
75     void slotResize50();
76     void slotResize100();
77     void slotResize200();
78     void slotResizeCustom();
79     void slotResizeOriginal();
80     void slotAlignRight();
81     void slotAlignLeft();
82     void slotAlignTop();
83     void slotAlignBottom();
84     void slotAlignCenter();
85     void slotAlignHCenter();
86     void slotAlignVCenter();
87     void slotSyncCursor();
88     void slotGeometry();
89     void slotResetPosition();
90
91 signals:
92     void parameterChanged();
93     void seekToPos(int);
94 };
95
96 #endif