]> git.sesse.net Git - kdenlive/blob - src/transitionsettings.h
* Fix some transition undo problems
[kdenlive] / src / transitionsettings.h
1 /***************************************************************************
2                           effecstackedit.h  -  description
3                              -------------------
4     begin                : Mar 15 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 #ifndef TRANSITIONSETTINGS_H
18 #define TRANSITIONSETTINGS_H
19
20 #include <QDomElement>
21
22 #include "ui_transitionsettings_ui.h"
23 #include "definitions.h"
24
25 class Timecode;
26 class Transition;
27 class EffectsList;
28 class EffectStackEdit;
29
30 class TransitionSettings : public QWidget  {
31     Q_OBJECT
32
33 public:
34     TransitionSettings(QWidget* parent = 0);
35     void raiseWindow(QWidget*);
36     void updateProjectFormat(MltVideoProfile profile, Timecode t, const uint tracksCount);
37
38 private:
39     Ui::TransitionSettings_UI ui;
40     EffectStackEdit *effectEdit;
41     Transition* m_usedTransition;
42     GenTime m_transitionDuration;
43     GenTime m_transitionStart;
44     int m_tracksCount;
45
46 public slots:
47     void slotTransitionItemSelected(Transition*, bool);
48     void slotTransitionChanged(bool reinit = true);
49     void slotUpdateEffectParams(const QDomElement&, const QDomElement&);
50
51 private slots:
52     void slotTransitionTrackChanged();
53
54 signals:
55     void transitionUpdated(Transition *, QDomElement);
56     void transitionTrackUpdated(Transition *, int);
57     void transferParamDesc(const QDomElement&, int , int);
58     void seekTimeline(int);
59 };
60
61 #endif