summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-01-07 21:17:16 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-01-07 21:17:16 (GMT)
commit0ee700fc0f6a02b75aa5651c23cc3339c1255ebc (patch)
treee21d038e7bc244d411ee71ee440f3b527bb9402f /src/htmldocvisitor.cpp
parentbe3407fc9ef6e4cf558cce39bb50dd2ab1168934 (diff)
downloadDoxygen-0ee700fc0f6a02b75aa5651c23cc3339c1255ebc.zip
Doxygen-0ee700fc0f6a02b75aa5651c23cc3339c1255ebc.tar.gz
Doxygen-0ee700fc0f6a02b75aa5651c23cc3339c1255ebc.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()