docs.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / Enum.js
index e61ad08..1dddc21 100644 (file)
@@ -3,55 +3,57 @@
 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;
 
+  
 
 
 
-Enum = function(ns, name) {
-    Base.call(this, ns, name);
-   
-}
-Roo.extend(Enum, Base, {
-    titleType: 'Enum',
-     _loaded : false,
-    load : function()
+
+Enum = XObject.define(
+    function(ns, name) {
+        Base.call(this, ns, name);
+    },
+    Base, 
     {
-        if (this._loaded) {
-            return; // already loaded..
-        }
-        
-        this.desc = Introspect.doc(this.alias);
-        var bi = this.getBI();
+        titleType: 'Enum',
+         _loaded : false,
+        load : function()
+        {
+            if (this._loaded) {
+                return; // already loaded..
+            }
+            
+            this.desc = NameSpace.doc(this.alias);
+            var bi = this.getBI();
+                 
+            for(var i =0; i < GI.enum_info_get_n_values(bi); i++) {
+               
+                var prop = GI.enum_info_get_value(bi,i);
+                 
+              
+                this.values.push({
+                    name :  GI.base_info_get_name(prop).toUpperCase() ,
+                    type :   GI.type_tag_to_string(GI.enum_info_get_storage_type(bi)),
+                    value:   GI.value_info_get_value(prop) ,
+                    memberOf : this.alias
+                });
+            }
+            
+            this._loaded = true;
              
-        for(var i =0; i < GI.enum_info_get_n_values(bi); i++) {
-           
-            var prop = GI.enum_info_get_value(bi,i);
              
-          
-            this.values.push({
-                name :  GI.base_info_get_name(prop).toUpperCase() ,
-                type :   GI.type_tag_to_string(GI.enum_info_get_storage_type(bi)),
-                value:   GI.value_info_get_value(prop) ,
-                memberOf : this.alias
-            });
+            
+            
         }
-        
-        this._loaded = true;
-         
-         
-        
-        
-    }
 });
 
  
\ No newline at end of file