X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgeometryval.h;h=96c9f5bd9fc3917445e887d396419dbbe2dfc215;hb=9aad7a157711be17032fb5e77136e88eb2c93b8e;hp=654bcd917e1dc23d733517b6b5b3de3f40c56204;hpb=997748156e63b2e28c313521d7ff43e5ed77cb41;p=kdenlive diff --git a/src/geometryval.h b/src/geometryval.h index 654bcd91..96c9f5bd 100644 --- a/src/geometryval.h +++ b/src/geometryval.h @@ -30,29 +30,27 @@ #include "definitions.h" #include "keyframehelper.h" #include "timecodedisplay.h" -#include "ui_geometryposition_ui.h" //class QGraphicsScene; class GraphicsSceneRectMove; class QGraphicsRectItem; -class QMouseEvent; class Geometryval : public QWidget, public Ui::Geometryval { Q_OBJECT public: - explicit Geometryval(const MltVideoProfile profile, Timecode t, QPoint frame_size, int startPoint = 0, QWidget* parent = 0); + explicit Geometryval(const MltVideoProfile &profile, const Timecode &t, const QPoint &frame_size, int startPoint = 0, QWidget* parent = 0); virtual ~Geometryval(); QDomElement getParamDesc(); QString getValue() const; void setFrameSize(QPoint p); - /* update the timecode display depending on what the user wants (frame number or hh:mm:ss:ff) */ + /** @brief Updates the timecode display according to settings (frame number or hh:mm:ss:ff) */ void updateTimecodeFormat(); + void slotUpdateRange(int inPoint, int outPoint); private: MltVideoProfile m_profile; - Timecode m_timecode; int m_realWidth; GraphicsSceneRectMove *m_scene; QGraphicsRectItem *m_paramRect; @@ -65,7 +63,6 @@ private: QAction *m_reset; bool m_fixedMode; QPoint m_frameSize; - Ui::GeometryPosition_UI m_view; void updateTransitionPath(); double m_dar; int m_startPoint; @@ -74,7 +71,9 @@ private: bool keyframeSelected(); public slots: - void setupParam(const QDomElement, int, int); + void setupParam(const QDomElement, int minframe, int maxframe); + /** @brief Updates position of the local timeline to @param relTimelinePos. */ + void slotSyncPosition(int relTimelinePos); private slots: void slotNextFrame();