]> git.sesse.net Git - kdenlive/blobdiff - src/graphicsscenerectmove.h
Const'ref
[kdenlive] / src / graphicsscenerectmove.h
index cb2c07f86e87439675baf5df42df7afde1a9eeb6..3ed50cef7ca6f421f0a095111a7f36cc4157bf92 100644 (file)
@@ -24,7 +24,7 @@
 #include <QGraphicsScene>
 
 enum resizeModes {NoResize, TopLeft, BottomLeft, TopRight, BottomRight, Left, Right, Up, Down};
-enum TITLETOOL { TITLE_NONE = -1, TITLE_SELECT = 0, TITLE_RECTANGLE = 1, TITLE_TEXT = 2, TITLE_IMAGE = 3 };
+enum TITLETOOL { TITLE_SELECT = 0, TITLE_RECTANGLE = 1, TITLE_TEXT = 2, TITLE_IMAGE = 3 };
 
 class GraphicsSceneRectMove: public QGraphicsScene
 {
@@ -36,14 +36,18 @@ public:
     void setScale(double s);
     void setZoom(double s);
     void setTool(TITLETOOL tool);
-    TITLETOOL tool();
+    TITLETOOL tool() const;
     void clearTextSelection();
 
+public slots:
+    void slotUpdateFontSize(int s);
+
 protected:
     virtual void keyPressEvent(QKeyEvent * keyEvent);
     virtual void mousePressEvent(QGraphicsSceneMouseEvent*);
     virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent*);
     virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e);
+    /** @brief Resizes and moves items */
     virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
     virtual void wheelEvent(QGraphicsSceneWheelEvent * wheelEvent);
 
@@ -56,6 +60,7 @@ private:
     QPointF m_sceneClickPoint;
     TITLETOOL m_tool;
     QPoint m_clickPoint;
+    int m_fontSize;
 
 signals:
     void itemMoved();