#include "elemPropertyData.h" #include "plisthpp/redream.h" ElemPropertyData::ElemPropertyData() { //TODO: 把默认图标变成程序内部资源 iconPath = ":/icon/icon/菜狗.png"; dropConfig = 0; } bool ElemPropertyData::isSingleContainerKey(QString poolKey,QString newKey) { int index = getPoolIndex(poolKey); for(const auto &i:container[index].table){ if(newKey == i.key){ return false; } } return true; } bool ElemPropertyData::isSingleChildElemName(QString newName) { for(const auto &i:childElem){ if(newName == i.name){ return false; } } return true; } int ElemPropertyData::getAnimIndex(QString animName) { for(int i=0;i ElemPropertyData::getTimelineList(QString filePath) { if(timelineListMap.find(filePath) == timelineListMap.end()){ QList list = Redream::getInstance()->getTimelineFromRedream(filePath.toStdString()); timelineListMap[filePath] = list; return list; } return timelineListMap[filePath]; }