#include <QTimeLine>
#include <QMenu>
#include <QUndoStack>
+#include <QMutex>
+#include <QWaitCondition>
#include "kdenlivedoc.h"
#include "docclipbase.h"
void activateMonitor();
int duration() const;
void deleteSelectedClips();
+ /** @brief Cuts all clips that are selected at the timeline cursor position. */
void cutSelectedClips();
void setContextMenu(QMenu *timeline, QMenu *clip, QMenu *transition, QActionGroup *clipTypeGroup, QMenu *markermenu);
void checkTrackHeight();
KPixmapCache* pixmapCache;
/** update the timeline objects when palette changes */
void updatePalette();
+ /** @brief Returns true if a track has audio data on it.
+ * @param track The track number
+ *
+ * Check whether given track has a clip with audio in it. */
+ bool hasAudio(int track) const;
public slots:
void setCursorPos(int pos, bool seek = true);
void moveCursorPos(int delta);
void updateCursorPos();
- void slotDeleteEffect(ClipItem *clip, QDomElement effect, bool affectGroup = true);
- void slotChangeEffectState(ClipItem *clip, int effectPos, bool disable);
- void slotChangeEffectPosition(ClipItem *clip, int currentPos, int newPos);
- void slotUpdateClipEffect(ClipItem *clip, QDomElement oldeffect, QDomElement effect, int ix);
+ void slotDeleteEffect(ClipItem *clip, int track, QDomElement effect, bool affectGroup = true);
+ void slotChangeEffectState(ClipItem *clip, int track, int effectPos, bool disable);
+ void slotChangeEffectPosition(ClipItem *clip, int track, int currentPos, int newPos);
+ void slotUpdateClipEffect(ClipItem *clip, int track, QDomElement oldeffect, QDomElement effect, int ix);
void slotUpdateClipRegion(ClipItem *clip, int ix, QString region);
void slotRefreshEffects(ClipItem *clip);
void setDuration(int duration);
* @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 */
+ void slotAddTrackEffect(const QDomElement effect, int ix);
+
protected:
virtual void drawBackground(QPainter * painter, const QRectF & rect);
//virtual void drawForeground ( QPainter * painter, const QRectF & rect );
int m_selectedTrack;
int m_spacerOffset;
+ QMutex m_mutex;
+ QWaitCondition m_producerNotReady;
+
/** Get the index of the video track that is just below current track */
int getPreviousVideoTrack(int track);
void updatePositionEffects(ClipItem * item, ItemInfo info);
void adjustTimelineTransitions(EDITMODE mode, Transition *item, QUndoCommand *command);
/** Adjust keyframes when pasted to another clip */
void adjustKeyfames(GenTime oldstart, GenTime newstart, GenTime duration, QDomElement xml);
-
+
/** @brief Removes the tip and stops the animation timer. */
void removeTipAnimation();
/** @brief Creates a new tip animation.
* @param command (optional) Will be used as parent command (for undo history) */
void prepareResizeClipEnd(AbstractClipItem *item, ItemInfo oldInfo, int pos, bool check = false, QUndoCommand *command = NULL);
+ /** @brief Collects information about the group's children to pass it on to RazorGroupCommand.
+ * @param group The group to cut
+ * @param cutPos The absolute position of the cut */
+ void razorGroup(AbstractGroupItem *group, GenTime cutPos);
+
+ /** @brief Gets the effect parameters that will be passed to Mlt. */
+ EffectsParameterList getEffectArgs(const QDomElement effect);
+
private slots:
void slotRefreshGuides();
void slotEnableRefresh();
void updateClipMarkers(DocClipBase *);
void updateTrackHeaders();
void playMonitor();
+ /** @brief Monitor document changes (for example the presence of audio data in timeline for export widget.*/
+ void documentModified();
+ void forceClipProcessing(const QString &);
+ void showTrackEffects(int, TrackInfo);
};
#endif