21 , m_position(position)
35 if (existingEntry.isValid()){
52 if (nextEntry.isValid()){
73 , m_position(position)
129 , m_fromTime(fromTime)
130 , m_toSceneIndex(toSceneIndex)
156 , m_oldValue(oldValue)
157 , m_newValue(newValue)
158 , m_parentRow(parentRow)
159 , m_childRow(childRow)
178 if (storyboardChildCmd) {
191 , m_position(position + 1)
200 m_frameThumbnail.
frameNum = m_frameThumbnail.
frameNum.toInt() + sceneLength.toInt();
KisAddStoryboardCommand(int position, StoryboardItemSP item, StoryboardModel *model, KUndo2Command *parent=0)
StoryboardItemSP m_modelItem
StoryboardModel * m_model
~KisAddStoryboardCommand()
QScopedPointer< KUndo2Command > m_keyframeCommands
StoryboardModel * m_model
~KisDuplicateStoryboardCommand()
QScopedPointer< KUndo2Command > m_addCommand
StoryboardItemSP m_duplicate
KisDuplicateStoryboardCommand(int position, StoryboardModel *model, KUndo2Command *parent=0)
void requestTimeSwitchNonGUI(int time, bool useUndo=false)
KisImageAnimationInterface * animationInterface() const
StoryboardModel * m_model
KisMoveStoryboardCommand(int from, int to, int count, StoryboardModel *model, KUndo2Command *parent=0)
~KisMoveStoryboardCommand()
~KisRemoveStoryboardCommand()
StoryboardModel * m_model
KisRemoveStoryboardCommand(int position, StoryboardItemSP item, StoryboardModel *model, KUndo2Command *parent=0)
bool mergeWith(const KUndo2Command *other) override
StoryboardModel * m_model
KisStoryboardChildEditCommand(QVariant oldValue, QVariant newValue, int parentRow, int childRow, StoryboardModel *model, KUndo2Command *parent=0)
static KisTimeSpan infinite(int start)
StoryboardModel * m_model
KisVisualizeStoryboardCommand(int fromTime, int toSceneIndex, StoryboardModel *model, KisImageSP image, KUndo2Command *parent=0)
~KisVisualizeStoryboardCommand()
This class stores a list of StoryboardChild objects and provides functionality to manipulate the list...
@ DurationFrame
Store the duration in frame at index 3. Data type stored here should be int.
@ FrameNumber
Store the frame number at index 0. Data type stored here should be ThumbnailData.
@ DurationSecond
Store the duration in second at index 2. Data type stored here should be int.
The main storyboard model. This class manages a StoryboardItemList which is a list of StoryboardItem ...
void insertChildRows(int position, KUndo2Command *cmd=nullptr)
must be called after a first level index is inserted. Adds child nodes to the first level indices
int getFramesPerSecond() const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
void visualizeScene(const QModelIndex &index, bool useUndo=true)
@ TotalSceneDurationInFrames
StoryboardItemList getData()
bool removeItem(QModelIndex index, KUndo2Command *command=nullptr)
removes item, deletes keyframes within and shifts keyframe after the scene to fill in the gap
bool moveRowsImpl(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild, KUndo2Command *parentCMD=nullptr)
void createDuplicateKeyframes(const QModelIndex &index, KUndo2Command *cmd=nullptr)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void shiftKeyframes(KisTimeSpan affected, int offset, KUndo2Command *cmd=nullptr)
This class is a simple combination of two QVariants. It can be converted to and from QVariant type an...
QVariant frameNum
the frame number corresponding to this item in the timeline docker
KUndo2MagicString kundo2_i18n(const char *text)