]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.h
r6479@lapL: simon | 2010-06-02 20:38:08 +0200
[kdenlive] / src / titlewidget.h
index ea2b025e8f560f1f5f8d0109b7d414e5cf83c5f9..655f5625ea6ae1184b043244534b2798701640d5 100644 (file)
@@ -100,7 +100,7 @@ public:
     /** @brief Returns clip out position. */
     int outPoint() const;
 
-    /** @brief Loads title templates. */
+    /** @brief Retrieves a list of all available title templates. */
     static void refreshTitleTemplates();
 
 protected:
@@ -125,7 +125,7 @@ private:
     QGraphicsPixmapItem *m_frameImage;
     int m_frameWidth;
     int m_frameHeight;
-    Render *m_render;
+    Render *m_render;   // TODO Is NOT destroyed in the destructor. Deliberately?
     int m_count;
     QAction *m_buttonRect;
     QAction *m_buttonText;
@@ -139,6 +139,11 @@ private:
     QAction *m_zDown;
     QAction *m_zTop;
     QAction *m_zBottom;
+    QAction *m_selectAll;
+    QAction *m_selectText;
+    QAction *m_selectRects;
+    QAction *m_selectImages;
+    QAction *m_unselectAll;
 
     /** @brief Dialog for entering Unicode characters in text fields. */
     UnicodeDialog *m_unicodeDialog;
@@ -211,12 +216,17 @@ private:
 
     void itemRotate(qreal val, int axis);
 
+    void selectItems(int itemType);
+
+    /** @brief Appends the shortcut of a QAction to a tooltip text */
+    QString getTooltipWithShortcut(const QString text, QAction *button);
+
 public slots:
     void slotNewText(QGraphicsTextItem *tt);
     void slotNewRect(QGraphicsRectItem *rect);
     void slotChangeBackground();
 
-    /** @brief Sets up the tools according to the selected item. */
+    /** @brief Sets up the tools (toolbars etc.) according to the selected item. */
     void selectionChanged();
     void rectChanged();
     void setupViewports();
@@ -225,7 +235,9 @@ public slots:
     void itemRotateX(qreal);
     void itemRotateY(qreal);
     void itemRotateZ(qreal);
+    /** Save a title to a title file */
     void saveTitle(KUrl url = KUrl());
+    /** Load a title from a title file */
     void loadTitle(KUrl url = KUrl());
 
 private slots:
@@ -282,6 +294,14 @@ private slots:
     void slotAdjustZoom();
     void slotZoomOneToOne();
 
+    void slotSelectAll();
+    void slotSelectText();
+    void slotSelectRects();
+    void slotSelectImages();
+    void slotSelectNone();
+
+
+    /** Called whenever text properties change (font e.g.) */
     void slotUpdateText();
     void slotInsertUnicode();
     void slotInsertUnicodeString(QString);
@@ -332,6 +352,7 @@ private slots:
     void slotZIndexDown();
     void slotZIndexTop();
     void slotZIndexBottom();
+    /** Called when the user wants to apply a different template to the title */
     void templateIndexChanged(int);
 };