#include "gentime.h"
#include "ui_monitor_ui.h"
+#include "timecodedisplay.h"
#ifdef Q_WS_MAC
#include "videoglwidget.h"
#endif
Q_OBJECT
public:
Overlay(QWidget* parent);
- virtual void paintEvent(QPaintEvent * event);
void setOverlayText(const QString &, bool isZone = true);
private:
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;
MonitorRefresh *m_monitorRefresh;
KIcon m_playIcon;
KIcon m_pauseIcon;
- KRestrictedLine *m_timePos;
+ TimecodeDisplay *m_timePos;
QAction *m_playAction;
QMenu *m_contextMenu;
QMenu *m_configMenu;
VideoGLWidget *m_glWidget;
#endif
GenTime getSnapForPos(bool previous);
- bool m_frametimecode;
private slots:
void seekCursor(int pos);
void adjustMonitorSize();
void zoneUpdated(QPoint);
void saveZone(Render *, QPoint);
- void blockMonitors();
};
#endif