Changeset View
Changeset View
Standalone View
Standalone View
src/bin/model/markerlistmodel.hpp
Context not available. | |||||
58 | 58 | | |||
---|---|---|---|---|---|
59 | enum { CommentRole = Qt::UserRole + 1, PosRole, FrameRole, ColorRole, TypeRole }; | 59 | enum { CommentRole = Qt::UserRole + 1, PosRole, FrameRole, ColorRole, TypeRole }; | ||
60 | 60 | | |||
61 | /* @brief Adds a marker at the given position. If there is already one, the comment will be overriden | 61 | /* @brief Adds a marker at the given position. If there is already one, the comment will be overridden | ||
62 | @param pos defines the position of the marker, relative to the clip | 62 | @param pos defines the position of the marker, relative to the clip | ||
63 | @param comment is the text associated with the marker | 63 | @param comment is the text associated with the marker | ||
64 | @param type is the type (color) associated with the marker. If -1 is passed, then the value is pulled from kdenlive's defaults | 64 | @param type is the type (color) associated with the marker. If -1 is passed, then the value is pulled from kdenlive's defaults | ||
Context not available. | |||||
129 | 129 | | |||
130 | public slots: | 130 | public slots: | ||
131 | /* @brief Imports a list of markers from json data | 131 | /* @brief Imports a list of markers from json data | ||
132 | The data should be formated as follows: | 132 | The data should be formatted as follows: | ||
133 | [{"pos":0.2, "comment":"marker 1", "type":1}, {...}, ...] | 133 | [{"pos":0.2, "comment":"marker 1", "type":1}, {...}, ...] | ||
134 | return true on succes and logs undo object | 134 | return true on success and logs undo object | ||
135 | @param ignoreConflicts: if set to false, it aborts if the data contains a marker with same position but different comment and/or type. If set to true, | 135 | @param ignoreConflicts: if set to false, it aborts if the data contains a marker with same position but different comment and/or type. If set to true, | ||
136 | such markers are overridden silently | 136 | such markers are overridden silently | ||
137 | @param pushUndo: if true, create an undo object | 137 | @param pushUndo: if true, create an undo object | ||
Context not available. |