+
+ QAction *m_unicodeAction;
+ QAction *m_zUp;
+ 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;
+
+ /** @brief Project path for storing title documents. */
+ 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;
+
+ enum ValueType { ValueWidth = 1, ValueHeight = 2, ValueX = 4, ValueY = 8 };
+
+ /** @brief Sets the font weight value in the combo box. (#909) */
+ void setFontBoxWeight(int weight);
+
+ /** @brief Stores the choices of font, background and rectangle values. */
+ void writeChoices();
+
+ /** @brief Reads the last stored choices into the dialog. */
+ void readChoices();
+
+ /** @brief Updates the displayed X/Y coordinates. */
+ void updateCoordinates(QGraphicsItem *i);
+
+ /** @brief Updates the displayed width/height/zindex values. */
+ void updateDimension(QGraphicsItem *i);
+
+ /** @brief Updates the displayed rotation/zoom values. Changes values of rotation/zoom GUI elements. */
+ void updateRotZoom(QGraphicsItem *i);
+
+ /** @brief Updates the item position (position read directly from the GUI). Does not change GUI elements. */
+ void updatePosition(QGraphicsItem *i);
+ /** @brief Updates the item position. Does not change GUI elements. */
+ void updatePosition(QGraphicsItem *i, int x, int y);
+
+ void textChanged(QGraphicsTextItem *i);
+ void updateAxisButtons(QGraphicsItem *i);
+
+ void updateTextOriginX();
+ void updateTextOriginY();
+
+ /** @brief Enables the toolbars suiting to toolType. */
+ void enableToolbars(TITLETOOL toolType);
+
+ /** @brief Shows the toolbars suiting to toolType. */
+ void showToolbars(TITLETOOL toolType);
+
+ /** @brief Set up the tools suiting referenceItem */
+ void prepareTools(QGraphicsItem *referenceItem);
+
+ /** @brief Checks a tool button. */
+ void checkButton(TITLETOOL toolType);
+
+ void adjustFrameSize();
+
+ /** @brief Adds a "start" and "end" info text to the animation viewports. */
+ void addAnimInfoText();
+
+ /** @brief Updates the font for the "start" and "end" info text. */
+ void updateInfoText();
+
+ /** @brief Removes the "start" and "end" info text from animation viewports. */
+ void deleteAnimInfoText();
+
+ qreal maxZIndex();
+
+ /** @brief Gets the minimum/maximum Z index of items.
+ * @param maxBound true: use maximum Z index; false: use minimum
+ * @param intersectingOnly if true, consider only the items intersecting
+ * with the currently selected item
+ */
+ qreal zIndexBounds(bool maxBound, bool intersectingOnly);
+
+ 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);