Krita Source Code Documentation
Loading...
Searching...
No Matches
TimelineNodeListKeeper::ModelWithExternalNotifications Struct Reference

#include <timeline_node_list_keeper.h>

+ Inheritance diagram for TimelineNodeListKeeper::ModelWithExternalNotifications:

Public Member Functions

void callBeginInsertRows (const QModelIndex &parent, int first, int last)
 
void callBeginRemoveRows (const QModelIndex &parent, int first, int last)
 
void callBeginResetModel ()
 
void callEndInsertRows ()
 
void callEndRemoveRows ()
 
void callEndResetModel ()
 
void callIndexChanged (const QModelIndex &index0, const QModelIndex &index1)
 
 ModelWithExternalNotifications (QObject *parent)
 
- Public Member Functions inherited from KisTimeBasedItemModel
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
int currentTime () const
 
QVariant data (const QModelIndex &index, int role) const override
 
KisDocumentdocument () const
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
bool isFrameCached (const int frame)
 
bool isPlaybackActive () const
 
bool isPlaybackPaused () const
 
bool isScrubbing ()
 
 KisTimeBasedItemModel (QObject *parent)
 
bool mirrorFrames (QModelIndexList indexes)
 
bool removeFrames (const QModelIndexList &indexes)
 
bool removeFramesAndOffset (QModelIndexList indicesToRemove)
 
void scrubHorizontalHeaderUpdate (int activeHeader)
 
void setAnimationPlayer (KisCanvasAnimationState *player)
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
void setDocument (class KisDocument *document)
 
void setFrameCache (KisAnimationFrameCacheSP cache)
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role) override
 
void setImage (KisImageWSP image)
 
void setLastVisibleFrame (int time)
 
void setPlaybackRange (const KisTimeSpan &range)
 
void setScrubState (bool active)
 
void stopPlayback () const
 
 ~KisTimeBasedItemModel () override
 

Additional Inherited Members

- Public Types inherited from KisTimeBasedItemModel
enum  ItemDataRole {
  ActiveFrameRole = Qt::UserRole + 101 , ScrubToRole , CloneOfActiveFrame , CloneCount ,
  FrameExistsRole , SpecialKeyframeExists , FrameCachedRole , FrameEditableRole ,
  FramesPerSecondRole , FrameHasContent , WithinClipRange , UserRole
}
 
- Protected Slots inherited from KisTimeBasedItemModel
void slotCurrentTimeChanged (int time)
 
- Protected Member Functions inherited from KisTimeBasedItemModel
virtual KisKeyframeChannelchannelByID (QModelIndex index, const QString &id) const =0
 
virtual QMap< QString, KisKeyframeChannel * > channelsAt (QModelIndex index) const =0
 
int cloneCount (const QModelIndex &index) const
 
bool cloneOfActiveFrame (const QModelIndex &index) const
 
KUndo2CommandcreateOffsetFramesCommand (QModelIndexList srcIndexes, const QPoint &offset, bool copyFrames, bool moveEmptyFrames, KUndo2Command *parentCommand=0)
 
KisImageWSP image () const
 
virtual KisNodeSP nodeAt (QModelIndex index) const =0
 

Detailed Description

Definition at line 57 of file timeline_node_list_keeper.h.

Constructor & Destructor Documentation

◆ ModelWithExternalNotifications()

TimelineNodeListKeeper::ModelWithExternalNotifications::ModelWithExternalNotifications ( QObject * parent)
inline

Definition at line 58 of file timeline_node_list_keeper.h.

59 : KisTimeBasedItemModel(parent) {}
KisTimeBasedItemModel(QObject *parent)

Member Function Documentation

◆ callBeginInsertRows()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callBeginInsertRows ( const QModelIndex & parent,
int first,
int last )
inline

Definition at line 69 of file timeline_node_list_keeper.h.

69 {
70 beginInsertRows(parent, first, last);
71 }

◆ callBeginRemoveRows()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callBeginRemoveRows ( const QModelIndex & parent,
int first,
int last )
inline

Definition at line 77 of file timeline_node_list_keeper.h.

77 {
78 beginRemoveRows(parent, first, last);
79 }

◆ callBeginResetModel()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callBeginResetModel ( )
inline

Definition at line 61 of file timeline_node_list_keeper.h.

61 {
62 beginResetModel();
63 }

◆ callEndInsertRows()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callEndInsertRows ( )
inline

Definition at line 73 of file timeline_node_list_keeper.h.

73 {
74 endInsertRows();
75 }

◆ callEndRemoveRows()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callEndRemoveRows ( )
inline

Definition at line 81 of file timeline_node_list_keeper.h.

81 {
82 endRemoveRows();
83 }

◆ callEndResetModel()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callEndResetModel ( )
inline

Definition at line 65 of file timeline_node_list_keeper.h.

65 {
66 endResetModel();
67 }

◆ callIndexChanged()

void TimelineNodeListKeeper::ModelWithExternalNotifications::callIndexChanged ( const QModelIndex & index0,
const QModelIndex & index1 )
inline

Definition at line 85 of file timeline_node_list_keeper.h.

85 {
86 Q_EMIT dataChanged(index0, index1);
87 }

The documentation for this struct was generated from the following file: