X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcomplexparameter.cpp;h=09e260ed118134ee4644af1e3903f651cd04c9e0;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=4f6a7fa752d1af29b4d16a901162d4064023aa3e;hpb=9472299b931b35891fb78bc18ec06d921bf59a33;p=kdenlive diff --git a/src/complexparameter.cpp b/src/complexparameter.cpp index 4f6a7fa7..09e260ed 100644 --- a/src/complexparameter.cpp +++ b/src/complexparameter.cpp @@ -18,7 +18,7 @@ #include "complexparameter.h" #include -#include +#include #include @@ -48,9 +48,7 @@ ComplexParameter::ComplexParameter(QWidget *parent) : connect(m_ui.buttonShowInTimeline, SIGNAL(clicked()), this , SLOT(slotShowInTimeline())); connect(m_ui.buttonNewPoints, SIGNAL(clicked()), this , SLOT(slotSetNew())); connect(m_ui.buttonHelp, SIGNAL(clicked()), this , SLOT(slotSetHelp())); - connect(m_ui.parameterList, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(slotParameterChanged(const QString&))); - //connect (m_ui.effectlist, SIGNAL (itemSelectionChanged() ) , this, SLOT ( itemSelectionChanged())); - connect(this, SIGNAL(transferParamDesc(const QDomElement&, const QString&, int , int)), m_ui.kplotwidget, SLOT(setPointLists(const QDomElement&, const QString&, int , int))); + connect(m_ui.parameterList, SIGNAL(currentIndexChanged(QString)), this, SLOT(slotParameterChanged(QString))); connect(m_ui.kplotwidget, SIGNAL(parameterChanged(QDomElement)), this , SLOT(slotUpdateEffectParams(QDomElement))); connect(m_ui.kplotwidget, SIGNAL(parameterList(QStringList)), this , SLOT(slotUpdateParameterList(QStringList))); /*ÜeffectLists["audio"]=audioEffectList; @@ -59,11 +57,8 @@ ComplexParameter::ComplexParameter(QWidget *parent) : setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding)); m_ui.infoBox->hide(); updateButtonStatus(); - } - - void ComplexParameter::slotSetMoveX() { m_ui.kplotwidget->setMoveX(!m_ui.kplotwidget->isMoveX()); @@ -93,7 +88,6 @@ void ComplexParameter::slotShowInTimeline() m_ui.kplotwidget->setMoveTimeLine(!m_ui.kplotwidget->isMoveTimeline()); updateButtonStatus(); - } void ComplexParameter::updateButtonStatus() @@ -110,13 +104,12 @@ void ComplexParameter::updateButtonStatus() void ComplexParameter::slotParameterChanged(const QString& text) { - //m_ui.buttonNewPoints->setEnabled(text!="all"); m_ui.kplotwidget->replot(text); updateButtonStatus(); } -void ComplexParameter::setupParam(const QDomElement& d, const QString& paramName, int from, int to) +void ComplexParameter::setupParam(const QDomElement &d, const QString& paramName, int from, int to) { m_param = d; m_ui.kplotwidget->setPointLists(d, paramName, from, to); @@ -127,18 +120,18 @@ void ComplexParameter::itemSelectionChanged() //kDebug() << "drop"; } -void ComplexParameter::slotUpdateEffectParams(QDomElement e) +void ComplexParameter::slotUpdateEffectParams(const QDomElement &e) { m_param = e; emit parameterChanged(); } -QDomElement ComplexParameter::getParamDesc() +QDomElement ComplexParameter::getParamDesc() const { return m_param; } -void ComplexParameter::slotUpdateParameterList(QStringList l) +void ComplexParameter::slotUpdateParameterList(const QStringList &l) { kDebug() << l ; m_ui.parameterList->clear();