tools/build_gtk_tree.js
[app.Builder.js] / tools / build_gtk_tree.js
index 374ac52..90a7a40 100644 (file)
@@ -58,7 +58,7 @@ for (cls in classes) {
     methods[cls] = {}
        
     implementations[odata.alias] = odata.titleType == 'Class' ? odata.childClasses :  odata.implementedBy;  
-    print(JSON.stringify(odata.methods,null,4));
+    //print(JSON.stringify(odata.methods,null,4));
     odata.methods.forEach(function(m) {
        
         m.params.forEach(function(p) {
@@ -69,16 +69,24 @@ for (cls in classes) {
             if (typeof(methods[cls][p.type]) == 'undefined') {
                 methods[cls][p.type] = [];
             }
+            if (methods[cls][p.type].indexOf(m.name) > -1) {
+                return;
+            }
             methods[cls][p.type].push(m.name);
             
-        }
+        });
         
-    }
+    });
     //for(method in odata.methods) {
     //    print(method.name);
     //}
     
     
 }
- print(JSON.stringify(methods,null,4));
-print(JSON.stringify(implementations,null,4));
\ No newline at end of file
+print(JSON.stringify(methods,null,4));
+print(JSON.stringify(implementations,null,4));
+
+// we now have a list of classes / methods that can be used..
+// we now need a ui to flag stuff as "don't bother with"
+
+