7#ifndef __KIS_ANIMATION_UTILS_H
8#define __KIS_ANIMATION_UTILS_H
12#include <boost/operators.hpp>
13#include <QModelIndexList>
15#include <kritaanimationdocker_export.h>
23 struct KRITAANIMATIONDOCKER_EXPORT
FrameItem :
public boost::equality_comparable<FrameItem>
26 FrameItem(
KisNodeSP _node,
const QString &_channel,
int _time) : node(_node), channel(_channel), time(_time) {}
69 KRITAANIMATIONDOCKER_EXPORT
71 bool copy,
bool moveEmptyFrames,
KUndo2Command *parentCommand = 0);
void makeClonesUnique(KisImageSP image, const FrameItemList &frames)
QVector< FrameItem > FrameItemList
const QString removeOpacityKeyframeActionName
void resetChannels(KisImageSP image, KisNodeSP node, const QList< QString > &channelIDs)
void removeKeyframes(KisImageSP image, const FrameItemList &frames)
void createKeyframeLazy(KisImageSP image, KisNodeSP node, const QString &channelId, int time, bool copy)
const QString newLayerActionName
void removeKeyframe(KisImageSP image, KisNodeSP node, const QString &channel, int time)
const QString addTransformKeyframeActionName
uint qHash(const FrameItem &item)
void resetChannel(KisImageSP image, KisNodeSP node, const QString &channelID)
const QString lazyFrameCreationActionName
void sortPointsForSafeMove(QModelIndexList *points, const QPoint &offset)
const QString addOpacityKeyframeActionName
KUndo2Command * createKeyframeCommand(KisImageSP image, KisNodeSP node, const QString &channelId, int time, bool copy, KUndo2Command *parentCommand)
QDebug operator<<(QDebug dbg, const FrameItem &item)
const QString removeLayerActionName
const QString removeTransformKeyframeActionName
QVector< FrameMovePair > FrameMovePairList
bool supportsContentFrames(KisNodeSP node)
const QString dropFramesActionName
KUndo2Command * createMoveKeyframesCommand(const FrameItemList &srcFrames, const FrameItemList &dstFrames, bool copy, bool moveEmpty, KUndo2Command *parentCommand)
std::pair< FrameItem, FrameItem > FrameMovePair
const QString pinExistingLayerActionName
KUndo2Command * createCloneKeyframesCommand(const FrameMovePairList &srcDstPairs, KUndo2Command *parentCommand)
bool operator==(const FrameItem &rhs) const
FrameItem(KisNodeSP _node, const QString &_channel, int _time)