/** @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:
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;
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;
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();
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:
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);
void slotZIndexDown();
void slotZIndexTop();
void slotZIndexBottom();
+ /** Called when the user wants to apply a different template to the title */
void templateIndexChanged(int);
};