X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frotoscoping%2Frotowidget.h;h=f3e8d9bd4c2d7dfd15ddc282960e0196be7c8fb2;hb=d23c2b7a038c24dc4d2f2d979a06264c3ba1cdd8;hp=235bf62b320c25970e681af20344a8389a339a10;hpb=fd3954b6965b2bc81eeed9fadd40dbbf9607fa37;p=kdenlive diff --git a/src/rotoscoping/rotowidget.h b/src/rotoscoping/rotowidget.h index 235bf62b..f3e8d9bd 100644 --- a/src/rotoscoping/rotowidget.h +++ b/src/rotoscoping/rotowidget.h @@ -42,27 +42,24 @@ class RotoWidget : public QWidget Q_OBJECT public: - RotoWidget(QString data, Monitor *monitor, ItemInfo info, Timecode t, QWidget* parent = 0); - virtual ~RotoWidget(); + RotoWidget(const QString &data, Monitor *monitor, const ItemInfo &info, const Timecode &t, QWidget* parent = 0); + ~RotoWidget(); /** @brief Returns the spline(s) in the JSON format used by filter_rotoscoping (MLT). */ QString getSpline(); /** @brief Replaces current data with \param spline (JSON). */ - void setSpline(QString spline, bool notify = true); + void setSpline(const QString &spline, bool notify = true); /** @brief Passed on to the keyframe timeline. Switches between frames and hh:mm:ss:ff timecode. */ void updateTimecodeFormat(); 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); signals: void valueChanged(); - void checkMonitorPosition(int); void seekToPos(int pos); @@ -84,15 +81,12 @@ private: QList getPoints(int keyframe); /** @brief Adds tracking_finished as listener for "tracking-finished" event in MLT rotoscoping filter. */ - void setupTrackingListen(ItemInfo info); + void setupTrackingListen(const ItemInfo &info); /** @brief Passes list of keyframe positions to keyframe timeline widget. */ void keyframeTimelineFullUpdate(); 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/Creates the spline at @param pos based on the on-monitor items. */ void slotUpdateData(int pos = -1, bool editing = false);