]> git.sesse.net Git - kdenlive/blobdiff - src/positionedit.h
New improved widget for position parameter in effects (for example with fade effects)
[kdenlive] / src / positionedit.h
diff --git a/src/positionedit.h b/src/positionedit.h
new file mode 100644 (file)
index 0000000..a2916b3
--- /dev/null
@@ -0,0 +1,48 @@
+/***************************************************************************
+                          geomeytrval.h  -  description
+                             -------------------
+    begin                : 03 Aug 2008
+    copyright            : (C) 2008 by Marco Gittler
+    email                : g.marco@freenet.de
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef POSITONEDIT_H
+#define POSITONEDIT_H
+
+
+#include <QWidget>
+
+#include "ui_positionval_ui.h"
+#include "timecode.h"
+
+
+class PositionEdit : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0);
+    int getPosition() const;
+    void setPosition(int pos);
+
+private:
+    Ui::Positionval_UI m_ui;
+    Timecode m_tc;
+
+private slots:
+    void slotUpdateTimecode();
+    void slotUpdatePosition();
+
+signals:
+    void parameterChanged();
+};
+
+#endif