summaryrefslogtreecommitdiff
path: root/doc/widget_hierarchy.py
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-07-05 19:23:31 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-07-05 19:23:31 +0000
commitce75a02d301977843e16254d852476a55106d51b (patch)
treec656c764d0821fd92c94d527183ceae5aa0b2447 /doc/widget_hierarchy.py
parent230ec83180fb6ad9c8651a01d98f6f01713ecb45 (diff)
[elm] Fix widget inheritance images generation.
Making interfaces to be displayed nicely both on overall tree and individual widget trees. SVN revision: 73377
Diffstat (limited to 'doc/widget_hierarchy.py')
-rwxr-xr-xdoc/widget_hierarchy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/widget_hierarchy.py b/doc/widget_hierarchy.py
index 49e9941e6..e2d2569e2 100755
--- a/doc/widget_hierarchy.py
+++ b/doc/widget_hierarchy.py
@@ -16,23 +16,25 @@ def print_node(a, b, on_tree=False):
16 if i_list: 16 if i_list:
17 for iface in i_list: 17 for iface in i_list:
18 if_instance = a + iface 18 if_instance = a + iface
19 if_node_tuple = (if_instance, a) if on_tree else (a, if_instance)
19 20
20 print '"%s" [label="",shape=circle,width=0.2]' % if_instance 21 print '"%s" [label="",shape=circle,width=0.2]' % if_instance
21 print '"%s" -> "%s" [label="%s", color=transparent]' \ 22 print '"%s" -> "%s" [label="%s", color=transparent]' \
22 % (if_instance, if_instance, iface) 23 % (if_instance, if_instance, iface)
23 print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \ 24 print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \
24 % (rank, if_instance, a) 25 % ((rank,) + if_node_tuple)
25 26
26 i_list = ifaces.get(b) 27 i_list = ifaces.get(b)
27 if i_list: 28 if i_list:
28 for iface in i_list: 29 for iface in i_list:
29 if_instance = b + iface 30 if_instance = b + iface
31 if_node_tuple = (if_instance, b) if on_tree else (b, if_instance)
30 32
31 print '"%s" [label="",shape=circle,width=0.2]' % if_instance 33 print '"%s" [label="",shape=circle,width=0.2]' % if_instance
32 print '"%s" -> "%s" [label="%s", color=transparent]' \ 34 print '"%s" -> "%s" [label="%s", color=transparent]' \
33 % (if_instance, if_instance, iface) 35 % (if_instance, if_instance, iface)
34 print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \ 36 print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \
35 % (rank, if_instance, b) 37 % ((rank,) + if_node_tuple)
36 38
37 print '"%s" -> "%s"' % (a, b), '[arrowhead="empty"];' \ 39 print '"%s" -> "%s"' % (a, b), '[arrowhead="empty"];' \
38 if on_tree else '[arrowtail="empty",dir=back];' 40 if on_tree else '[arrowtail="empty",dir=back];'