summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-02-10 13:49:54 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-02-10 13:49:54 (GMT)
commitd44081d5a63cebd05783b343dd4ef364345855ff (patch)
tree1a28bd23db1d4104f7c98797ba349b191e75bb48 /tools/qdoc3/node.h
parent2a1bf99770401576f451806b2e2a8c73853ca99b (diff)
downloadQt-d44081d5a63cebd05783b343dd4ef364345855ff.zip
Qt-d44081d5a63cebd05783b343dd4ef364345855ff.tar.gz
Qt-d44081d5a63cebd05783b343dd4ef364345855ff.tar.bz2
qdoc3: Added capability to create qt.pageindex.
Task: QTBUG-7877
Diffstat (limited to 'tools/qdoc3/node.h')
-rw-r--r--tools/qdoc3/node.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/qdoc3/node.h b/tools/qdoc3/node.h
index 077aeb8..679a9d4 100644
--- a/tools/qdoc3/node.h
+++ b/tools/qdoc3/node.h
@@ -137,6 +137,13 @@ class Node
AppendixLink */
};
+ enum PageType {
+ NoPageType,
+ ApiPage,
+ ArticlePage,
+ ExamplePage
+ };
+
virtual ~Node();
void setAccess(Access access) { acc = access; }
@@ -150,6 +157,8 @@ class Node
void setLink(LinkType linkType, const QString &link, const QString &desc);
void setUrl(const QString &url);
void setTemplateStuff(const QString &templateStuff) { tpl = templateStuff; }
+ void setPageType(PageType t) { pageTyp = t; }
+ void setPageType(const QString& t);
virtual bool isInnerNode() const = 0;
virtual bool isReimp() const { return false; }
@@ -173,6 +182,7 @@ class Node
ThreadSafeness inheritedThreadSafeness() const;
QString since() const { return sinc; }
QString templateStuff() const { return tpl; }
+ PageType pageType() const { return pageTyp; }
void clearRelated() { rel = 0; }
@@ -186,13 +196,15 @@ class Node
#ifdef Q_WS_WIN
Type typ;
Access acc;
- Status sta;
ThreadSafeness saf;
+ PageType pageTyp;
+ Status sta;
#else
Type typ : 4;
Access acc : 2;
- Status sta : 3;
ThreadSafeness saf : 2;
+ PageType pageTyp : 4;
+ Status sta : 3;
#endif
InnerNode *par;
InnerNode *rel;