Exemple #1
0
	MergeCmappedUndo(TXshLevel *xl, int mergeCmappedSessionId,
					 int column, TXshSimpleLevel *level, const std::map<TFrameId, QString> &images,
					 int mColumn,
					 TPalette *palette)
		: TUndo(), m_xl(xl), m_mergeCmappedSessionId(mergeCmappedSessionId), m_palette(palette->clone()), m_level(level), m_column(column), m_mColumn(mColumn), m_images(images)

	{
		m_fullpath = m_xl->getPath().getWideString();
	}
TXshLevel *TLevelSet::getLevel(const ToonzScene &scene,
                               const TFilePath &levelPath) const {
  const TFilePath &decodedPath = scene.decodeFilePath(levelPath);

  int l, lCount = getLevelCount();
  for (l = 0; l != lCount; ++l) {
    TXshLevel *level = getLevel(l);
    if (decodedPath == scene.decodeFilePath(level->getPath())) return level;
  }

  return 0;
}