diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-05-08 21:32:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-05-08 21:32:24 (GMT) |
commit | 5bd970b12ec39636593453d12e5b64bd935bbf38 (patch) | |
tree | c4bbe961812e7008b9e85fd820596290c043c0f6 /src/filedef.cpp | |
parent | 4a8c2f5c896a1883a0611d972952a68498002ae5 (diff) | |
download | Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.zip Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.tar.gz Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.tar.bz2 |
Release-1.4.2-20050508
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 3895db4..a305ca9 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -32,7 +32,7 @@ #include "docparser.h" #include "ftvhelp.h" #include "searchindex.h" -//#include "xml.h" +#include "htags.h" #if defined(_MSC_VER) || defined(__BORLANDC__) #define popen _popen @@ -583,6 +583,8 @@ void FileDef::writeMemberPages(OutputList &ol) void FileDef::writeQuickMemberLinks(OutputList &ol,MemberDef *currentMd) const { + static bool createSubDirs=Config_getBool("CREATE_SUBDIRS"); + ol.writeString(" <div class=\"navtab\">\n"); ol.writeString(" <table>\n"); @@ -604,6 +606,7 @@ void FileDef::writeQuickMemberLinks(OutputList &ol,MemberDef *currentMd) const ol.writeString("<a class=\"qindex\" "); } ol.writeString("href=\""); + if (createSubDirs) ol.writeString("../../"); ol.writeString(md->getOutputFileBase()+Doxygen::htmlFileExtension+"#"+md->anchor()); ol.writeString("\">"); ol.writeString(md->localName()); @@ -1254,3 +1257,28 @@ void FileDef::acquireFileVersion() } +QCString FileDef::getSourceFileBase() const +{ + if (Htags::useHtags) + { + return Htags::path2URL(filepath); + } + else + { + return convertNameToFile(diskname+"-source"); + } +} + +/*! Returns the name of the verbatim copy of this file (if any). */ +QCString FileDef::includeName() const +{ + if (Htags::useHtags) + { + return Htags::path2URL(filepath); + } + else + { + return convertNameToFile(diskname+"-source"); + } +} + |