void addTrack(TrackInfo type, int ix = -1);
void removeTrack(int ix);
/** @brief Makes the document use new track infos (name, type, ...). */
- void configTracks(QList <TrackInfo> trackInfos);
- int cursorPos();
+ void configTracks(const QList<TrackInfo> &trackInfos);
+ int cursorPos() const;
void checkAutoScroll();
/**
Move the clip at \c start to \c end.
void deleteClip(ItemInfo info, bool refresh = true);
void slotDeleteClipMarker(const QString &comment, const QString &id, const GenTime &position);
void slotDeleteAllClipMarkers(const QString &id);
- void addMarker(const QString &id, const CommentedTime marker);
+ void addMarker(const QString &id, const CommentedTime &marker);
void addData(const QString &id, const QString &key, const QString &data);
void setScale(double scaleFactor, double verticalScale);
void deleteClip(const QString &clipId);
* Check whether given track has a clip with audio in it. */
bool hasAudio(int track) const;
- int getFrameWidth();
+ int getFrameWidth() const;
/** @brief Returns last requested seeking pos (or SEEK_INACTIVE if no seek). */
int seekPosition() const;
/** @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);
/** @brief Shows a dialog for adding a guide.
* @param dialog (default = true) false = do not show the dialog but use current position as position and comment */
void slotAddGuide(bool dialog = true);
- void slotEditGuide(CommentedTime guide);
+ void slotEditGuide(const CommentedTime &guide);
void slotEditGuide(int guidePos = -1);
void slotDeleteGuide(int guidePos = -1);
void slotDeleteAllGuides();
/** @brief Rebuilds a group to fit again after children changed.
* @param childTrack the track of one of the groups children
* @param childPos The position of the same child */
- void rebuildGroup(int childTrack, GenTime childPos);
+ void rebuildGroup(int childTrack, const GenTime &childPos);
/** @brief Rebuilds a group to fit again after children changed.
* @param group The group to rebuild */
void rebuildGroup(AbstractGroupItem *group);
int m_selectedTrack;
int m_spacerOffset;
+ QMutex m_selectionMutex;
QMutex m_mutex;
QWaitCondition m_producerNotReady;
KStatefulBrush m_activeTrackBrush;