Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp index f90a5f8..6059e9b 100644 --- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp +++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp | |||
@@ -37,7 +37,7 @@ SyntaxDocument::SyntaxDocument() | |||
37 | void SyntaxDocument::setIdentifier(const QString& identifier) | 37 | void SyntaxDocument::setIdentifier(const QString& identifier) |
38 | { | 38 | { |
39 | #warning FIXME delete m_root; | 39 | #warning FIXME delete m_root; |
40 | m_root=Opie::XMLElement::load(identifier); | 40 | m_root=Opie::Core::XMLElement::load(identifier); |
41 | if (!m_root) KMessageBox::error( 0L, i18n("Can't open %1").arg(identifier) ); | 41 | if (!m_root) KMessageBox::error( 0L, i18n("Can't open %1").arg(identifier) ); |
42 | 42 | ||
43 | } | 43 | } |
@@ -78,7 +78,7 @@ void SyntaxDocument::setupModeList(bool force) | |||
78 | { | 78 | { |
79 | qDebug("Found a description file:"+path+(*it)); | 79 | qDebug("Found a description file:"+path+(*it)); |
80 | setIdentifier(path+(*it)); | 80 | setIdentifier(path+(*it)); |
81 | Opie::XMLElement *e=m_root; | 81 | Opie::Core::XMLElement *e=m_root; |
82 | if (e) | 82 | if (e) |
83 | { | 83 | { |
84 | e=e->firstChild(); | 84 | e=e->firstChild(); |
@@ -195,7 +195,7 @@ syntaxContextData* SyntaxDocument::getSubItems(syntaxContextData* data) | |||
195 | 195 | ||
196 | syntaxContextData* SyntaxDocument::getConfig(const QString& mainGroupName, const QString &Config) | 196 | syntaxContextData* SyntaxDocument::getConfig(const QString& mainGroupName, const QString &Config) |
197 | { | 197 | { |
198 | Opie::XMLElement *e = m_root->firstChild()->firstChild(); | 198 | Opie::Core::XMLElement *e = m_root->firstChild()->firstChild(); |
199 | 199 | ||
200 | while (e) | 200 | while (e) |
201 | { | 201 | { |
@@ -203,7 +203,7 @@ syntaxContextData* SyntaxDocument::getConfig(const QString& mainGroupName, const | |||
203 | 203 | ||
204 | if (e->tagName().compare(mainGroupName)==0 ) | 204 | if (e->tagName().compare(mainGroupName)==0 ) |
205 | { | 205 | { |
206 | Opie::XMLElement *e1=e->firstChild(); | 206 | Opie::Core::XMLElement *e1=e->firstChild(); |
207 | 207 | ||
208 | while (e1) | 208 | while (e1) |
209 | { | 209 | { |
@@ -237,7 +237,7 @@ syntaxContextData* SyntaxDocument::getConfig(const QString& mainGroupName, const | |||
237 | syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, const QString &group) | 237 | syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, const QString &group) |
238 | { | 238 | { |
239 | 239 | ||
240 | Opie::XMLElement *e=m_root->firstChild()->firstChild(); | 240 | Opie::Core::XMLElement *e=m_root->firstChild()->firstChild(); |
241 | 241 | ||
242 | while (e) | 242 | while (e) |
243 | { | 243 | { |
@@ -245,7 +245,7 @@ syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, co | |||
245 | 245 | ||
246 | if (e->tagName().compare(mainGroupName)==0 ) | 246 | if (e->tagName().compare(mainGroupName)==0 ) |
247 | { | 247 | { |
248 | Opie::XMLElement *e1=e->firstChild(); | 248 | Opie::Core::XMLElement *e1=e->firstChild(); |
249 | 249 | ||
250 | while (e1) | 250 | while (e1) |
251 | { | 251 | { |
@@ -276,7 +276,7 @@ syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, co | |||
276 | 276 | ||
277 | QStringList& SyntaxDocument::finddata(const QString& mainGroup,const QString& type,bool clearList) | 277 | QStringList& SyntaxDocument::finddata(const QString& mainGroup,const QString& type,bool clearList) |
278 | { | 278 | { |
279 | Opie::XMLElement *e = m_root->firstChild(); | 279 | Opie::Core::XMLElement *e = m_root->firstChild(); |
280 | if (clearList) | 280 | if (clearList) |
281 | m_data.clear(); | 281 | m_data.clear(); |
282 | 282 | ||
@@ -284,13 +284,13 @@ QStringList& SyntaxDocument::finddata(const QString& mainGroup,const QString& ty | |||
284 | { | 284 | { |
285 | if (e->tagName()==mainGroup) | 285 | if (e->tagName()==mainGroup) |
286 | { | 286 | { |
287 | for (Opie::XMLElement *e1=e->firstChild();e1;e1=e1->nextChild()) | 287 | for (Opie::Core::XMLElement *e1=e->firstChild();e1;e1=e1->nextChild()) |
288 | { | 288 | { |
289 | if (e1->tagName()!="list") continue; | 289 | if (e1->tagName()!="list") continue; |
290 | 290 | ||
291 | if (e1->attribute("name")==type) | 291 | if (e1->attribute("name")==type) |
292 | { | 292 | { |
293 | for (Opie::XMLElement *e2=e1->firstChild();e2;e2=e2->nextChild()) | 293 | for (Opie::Core::XMLElement *e2=e1->firstChild();e2;e2=e2->nextChild()) |
294 | { | 294 | { |
295 | qDebug("FOUND A LIST ENTRY("+e2->tagName()+"):"+e2->firstChild()->value()); | 295 | qDebug("FOUND A LIST ENTRY("+e2->tagName()+"):"+e2->firstChild()->value()); |
296 | m_data+=e2->firstChild()->value().stripWhiteSpace(); | 296 | m_data+=e2->firstChild()->value().stripWhiteSpace(); |