X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpositionedit.h;h=ba6e4a5b4debec4a90343403fc87d0c125fb600a;hb=17adadd166051add81f88643f9192172b367ead6;hp=5c2d77e69fa7818b2b3cb6c564d656953d522eff;hpb=cd0a632bc2ffba5c097869364ddffae65605b97b;p=kdenlive diff --git a/src/positionedit.h b/src/positionedit.h index 5c2d77e6..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,21 +19,26 @@ #define POSITONEDIT_H +#include "timecode.h" + #include -#include "timecode.h" -#include "timecodedisplay.h" +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); - virtual ~PositionEdit(); + 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: TimecodeDisplay *m_display; QSlider *m_slider; @@ -42,7 +47,7 @@ private slots: void slotUpdatePosition(); signals: - void parameterChanged(); + void parameterChanged(int pos = 0); }; #endif