]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.h
- Add ability to configure the default duration for title clips.
[kdenlive] / src / titlewidget.h
index b6ecc7c99b6c8804040b560d80b6956f4342c29a..d31b8958fb61078910db96b6fd7984adeb22cdad 100644 (file)
 #include <QMap>
 #include <QSignalMapper>
 
+class TitleTemplate
+{
+public:
+    QString file;
+    QString name;
+    QIcon icon;
+};
 
 class Transform
 {
@@ -44,6 +51,7 @@ public:
     double rotatex, rotatey, rotatez;
 };
 
+
 class TitleWidget : public QDialog , public Ui::TitleWidget_UI
 {
     Q_OBJECT
@@ -85,6 +93,8 @@ public:
 
     /** \brief Get clip duration. */
     int duration() const;
+    /** load Title Templates*/
+    static void refreshTitleTemplates();
 
 protected:
     virtual void resizeEvent(QResizeEvent * event);
@@ -124,6 +134,7 @@ private:
     /** project path for storing title clips */
     QString m_projectTitlePath;
     Timecode m_tc;
+    QString lastDocumentHash;
 
     /** See http://doc.trolltech.com/4.5/signalsandslots.html#advanced-signals-and-slots-usage */
     QSignalMapper *m_signalMapper;
@@ -169,7 +180,7 @@ private:
     void deleteAnimInfoText();
 
     qreal maxZIndex();
-    /** 
+    /**
      * \brief Get the minimum/maximum z index value of items.
      * \param maxBound true: Use maximum z index. false: Use minimum
      * \param intersectingOnly Only considers the items intersecting with
@@ -290,6 +301,7 @@ private slots:
     void slotZIndexDown();
     void slotZIndexTop();
     void slotZIndexBottom();
+    void templateIndexChanged(int);
 };