JSDOC/Introspect/Struct.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / Struct.js
index 50be288..a3a72dc 100644 (file)
@@ -1,63 +1,64 @@
 //<script type="text/javascript">
-//Gtk = imports.gi.Gtk;
+
 GI      = imports.gi.GIRepository;
-GLib    = imports.gi.GLib;
-xml     = imports.libxml;
-//GObject = imports.gi.GObject;
 
-console = imports['console.js'].console;
-JSDOC   = imports['JSDOC.js'].JSDOC;
-Roo     = imports['Roo.js'].Roo;
 
 
-Introspect = imports['JSDOC/Introspect.js'].Introspect;
-Base = imports['JSDOC/Introspect/Base.js'].Base;
+XObject     = imports.XObject.XObject;
+console     = imports.console.console;
+NameSpace   = imports.NameSpace.NameSpace;
+
+Base        = imports.Base.Base;
+
 /**
  * Struct
  */
 
-Struct = function(ns, name) {
-    Base.call(this, ns, name);
-   
-}
-
-Roo.extend(Struct, Base, 
-{
-    titleType: 'Struct',
-    
-    _loaded : false,
-    load : function()
+Struct = XObject.define(
+    function(ns, name) {
+        Base.call(this, ns, name);
+       
+    },
+
+    Base, 
     {
-        if (this._loaded) {
-            return; // already loaded..
-        }
-        // my props..
-        var props = [];
-        this.genericBuildList('struct', 'field', props, 'properties');
-        
-        var methods = [];
-        
-        
-        if (GI.struct_info_get_size (this.getBI()) > 0 ) {
-           
+        titleType: 'Struct',
         
+        _loaded : false,
+        load : function()
+        {
+            if (this._loaded) {
+                return; // already loaded..
+            }
+            // my props..
+            var props = [];
+            this.genericBuildList('struct', 'field', props, 'properties');
             
-            this.constructors.push({
-                name : '',
-                params: [],
-                returns :  [],
-                isConstructor : true,
-                isStatic : false,
-                memberOf : this.alias,
-                exceptions : [],
-                desc : ''
-            });
-        }
-        
-        this.genericBuildList('struct', 'method', methods, 'methods');
-          
-        this._loaded  = true;
-    },
-     
+            var methods = [];
+            
+            
+            if (GI.struct_info_get_size (this.getBI()) > 0 ) {
+               
+            
+                
+                this.constructors.push({
+                    name : '',
+                    params: [],
+                    returns :  [],
+                    isConstructor : true,
+                    isStatic : false,
+                    memberOf : this.alias,
+                    exceptions : [],
+                    desc : ''
+                });
+            }
+            
+            this.genericBuildList('struct', 'method', methods, 'methods');
+              
+            this._loaded  = true;
+        },
+         
 
 });
\ No newline at end of file