]> git.sesse.net Git - kdenlive/blob - src/positionedit.h
New improved widget for position parameter in effects (for example with fade 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 "ui_positionval_ui.h"
25 #include "timecode.h"
26
27
28 class PositionEdit : public QWidget
29 {
30     Q_OBJECT
31 public:
32     explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0);
33     int getPosition() const;
34     void setPosition(int pos);
35
36 private:
37     Ui::Positionval_UI m_ui;
38     Timecode m_tc;
39
40 private slots:
41     void slotUpdateTimecode();
42     void slotUpdatePosition();
43
44 signals:
45     void parameterChanged();
46 };
47
48 #endif