]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/beziersplinewidget.h
Merge branch 'master' into buildsystem
[kdenlive] / src / beziercurve / beziersplinewidget.h
index ccdff1983d5fd103297a6c918b75d0b1cbf2f844..a847cfd86567c4f15d9f933564e7cee2486e9f27 100644 (file)
@@ -26,6 +26,8 @@
 #include <QtCore>
 #include <QWidget>
 
+class DragValue;
+
 class BezierSplineWidget : public QWidget
 {
     Q_OBJECT
@@ -48,12 +50,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();
@@ -64,8 +72,16 @@ private slots:
     /** @brief Linkes the handles. This will always make them stay in one line through p. */
     void slotSetHandlesLinked(bool linked);
 
+    void slotShowAllHandles(bool show);
+
 private:
     Ui::BezierSpline_UI m_ui;
+    DragValue *m_pX;
+    DragValue *m_pY;
+    DragValue *m_h1X;
+    DragValue *m_h1Y;
+    DragValue *m_h2X;
+    DragValue *m_h2Y;
     BezierSplineEditor m_edit;
     CurveModes m_mode;
     bool m_showPixmap;