tools/build_gtk_tree.js
[app.Builder.js] / tools / build_gtk_tree.js
index b1c5391..dfe698b 100644 (file)
@@ -42,7 +42,7 @@ ns_list.forEach(function(ns_name) {
         
     });
     ns['interfaces'].forEach( function(n) {
-        NameSpace.factory('Interface', ns_name, n);
+         var odata =NameSpace.factory('Interface', ns_name, n);
         classes[odata.alias] = odata;
     });
 });
@@ -51,43 +51,17 @@ ns_list.forEach(function(ns_name) {
 print("Looping throught namespaces");
 var ns_idx = [];
 var implementations = {};
-ns_list.forEach(function(ns_name) 
-{
-    
-    //if (ns_idx.length) {         return ;/* do one - for testing */ } 
-    
-    var  core = imports.gi[ns_name];
-    var idx = { name: ns_name}; 
-    print("START:" + ns_name);
-   
-    var ns = NameSpace.ns(ns_name); // fetch all the elements in namespace...
-    // as a type => list of them..
-    
-   
-    
+
+for (cls in classes) {
+    var odata = classes[cls];
+    implementations[odata.alias] = odata.titleType == 'Class' ? odata.childClasses :  odata.implementedBy;  
+    print(JSON.stringify(odata.methods,null,4));
     
+    //for(method in odata.methods) {
+    //    print(method.name);
+    //}
     
     
-      
-       
-    ns['objects'].forEach( function(n) {
-        
-       print('NameSpace.factory(Class,'+ns_name+'.'+n+')');
-        var odata =   classes[ns_name+'.'+n];
-        implementations[odata.alias] = odata.childClasses;
-        //print(JSON.stringify(odata.childClasses,null,4));
-    });
-    ns['interfaces'].forEach( function(n) {
-        
-        print('NameSpace.factory(Interface,'+ns_name+'.'+n+')');
-        var odata =   classes[ns_name+'.'+n];
-        implementations[odata.alias] = odata.implementedBy;
-        //print(JSON.stringify(odata.implementedBy,null,4));
-    });
-         // what we are interested in..
-       
-         
-    
-    
-});
+}
 print(JSON.stringify(implementations,null,4));
\ No newline at end of file