widgets/cliptranscode_ui.ui
widgets/geometryposition_ui.ui
widgets/templateclip_ui.ui
+ widgets/keyframeeditor_ui.ui
)
set(kdenlive_SRCS
dvdwizardchapters.cpp
documentvalidator.cpp
cliptranscode.cpp
+ keyframeedit.cpp
)
add_definitions( ${KDE4_DEFINITIONS} )
#include "ui_colorval_ui.h"
#include "ui_positionval_ui.h"
#include "ui_wipeval_ui.h"
+#include "ui_keyframeeditor_ui.h"
#include "complexparameter.h"
#include "geometryval.h"
+#include "keyframeedit.h"
#include "effectslist.h"
#include "kdenlivesettings.h"
m_vbox->addWidget(geo);
m_valueItems[paramName+"geometry"] = geo;
m_items.append(geo);
+ } else if (type == "keyframe") {
+ // keyframe editor widget
+ KeyframeEdit *geo = new KeyframeEdit(100, KdenliveSettings::project_fps(), 0, 100);
+ //connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
+ //connect(geo, SIGNAL(seekToPos(int)), this, SLOT(slotSeekToPos(int)));
+ //geo->setupParam(pa, minFrame, maxFrame);
+ m_vbox->addWidget(geo);
+ m_valueItems[paramName+"geometry"] = geo;
+ m_items.append(geo);
} else if (type == "color") {
Colorval *cval = new Colorval;
cval->setupUi(toFillin);
--- /dev/null
+/***************************************************************************
+ geomeytrval.cpp - 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. *
+ * *
+ ***************************************************************************/
+
+#include "keyframeedit.h"
+#include "kdenlivesettings.h"
+
+#include <KDebug>
+
+
+KeyframeEdit::KeyframeEdit(int maxFrame, double fps, int minValue, int maxValue, QWidget* parent) :
+ QWidget(parent),
+ m_fps(fps)
+{
+ m_ui.setupUi(this);
+ m_ui.keyframe_list->setHeaderLabels(QStringList() << i18n("Position") << i18n("Value"));
+ m_ui.button_add->setIcon(KIcon("document-new"));
+ m_ui.button_delete->setIcon(KIcon("edit-delete"));
+ setEnabled(false);
+}
+
+
--- /dev/null
+/***************************************************************************
+ keyframeedit.h - description
+ -------------------
+ begin : 22 Jun 2009
+ copyright : (C) 2008 by Jean-Baptiste Mardelle
+ email : jb@kdenlive.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 KEYFRAMEEDIT_H
+#define KEYFRAMEEDIT_H
+
+
+#include <QWidget>
+#include <QDomElement>
+
+
+#include "ui_keyframeeditor_ui.h"
+#include "definitions.h"
+#include "keyframehelper.h"
+
+//class QGraphicsScene;
+
+class KeyframeEdit : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit KeyframeEdit(int maxFrame, double fps, int minValue, int maxValue, QWidget* parent = 0);
+
+private:
+ Ui::KeyframeEditor_UI m_ui;
+ double m_fps;
+
+public slots:
+
+
+private slots:
+
+signals:
+ void parameterChanged();
+ void seekToPos(int);
+};
+
+#endif