JSDOC/Introspect/Signal.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / Signal.js
index a42f320..9524512 100644 (file)
@@ -1,69 +1,68 @@
 //<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;
+XObject     = imports.XObject.XObject;
+console     = imports.console.console;
+NameSpace   = imports.NameSpace.NameSpace;
 
-Introspect = imports['JSDOC/Introspect.js'].Introspect;
-Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
+Basic        = imports.Basic.Basic;
 
+  
 
+Signal = XObject.define(
+    function(sig, memberOf, saveto, keylist) {
 
-Signal = function(sig, memberOf, saveto, keylist) {
-
-    this.propertyType  = 'Signal';
-    
-    var params = this.argsToArrays(sig);
-    // add a reference to self...
-    params.unshift({
-        name : 'self',
-        type : memberOf.alias,
-        direction : 'in',
-        be_null :  false
+        this.propertyType  = 'Signal';
+        
+        var params = this.argsToArrays(sig);
+        // add a reference to self...
+        params.unshift({
+            name : 'self',
+            type : memberOf.alias,
+            direction : 'in',
+            be_null :  false
+                
+        });
+        var n_original  = GI.base_info_get_name(sig);
+        
+        XObject.extend(this,{
+            name : n_original.replace(/-/g,'_'),
+            params : params,
+            memberOf : memberOf.alias,
+            exceptions : [],
+            returns :   [ { type :  this.typeToName(GI.callable_info_get_return_type(sig)) } ],
+            desc : NameSpace.doc(memberOf.alias + '.signal.' + n_original)
+        });
+        memberOf[saveto].push(this);
+        keylist.push(this.name);
+        
+        var addedto = [ memberOf.alias ]; // do not add to self...
+       
+        for(var i =1; i < params.length;i++) {
+            var ty = params[i].type;
+            if (typeof(ty) != 'string' || ty.indexOf('.') < 0) {
+                continue;
+            }
+            if (addedto.indexOf(ty) > -1) {
+                continue;
+            }
             
-    });
-    var n_original  = GI.base_info_get_name(sig);
-    
-    Roo.apply(this,{
-        name : n_original.replace(/-/g,'_'),
-        params : params,
-        memberOf : memberOf.alias,
-        exceptions : [],
-        returns :   [ { type :  this.typeToName(GI.callable_info_get_return_type(sig)) } ],
-        desc : Introspect.doc(memberOf.alias + '.' + n_original)
-    });
-    memberOf[saveto].push(this);
-    keylist.push(this.name);
-    
-    var addedto = [ memberOf.alias ]; // do not add to self...
-   
-    for(var i =1; i < params.length;i++) {
-        var ty = params[i].type;
-        if (typeof(ty) != 'string' || ty.indexOf('.') < 0) {
-            continue;
-        }
-        if (addedto.indexOf(ty) > -1) {
-            continue;
+            
+            
+            NameSpace.references[ty] = NameSpace.references[ty] || [];
+            NameSpace.references[ty].push(this);
+            addedto.push(ty);
         }
         
         
         
-        Introspect.references[ty] = Introspect.references[ty] || [];
-        Introspect.references[ty].push(this);
-        addedto.push(ty);
-    }
-    
-    
-    
-    
-    
-}
-Roo.extend(Signal,Basic);
+        
+        
+    },
+    Basic
+);