summaryrefslogtreecommitdiffstats
path: root/src/context.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-02-09 12:13:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-02-09 12:13:56 (GMT)
commitb98846d0b57b78cd45d34e0962a8bcdc2e643e18 (patch)
treed25ab59bf5ff3cd1ee06e652ed5eaa79c6322cde /src/context.cpp
parent9434ecb13e1f3e2901b78d3e41e7f1d7d9469434 (diff)
downloadDoxygen-b98846d0b57b78cd45d34e0962a8bcdc2e643e18.zip
Doxygen-b98846d0b57b78cd45d34e0962a8bcdc2e643e18.tar.gz
Doxygen-b98846d0b57b78cd45d34e0962a8bcdc2e643e18.tar.bz2
Added support for range tag in the template language
Diffstat (limited to 'src/context.cpp')
-rw-r--r--src/context.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/context.cpp b/src/context.cpp
index d741f48..3641d1d 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -717,6 +717,10 @@ class TranslateContext::Private : public PropertyMapper
{
return theTranslator->trCompoundMembers();
}
+ TemplateVariant detailLevel() const
+ {
+ return theTranslator->trDetailLevel();
+ }
Private()
{
//%% string generatedBy
@@ -825,6 +829,8 @@ class TranslateContext::Private : public PropertyMapper
addProperty("classDocumentation", this,&Private::classDocumentation);
//%% string compoundMembers
addProperty("compoundMembers", this,&Private::compoundMembers);
+ //%% strint detailLevel
+ addProperty("detailLevel", this,&Private::detailLevel);
m_javaOpt = Config_getBool("OPTIMIZE_OUTPUT_JAVA");
m_fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
@@ -4070,7 +4076,6 @@ class NestingNodeContext::Private : public PropertyMapper
Definition *d,int index,int level,bool addCls)
: m_parent(parent), m_def(d), m_children(thisNode,level+1), m_level(level), m_index(index)
{
- printf("Node %s level=%d\n",d->name().data(),level);
//%% bool is_leaf_node: true if this node does not have any children
addProperty("is_leaf_node",this,&Private::isLeafNode);
//%% Nesting children: list of nested classes/namespaces
@@ -4079,6 +4084,10 @@ class NestingNodeContext::Private : public PropertyMapper
addProperty("class",this,&Private::getClass);
//%% [optional] Namespace namespace: namespace info (if this node represents a namespace)
addProperty("namespace",this,&Private::getNamespace);
+ //%% [optional] File file: file info (if this node represents a file)
+ addProperty("file",this,&Private::file);
+ //%% [optional] Dir dir: directory info (if this node represents a directory)
+ addProperty("dir",this,&Private::dir);
//%% int id
addProperty("id",this,&Private::id);
//%% string level
@@ -4133,6 +4142,14 @@ class NestingNodeContext::Private : public PropertyMapper
return TemplateVariant(FALSE);
}
}
+ TemplateVariant file() const
+ {
+ return FALSE;
+ }
+ TemplateVariant dir() const
+ {
+ return FALSE;
+ }
TemplateVariant level() const
{
return m_level;