X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcornerswidget.h;h=d71f656c7285d23d1501f7df536ebcaa395ab8b8;hb=d18eaa998a96b0f8d9dd43e5b7dd2fb9574e71a1;hp=709d361f98bf93401ca6d39899660091ec4d9145;hpb=33d51597c3104adb45d9fa72eebf2577e84e681b;p=kdenlive diff --git a/src/cornerswidget.h b/src/cornerswidget.h index 709d361f..d71f656c 100644 --- a/src/cornerswidget.h +++ b/src/cornerswidget.h @@ -28,7 +28,6 @@ class QDomElement; class Monitor; class MonitorScene; class OnMonitorCornersItem; -class MonitorSceneControlWidget; class CornersWidget : public KeyframeEdit @@ -49,24 +48,32 @@ public: public slots: /** @brief Switches from normal monitor to monitor scene according to @param show. */ void slotShowScene(bool show = true); + /** @brief Updates the on-monitor item. */ + void slotSyncPosition(int relTimelinePos); private: Monitor *m_monitor; MonitorScene *m_scene; OnMonitorCornersItem *m_item; bool m_showScene; - MonitorSceneControlWidget *m_config; + int m_pos; + + /** @brief Returns the corner positions set in the row of @param keyframe. */ + QList getPoints(QTableWidgetItem *keyframe); private slots: /** @brief Makes sure the monitor effect scene is only visible if the clip this geometry belongs to is visible. * @param renderPos Postion of the Monitor / Timeline cursor */ void slotCheckMonitorPosition(int renderPos); - /** @brief Updates the on-monitor item according current values in the keyframe editor. */ + /** @brief Updates the on-monitor item according to the current timeline position. */ void slotUpdateItem(); /** @brief Updates the keyframe editor according to the on-monitor item. */ void slotUpdateProperties(); + /** @brief Inserts a keyframe at the current (playback) position (m_pos). */ + void slotInsertKeyframe(); + /** @brief Shows/Hides the lines connecting the corners in the on-monitor item according to @param show. */ void slotShowLines(bool show = true);