author | drw <drw> | 2004-02-23 18:12:57 (UTC) |
---|---|---|
committer | drw <drw> | 2004-02-23 18:12:57 (UTC) |
commit | 398c7d54acfc203ec90644d6c63e5b200391e906 (patch) (unidiff) | |
tree | 84a1f495a5a2450f7eb2f401037b6fd81162d72b /noncore/apps/tinykate/libkate/document | |
parent | f5762a3bee0ca4a176048f6552acaea2af827914 (diff) | |
download | opie-398c7d54acfc203ec90644d6c63e5b200391e906.zip opie-398c7d54acfc203ec90644d6c63e5b200391e906.tar.gz opie-398c7d54acfc203ec90644d6c63e5b200391e906.tar.bz2 |
TinyKate: libopie->libopie2
Diffstat (limited to 'noncore/apps/tinykate/libkate/document') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katesyntaxdocument.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.h b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.h index 5c5c5a4..5eefc77 100644 --- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.h +++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.h | |||
@@ -9,61 +9,61 @@ | |||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #ifndef SYNTAXDOCUMENT_H | 18 | #ifndef SYNTAXDOCUMENT_H |
19 | #define SYNTAXDOCUMENT_H | 19 | #define SYNTAXDOCUMENT_H |
20 | 20 | ||
21 | #include <opie/xmltree.h> | 21 | #include <opie2/xmltree.h> |
22 | #include <qlist.h> | 22 | #include <qlist.h> |
23 | #include <qstringlist.h> | 23 | #include <qstringlist.h> |
24 | 24 | ||
25 | 25 | ||
26 | class syntaxModeListItem | 26 | class syntaxModeListItem |
27 | { | 27 | { |
28 | public: | 28 | public: |
29 | QString name; | 29 | QString name; |
30 | QString section; | 30 | QString section; |
31 | QString mimetype; | 31 | QString mimetype; |
32 | QString extension; | 32 | QString extension; |
33 | QString identifier; | 33 | QString identifier; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | class syntaxContextData | 36 | class syntaxContextData |
37 | { | 37 | { |
38 | public: | 38 | public: |
39 | Opie::XMLElement *parent; | 39 | Opie::XMLElement *parent; |
40 | Opie::XMLElement *currentGroup; | 40 | Opie::XMLElement *currentGroup; |
41 | Opie::XMLElement *item; | 41 | Opie::XMLElement *item; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | typedef QList<syntaxModeListItem> SyntaxModeList; | 44 | typedef QList<syntaxModeListItem> SyntaxModeList; |
45 | 45 | ||
46 | class SyntaxDocument | 46 | class SyntaxDocument |
47 | { | 47 | { |
48 | public: | 48 | public: |
49 | SyntaxDocument(); | 49 | SyntaxDocument(); |
50 | ~SyntaxDocument(); | 50 | ~SyntaxDocument(); |
51 | 51 | ||
52 | QStringList& finddata(const QString& mainGroup,const QString& type,bool clearList=true); | 52 | QStringList& finddata(const QString& mainGroup,const QString& type,bool clearList=true); |
53 | SyntaxModeList modeList(); | 53 | SyntaxModeList modeList(); |
54 | 54 | ||
55 | syntaxContextData* getGroupInfo(const QString& langName, const QString &group); | 55 | syntaxContextData* getGroupInfo(const QString& langName, const QString &group); |
56 | void freeGroupInfo(syntaxContextData* data); | 56 | void freeGroupInfo(syntaxContextData* data); |
57 | syntaxContextData* getConfig(const QString& mainGroupName, const QString &Config); | 57 | syntaxContextData* getConfig(const QString& mainGroupName, const QString &Config); |
58 | bool nextItem(syntaxContextData* data); | 58 | bool nextItem(syntaxContextData* data); |
59 | bool nextGroup(syntaxContextData* data); | 59 | bool nextGroup(syntaxContextData* data); |
60 | syntaxContextData* getSubItems(syntaxContextData* data); | 60 | syntaxContextData* getSubItems(syntaxContextData* data); |
61 | QString groupItemData(syntaxContextData* data,QString name); | 61 | QString groupItemData(syntaxContextData* data,QString name); |
62 | QString groupData(syntaxContextData* data,QString name); | 62 | QString groupData(syntaxContextData* data,QString name); |
63 | void setIdentifier(const QString& identifier); | 63 | void setIdentifier(const QString& identifier); |
64 | 64 | ||
65 | private: | 65 | private: |
66 | Opie::XMLElement *m_root; | 66 | Opie::XMLElement *m_root; |
67 | void setupModeList(bool force=false); | 67 | void setupModeList(bool force=false); |
68 | QString currentFile; | 68 | QString currentFile; |
69 | SyntaxModeList myModeList; | 69 | SyntaxModeList myModeList; |