]> git.sesse.net Git - kdenlive/blobdiff - src/timecodedisplay.h
Fix color of warning message in render widget
[kdenlive] / src / timecodedisplay.h
index 241b5db9cf53aba390db4c62666d08064e058be9..dc1b8f8961607e688c7661c0db448290eee6f919 100644 (file)
@@ -57,17 +57,22 @@ 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;
 
     /** @brief Returs the widget's timecode object. */
     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 */
+    void updateTimeCode(Timecode t);
 
 private:
     /** timecode for widget */