diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-07-09 19:45:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-07-09 19:45:37 (GMT) |
commit | 56bc9bda61e06b9bd6da5aa58083e93a3b55a465 (patch) | |
tree | 2dbdf12fc6696bf3a9d133e8e23ef223690e919a /src/classdef.cpp | |
parent | adb81f79061729efc28e71c1474c35e21283b049 (diff) | |
download | Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.zip Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.tar.gz Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.tar.bz2 |
Release-1.1.5_20000709
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 32 |
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(); } } |