summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-12-28 15:52:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-12-28 15:52:58 (GMT)
commit1c51f44b5f0b3510618a283d522aab0741ddb3a1 (patch)
tree659ad23b069fb18276bbc9610ed0f2c48169722b /src/classdef.cpp
parent939d1c84acd07060ee2b4bcbdc7dbccb80952385 (diff)
downloadDoxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.zip
Doxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.tar.gz
Doxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.tar.bz2
Release-1.3.9.1-20041228
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp146
1 files changed, 79 insertions, 67 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index ce8431c..da83484 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -936,6 +936,84 @@ void ClassDef::writeDetailedDescription(OutputList &ol, const QCString &pageType
}
}
+void ClassDef::showUsedFiles(OutputList &ol)
+{
+ if (Config_getBool("SHOW_USED_FILES"))
+ {
+ ol.writeRuler();
+ ol.parseText(theTranslator->trGeneratedFromFiles(
+ m_isObjC && m_compType==Interface ? Class : m_compType,
+ m_files.count()==1));
+
+ bool first=TRUE;
+ const char *file = m_files.first();
+ while (file)
+ {
+ bool ambig;
+ FileDef *fd=findFileDef(Doxygen::inputNameDict,file,ambig);
+ if (fd)
+ {
+ if (first)
+ {
+ first=FALSE;
+ ol.startItemList();
+ }
+
+ ol.writeListItem();
+ QCString path=fd->getPath().copy();
+ if (Config_getBool("FULL_PATH_NAMES"))
+ {
+ ol.docify(stripFromPath(path));
+ }
+
+ QCString fname = fd->name();
+ if (!fd->getVersion().isEmpty()) // append version if available
+ {
+ fname += " (" + fd->getVersion() + ")";
+ }
+
+ // for HTML
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
+ if (fd->generateSourceFile())
+ {
+ ol.writeObjectLink(0,fd->getSourceFileBase(),0,fname);
+ }
+ else if (fd->isLinkable())
+ {
+ ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),0,
+ fname);
+ }
+ else
+ {
+ ol.docify(fname);
+ }
+ ol.popGeneratorState();
+
+ // for other output formats
+ ol.pushGeneratorState();
+ ol.disable(OutputGenerator::Html);
+ if (fd->isLinkable())
+ {
+ ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),0,
+ fname);
+ }
+ else
+ {
+ ol.docify(fname);
+ }
+
+ ol.popGeneratorState();
+
+
+ }
+ file=m_files.next();
+ }
+ if (!first) ol.endItemList();
+ }
+}
+
+
// write all documentation for this class
void ClassDef::writeDocumentation(OutputList &ol)
{
@@ -1389,73 +1467,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol.pushGeneratorState();
ol.disable(OutputGenerator::Man);
- if (Config_getBool("SHOW_USED_FILES"))
- {
- ol.writeRuler();
- ol.parseText(theTranslator->trGeneratedFromFiles(
- m_isObjC && m_compType==Interface ? Class : m_compType,
- m_files.count()==1));
-
- bool first=TRUE;
- const char *file = m_files.first();
- while (file)
- {
- bool ambig;
- FileDef *fd=findFileDef(Doxygen::inputNameDict,file,ambig);
- if (fd)
- {
- if (first)
- {
- first=FALSE;
- ol.startItemList();
- }
-
- ol.writeListItem();
- QCString path=fd->getPath().copy();
- if (Config_getBool("FULL_PATH_NAMES"))
- {
- ol.docify(stripFromPath(path));
- }
-
- // for HTML
- ol.pushGeneratorState();
- ol.disableAllBut(OutputGenerator::Html);
- if (fd->generateSourceFile())
- {
- ol.writeObjectLink(0,fd->getSourceFileBase(),0,fd->name());
- }
- else if (fd->isLinkable())
- {
- ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),0,
- fd->name());
- }
- else
- {
- ol.docify(fd->name());
- }
- ol.popGeneratorState();
-
- // for other output formats
- ol.pushGeneratorState();
- ol.disable(OutputGenerator::Html);
- if (fd->isLinkable())
- {
- ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),0,
- fd->name());
- }
- else
- {
- ol.docify(fd->name());
- }
-
- ol.popGeneratorState();
-
-
- }
- file=m_files.next();
- }
- if (!first) ol.endItemList();
- }
+ showUsedFiles(ol);
// write Author section (Man only)
ol.enable(OutputGenerator::Man);