Changeset View
Changeset View
Standalone View
Standalone View
src/acbf/AcbfPage.cpp
Context not available. | |||||
21 | 21 | | |||
---|---|---|---|---|---|
22 | #include "AcbfPage.h" | 22 | #include "AcbfPage.h" | ||
23 | #include "AcbfTextlayer.h" | 23 | #include "AcbfTextlayer.h" | ||
24 | #include "AcbfFrame.h" | ||||
25 | #include "AcbfJump.h" | ||||
24 | 26 | | |||
25 | #include <QDebug> | 27 | #include <QDebug> | ||
26 | #include <QHash> | 28 | #include <QHash> | ||
Context not available. | |||||
85 | layer->toXml(writer); | 87 | layer->toXml(writer); | ||
86 | } | 88 | } | ||
87 | 89 | | |||
88 | // Q_FOREACH(Frame* frame, d->frames) { | 90 | Q_FOREACH(Frame* frame, d->frames) { | ||
89 | // frame->toXml(writer); | 91 | frame->toXml(writer); | ||
90 | // } | 92 | } | ||
91 | 93 | | |||
92 | // Q_FOREACH(Jump* jump, d->jumps) { | 94 | Q_FOREACH(Jump* jump, d->jumps) { | ||
93 | // jump->toXml(writer); | 95 | jump->toXml(writer); | ||
94 | // } | 96 | } | ||
95 | 97 | | |||
96 | writer->writeEndElement(); | 98 | writer->writeEndElement(); | ||
97 | } | 99 | } | ||
Context not available. | |||||
125 | } | 127 | } | ||
126 | d->textLayers[newLayer->language()] = newLayer; | 128 | d->textLayers[newLayer->language()] = newLayer; | ||
127 | } | 129 | } | ||
128 | // else if(xmlReader->name() == "frame") | 130 | else if(xmlReader->name() == QStringLiteral("frame")) | ||
129 | // { | 131 | { | ||
130 | // Frame* newFrame = new Frame(this); | 132 | Frame* newFrame = new Frame(this); | ||
131 | // if(!newFrame->fromXml()) { | 133 | if(!newFrame->fromXml(xmlReader)) { | ||
132 | // return false; | 134 | return false; | ||
133 | // } | 135 | } | ||
134 | // d->frames.append(newFrame); | 136 | d->frames.append(newFrame); | ||
135 | // } | 137 | | ||
136 | // else if(xmlReader->name() == "jump") | 138 | // Frames have no child elements, so we need to force the reader to go to the next one. | ||
137 | // { | 139 | xmlReader->readNext(); | ||
138 | // Jump* newJump = new Jump(this); | 140 | } | ||
139 | // if(!newJump->fromXml()) { | 141 | else if(xmlReader->name() == QStringLiteral("jump")) | ||
140 | // return false; | 142 | { | ||
141 | // } | 143 | Jump* newJump = new Jump(this); | ||
142 | // d->jumps.append(newJump); | 144 | if(!newJump->fromXml(xmlReader)) { | ||
143 | // } | 145 | return false; | ||
146 | } | ||||
147 | | ||||
148 | // Jumps have no child elements, so we need to force the reader to go to the next one. | ||||
149 | d->jumps.append(newJump); | ||||
150 | xmlReader->readNext(); | ||||
151 | } | ||||
144 | else | 152 | else | ||
145 | { | 153 | { | ||
146 | qWarning() << Q_FUNC_INFO << "currently unsupported subsection:" << xmlReader->name(); | 154 | qWarning() << Q_FUNC_INFO << "currently unsupported subsection:" << xmlReader->name(); | ||
Context not available. |