25#include "pencilerror.h"
38 int pos()
const {
return mFrame; }
39 void setPos(
int position) { mFrame = position; }
41 int length()
const {
return mLength; }
42 void setLength(
int len) { mLength = len; }
44 void modification() { mIsModified =
true; }
45 void setModified(
bool b) { mIsModified = b; }
46 bool isModified()
const {
return mIsModified; }
48 void setSelected(
bool b) { mIsSelected = b; }
49 bool isSelected()
const {
return mIsSelected; }
51 QString fileName()
const {
return mAttachedFileName; }
52 void setFileName(
QString strFileName) { mAttachedFileName = strFileName; }
57 virtual KeyFrame* clone()
const {
return nullptr; }
58 virtual void loadFile() {}
59 virtual void unloadFile() {}
60 virtual bool isLoaded()
const {
return true; }
62 virtual quint64 memoryUsage() {
return 0; }
67 bool mIsModified =
true;
68 bool mIsSelected =
false;
71 std::vector<KeyFrameEventListener*> mEventListeners;
77 virtual void onKeyFrameDestroy(
KeyFrame*) = 0;