X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstack%2Fparametercontainer.h;h=4890cb71f3615b5716863f580adbdad9a656614d;hb=ac8c99168f151e2f351043d13500741ce1ca8966;hp=c41c9da860c136a2882420f41da9456a20f9522c;hpb=f41ee253ade9dfda45752f232ea0ff35e26dce95;p=kdenlive diff --git a/src/effectstack/parametercontainer.h b/src/effectstack/parametercontainer.h index c41c9da8..4890cb71 100644 --- a/src/effectstack/parametercontainer.h +++ b/src/effectstack/parametercontainer.h @@ -47,11 +47,11 @@ class MySpinBox : public QSpinBox Q_OBJECT public: - MySpinBox(QWidget * parent = 0); + explicit MySpinBox(QWidget * parent = 0); protected: - virtual void focusInEvent(QFocusEvent*); - virtual void focusOutEvent(QFocusEvent*); + void focusInEvent(QFocusEvent*); + void focusOutEvent(QFocusEvent*); }; class ParameterContainer : public QObject @@ -59,13 +59,16 @@ class ParameterContainer : public QObject Q_OBJECT public: - ParameterContainer(QDomElement effect, ItemInfo info, EffectMetaInfo *metaInfo, QWidget * parent = 0); + explicit ParameterContainer(const QDomElement &effect, const ItemInfo &info, EffectMetaInfo *metaInfo, QWidget * parent = 0); ~ParameterContainer(); void updateTimecodeFormat(); - void updateProjectFormat(MltVideoProfile profile, Timecode t); void updateParameter(const QString &key, const QString &value); /** @brief Returns true of this effect requires an on monitor adjustable effect scene. */ bool needsMonitorEffectScene() const; + /** @brief Set keyframes for this param. */ + void setKeyframes(const QString &data, int maximum); + /** @brief Update the in / out for the clip. */ + void setRange(int inPoint, int outPoint); private slots: void slotCollectAllParameters(); @@ -76,7 +79,7 @@ private: * @param name Name of the parameter which will be updated * @param type Type of the parameter which will be updated * @param value Value of the dependency parameter */ - void meetDependency(const QString& name, QString type, QString value); + void meetDependency(const QString& name, const QString &type, const QString &value); wipeInfo getWipeInfo(QString value); QString getWipeString(wipeInfo info); /** @brief Delete all child widgets */ @@ -95,15 +98,19 @@ private: bool m_needsMonitorEffectScene; signals: - void parameterChanged(const QDomElement, const QDomElement, int); + void parameterChanged(const QDomElement &, const QDomElement&, int); void syncEffectsPos(int); - void effectStateChanged(bool); + void displayMessage(const QString&, int); + void disableCurrentFilter(bool); void checkMonitorPosition(int); void seekTimeline(int); void showComments(bool); /** @brief Start an MLT filter job on this clip. */ - void startFilterJob(QString filterName, QString filterParams, QString finalFilterName, QString consumer, QString consumerParams, QString properties); - + void startFilterJob(const QString &filterName, const QString &filterParams, const QString &consumer, const QString &consumerParams, const QMap &extra); + /** @brief Request import of keyframes from clip data. */ + void importClipKeyframes(); + /** @brief Master clip was resized, update effect. */ + void updateRange(int inPoint, int outPoint); }; #endif