#include "keyframeedit.h"
#include "effectslist.h"
#include "kdenlivesettings.h"
+#include "profilesdialog.h"
#include <KDebug>
#include <KLocale>
QWidget * toFillin = new QWidget;
QString value = pa.attribute("value").isNull() ?
pa.attribute("default") : pa.attribute("value");
+
if (type == "geometry") {
/*pa.setAttribute("namedesc", "X;Y;Width;Height;Transparency");
pa.setAttribute("format", "%d%,%d%:%d%x%d%:%d");
//TODO constant, list, bool, complex , color, geometry, position
if (type == "double" || type == "constant") {
- createSliderItem(paramName, value.toInt(), pa.attribute("min").toInt(), pa.attribute("max").toInt());
+ int min;
+ int max;
+ if (pa.attribute("min").startsWith('%')) {
+ min = (int) ProfilesDialog::getStringEval(m_profile, pa.attribute("min"));
+ }
+ else min = pa.attribute("min").toInt();
+ if (pa.attribute("max").startsWith('%')) {
+ max = (int) ProfilesDialog::getStringEval(m_profile, pa.attribute("max"));
+ }
+ else max = pa.attribute("max").toInt();
+ createSliderItem(paramName, (int)(value.toDouble() + 0.5) , min, max);
delete toFillin;
toFillin = NULL;
} else if (type == "list") {
QWidget* toFillin = new QWidget;
Constval *ctval = new Constval;
ctval->setupUi(toFillin);
-
ctval->horizontalSlider->setMinimum(min);
ctval->horizontalSlider->setMaximum(max);
ctval->spinBox->setMinimum(min);