X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgeometryval.h;h=bccad6612175eeb625bc1660c03eb487f35f8131;hb=e5d7ec0b184543b85c9671d6ef072c1cb4437bb6;hp=4ba289e720739967700baf408bb4a1fc6a3ce3fc;hpb=3764c86b800e4bda12a212d1ec3765e0aa95812a;p=kdenlive diff --git a/src/geometryval.h b/src/geometryval.h index 4ba289e7..bccad661 100644 --- a/src/geometryval.h +++ b/src/geometryval.h @@ -29,7 +29,7 @@ #include "ui_geometryval_ui.h" #include "definitions.h" #include "keyframehelper.h" -#include "ui_geometryposition_ui.h" +#include "timecodedisplay.h" //class QGraphicsScene; class GraphicsSceneRectMove; @@ -41,17 +41,16 @@ 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, Timecode t, 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(); private: MltVideoProfile m_profile; - Timecode m_timecode; int m_realWidth; GraphicsSceneRectMove *m_scene; QGraphicsRectItem *m_paramRect; @@ -64,15 +63,17 @@ private: QAction *m_reset; bool m_fixedMode; QPoint m_frameSize; - Ui::GeometryPosition_UI m_view; void updateTransitionPath(); double m_dar; int m_startPoint; QGraphicsView *m_sceneview; + TimecodeDisplay m_timePos; 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(); @@ -99,8 +100,6 @@ private slots: void slotGeometryY(int value); void slotGeometryWidth(int value); void slotGeometryHeight(int value); - void slotPosUp(); - void slotPosDown(); signals: void parameterChanged();