]> git.sesse.net Git - kdenlive/blob - src/positionedit.h
Fix label
[kdenlive] / src / positionedit.h
1 /***************************************************************************
2                           positionedit.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     ~PositionEdit();
35     int getPosition() const;
36     void setPosition(int pos);
37     void updateTimecodeFormat();
38
39 public slots:
40     void setRange(int min, int max, bool absolute = false);
41     
42 private:
43     TimecodeDisplay *m_display;
44     QSlider *m_slider;
45
46 private slots:
47     void slotUpdatePosition();
48
49 signals:
50     void parameterChanged(int pos = 0);
51 };
52
53 #endif