diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-26 19:08:11 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-26 19:08:11 (GMT) |
commit | f309c3c0e7c1cf29df6b850e19d647e93a30ce28 (patch) | |
tree | d4b609faf73bfab7a9ddbbbeceb63eb296ce6243 /src/diagram.cpp | |
parent | 6e92a0d3db80c3d93a35efbe52d45c73b8303e45 (diff) | |
download | Doxygen-f309c3c0e7c1cf29df6b850e19d647e93a30ce28.zip Doxygen-f309c3c0e7c1cf29df6b850e19d647e93a30ce28.tar.gz Doxygen-f309c3c0e7c1cf29df6b850e19d647e93a30ce28.tar.bz2 |
Release-1.3.7-20040526
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r-- | src/diagram.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp index 1c7a7a5..c483e04 100644 --- a/src/diagram.cpp +++ b/src/diagram.cpp @@ -151,7 +151,8 @@ static void writeVectorBox(QTextStream &t,DiagramItem *di, if (di->virtualness()==Virtual) t << "solid\n"; } -static void writeMapArea(QTextStream &t,ClassDef *cd,int x,int y,int w,int h) +static void writeMapArea(QTextStream &t,ClassDef *cd,QCString relPath, + int x,int y,int w,int h) { if (cd->isLinkable()) { @@ -169,6 +170,10 @@ static void writeMapArea(QTextStream &t,ClassDef *cd,int x,int y,int w,int h) { if ((dest=Doxygen::tagDestinationDict[ref])) t << *dest << "/"; } + else + { + t << relPath; + } t << cd->getOutputFileBase() << Doxygen::htmlFileExtension << "\" "; t << "alt=\"" << cd->displayName(); t << "\" shape=\"rect\" coords=\"" << x << "," << y << ","; @@ -479,6 +484,7 @@ void TreeDiagram::drawBoxes(QTextStream &t,Image *image, bool doBase,bool bitmap, uint baseRows,uint superRows, uint cellWidth,uint cellHeight, + QCString relPath, bool generateMap) { DiagramRow *dr=first(); @@ -548,7 +554,7 @@ void TreeDiagram::drawBoxes(QTextStream &t,Image *image, writeBitmapBox(di,image,x,y,cellWidth,cellHeight,firstRow, hasDocs,di->getChildren()->count()>0); if (!firstRow && generateMap) - writeMapArea(t,di->getClassDef(),x,y,cellWidth,cellHeight); + writeMapArea(t,di->getClassDef(),relPath,x,y,cellWidth,cellHeight); } else { @@ -581,7 +587,7 @@ void TreeDiagram::drawBoxes(QTextStream &t,Image *image, bool hasDocs=di->getClassDef()->isLinkable(); writeBitmapBox(di,image,x,y,cellWidth,cellHeight,firstRow,hasDocs); if (!firstRow && generateMap) - writeMapArea(t,di->getClassDef(),x,y,cellWidth,cellHeight); + writeMapArea(t,di->getClassDef(),relPath,x,y,cellWidth,cellHeight); } else { @@ -1252,7 +1258,8 @@ void ClassDiagram::writeFigure(QTextStream &output,const char *path, void ClassDiagram::writeImage(QTextStream &t,const char *path, - const char *fileName, bool generateMap) + const char *relPath,const char *fileName, + bool generateMap) { uint baseRows=base->computeRows(); uint superRows=super->computeRows(); @@ -1272,8 +1279,8 @@ void ClassDiagram::writeImage(QTextStream &t,const char *path, Image image(imageWidth,imageHeight); - base->drawBoxes(t,&image,TRUE,TRUE,baseRows,superRows,cellWidth,cellHeight,generateMap); - super->drawBoxes(t,&image,FALSE,TRUE,baseRows,superRows,cellWidth,cellHeight,generateMap); + base->drawBoxes(t,&image,TRUE,TRUE,baseRows,superRows,cellWidth,cellHeight,relPath,generateMap); + super->drawBoxes(t,&image,FALSE,TRUE,baseRows,superRows,cellWidth,cellHeight,relPath,generateMap); base->drawConnectors(t,&image,TRUE,TRUE,baseRows,superRows,cellWidth,cellHeight); super->drawConnectors(t,&image,FALSE,TRUE,baseRows,superRows,cellWidth,cellHeight); |