X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fslideshowclip.h;h=fe0134fb8dfb44771b75c648502fe2f61f659eb4;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=2bd70acb8f830f437e61a9da8c230e89f79af2e9;hpb=2a5b3fb98f98e7679acd50c957003c3723e347a5;p=kdenlive diff --git a/src/slideshowclip.h b/src/slideshowclip.h index 2bd70acb..fe0134fb 100644 --- a/src/slideshowclip.h +++ b/src/slideshowclip.h @@ -34,18 +34,27 @@ 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() const; + QString selectedPath(); QString clipName() const; QString clipDuration() const; QString lumaDuration() const; int imageCount() const; bool loop() const; + bool crop() const; bool fade() const; QString lumaFile() const; int softness() const; + QString animation() const; + + /** @brief Get the image frame number from a file path, for example image_047.jpg will return 47. */ + static int getFrameNumberFromPath(const KUrl &path); + /** @brief return the url pattern for selected slideshow. */ + 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); private slots: void parseFolder();