X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fslideshowclip.h;h=fe0134fb8dfb44771b75c648502fe2f61f659eb4;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=4189987bde1846134f0a5f33bbb4b15ce88c7db1;hpb=d18eaa998a96b0f8d9dd43e5b7dd2fb9574e71a1;p=kdenlive diff --git a/src/slideshowclip.h b/src/slideshowclip.h index 4189987b..fe0134fb 100644 --- a/src/slideshowclip.h +++ b/src/slideshowclip.h @@ -34,7 +34,7 @@ class SlideshowClip : public QDialog Q_OBJECT public: - SlideshowClip(Timecode tc, QWidget * parent = 0); + explicit SlideshowClip(const Timecode& tc, QWidget * parent = 0); virtual ~ SlideshowClip(); /** return selected path for slideshow in MLT format */ QString selectedPath(); @@ -48,15 +48,11 @@ public: QString lumaFile() const; int softness() const; QString animation() const; - /** @brief Return the first number for the sequence begining */ - int begin() const; - /** @brief Check if there are several files with filename pattern, like: image_001.jpg, image_002.jpg,... */ - static int sequenceCount(KUrl file); /** @brief Get the image frame number from a file path, for example image_047.jpg will return 47. */ - static int getFrameNumberFromPath(KUrl path); + static int getFrameNumberFromPath(const KUrl &path); /** @brief return the url pattern for selected slideshow. */ - static QString selectedPath(KUrl url, bool isMime, QString extension, QStringList *list); + static QString selectedPath(const KUrl &url, bool isMime, QString extension, QStringList *list); /** @brief Convert the selection animation style into an affine geometry string. */ static QString animationToGeometry(const QString &animation, int &ttl); @@ -74,7 +70,6 @@ private slots: private: Ui::SlideshowClip_UI m_view; int m_count; - int m_patternBegin; Timecode m_timecode; KIO::PreviewJob *m_thumbJob; };