]> git.sesse.net Git - kdenlive/blob - src/geometryval.h
[PATCH 2/2] Ensure that all member variables have an m_ prefix
[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, 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     bool m_fixedMode;
59     void updateTransitionPath();
60
61 public slots:
62     void setupParam(const QDomElement&, int, int);
63
64 private slots:
65     void slotNextFrame();
66     void slotPreviousFrame();
67     void slotPositionChanged(int pos, bool seek = true);
68     void slotDeleteFrame();
69     void slotAddFrame();
70     void slotUpdateTransitionProperties();
71     void slotTransparencyChanged(int transp);
72     void slotResize50();
73     void slotResize100();
74     void slotResize200();
75     void slotAlignRight();
76     void slotAlignLeft();
77     void slotAlignTop();
78     void slotAlignBottom();
79     void slotAlignCenter();
80     void slotAlignHCenter();
81     void slotAlignVCenter();
82     void slotSyncCursor();
83
84 signals:
85     void parameterChanged();
86     void seekToPos(int);
87 };
88
89 #endif