|
Krita Source Code Documentation
|
This class stores a list of StoryboardChild objects and provides functionality to manipulate the list. Specific item type must be stored at specific indices. More...
#include <StoryboardItem.h>
Inheritance diagram for StoryboardItem:Public Types | |
| enum | childType { FrameNumber , ItemName , DurationSecond , DurationFrame , Comments } |
| This enum defines the data type to be stored at particular indices. More... | |
Public Member Functions | |
| void | appendChild (QVariant data) |
| QSharedPointer< StoryboardChild > | child (int row) const |
| int | childCount () const |
| void | cloneChildrenFrom (const StoryboardItem &other) |
| void | insertChild (int row, QVariant data=QVariant()) |
| void | loadXML (const QDomElement &itemNode) |
| void | moveChild (int from, int to) |
| void | removeChild (int row) |
| StoryboardItem () | |
| StoryboardItem (const StoryboardItem &other) | |
| QDomElement | toXML (QDomDocument doc) |
| ~StoryboardItem () | |
Static Public Member Functions | |
| static StoryboardItemList | cloneStoryboardItemList (const StoryboardItemList &list) |
Private Attributes | |
| QVector< QSharedPointer< StoryboardChild > > | m_childData |
This class stores a list of StoryboardChild objects and provides functionality to manipulate the list. Specific item type must be stored at specific indices.
| childType | enum for the indices and corresponding data type to be stored. |
Definition at line 151 of file StoryboardItem.h.
This enum defines the data type to be stored at particular indices.
| FrameNumber | Store the frame number at index 0. Data type stored here should be ThumbnailData. |
| ItemName | Store the item name at index 1. Data type stored here should be string. |
| DurationSecond | Store the duration in second at index 2. Data type should be int. |
| DurationFrame | Store the duration in frame at index 3. Data type should be int. |
| Comments | Store the comments at indices greater_than_or_equal_to to index 4. Data type should be CommentBox. |
| Enumerator | |
|---|---|
| FrameNumber | Store the frame number at index 0. Data type stored here should be |
| ItemName | Store the item name at index 1. Data type stored here should be |
| DurationSecond | Store the duration in second at index 2. Data type stored here should be |
| DurationFrame | Store the duration in frame at index 3. Data type stored here should be |
| Comments | Store the comments at indices greater_than_or_equal_to to index 4. Data type stored here should be |
Definition at line 181 of file StoryboardItem.h.
|
explicit |
Definition at line 14 of file StoryboardItem.cpp.
| StoryboardItem::StoryboardItem | ( | const StoryboardItem & | other | ) |
Definition at line 18 of file StoryboardItem.cpp.
References cloneChildrenFrom().
| StoryboardItem::~StoryboardItem | ( | ) |
Definition at line 25 of file StoryboardItem.cpp.
References m_childData.
| void StoryboardItem::appendChild | ( | QVariant | data | ) |
Definition at line 30 of file StoryboardItem.cpp.
References child(), m_childData, and toQShared().
| QSharedPointer< StoryboardChild > StoryboardItem::child | ( | int | row | ) | const |
Definition at line 69 of file StoryboardItem.cpp.
References m_childData.
| int StoryboardItem::childCount | ( | ) | const |
Definition at line 64 of file StoryboardItem.cpp.
References m_childData.
| void StoryboardItem::cloneChildrenFrom | ( | const StoryboardItem & | other | ) |
Definition at line 37 of file StoryboardItem.cpp.
References child(), m_childData, and toQShared().
|
static |
Definition at line 123 of file StoryboardItem.cpp.
References StoryboardItem(), and toQShared().
| void StoryboardItem::insertChild | ( | int | row, |
| QVariant | data = QVariant() ) |
Definition at line 47 of file StoryboardItem.cpp.
References child(), m_childData, and toQShared().
| void StoryboardItem::loadXML | ( | const QDomElement & | itemNode | ) |
Definition at line 100 of file StoryboardItem.cpp.
References appendChild(), CommentBox::content, ThumbnailData::frameNum, and CommentBox::scrollValue.
| void StoryboardItem::moveChild | ( | int | from, |
| int | to ) |
Definition at line 59 of file StoryboardItem.cpp.
References m_childData.
| void StoryboardItem::removeChild | ( | int | row | ) |
Definition at line 54 of file StoryboardItem.cpp.
References m_childData.
| QDomElement StoryboardItem::toXML | ( | QDomDocument | doc | ) |
Definition at line 77 of file StoryboardItem.cpp.
References child(), childCount(), Comments, CommentBox::content, DurationFrame, DurationSecond, FrameNumber, ItemName, and CommentBox::scrollValue.
|
private |
Definition at line 206 of file StoryboardItem.h.