X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fspacerdialog.h;h=d840565823f5aa2a28e2a557af11e17e82c545a0;hb=edb2e9a073ba73424d17da6e0821d0e1c0281a19;hp=e474a3b5f7e50f178377d55b84aa050d9cdb07a2;hpb=7437b7945710dc4e330a40ec5e762c0ba97ff91d;p=kdenlive diff --git a/src/spacerdialog.h b/src/spacerdialog.h index e474a3b5..d8405658 100644 --- a/src/spacerdialog.h +++ b/src/spacerdialog.h @@ -21,32 +21,29 @@ #ifndef SPACERDIALOG_H #define SPACERDIALOG_H -#include -#include "timecode.h" #include "ui_spacerdialog_ui.h" +#include "timecode.h" +#include "timecodedisplay.h" +#include "definitions.h" + +/** + * @class SpacerDialog + * @brief A dialog to specify length and track of inserted space. + * @author Jean-Baptiste Mardelle + */ -class SpacerDialog : public QDialog { +class SpacerDialog : public QDialog, public Ui::SpacerDialog_UI +{ Q_OBJECT public: - SpacerDialog(const GenTime duration, Timecode tc, int track, int trackNumber, QWidget * parent = 0); - ~SpacerDialog(); - GenTime selectedDuration(); - int selectedTrack(); - -private slots: - void slotTimeUp(); - void slotTimeDown(); - -protected: - void wheelEvent(QWheelEvent * event); + SpacerDialog(const GenTime &duration, const Timecode &tc, int track, const QList & tracks, QWidget * parent = 0); + GenTime selectedDuration() const; + int selectedTrack() const; private: - Ui::SpacerDialog_UI m_view; - Timecode m_tc; - double m_fps; - + TimecodeDisplay m_in; };