summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-08-26 08:18:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-10-21 18:21:33 (GMT)
commit784a67d23ff81275c95af4199179da094953be2e (patch)
tree90a165d2f3327f3ad94775f616c3440d37813702 /src/namespacedef.cpp
parent74815268dd88f2cfb4473462cef3c33eebd5516a (diff)
downloadDoxygen-784a67d23ff81275c95af4199179da094953be2e.zip
Doxygen-784a67d23ff81275c95af4199179da094953be2e.tar.gz
Doxygen-784a67d23ff81275c95af4199179da094953be2e.tar.bz2
Added rudimentary support for django like template system for output creation.
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp46
1 files changed, 26 insertions, 20 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index ee1568e..b0ba6b4 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -460,27 +460,8 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
//static bool outputJava = Config_getBool("OPTIMIZE_OUTPUT_JAVA");
//static bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
- SrcLangExt lang = getLanguage();
- QCString pageTitle;
- if (lang==SrcLangExt_Java || lang==SrcLangExt_CSharp)
- {
- pageTitle = theTranslator->trPackage(displayName());
- }
- else if (lang==SrcLangExt_Fortran)
- {
- pageTitle = theTranslator->trModuleReference(displayName());
- }
- else if (lang==SrcLangExt_IDL)
- {
- pageTitle = isConstantGroup()
- ? theTranslator->trConstantGroupReference(displayName())
- : theTranslator->trModuleReference(displayName());
- }
- else
- {
- pageTitle = theTranslator->trNamespaceReference(displayName());
- }
+ QCString pageTitle = title();
startFile(ol,getOutputFileBase(),name(),pageTitle,HLI_NamespaceVisible,!generateTreeView);
if (!generateTreeView)
@@ -522,6 +503,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
//---------------------------------------- start flexible part -------------------------------
+ SrcLangExt lang = getLanguage();
QListIterator<LayoutDocEntry> eli(
LayoutDocManager::instance().docEntries(LayoutDocManager::Namespace));
LayoutDocEntry *lde;
@@ -1096,3 +1078,27 @@ MemberDef * NamespaceDef::getMemberByName(const QCString &n) const
return md;
}
+QCString NamespaceDef::title() const
+{
+ SrcLangExt lang = getLanguage();
+ QCString pageTitle;
+ if (lang==SrcLangExt_Java || lang==SrcLangExt_CSharp)
+ {
+ pageTitle = theTranslator->trPackage(displayName());
+ }
+ else if (lang==SrcLangExt_Fortran)
+ {
+ pageTitle = theTranslator->trModuleReference(displayName());
+ }
+ else if (lang==SrcLangExt_IDL)
+ {
+ pageTitle = isConstantGroup()
+ ? theTranslator->trConstantGroupReference(displayName())
+ : theTranslator->trModuleReference(displayName());
+ }
+ else
+ {
+ pageTitle = theTranslator->trNamespaceReference(displayName());
+ }
+ return pageTitle;
+}