]> git.sesse.net Git - kdenlive/blobdiff - src/slideshowclip.h
Image sequences can now start at an arbitrary frame, just select the first one in...
[kdenlive] / src / slideshowclip.h
index 662ed1c89de18bb904f4abdd6a6ea961af6017b2..69fc496fcbcfee1c950aa8b21a6541a62ddcffbd 100644 (file)
@@ -37,15 +37,26 @@ public:
     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,6 +66,8 @@ 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). */
+    void slotMethodChanged(bool active);
 
 private:
     Ui::SlideshowClip_UI m_view;