]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.h
Fix template title clips & some other title issues
[kdenlive] / src / titlewidget.h
index 26e7e84af0c7a0a0bc1f2ad6af597b570bdb9caa..d09c8c2e539777dc7e295e6aff59f859638314a4 100644 (file)
@@ -71,11 +71,6 @@ public:
      * returned. */
     static QString getTitleResourceFromName(const KUrl &projectUrl, const QString &titleName);
 
-    /** \brief returns the size of the rendered pixmap
-    *
-    */
-    const QRect renderedRect();
-
     /** \brief Get clip duration. */
     int duration() const;
 
@@ -83,9 +78,9 @@ protected:
     virtual void resizeEvent(QResizeEvent * event);
 
 private:
-    QGraphicsPolygonItem *m_startViewport, *m_endViewport;
+    QGraphicsRectItem *m_startViewport, *m_endViewport;
     GraphicsSceneRectMove *m_scene;
-    void initViewports();
+    void initAnimation();
     QMap<QGraphicsItem*, Transform > m_transformations;
     TitleDocument m_titledocument;
     QGraphicsRectItem *m_frameBorder;
@@ -144,6 +139,8 @@ private:
     /** \brief Check a tool button. */
     void checkButton(TITLETOOL toolType);
 
+    void adjustFrameSize();
+
 public slots:
     void slotNewText(QGraphicsTextItem *tt);
     void slotNewRect(QGraphicsRectItem *rect);
@@ -154,11 +151,8 @@ public slots:
     void zIndexChanged(int);
     void itemScaled(int);
     void itemRotate(int);
-    void itemHCenter();
-    void itemVCenter();
     void saveTitle(KUrl url = KUrl());
-    void loadTitle();
-    QImage renderedPixmap();
+    void loadTitle(KUrl url = KUrl());
 
 private slots:
     void slotAdjustSelectedItem();
@@ -227,6 +221,19 @@ private slots:
     void slotSelectTool();
     void slotImageTool();
 
+    void slotAnimStart(bool);
+    void slotAnimEnd(bool);
+    void slotKeepAspect(bool keep);
+
+    void itemHCenter();
+    void itemVCenter();
+    void itemTop();
+    void itemBottom();
+    void itemLeft();
+    void itemRight();
+    void slotResize50();
+    void slotResize100();
+    void slotResize200();
 
     /** \brief Called when accepted, stores the user selections for next time use */
     void slotAccepted();