Changeset View
Changeset View
Standalone View
Standalone View
plugins/impex/libkra/kis_kra_savexml_visitor.cpp
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Line(s) | 285 | { | |||
---|---|---|---|---|---|
323 | if (el.hasAttribute(COLLAPSED)) { | 323 | if (el.hasAttribute(COLLAPSED)) { | ||
324 | layer->setCollapsed(el.attribute(COLLAPSED).toInt()); | 324 | layer->setCollapsed(el.attribute(COLLAPSED).toInt()); | ||
325 | } | 325 | } | ||
326 | 326 | | |||
327 | if (el.hasAttribute(COLOR_LABEL)) { | 327 | if (el.hasAttribute(COLOR_LABEL)) { | ||
328 | layer->setColorLabelIndex(el.attribute(COLOR_LABEL).toInt()); | 328 | layer->setColorLabelIndex(el.attribute(COLOR_LABEL).toInt()); | ||
329 | } | 329 | } | ||
330 | 330 | | |||
331 | if (el.hasAttribute(VISIBLE_IN_TIMELINE)) { | ||||
332 | layer->setUseInTimeline(el.attribute(VISIBLE_IN_TIMELINE).toInt()); | ||||
333 | } | ||||
334 | | ||||
331 | if (el.hasAttribute(LAYER_STYLE_UUID)) { | 335 | if (el.hasAttribute(LAYER_STYLE_UUID)) { | ||
332 | QString uuidString = el.attribute(LAYER_STYLE_UUID); | 336 | QString uuidString = el.attribute(LAYER_STYLE_UUID); | ||
333 | QUuid uuid(uuidString); | 337 | QUuid uuid(uuidString); | ||
334 | if (!uuid.isNull()) { | 338 | if (!uuid.isNull()) { | ||
335 | KisPSDLayerStyleSP dumbLayerStyle(new KisPSDLayerStyle()); | 339 | KisPSDLayerStyleSP dumbLayerStyle(new KisPSDLayerStyle()); | ||
336 | dumbLayerStyle->setUuid(uuid); | 340 | dumbLayerStyle->setUuid(uuid); | ||
337 | layer->setLayerStyle(dumbLayerStyle); | 341 | layer->setLayerStyle(dumbLayerStyle); | ||
338 | } else { | 342 | } else { | ||
Show All 23 Lines | 358 | { | |||
362 | el.setAttribute(LOCKED, layer->userLocked()); | 366 | el.setAttribute(LOCKED, layer->userLocked()); | ||
363 | el.setAttribute(NODE_TYPE, layerType); | 367 | el.setAttribute(NODE_TYPE, layerType); | ||
364 | el.setAttribute(FILE_NAME, filename); | 368 | el.setAttribute(FILE_NAME, filename); | ||
365 | el.setAttribute(X, layer->x()); | 369 | el.setAttribute(X, layer->x()); | ||
366 | el.setAttribute(Y, layer->y()); | 370 | el.setAttribute(Y, layer->y()); | ||
367 | el.setAttribute(UUID, layer->uuid().toString()); | 371 | el.setAttribute(UUID, layer->uuid().toString()); | ||
368 | el.setAttribute(COLLAPSED, layer->collapsed()); | 372 | el.setAttribute(COLLAPSED, layer->collapsed()); | ||
369 | el.setAttribute(COLOR_LABEL, layer->colorLabelIndex()); | 373 | el.setAttribute(COLOR_LABEL, layer->colorLabelIndex()); | ||
374 | el.setAttribute(VISIBLE_IN_TIMELINE, layer->useInTimeline()); | ||||
370 | 375 | | |||
371 | if (layer->layerStyle()) { | 376 | if (layer->layerStyle()) { | ||
372 | el.setAttribute(LAYER_STYLE_UUID, layer->layerStyle()->uuid().toString()); | 377 | el.setAttribute(LAYER_STYLE_UUID, layer->layerStyle()->uuid().toString()); | ||
373 | } | 378 | } | ||
374 | 379 | | |||
375 | Q_FOREACH (KisNodeSP node, m_selectedNodes) { | 380 | Q_FOREACH (KisNodeSP node, m_selectedNodes) { | ||
376 | if (node.data() == layer) { | 381 | if (node.data() == layer) { | ||
377 | el.setAttribute("selected", "true"); | 382 | el.setAttribute("selected", "true"); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |