X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimecode.h;h=23469756bbb8f3f4daec0f8e623a63243100da1c;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=7c2d26921f7ac7bf7ef26e001fec18988e238047;hpb=1e45e08e4dd10def3c1071f6fe12ce70519eb14b;p=kdenlive diff --git a/src/timecode.h b/src/timecode.h index 7c2d2692..23469756 100644 --- a/src/timecode.h +++ b/src/timecode.h @@ -21,9 +21,6 @@ #include "gentime.h" -class QValidator; -class QRegExpValidator; - /** Handles the conversion of a GenTime into a nicely formatted string, taking into account things such as drop frame if necessary. Handles multiple formats, such as HH:MM:SS:FF, HH:MM:SS:F, All Frames, All Seconds, etc. @@ -53,12 +50,12 @@ public: int getDisplayFrameCount(const QString &duration, bool frameDisplay) const; int getFrameCount(const QString &duration) const; static QString getEasyTimecode(const GenTime & time, const double &fps); - static QString getStringTimecode(int frames, const double &fps); + static QString getStringTimecode(int frames, const double &fps, bool showFrames = false); const QString getDisplayTimecodeFromFrames(int frames, bool frameDisplay) const; const QString getTimecodeFromFrames(int frames) const; double fps() const; bool df() const; - const QValidator *validator() const; + const QString mask(const GenTime &t = GenTime()) const; QString reformatSeparators(QString duration) const; private: @@ -68,7 +65,6 @@ private: double m_realFps; double m_dropFrames; int m_framesPer10Minutes; - QRegExpValidator *m_validator; const QString getTimecodeHH_MM_SS_FF(const GenTime & time) const; const QString getTimecodeHH_MM_SS_FF(int frames) const;