void updateSceneFrameWidth();
//QList <TrackInfo> tracksList() const;
void setTool(PROJECTTOOL tool);
- ClipItem *cutClip(ItemInfo info, GenTime cutTime, bool cut, bool execute = true);
+ ClipItem *cutClip(ItemInfo info, GenTime cutTime, bool cut, EffectsList oldStack = EffectsList(), bool execute = true);
void slotSeekToPreviousSnap();
void slotSeekToNextSnap();
double getSnapPointForPos(double pos);
*
* Makes sure no clip on track to lock is selected. */
void lockTrack(int ix, bool lock, bool requestUpdate = true);
- void groupClips(bool group = true);
+ void groupClips(bool group = true, QList<QGraphicsItem *> itemList = QList<QGraphicsItem *>(), QUndoCommand *command = NULL);
void doGroupClips(QList <ItemInfo> clipInfos, QList <ItemInfo> transitionInfos, bool group);
void loadGroups(const QDomNodeList &groups);
/** @brief Trigger a monitor refresh. */
void monitorRefresh();
+ /** @brief Returns frame number of current mouse position. */
+ int getMousePos() const;
+
public slots:
/** @brief Send seek request to MLT. */
void seekCursorPos(int pos);
* @param group The group to rebuild */
void rebuildGroup(AbstractGroupItem *group);
- /** @brief Cuts a group into two parts.
- * @param clips1 Clips before the cut
- * @param transitions1 Transitions before the cut
- * @param clipsCut Clips that need to be cut
- * @param transitionsCut Transitions that need to be cut
- * @param clips2 Clips behind the cut
- * @param transitions2 Transitions behind the cut
- * @param cutPos Absolute position of the cut
- * @param cut true = cut, false = "uncut" */
- void slotRazorGroup(QList <ItemInfo> clips1, QList <ItemInfo> transitions1, QList <ItemInfo> clipsCut, QList <ItemInfo> transitionsCut, QList <ItemInfo> clips2, QList <ItemInfo> transitions2, GenTime cutPos, bool cut);
-
/** @brief Add en effect to a track.
* @param effect The new effect xml
* @param ix The track index */
int m_selectedTrack;
int m_spacerOffset;
+ QMutex m_selectionMutex;
QMutex m_mutex;
QWaitCondition m_producerNotReady;
KStatefulBrush m_activeTrackBrush;