X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmarkerdialog.h;h=5927868755bfe327027348c718dc61fb31397f60;hb=3714e50009509cf9f0751984ea578dc7a5fa3133;hp=6d56e124381528303f21157cb05a8ef773a2355f;hpb=cd85961a9520f2f3c909e889dacd8de539468b89;p=kdenlive diff --git a/src/markerdialog.h b/src/markerdialog.h index 6d56e124..59278687 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,39 +22,42 @@ #define MARKERDIALOG_H +#include "ui_markerdialog_ui.h" #include "docclipbase.h" #include "timecode.h" -#include "ui_markerdialog_ui.h" +#include "timecodedisplay.h" -namespace Mlt { +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); + 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; - CommentedTime m_marker; - Timecode m_tc; - double m_fps; + QImage m_image; + TimecodeDisplay *m_in; double m_dar; QTimer *m_previewTimer;