]> git.sesse.net Git - kdenlive/blobdiff - src/monitorscene.h
- Add controls to zoom monitor scene
[kdenlive] / src / monitorscene.h
index 92b4c8ab990681af4d7dfab4e72ceccb4afd3840..800755b519c9f3fff7382ae3c8c6cb0bd04338a2 100644 (file)
@@ -35,7 +35,6 @@ public:
     MonitorScene(Render *renderer, QObject* parent = 0);
     void setUp();
     void setEnabled(bool enabled = true);
-    bool getDirectUpdate();
     void resetProfile();
 
 protected:
@@ -47,6 +46,12 @@ public slots:
     void slotUpdateBackground(bool fit = false);
     void slotSetDirectUpdate(bool directUpdate);
 
+    void slotZoom(int value);
+    void slotZoomFit();
+    void slotZoomOriginal();
+    void slotZoomIn();
+    void slotZoomOut();
+
 private slots:
     void slotSetBackgroundImage(const QImage &image);
 
@@ -64,10 +69,11 @@ private:
     QImage m_backgroundImage;
     bool m_enabled;
     bool m_modified;
-    bool m_directUpdate;
+    qreal m_zoom;
 
 signals:
     void actionFinished();
+    void zoomChanged(int);
 };
 
 #endif