25 #include "pencilerror.h"
36 int pos()
const {
return mFrame; }
37 void setPos(
int position) { mFrame = position; }
39 int length()
const {
return mLength; }
40 void setLength(
int len) { mLength = len; }
42 void modification() { mIsModified =
true; }
43 void setModified(
bool b) { mIsModified = b; }
44 bool isModified()
const {
return mIsModified; }
46 void setSelected(
bool b) { mIsSelected = b; }
47 bool isSelected()
const {
return mIsSelected; }
49 QString fileName()
const {
return mAttachedFileName; }
50 void setFileName(
QString strFileName) { mAttachedFileName = strFileName; }
55 virtual KeyFrame* clone() {
return nullptr; }
56 virtual void loadFile() {}
57 virtual void unloadFile() {}
58 virtual bool isLoaded() {
return true; }
60 virtual quint64 memoryUsage() {
return 0; }
65 bool mIsModified =
true;
66 bool mIsSelected =
false;
69 std::vector<KeyFrameEventListener*> mEventListeners;
75 virtual void onKeyFrameDestroy(
KeyFrame*) = 0;