]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/beziersplinewidget.h
jogshuttle: remove unused code in cmake file
[kdenlive] / src / beziercurve / beziersplinewidget.h
index ee8935fcd51d8059ba38c2b5ef2dfdd61ced08bf..c9e48edd5e92609e9f80b82a3bf7a5ca7e1c5ae1 100644 (file)
@@ -23,7 +23,6 @@
 #include "beziersplineeditor.h"
 #include "ui_bezierspline_ui.h"
 
-#include <QtCore>
 #include <QWidget>
 
 class DragValue;
@@ -34,10 +33,10 @@ class BezierSplineWidget : public QWidget
     
 public:
     /** @brief Sets up the UI and sets the spline to @param spline. */
-    BezierSplineWidget(const QString &spline, QWidget* parent = 0);
+    explicit BezierSplineWidget(const QString &spline, QWidget* parent = 0);
 
     /** @brief Returns the current spline. */
-    QString spline();
+    QString spline() const;
 
     /** The curvemodes refer to the usage of the spline.
      * As this widget is currently only used for frei0r.curves the modes are the channels this filter accepts. */
@@ -50,12 +49,18 @@ private slots:
     /** @brief Sets the spinboxes for modifing the selected point to @param p. */
     void slotUpdatePointEntries(const BPoint &p);
 
-    /** @brief Updates the editor and thus the spline if the current point's p was modified using the spinboxes. */
-    void slotUpdatePointP();
-    /** @brief Updates the editor and thus the spline if the current point's h1 was modified using the spinboxes. */
-    void slotUpdatePointH1();
-    /** @brief Updates the editor and thus the spline if the current point's h2 was modified using the spinboxes. */
-    void slotUpdatePointH2();
+    /** @brief Updates the spline if the current point's p was modified using the spinboxes.
+     * @param value (optional) not used, neccessary to be able to connect to DragValue's valueChanged.
+     * @param final (default = true) emit signal modified? */
+    void slotUpdatePointP(double value = 1, bool final = true);
+    /** @brief Updates the spline if the current point's h1 was modified using the spinboxes.
+     * @param value (optional) not used, neccessary to be able to connect to DragValue's valueChanged.
+     * @param final (default = true) emit signal modified? */
+    void slotUpdatePointH1(double value = 1, bool final = true);
+    /** @brief Updates the spline if the current point's h2 was modified using the spinboxes.
+     * @param value (optional) not used, neccessary to be able to connect to DragValue's valueChanged.
+     * @param final (default = true) emit signal modified? */
+    void slotUpdatePointH2(double value = 1, bool final = true);
 
     /** @brief Increases the number of lines in the editor's grid. If there are already 8 lines the number is set to 0. */
     void slotGridChange();