Add code to make the inheritance diagrams able to be toggled between shown and hidden.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-07-19 01:22:28 +00:00
parent 6c4eac60ef
commit 0914614515
6 changed files with 73 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ def SphinxIndexes(sphinxDir):
"""
This is the main function called after the `etg` process has finished.
It class other functions to generate the standalone functions page, the
It calls other functions to generate the standalone functions page, the
main class index and some clean-up/maintenance of the generated ReST
files.
"""

View File

@@ -30,15 +30,21 @@ TEMPLATE_INHERITANCE = '''
|
|class_hierarchy| Inheritance Diagram
=====================================
Inheritance diagram for %s **%s**
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for %s <strong>%s</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/%s" alt="Inheritance diagram of %s" usemap="#dummy" class="inheritance"/></center>
</div>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
%s
</p>