diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-11-29 19:11:02 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-11-29 19:11:02 (GMT) |
commit | 4a50fc78170244f82c376bbecd28be43cc849da3 (patch) | |
tree | ae4f833eab5f7b63e139145daee905c412ebd229 /src/dirdef.cpp | |
parent | 0625007cb86815b2e30138183d4fe9d2e7850df9 (diff) | |
download | Doxygen-4a50fc78170244f82c376bbecd28be43cc849da3.zip Doxygen-4a50fc78170244f82c376bbecd28be43cc849da3.tar.gz Doxygen-4a50fc78170244f82c376bbecd28be43cc849da3.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(), |