diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-11-29 19:11:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-11-29 19:11:02 (GMT) |
commit | 02aa9b678dbeb1867c68278045b28d7bc1683f7c (patch) | |
tree | ae4f833eab5f7b63e139145daee905c412ebd229 /src/dirdef.cpp | |
parent | 05930245579c006f2b5bfca53e0a1976d682f9b8 (diff) | |
download | Doxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.zip Doxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.tar.gz Doxygen-02aa9b678dbeb1867c68278045b28d7bc1683f7c.tar.bz2 |
Release-1.3.9.1-20041129
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r-- | src/dirdef.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp index b7959e2..12ec111 100644 --- a/src/dirdef.cpp +++ b/src/dirdef.cpp @@ -41,6 +41,16 @@ DirDef::~DirDef() { } +bool DirDef::isLinkableInProject() const +{ + return !isReference() && Config_getBool("SHOW_DIRECTORIES"); +} + +bool DirDef::isLinkable() const +{ + return isReference() || isLinkableInProject(); +} + void DirDef::addSubDir(DirDef *subdir) { m_subdirs.inSort(subdir); @@ -213,6 +223,18 @@ void DirDef::writeDocumentation(OutputList &ol) ol.writeString(fd->name()); ol.endBold(); } + if (fd->generateSourceFile()) + { + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Html); + ol.docify(" "); + ol.startTextLink(fd->includeName(),0); + ol.docify("["); + ol.parseText(theTranslator->trCode()); + ol.docify("]"); + ol.endTextLink(); + ol.popGeneratorState(); + } if (!Config_getString("GENERATE_TAGFILE").isEmpty()) { Doxygen::tagFile << " <file>" << convertToXML(fd->name()) << "</file>" << endl; @@ -247,6 +269,7 @@ void DirDef::writeDocumentation(OutputList &ol) ol.popGeneratorState(); } +#if 0 void DirDef::writePathFragment(OutputList &ol) const { if (m_parent) @@ -268,6 +291,7 @@ void DirDef::writeNavigationPath(OutputList &ol) ol.popGeneratorState(); } +#endif void DirDef::setLevel() { @@ -407,6 +431,7 @@ UsedDir::~UsedDir() { } + void UsedDir::addFileDep(FileDef *srcFd,FileDef *dstFd) { m_filePairs.inSort(srcFd->getOutputFileBase()+dstFd->getOutputFileBase(), |