X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fslideshowclip.h;h=b4114f997d677cdf52fc6a2636ec8ea3a88abee5;hb=263f5cbe3f8129f22ff3018207b16970361c7538;hp=a40546b365a019a20bb4868766f17d7c2a86f082;hpb=a73c82f3ee8d7c4cda1efa72d6e0523046fc11f7;p=kdenlive diff --git a/src/slideshowclip.h b/src/slideshowclip.h index a40546b3..b4114f99 100644 --- a/src/slideshowclip.h +++ b/src/slideshowclip.h @@ -34,18 +34,29 @@ class SlideshowClip : public QDialog Q_OBJECT public: - SlideshowClip(Timecode tc, QWidget * parent = 0); + explicit SlideshowClip(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 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); + /** @brief return the url pattern for selected slideshow. */ + static QString selectedPath(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(); @@ -55,7 +66,7 @@ private slots: void slotUpdateDurationFormat(int ix); void slotGenerateThumbs(); void slotSetPixmap(const KFileItem &fileItem, const QPixmap &pix); - /** @brief Display correct widget depenging on user choice (mimetype or pattern method. */ + /** @brief Display correct widget depenging on user choice (mimetype or pattern method). */ void slotMethodChanged(bool active); private: