]> git.sesse.net Git - kdenlive/blob - src/positionedit.h
Use new timecode widget for position parameter 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 <QWidget>
23
24 #include "timecode.h"
25 #include "timecodedisplay.h"
26
27 class PositionEdit : public QWidget
28 {
29     Q_OBJECT
30 public:
31     explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0);
32     virtual ~PositionEdit();
33     int getPosition() const;
34     void setPosition(int pos);
35     void updateTimecodeFormat();
36
37 private:
38     TimecodeDisplay *m_display;
39     QSlider *m_slider;
40
41 private slots:
42     void slotUpdatePosition();
43
44 signals:
45     void parameterChanged();
46 };
47
48 #endif