1 /***************************************************************************
2 * Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
21 #ifndef CUSTOMTRACKVIEW_H
22 #define CUSTOMTRACKVIEW_H
24 #include <kdeversion.h>
25 #include <KColorScheme>
27 #include <QGraphicsView>
28 #include <QGraphicsItemAnimation>
33 #include <QWaitCondition>
35 #include "kdenlivedoc.h"
36 #include "docclipbase.h"
38 #include "effectslist.h"
39 #include "customtrackscene.h"
42 class AbstractClipItem;
43 class AbstractGroupItem;
45 class AudioCorrelation;
47 class CustomTrackView : public QGraphicsView
52 CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent = 0);
53 virtual ~ CustomTrackView();
54 virtual void mousePressEvent(QMouseEvent * event);
55 virtual void mouseReleaseEvent(QMouseEvent * event);
56 virtual void mouseMoveEvent(QMouseEvent * event);
57 virtual void mouseDoubleClickEvent(QMouseEvent *event);
58 void addTrack(const TrackInfo &type, int ix = -1);
59 void removeTrack(int ix);
60 /** @brief Makes the document use new track infos (name, type, ...). */
61 void configTracks(const QList<TrackInfo> &trackInfos);
62 int cursorPos() const;
63 void checkAutoScroll();
65 Move the clip at \c start to \c end.
67 If \c out_actualEnd is not NULL, it will be set to the position the clip really ended up at.
68 For example, attempting to move a clip to t = -1 s will actually move it to t = 0 s.
70 bool moveClip(const ItemInfo &start, const ItemInfo &end, bool refresh, ItemInfo *out_actualEnd = NULL);
71 void moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> startTransition, const GenTime &offset, const int trackOffset, bool reverseMove = false);
72 /** move transition, startPos = (old start, old end), endPos = (new start, new end) */
73 void moveTransition(const ItemInfo &start, const ItemInfo &end, bool refresh);
74 void resizeClip(const ItemInfo &start, const ItemInfo &end, bool dontWorry = false);
75 void addClip(QDomElement xml, const QString &clipId, ItemInfo info, EffectsList list = EffectsList(), bool overwrite = false, bool push = false, bool refresh = true);
76 void deleteClip(ItemInfo info, bool refresh = true);
77 void slotDeleteClipMarker(const QString &comment, const QString &id, const GenTime &position);
78 void slotDeleteAllClipMarkers(const QString &id);
79 void addMarker(const QString &id, const CommentedTime &marker);
80 void addData(const QString &id, const QString &key, const QString &data);
81 void setScale(double scaleFactor, double verticalScale);
82 void deleteClip(const QString &clipId);
83 /** @brief An effect was dropped on @param clip */
84 void slotDropEffect(ClipItem *clip, QDomElement effect, GenTime pos, int track);
85 /** @brief Add effect to current clip */
86 void slotAddEffect(QDomElement effect, const GenTime &pos, int track);
87 void slotAddGroupEffect(QDomElement effect, AbstractGroupItem *group, AbstractClipItem *dropTarget = NULL);
88 void addEffect(int track, GenTime pos, QDomElement effect);
89 void deleteEffect(int track, const GenTime &pos, const QDomElement &effect);
90 void updateEffect(int track, GenTime pos, QDomElement insertedEffect, bool refreshEffectStack = false);
91 /** @brief Enable / disable a list of effects */
92 void updateEffectState(int track, GenTime pos, QList <int> effectIndexes, bool disable, bool updateEffectStack);
93 void moveEffect(int track, GenTime pos, QList <int> oldPos, QList <int> newPos);
94 void addTransition(const ItemInfo &transitionInfo, int endTrack, const QDomElement ¶ms, bool refresh);
95 void deleteTransition(const ItemInfo &transitionInfo, int endTrack, QDomElement params, bool refresh);
96 void updateTransition(int track, GenTime pos, QDomElement oldTransition, QDomElement transition, bool updateTransitionWidget);
97 void activateMonitor();
99 void deleteSelectedClips();
100 /** @brief Cuts all clips that are selected at the timeline cursor position. */
101 void cutSelectedClips();
102 void setContextMenu(QMenu *timeline, QMenu *clip, QMenu *transition, QActionGroup *clipTypeGroup, QMenu *markermenu);
103 bool checkTrackHeight();
104 void updateSceneFrameWidth();
105 //QList <TrackInfo> tracksList() const;
106 void setTool(PROJECTTOOL tool);
107 ClipItem *cutClip(const ItemInfo &info, const GenTime &cutTime, bool cut, const EffectsList &oldStack = EffectsList(), bool execute = true);
108 void slotSeekToPreviousSnap();
109 void slotSeekToNextSnap();
110 double getSnapPointForPos(double pos);
111 void editKeyFrame(const GenTime &pos, const int track, const int index, const QString &keyframes);
112 bool findString(const QString &text);
113 void selectFound(QString track, QString pos);
114 bool findNextString(const QString &text);
115 void initSearchStrings();
116 void clearSearchStrings();
117 QList<ItemInfo> findId(const QString &clipId);
120 void doChangeClipSpeed(ItemInfo info, ItemInfo speedIndependantInfo, const double speed, const double oldspeed, int strobe, const QString &id);
121 /** @brief Sets the document as modified. */
122 void setDocumentModified();
126 /** @brief Prepares inserting space.
128 * Shows a dialog to configure length and track. */
129 void slotInsertSpace();
130 /** @brief Prepares removing space. */
131 void slotRemoveSpace();
132 void insertSpace(QList<ItemInfo> clipsToMove, QList<ItemInfo> transToMove, int track, const GenTime &duration, const GenTime &offset);
133 ClipItem *getActiveClipUnderCursor(bool allowOutsideCursor = false) const;
134 void deleteTimelineTrack(int ix, TrackInfo trackinfo);
135 void saveThumbnails();
136 void autoTransition();
137 void initCursorPos(int pos);
139 /** @brief Locks or unlocks a track.
140 * @param ix number of track
141 * @param lock whether to lock or unlock
142 * @param requestUpdate (default = true) Whether to request an update of the icon in the track header
144 * Makes sure no clip on track to lock is selected. */
145 void lockTrack(int ix, bool lock, bool requestUpdate = true);
146 void groupClips(bool group = true, QList<QGraphicsItem *> itemList = QList<QGraphicsItem *>(), QUndoCommand *command = NULL);
147 void doGroupClips(QList <ItemInfo> clipInfos, QList <ItemInfo> transitionInfos, bool group);
148 void loadGroups(const QDomNodeList &groups);
150 /** @brief Creates SplitAudioCommands for selected clips. */
153 /// Define which clip to take as reference for automatic audio alignment
154 void setAudioAlignReference();
156 /// Automatically align the currently selected clips to synchronize their audio with the reference's audio
159 /** @brief Seperates the audio of a clip to a audio track.
160 * @param pos Position of the clip to split
161 * @param track Track of the clip
162 * @param split Split or unsplit */
163 void doSplitAudio(const GenTime &pos, int track, EffectsList effects, bool split);
166 void setAudioAndVideo();
167 void doChangeClipType(const GenTime &pos, int track, bool videoOnly, bool audioOnly);
168 int hasGuide(int pos, int offset);
169 void reloadTransitionLumas();
170 void updateProjectFps();
172 int selectedTrack() const;
173 QStringList selectedClips() const;
174 QList<ClipItem *> selectedClipItems() const;
175 /** @brief Checks wheter an item can be inserted (make sure it does not overlap another item) */
176 bool canBePastedTo(ItemInfo info, int type) const;
178 /** @brief Selects a clip.
179 * @param add Whether to select or deselect
180 * @param group (optional) Whether to add the clip to a group
181 * @param track (optional) The track of the clip (has to be combined with @param pos)
182 * @param pos (optional) The position of the clip (has to be combined with @param track) */
183 void selectClip(bool add, bool group = false, int track = -1, int pos = -1);
184 void selectTransition(bool add, bool group = false);
185 QStringList extractTransitionsLumas();
186 void setEditMode(EDITMODE mode);
188 /** @brief Inserts @param clip.
189 * @param clip The clip to insert
190 * @param in The inpoint of the clip (crop from start)
191 * @param out The outpoint of the clip (crop from end)
193 * Inserts at the position of timeline cursor and selected track. */
194 void insertClipCut(DocClipBase *clip, int in, int out);
195 void clearSelection(bool emitInfo = true);
196 void editItemDuration();
197 void buildGuidesMenu(QMenu *goMenu) const;
198 /** update the timeline objects when palette changes */
199 void updatePalette();
200 /** @brief Returns true if a track has audio data on it.
201 * @param track The track number
203 * Check whether given track has a clip with audio in it. */
204 bool hasAudio(int track) const;
206 int getFrameWidth() const;
207 /** @brief Returns last requested seeking pos (or SEEK_INACTIVE if no seek). */
208 int seekPosition() const;
210 /** @brief Trigger a monitor refresh. */
211 void monitorRefresh();
213 /** @brief Returns frame number of current mouse position. */
214 int getMousePos() const;
217 /** @brief Send seek request to MLT. */
218 void seekCursorPos(int pos);
219 /** @brief Move timeline cursor to new position. */
220 void setCursorPos(int pos);
221 void moveCursorPos(int delta);
222 void updateCursorPos();
223 void slotDeleteEffect(ClipItem *clip, int track, QDomElement effect, bool affectGroup = true);
224 void slotChangeEffectState(ClipItem *clip, int track, QList <int> effectIndexes, bool disable);
225 void slotChangeEffectPosition(ClipItem *clip, int track, QList <int> currentPos, int newPos);
226 void slotUpdateClipEffect(ClipItem *clip, int track, QDomElement oldeffect, QDomElement effect, int ix, bool refreshEffectStack = true);
227 void slotUpdateClipRegion(ClipItem *clip, int ix, QString region);
228 void slotRefreshEffects(ClipItem *clip);
229 void setDuration(int duration);
230 void slotAddTransition(ClipItem* clip, ItemInfo transitionInfo, int endTrack, QDomElement transition = QDomElement());
231 void slotAddTransitionToSelectedClips(QDomElement transition);
232 void slotTransitionUpdated(Transition *, QDomElement);
233 void slotSwitchTrackAudio(int ix);
234 void slotSwitchTrackVideo(int ix);
235 void slotSwitchTrackLock(int ix);
236 void slotUpdateClip(const QString &clipId, bool reload = true);
238 /** @brief Add extra data to a clip. */
239 void slotAddClipExtraData(const QString &id, const QString &key, const QString &data = QString(), QUndoCommand *groupCommand = 0);
240 /** @brief Creates a AddClipCommand to add, edit or delete a marker.
241 * @param id Id of the marker's clip
242 * @param t Position of the marker
243 * @param c Comment of the marker */
244 void slotAddClipMarker(const QString &id, QList <CommentedTime> newMarker, QUndoCommand *groupCommand = 0);
245 void slotLoadClipMarkers(const QString &id);
246 void slotSaveClipMarkers(const QString &id);
247 bool addGuide(const GenTime &pos, const QString &comment);
249 /** @brief Shows a dialog for adding a guide.
250 * @param dialog (default = true) false = do not show the dialog but use current position as position and comment */
251 void slotAddGuide(bool dialog = true);
252 void slotEditGuide(const CommentedTime &guide);
253 void slotEditGuide(int guidePos = -1);
254 void slotDeleteGuide(int guidePos = -1);
255 void slotDeleteAllGuides();
256 void editGuide(const GenTime &oldPos, const GenTime &pos, const QString &comment);
259 void pasteClipEffects();
260 void slotUpdateAllThumbs();
261 void slotCheckPositionScrolling();
262 void slotInsertTrack(int ix);
264 /** @brief Shows a dialog for selecting a track to delete.
265 * @param ix Number of the track, which should be pre-selected in the dialog */
266 void slotDeleteTrack(int ix);
267 /** @brief Shows the configure tracks dialog. */
268 void slotConfigTracks(int ix);
269 void clipNameChanged(const QString &id, const QString &name);
271 void slotTrackDown();
272 void slotSelectTrack(int ix);
273 void insertZoneOverwrite(QStringList data, int in);
275 /** @brief Rebuilds a group to fit again after children changed.
276 * @param childTrack the track of one of the groups children
277 * @param childPos The position of the same child */
278 void rebuildGroup(int childTrack, const GenTime &childPos);
279 /** @brief Rebuilds a group to fit again after children changed.
280 * @param group The group to rebuild */
281 void rebuildGroup(AbstractGroupItem *group);
283 /** @brief Add en effect to a track.
284 * @param effect The new effect xml
285 * @param ix The track index */
286 void slotAddTrackEffect(const QDomElement &effect, int ix);
287 /** @brief Select all clips in selected track. */
288 void slotSelectClipsInTrack();
289 /** @brief Select all clips in timeline. */
290 void slotSelectAllClips();
292 /** @brief Update the list of snap points (sticky timeline hotspots).
293 * @param selected The currently selected clip if any
294 * @param offsetList The list of points that should also snap (for example when movin a clip, start and end points should snap
295 * @param skipSelectedItems if true, the selected item start and end points will not be added to snap list */
296 void updateSnapPoints(AbstractClipItem *selected, QList <GenTime> offsetList = QList <GenTime> (), bool skipSelectedItems = false);
298 void slotAddEffect(ClipItem *clip, const QDomElement &effect);
299 void slotImportClipKeyframes(GRAPHICSRECTITEM type);
301 /** @brief Get effect parameters ready for MLT*/
302 static void adjustEffectParameters(EffectsParameterList ¶meters, QDomNodeList params, MltVideoProfile profile, const QString &prefix = QString());
303 /** @brief Move playhead to mouse curser position if defined key is pressed */
304 void slotAlignPlayheadToMousePos();
307 virtual void drawBackground(QPainter * painter, const QRectF & rect);
308 //virtual void drawForeground ( QPainter * painter, const QRectF & rect );
309 virtual void dragEnterEvent(QDragEnterEvent * event);
310 virtual void dragMoveEvent(QDragMoveEvent * event);
311 virtual void dragLeaveEvent(QDragLeaveEvent * event);
312 /** @brief Something has been dropped onto the timeline */
313 virtual void dropEvent(QDropEvent * event);
314 virtual void wheelEvent(QWheelEvent * e);
315 virtual void keyPressEvent(QKeyEvent * event);
316 virtual QStringList mimeTypes() const;
317 virtual Qt::DropActions supportedDropActions() const;
322 int m_projectDuration;
324 KdenliveDoc *m_document;
325 CustomTrackScene *m_scene;
326 QGraphicsLineItem *m_cursorLine;
327 ItemInfo m_dragItemInfo;
328 ItemInfo m_selectionGroupInfo;
329 OPERATIONTYPE m_operationMode;
330 OPERATIONTYPE m_moveOpMode;
331 AbstractClipItem *m_dragItem;
333 QUndoStack *m_commandStack;
334 QGraphicsItem *m_visualTip;
335 QGraphicsItemAnimation *m_animation;
336 QTimeLine *m_animationTimer;
341 QList <CommentedTime> m_searchPoints;
342 QList <Guide *> m_guides;
344 ClipItem *getClipItemAt(int pos, int track);
345 ClipItem *getClipItemAt(GenTime pos, int track);
346 ClipItem *getClipItemAtEnd(GenTime pos, int track);
347 ClipItem *getClipItemAtStart(GenTime pos, int track);
348 Transition *getTransitionItem(TransitionInfo info);
349 Transition *getTransitionItemAt(int pos, int track);
350 Transition *getTransitionItemAt(GenTime pos, int track);
351 Transition *getTransitionItemAtEnd(GenTime pos, int track);
352 Transition *getTransitionItemAtStart(GenTime pos, int track);
353 void checkScrolling();
354 /** Should we auto scroll while playing (keep in sync with KdenliveSettings::autoscroll() */
356 void displayContextMenu(QPoint pos, AbstractClipItem *clip, AbstractGroupItem *group);
357 QMenu *m_timelineContextMenu;
358 QMenu *m_timelineContextClipMenu;
359 QMenu *m_timelineContextTransitionMenu;
361 QAction *m_autoTransition;
362 QAction *m_pasteEffectsAction;
363 QAction *m_ungroupAction;
364 QAction *m_editGuide;
365 QAction *m_deleteGuide;
366 QList <QAction*> m_audioActions;
367 QList <QAction*> m_avActions;
368 QActionGroup *m_clipTypeGroup;
369 QTimer m_scrollTimer;
370 QTimer m_thumbsTimer;
376 QCursor m_razorCursor;
377 QCursor m_spacerCursor;
378 /** list containing items currently copied in the timeline */
379 QList<AbstractClipItem *> m_copiedItems;
380 /** Used to get the point in timeline where a context menu was opened */
381 QPoint m_menuPosition;
383 AbstractGroupItem *m_selectionGroup;
384 QList <ClipItem *> m_waitingThumbs;
388 QMutex m_selectionMutex;
390 QWaitCondition m_producerNotReady;
391 KStatefulBrush m_activeTrackBrush;
393 AudioCorrelation *m_audioCorrelator;
394 ClipItem *m_audioAlignmentReference;
396 /** stores the state of the control modifier during mouse press.
397 * Will then be used to identify whether we resize a group or only one item of it. */
398 bool m_controlModifier;
400 /** Get the index of the video track that is just below current track */
401 int getPreviousVideoTrack(int track);
402 void updatePositionEffects(ClipItem * item, const ItemInfo &info, bool standalone = true);
403 bool insertDropClips(const QMimeData *data, const QPoint &pos);
404 bool canBePastedTo(QList <ItemInfo> infoList, int type) const;
405 bool canBePasted(QList<AbstractClipItem *> items, GenTime offset, int trackOffset) const;
406 bool canBeMoved(QList<AbstractClipItem *> items, GenTime offset, int trackOffset) const;
407 ClipItem *getClipUnderCursor() const;
408 AbstractClipItem *getMainActiveClip() const;
409 void resetSelectionGroup(bool selectItems = true);
410 void groupSelectedItems(QList <QGraphicsItem *> selection = QList <QGraphicsItem *>(), bool createNewGroup = false, bool selectNewGroup = false);
411 /** Get available space for clip move (min and max free positions) */
412 void getClipAvailableSpace(AbstractClipItem *item, GenTime &minimum, GenTime &maximum);
413 /** Get available space for transition move (min and max free positions) */
414 void getTransitionAvailableSpace(AbstractClipItem *item, GenTime &minimum, GenTime &maximum);
415 void updateClipTypeActions(ClipItem *clip);
416 /** Whether an item can be moved to a new position without colliding with similar items */
417 bool itemCollision(AbstractClipItem *item, const ItemInfo &newPos);
418 /** Selects all items in the scene rect, and sets ok to false if a group going over several tracks is found in it */
419 QList<QGraphicsItem *> checkForGroups(const QRectF &rect, bool *ok);
420 /** Adjust clips under another one when working in overwrite mode */
421 void adjustTimelineClips(EDITMODE mode, ClipItem *item, ItemInfo posinfo, QUndoCommand *command);
422 void adjustTimelineTransitions(EDITMODE mode, Transition *item, QUndoCommand *command);
423 /** Adjust keyframes when pasted to another clip */
424 void adjustKeyfames(GenTime oldstart, GenTime newstart, GenTime duration, QDomElement xml);
426 /** @brief Removes the tip and stops the animation timer. */
427 void removeTipAnimation();
428 /** @brief Creates a new tip animation.
429 * @param clip clip to display the tip on
430 * @param mode operation mode for which the tip should be displayed
431 * @param size size of the tip */
432 void setTipAnimation(AbstractClipItem *clip, OPERATIONTYPE mode, const double size);
434 /** @brief Takes care of updating effects and attached transitions during a resize from start.
435 * @param item Item to resize
436 * @param oldInfo The item's info before resizement (set to item->info() is @param check true)
437 * @param pos New startPos
438 * @param check (optional, default = false) Whether to check for collisions
439 * @param command (optional) Will be used as parent command (for undo history) */
440 void prepareResizeClipStart(AbstractClipItem *item, ItemInfo oldInfo, int pos, bool check = false, QUndoCommand *command = NULL);
442 /** @brief Takes care of updating effects and attached transitions during a resize from end.
443 * @param item Item to resize
444 * @param oldInfo The item's info before resizement (set to item->info() is @param check true)
445 * @param pos New endPos
446 * @param check (optional, default = false) Whether to check for collisions
447 * @param command (optional) Will be used as parent command (for undo history) */
448 void prepareResizeClipEnd(AbstractClipItem *item, ItemInfo oldInfo, int pos, bool check = false, QUndoCommand *command = NULL);
450 /** @brief Collects information about the group's children to pass it on to RazorGroupCommand.
451 * @param group The group to cut
452 * @param cutPos The absolute position of the cut */
453 void razorGroup(AbstractGroupItem *group, GenTime cutPos);
455 /** @brief Gets the effect parameters that will be passed to Mlt. */
456 EffectsParameterList getEffectArgs(const QDomElement &effect);
458 /** @brief Update Tracknames to fit again after track was added/deleted.
459 * @param track Number of track which was added/deleted
460 * @param added true = track added, false = track deleted
462 * The default track name consists of type + number. If we add/delete a track the number has to be adjusted
463 * if the name is still the default one. */
464 void updateTrackNames(int track, bool added);
466 /** @brief Updates the duration stored in a track's TrackInfo.
467 * @param track Number of track as used in ItemInfo (not the numbering used in KdenliveDoc) (negative for all tracks)
468 * @param command If effects need to be updated the commands to do this will be attached to this undo command
470 * In addition to update the duration in TrackInfo it updates effects with keyframes on the track. */
471 void updateTrackDuration(int track, QUndoCommand *command);
473 /** @brief Adjusts effects after a clip resize.
474 * @param item The item that was resized
475 * @param oldInfo pre resize info
476 * @param fromStart false = resize from end
477 * @param command Used as a parent for EditEffectCommand */
478 void adjustEffects(ClipItem *item, ItemInfo oldInfo, QUndoCommand *command);
480 /** @brief Prepare an add clip command for an effect */
481 void processEffect(ClipItem *item, QDomElement effect, int offset, QUndoCommand *effectCommand);
484 void slotRefreshGuides();
485 void slotEnableRefresh();
486 void slotCheckMouseScrolling();
487 void slotEditTimeLineGuide();
488 void slotDeleteTimeLineGuide();
489 void slotFetchNextThumbs();
490 void checkTrackSequence(int track);
491 void slotGoToMarker(QAction *action);
492 void slotResetMenuPosition();
493 void slotDoResetMenuPosition();
494 /** @brief Re-create the clip thumbnails.
495 * @param id The clip's Id string.
496 * @param resetThumbs Should we recreate the timeline thumbnails. */
497 void slotRefreshThumbs(const QString &id, bool resetThumbs);
498 /** @brief A Filter job producer results. */
499 void slotGotFilterJobResults(const QString &id, int startPos, int track, stringMap filterParams, stringMap extra);
503 void cursorMoved(int, int);
506 void mousePosition(int);
507 /** @brief A clip was selected in timeline, update the effect stack
508 * @param clip The clip
509 * @param raise If true, the effect stack widget will be raised (come to front). */
510 void clipItemSelected(ClipItem *clip, bool raise = true);
511 void transitionItemSelected(Transition*, int track = 0, QPoint p = QPoint(), bool update = false);
512 void activateDocumentMonitor();
513 void trackHeightChanged();
514 void tracksChanged();
515 void displayMessage(const QString &, MessageType);
516 void showClipFrame(DocClipBase *, QPoint, bool, const int);
517 void doTrackLock(int, bool);
518 void updateClipMarkers(DocClipBase *);
519 void updateClipExtraData(DocClipBase *);
520 void updateTrackHeaders();
522 /** @brief Monitor document changes (for example the presence of audio data in timeline for export widget.*/
523 void documentModified();
524 void forceClipProcessing(const QString &);
525 void showTrackEffects(int, TrackInfo);
526 /** @brief Update the track effect button that shows if a track has effects or not.*/
527 void updateTrackEffectState(int);
528 /** @brief Cursor position changed, repaint ruler.*/
530 /** @brief Send data from a clip to be imported as keyframes for effect / transition.*/
531 void importKeyframes(GRAPHICSRECTITEM type, const QString&, int maximum);