diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-27 20:41:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-27 20:42:43 (GMT) |
commit | a292601d5d06cf5993247f2f7a6bc7306997da23 (patch) | |
tree | c79712972c87d360b0c19c526cc9db1498ee34ba /src/tooltip.h | |
parent | 6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c (diff) | |
download | Doxygen-a292601d5d06cf5993247f2f7a6bc7306997da23.zip Doxygen-a292601d5d06cf5993247f2f7a6bc7306997da23.tar.gz Doxygen-a292601d5d06cf5993247f2f7a6bc7306997da23.tar.bz2 |
Issue #8206: Incorrect XHTML results
Changes:
- Change TooltipManager back into a singleton
- Give the OutputList object a unique output id
- Increment the id at each startFile() atomically
- Pass the id to the HTML code generator
- Store tooltips per output id.
- Keep track of tooltips that are already written for a given id
- for output formats other than HTML the output id is 0 and tooltips are
not collected and written
Diffstat (limited to 'src/tooltip.h')
-rw-r--r-- | src/tooltip.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tooltip.h b/src/tooltip.h index 3517b5d..acdacb4 100644 --- a/src/tooltip.h +++ b/src/tooltip.h @@ -24,16 +24,17 @@ class CodeOutputInterface; class TooltipManager { public: - TooltipManager(); + static TooltipManager &instance(); ~TooltipManager(); /** add a tooltip for a given symbol definition */ - void addTooltip(const Definition *d); + void addTooltip(CodeOutputInterface &ol,const Definition *d); /** write the list of all collected tooltip to the given outputs */ void writeTooltips(CodeOutputInterface &ol); private: + TooltipManager(); class Private; std::unique_ptr<Private> p; }; |