mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
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:
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user