Changeset View
Changeset View
Standalone View
Standalone View
src/timeline2/model/timelinemodel.hpp
Context not available. | |||||
125 | IsBlankRole, /// clip only | 125 | IsBlankRole, /// clip only | ||
---|---|---|---|---|---|
126 | StartRole, /// clip only | 126 | StartRole, /// clip only | ||
127 | BinIdRole, /// clip only | 127 | BinIdRole, /// clip only | ||
128 | TrackIdRole, | ||||
128 | MarkersRole, /// clip only | 129 | MarkersRole, /// clip only | ||
129 | StatusRole, /// clip only | 130 | StatusRole, /// clip only | ||
130 | TypeRole, /// clip only | 131 | TypeRole, /// clip only | ||
Context not available. | |||||
192 | Q_INVOKABLE int getCompositionTrackId(int compoId) const; | 193 | Q_INVOKABLE int getCompositionTrackId(int compoId) const; | ||
193 | 194 | | |||
194 | /* @brief Convenience function that calls either of the previous ones based on item type*/ | 195 | /* @brief Convenience function that calls either of the previous ones based on item type*/ | ||
195 | int getItemTrackId(int itemId) const; | 196 | Q_INVOKABLE int getItemTrackId(int itemId) const; | ||
196 | 197 | | |||
197 | Q_INVOKABLE int getCompositionPosition(int compoId) const; | 198 | Q_INVOKABLE int getCompositionPosition(int compoId) const; | ||
198 | int getCompositionPlaytime(int compoId) const; | 199 | int getCompositionPlaytime(int compoId) const; | ||
199 | 200 | | |||
200 | /* Returns an item position, item can be clip or composition */ | 201 | /* Returns an item position, item can be clip or composition */ | ||
201 | int getItemPosition(int itemId) const; | 202 | Q_INVOKABLE int getItemPosition(int itemId) const; | ||
202 | /* Returns an item duration, item can be clip or composition */ | 203 | /* Returns an item duration, item can be clip or composition */ | ||
203 | int getItemPlaytime(int itemId) const; | 204 | int getItemPlaytime(int itemId) const; | ||
204 | 205 | | |||
Context not available. | |||||
343 | of the clip | 344 | of the clip | ||
344 | @param dontRefreshMasterClip when false, no view refresh is attempted | 345 | @param dontRefreshMasterClip when false, no view refresh is attempted | ||
345 | */ | 346 | */ | ||
346 | Q_INVOKABLE int suggestClipMove(int clipId, int trackId, int position, int snapDistance = -1, bool allowViewUpdate = true); | 347 | Q_INVOKABLE int suggestClipMove(int clipId, int trackId, int position, int snapDistance = -1); | ||
347 | Q_INVOKABLE int suggestCompositionMove(int compoId, int trackId, int position, int snapDistance = -1); | 348 | Q_INVOKABLE int suggestCompositionMove(int compoId, int trackId, int position, int snapDistance = -1); | ||
348 | 349 | | |||
349 | /* @brief Request clip insertion at given position. This action is undoable | 350 | /* @brief Request clip insertion at given position. This action is undoable | ||
Context not available. | |||||
722 | virtual void _endRemoveRows() = 0; | 723 | virtual void _endRemoveRows() = 0; | ||
723 | virtual void notifyChange(const QModelIndex &topleft, const QModelIndex &bottomright, const QVector<int> &roles) = 0; | 724 | virtual void notifyChange(const QModelIndex &topleft, const QModelIndex &bottomright, const QVector<int> &roles) = 0; | ||
724 | virtual void notifyChange(const QModelIndex &topleft, const QModelIndex &bottomright, int role) = 0; | 725 | virtual void notifyChange(const QModelIndex &topleft, const QModelIndex &bottomright, int role) = 0; | ||
725 | virtual QModelIndex makeClipIndexFromID(int) const = 0; | 726 | virtual const QModelIndex makeClipIndexFromID(int) const = 0; | ||
726 | virtual QModelIndex makeCompositionIndexFromID(int) const = 0; | 727 | virtual const QModelIndex makeCompositionIndexFromID(int) const = 0; | ||
727 | virtual QModelIndex makeTrackIndexFromID(int) const = 0; | 728 | virtual const QModelIndex makeTrackIndexFromID(int) const = 0; | ||
728 | virtual void _resetView() = 0; | 729 | virtual void _resetView() = 0; | ||
729 | }; | 730 | }; | ||
730 | #endif | 731 | #endif | ||
Context not available. |