summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-09 19:45:37 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-09 19:45:37 (GMT)
commit61a83f312ce95090dc02ca3b8ce8dd3319d97df1 (patch)
tree2dbdf12fc6696bf3a9d133e8e23ef223690e919a /src/classdef.cpp
parente3baf8c5ec430e5f09f00384ebdfa35242fd3316 (diff)
downloadDoxygen-61a83f312ce95090dc02ca3b8ce8dd3319d97df1.zip
Doxygen-61a83f312ce95090dc02ca3b8ce8dd3319d97df1.tar.gz
Doxygen-61a83f312ce95090dc02ca3b8ce8dd3319d97df1.tar.bz2
Release-1.1.5_20000709
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 558d33b..9d66246 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -45,7 +45,7 @@ static QCString stripExtension(const char *fName)
ClassDef::ClassDef(
const char *defFileName,int defLine,
const char *nm,CompoundType ct,
- const char *ref,const char *fName)
+ const char *lref,const char *fName)
: Definition(defFileName,defLine,removeRedundantWhiteSpace(nm))
{
//name=n;
@@ -53,9 +53,9 @@ ClassDef::ClassDef(
fileName=stripExtension(fName);
else
fileName="class_"+nameToFile(nm);
- if (ref)
+ if (lref)
{
- //url=(QCString)"doxygen=\""+ref+":\" href=\""+fileName;
+ //url=(QCString)"doxygen=\""+lref+":\" href=\""+fileName;
exampleList = 0;
exampleDict = 0;
}
@@ -74,7 +74,7 @@ ClassDef::ClassDef(
allMemberNameInfoList->setAutoDelete(TRUE);
allMemberNameInfoDict = new MemberNameInfoDict(1009);
visited=FALSE;
- setReference(ref);
+ setReference(lref);
compType=ct;
incInfo=0;
tempArgs=0;
@@ -551,17 +551,17 @@ static void writeInheritanceSpecifier(OutputList &ol,BaseClassDef *bcd)
}
}
-void ClassDef::setIncludeFile(FileDef *fd,const char *incName,bool local)
+void ClassDef::setIncludeFile(FileDef *fd,const char *includeName,bool local)
{
- //printf("ClassDef::setInclude(%p,%s,%d)\n",fd,incName,local);
+ //printf("ClassDef::setInclude(%p,%s,%d)\n",fd,includeName,local);
if (!incInfo) incInfo=new IncludeInfo;
- if ((incName && incInfo->includeName.isEmpty()) ||
+ if ((includeName && incInfo->includeName.isEmpty()) ||
(fd!=0 && incInfo->fileDef==0)
)
{
//printf("Setting file info\n");
incInfo->fileDef = fd;
- incInfo->includeName = incName;
+ incInfo->includeName = includeName;
incInfo->local = local;
}
}
@@ -776,6 +776,14 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol.startDotGraph();
parseText(ol,theTranslator->trClassDiagram(name()));
ol.endDotGraph(inheritanceGraph);
+ {
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
+ ol.writeString("<font size=2><center>[");
+ ol.writeHtmlLink("graph_legend.html",theTranslator->trLegend());
+ ol.writeString("]</center></font>");
+ ol.popGeneratorState();
+ }
ol.popGeneratorState();
}
}
@@ -800,6 +808,14 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol.startDotGraph();
parseText(ol,theTranslator->trCollaborationDiagram(name()));
ol.endDotGraph(usageImplGraph);
+ {
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
+ ol.writeString("<font size=2><center>[");
+ ol.writeHtmlLink("graph_legend.html",theTranslator->trLegend());
+ ol.writeString("]</center></font>");
+ ol.popGeneratorState();
+ }
ol.popGeneratorState();
}
}