X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpositionedit.h;h=ba6e4a5b4debec4a90343403fc87d0c125fb600a;hb=3c844989ad9fdb96bb9258a990a9874773b3d792;hp=a2916b330c054ef4dea1662bf23af0ccfc39e114;hpb=a6b4582eafd6284710aa77dd76dfe4d595e28ce6;p=kdenlive diff --git a/src/positionedit.h b/src/positionedit.h index a2916b33..ba6e4a5b 100644 --- a/src/positionedit.h +++ b/src/positionedit.h @@ -1,5 +1,5 @@ /*************************************************************************** - geomeytrval.h - description + positionedit.h - description ------------------- begin : 03 Aug 2008 copyright : (C) 2008 by Marco Gittler @@ -19,30 +19,35 @@ #define POSITONEDIT_H -#include - -#include "ui_positionval_ui.h" #include "timecode.h" +#include + +class QSlider; +class TimecodeDisplay; class PositionEdit : public QWidget { Q_OBJECT public: - explicit PositionEdit(const QString name, int pos, int min, int max, const Timecode tc, QWidget* parent = 0); + explicit PositionEdit(const QString &name, int pos, int min, int max, const Timecode& tc, QWidget* parent = 0); + ~PositionEdit(); int getPosition() const; void setPosition(int pos); + void updateTimecodeFormat(); +public slots: + void setRange(int min, int max, bool absolute = false); + private: - Ui::Positionval_UI m_ui; - Timecode m_tc; + TimecodeDisplay *m_display; + QSlider *m_slider; private slots: - void slotUpdateTimecode(); void slotUpdatePosition(); signals: - void parameterChanged(); + void parameterChanged(int pos = 0); }; #endif