]> git.sesse.net Git - kdenlive/blobdiff - src/timecodedisplay.h
If exporting to script: Use variables for the location of the playlist and the destin...
[kdenlive] / src / timecodedisplay.h
index 4a751afb2bf3c04a33279b93ce4b6bb4b7fe27e3..28045886efa149c6ee5bd9e824efe6a84c30a2c8 100644 (file)
@@ -57,7 +57,7 @@ public:
     void setRange(int min, int max);
 
     /** @brief Returns the current input in frames. */
-    int value() const;
+    int getValue() const;
 
     /** @brief Returns the current input as a GenTime object. */
     GenTime gentime() const;
@@ -66,8 +66,9 @@ public:
     Timecode timecode() const;
 
     /** @brief Sets value's format to frames or HH:MM:SS:FF according to @param frametimecode.
-    * @param frametimecode true = frames, false = HH:MM:SS:FF */
-    void setTimeCodeFormat(bool frametimecode);
+    * @param frametimecode true = frames, false = HH:MM:SS:FF
+    * @param init true = force the change, false = update only if the frametimecode param changed */
+    void setTimeCodeFormat(bool frametimecode, bool init = false);
 
     /** @brief Sets timecode for current project.
      * @param t the new timecode */
@@ -97,6 +98,11 @@ private slots:
     void slotValueUp();
     void slotValueDown();
 
+    /** @brief Updates the selection when the cursor position changed.
+     * The digit after the cursor will be selected.
+     * This makes it easier to edit the timecode. */
+    void slotCursorPositionChanged(int oldPos, int newPos);
+
 signals:
     /**
      * Emitted every time the value changes (by calling setValue() or