]> git.sesse.net Git - kdenlive/blobdiff - src/doubleparameterwidget.h
Light Graffiti: Parameter to lower overexposure added
[kdenlive] / src / doubleparameterwidget.h
index 87c30b668857f40149c3859a54c26d7ab02590dc..f7d529b5743a71d793e2dadab8275bd2c9de7db8 100644 (file)
@@ -26,6 +26,7 @@
 class QLabel;
 class QSlider;
 class QSpinBox;
+class DragValue;
 
 /**
  * @class DoubleParameterWidget
@@ -45,11 +46,14 @@ public:
     * @param min Minimum value
     * @param max maximum value
     * @param defaultValue Value used when using reset functionality
+    * @param comment A comment explaining the parameter. Will be shown for the tooltip.
     * @param suffix (optional) Suffix to display in spinbox
     * @param parent (optional) Parent Widget */
-    DoubleParameterWidget(const QString &name, int value, int min, int max, int defaultValue, const QString suffix = QString(), QWidget* parent = 0);
+    DoubleParameterWidget(const QString &name, int value, int min, int max, int defaultValue, const QString &comment, const QString suffix = QString(), QWidget* parent = 0);
+
     /** @brief Updates the label to display @param name. */
     void setName(const QString &name);
+
     /** @brief Gets the parameter's value. */
     int getValue();
 
@@ -60,11 +64,19 @@ public slots:
     /** @brief Sets value to m_default. */
     void slotReset();
 
+private slots:
+    /** @brief Shows/Hides the comment label. */
+    void slotShowComment(bool show);
+
+    void slotSetValue(qreal value, bool final);
+
 private:
     int m_default;
     QLabel *m_name;
     QSlider *m_slider;
     QSpinBox *m_spinBox;
+    DragValue *m_dragVal;
+    QLabel *m_commentLabel;
     
 signals:
     void valueChanged(int);