summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2007-01-07 21:17:16 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2007-01-07 21:17:16 (GMT)
commit66401e657546264df0ffa49765f68dc651b7be48 (patch)
treee21d038e7bc244d411ee71ee440f3b527bb9402f /src/htmldocvisitor.cpp
parentcb16d91fd453486b9e42a2e12295b96ad183dd92 (diff)
downloadDoxygen-66401e657546264df0ffa49765f68dc651b7be48.zip
Doxygen-66401e657546264df0ffa49765f68dc651b7be48.tar.gz
Doxygen-66401e657546264df0ffa49765f68dc651b7be48.tar.bz2
Release-1.5.1-20070107
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 4eb6a8a..cc59c47 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -1,6 +1,6 @@
/******************************************************************************
*
- * $Id$
+ *
*
*
* Copyright (C) 1997-2006 by Dimitri van Heesch.
@@ -69,7 +69,7 @@ void HtmlDocVisitor::visit(DocWord *w)
void HtmlDocVisitor::visit(DocLinkedWord *w)
{
if (m_hide) return;
- startLink(w->ref(),w->file(),w->relPath(),w->anchor());
+ startLink(w->ref(),w->file(),w->relPath(),w->anchor(),w->tooltip());
filter(w->word());
endLink();
}
@@ -228,9 +228,10 @@ void HtmlDocVisitor::visit(DocVerbatim *s)
static int dotindex = 1;
QCString fileName(4096);
- fileName.sprintf("%s%d",
+ fileName.sprintf("%s%d%s",
(Config_getString("HTML_OUTPUT")+"/inline_dotgraph_").data(),
- dotindex++
+ dotindex++,
+ ".dot"
);
QFile file(fileName);
if (!file.open(IO_WriteOnly))
@@ -244,7 +245,7 @@ void HtmlDocVisitor::visit(DocVerbatim *s)
writeDotFile(fileName,s->relPath());
m_t << "</div>" << endl;
- file.remove();
+ if (Config_getBool("DOT_CLEANUP")) file.remove();
}
break;
}
@@ -1062,7 +1063,8 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str)
}
void HtmlDocVisitor::startLink(const QString &ref,const QString &file,
- const QString &relPath,const QString &anchor)
+ const QString &relPath,const QString &anchor,
+ const QString &tooltip)
{
QCString *dest;
if (!ref.isEmpty()) // link to entity imported via tag file
@@ -1087,7 +1089,9 @@ void HtmlDocVisitor::startLink(const QString &ref,const QString &file,
}
if (!file.isEmpty()) m_t << file << Doxygen::htmlFileExtension;
if (!anchor.isEmpty()) m_t << "#" << anchor;
- m_t << "\">";
+ m_t << "\"";
+ if (!tooltip.isEmpty()) m_t << " title=\"" << tooltip << "\"";
+ m_t << ">";
}
void HtmlDocVisitor::endLink()