]> git.sesse.net Git - kdenlive/blob - src/positionedit.h
Fix position effects (like fades) that are connected to parameterChanged() in effects...
[kdenlive] / src / positionedit.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 POSITONEDIT_H
19 #define POSITONEDIT_H
20
21
22 #include "timecode.h"
23
24 #include <QWidget>
25
26 class QSlider;
27 class TimecodeDisplay;
28
29 class PositionEdit : public QWidget
30 {
31     Q_OBJECT
32 public:
33     explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0);
34     virtual ~PositionEdit();
35     int getPosition() const;
36     void setPosition(int pos);
37     void updateTimecodeFormat();
38     void setRange(int min, int max);
39
40 private:
41     TimecodeDisplay *m_display;
42     QSlider *m_slider;
43
44 private slots:
45     void slotUpdatePosition();
46
47 signals:
48     void parameterChanged(int pos = 0);
49 };
50
51 #endif