]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/doxygen/doxymlparser.py
correction to last commit: Korean and Romanian translations will only be in 2.9.1...
[wxWidgets.git] / docs / doxygen / doxymlparser.py
index bbae794cb62972654ae1185396c04e026ab47f7d..9b04d736f324726abb5ffc46ed12aed1fac8d8ec 100755 (executable)
@@ -54,7 +54,7 @@ class ClassDefinition:
         str_repr = """
 Class: %s
 Bases: %s
-Inlcudes: %s
+Includes: %s
 Brief Description: 
 %s
 
@@ -95,10 +95,13 @@ Detailed Description:
 def getTextValue(node, recursive=False):
     text = ""
     for child in node.childNodes:
+        if child.nodeType == child.ELEMENT_NODE and child.nodeName == "ref":
+            text += getTextValue(child)
         if child.nodeType == child.TEXT_NODE:
-            text += child.nodeValue.strip()
+            # Add a space to ensure we have a space between qualifiers and parameter names
+            text += child.nodeValue.strip() + " "
             
-    return text
+    return text.strip()
 
 def doxyMLToText(node):
     return text
@@ -147,6 +150,7 @@ class DoxyMLParser:
                         if child.nodeType == child.ELEMENT_NODE:
                             param[child.nodeName] = getTextValue(child)
                     new_method.params.append(param)
+            print "Adding %s" % (new_method.name + new_method.argsstring)
             new_class.methods.append(new_method)
 
 if __name__ == "__main__":