X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmarkerdialog.h;h=a15c70faef6831891ff8a1154d4c596db016e2bd;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=a9e6315b2a6f6840a092258841bb2cd36bab3c33;hpb=76b841800707bca883291039fb7a278a845efe92;p=kdenlive diff --git a/src/markerdialog.h b/src/markerdialog.h index a9e6315b..a15c70fa 100644 --- a/src/markerdialog.h +++ b/src/markerdialog.h @@ -1,4 +1,4 @@ -/*************************************************************************** + /*************************************************************************** * Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org) * * * * This program is free software; you can redistribute it and/or modify * @@ -22,40 +22,43 @@ #define MARKERDIALOG_H +#include "ui_markerdialog_ui.h" #include "docclipbase.h" #include "timecode.h" -#include "ui_markerdialog_ui.h" +#include "timecodedisplay.h" namespace Mlt { class Producer; class Profile; -}; +} -class MarkerDialog : public QDialog +/** + * @class MarkerDialog + * @brief A dialog for editing markers and guides. + * @author Jean-Baptiste Mardelle + */ + +class MarkerDialog : public QDialog, public Ui::MarkerDialog_UI { Q_OBJECT public: - MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, const QString &caption, QWidget * parent = 0); + explicit MarkerDialog(DocClipBase *clip, const CommentedTime &t, const Timecode &tc, const QString &caption, QWidget * parent = 0); ~MarkerDialog(); + CommentedTime newMarker(); + QImage markerImage() const; private slots: - void slotTimeUp(); - void slotTimeDown(); void slotUpdateThumb(); -protected: - void wheelEvent(QWheelEvent * event); - private: Mlt::Producer *m_producer; Mlt::Profile *m_profile; - Ui::MarkerDialog_UI m_view; DocClipBase *m_clip; - Timecode m_tc; - double m_fps; + QImage m_image; + TimecodeDisplay *m_in; double m_dar; QTimer *m_previewTimer;