tools/build_gtk_tree.js
[app.Builder.js] / tools / build_gtk_tree.js
index d2fd98d..56b469f 100644 (file)
@@ -37,6 +37,7 @@ ns_list.forEach(function(ns_name) {
 
 print("Looping throught namespaces");
 var ns_idx = [];
+var implementations = {};
 ns_list.forEach(function(ns_name) 
 {
     
@@ -54,37 +55,26 @@ ns_list.forEach(function(ns_name)
     
     
     
-    var actions = {
-        'objects' : 'Class',
-        'interfaces' : 'Interface',
-        //'structs' : 'Struct',
-        //'unions' : 'Union',
-        //'enums' : 'Enum'
-        
-    };
-    
+      
        
     ns['objects'].forEach( function(n) {
         
-        print('NameSpace.factory(Class,'+ns_name+'.'+n+')');
+       print('NameSpace.factory(Class,'+ns_name+'.'+n+')');
         var odata =   NameSpace.factory('Class', ns_name, n);
-        print(JSON.stringify(odata.childClasses,null,4));
+        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 =   NameSpace.factory('Interface', ns_name, n);
-        print(JSON.stringify(odata.childClasses,null,4));
+        implementations[odata.alias] = odata.implementedBy;
+        //print(JSON.stringify(odata.implementedBy,null,4));
     });
          // what we are interested in..
-        /// odata.methods.. (where method.memberOf == ns_name.n
-        //  oldata.childClasses
-        print(JSON.stringify(odata.implementedBy,null,4)); //  oldata.implementedBy //??? for interfaces??
         
          
-        
-    }); 
-    }
     
     
 });
+print(JSON.stringify(implementations,null,4));
\ No newline at end of file