MonitorRefresh(QWidget *parent = 0);
void setRenderer(Render* render);
-protected:
- virtual void paintEvent(QPaintEvent *event);
-
private:
Render *m_renderer;
-
-signals:
- void switchFullScreen();
- void switchPlay();
- void mouseSeek(int, bool);
};
class Overlay : public QLabel
~Monitor();
Render *render;
AbstractRender *abstractRender();
- void resetProfile(const QString profile);
+ void resetProfile(const QString &profile);
const QString name() const;
void resetSize();
bool isActive() const;
protected:
virtual void mousePressEvent(QMouseEvent * event);
virtual void mouseReleaseEvent(QMouseEvent * event);
+ virtual void resizeEvent(QResizeEvent *event);
/** @brief Move to another position on mouse wheel event.
*
/** true if selected clip is transition, false = selected clip is clip.
* Necessary because sometimes we get two signals, e.g. we get a clip and we get selected transition = NULL. */
bool m_loopClipTransition;
+
#if defined(Q_WS_MAC) || defined(USE_OPEN_GL)
VideoGLWidget *m_glWidget;
bool createOpenGlWidget(QWidget *parent, const QString profile);
public slots:
void slotOpenFile(const QString &);
- void slotSetXml(DocClipBase *clip, QPoint zone = QPoint(), const int position = -1);
+ void slotSetClipProducer(DocClipBase *clip, QPoint zone = QPoint(), int position = -1);
+ void updateClipProducer(Mlt::Producer *prod);
void refreshMonitor(bool visible);
void refreshMonitor();
void slotSeek(int pos);
void stop();
void start();
- void activateMonitor();
+ bool activateMonitor();
void slotPlay();
void slotPlayZone();
void slotLoopZone();