]> git.sesse.net Git - kdenlive/blobdiff - src/monitor.h
- Fix split audio with locked audio tracks
[kdenlive] / src / monitor.h
index f246af70d1b8645b75b9e56e627d3788032b0874..6b0be9d30e4357a5db8e06d0cad7923e12e9af27 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "gentime.h"
 #include "ui_monitor_ui.h"
+#include "timecodedisplay.h"
 #ifdef Q_WS_MAC
 #include "videoglwidget.h"
 #endif
@@ -56,7 +57,6 @@ class Overlay : public QLabel
     Q_OBJECT
 public:
     Overlay(QWidget* parent);
-    virtual void paintEvent(QPaintEvent * event);
     void setOverlayText(const QString &, bool isZone = true);
 
 private:
@@ -87,14 +87,20 @@ public:
 protected:
     virtual void mousePressEvent(QMouseEvent * event);
     virtual void mouseReleaseEvent(QMouseEvent * event);
+
+    /** @brief Move to another position on mouse wheel event.
+     *
+     * Moves towards the end of the clip/timeline on mouse wheel down/back, the
+     * opposite on mouse wheel up/forward.
+     * Ctrl + wheel moves by a second, without Ctrl it moves by a single frame. */
     virtual void wheelEvent(QWheelEvent * event);
     virtual void mouseMoveEvent(QMouseEvent *event);
     virtual QStringList mimeTypes() const;
-    /*    virtual void dragMoveEvent(QDragMoveEvent * event);
-        virtual Qt::DropActions supportedDropActions() const;*/
+    /*virtual void dragMoveEvent(QDragMoveEvent * event);
+    virtual Qt::DropActions supportedDropActions() const;*/
 
-//    virtual void resizeEvent(QResizeEvent * event);
-//    virtual void paintEvent(QPaintEvent * event);
+    //virtual void resizeEvent(QResizeEvent * event);
+    //virtual void paintEvent(QPaintEvent * event);
 
 private:
     Ui::Monitor_UI m_ui;
@@ -110,7 +116,7 @@ private:
     MonitorRefresh *m_monitorRefresh;
     KIcon m_playIcon;
     KIcon m_pauseIcon;
-    KRestrictedLine *m_timePos;
+    TimecodeDisplay *m_timePos;
     QAction *m_playAction;
     QMenu *m_contextMenu;
     QMenu *m_configMenu;
@@ -121,7 +127,6 @@ private:
     VideoGLWidget *m_glWidget;
 #endif
     GenTime getSnapForPos(bool previous);
-    bool m_frametimecode;
 
 private slots:
     void seekCursor(int pos);