- Roo.each(ns.objects, function(n) {
-
-
- Gio.simple_write(outputdir + '/'+ ns_name + '.' + n + '.shtml',
- cls_template.process( Introspect.factory('Class', ns_name, n)));
-
- Seed.print(ns_name + '.' +n);
- });
- Roo.each(ns.interfaces, function(n) {
-
-
- Gio.simple_write(outputdir + '/'+ ns_name + '.' + n + '.shtml',
- cls_template.process( Introspect.factory('Interface', ns_name, n)));
-
- Seed.print(ns_name + '.' +n);
- });
- Roo.each(ns.structs, function(n) {
-
-
- Gio.simple_write(outputdir + '/'+ ns_name + '.' + n + '.shtml',
- cls_template.process( Introspect.factory('Struct', ns_name, n)));
-
-
- Seed.print(ns_name + '.' +n);
- });
+ var actions = {
+ 'objects' : 'Class',
+ 'interfaces' : 'Interface',
+ 'structs' : 'Struct',
+ 'unions' : 'Union',
+ 'enums' : 'Enum'
+
+ };
+ for (var i in actions) {
+ // we flag GLib as a GObject lib...
+ idx[i]= ns_name == 'GLib' ? 1 : ns[i].length ;
+ ns[i].forEach( function(n) {
+ var odata = XObject.extend(
+ NameSpace.factory(actions[i], ns_name, n),
+ { 'left_bar' :ns['left_bar'] }
+ );
+ langs.forEach(function(lang) {
+ Gio.simple_write(outputdir + '/'+ lang.name + '/' + ns_name + '.' + n + '.html',
+ lang.cls_template.process(odata)
+ )
+ });
+ console.log(ns_name + '.' +n);
+ });
+ }
+ ns_idx.push(idx);