move introspect
[gnome.introspection-doc-generator] / Introspect / Interface.js
1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3  
4 XObject     = imports.XObject.XObject;
5 console     = imports.console.console;
6 NameSpace   = imports.NameSpace.NameSpace;
7
8 Base        = imports.Base.Base;
9
10  
11
12
13 /**
14  * Interface
15  */
16
17 Interface = XObject.define(
18     function(ns, name) {
19         Base.call(this, ns, name);
20        
21     },
22
23     Base, 
24     {
25          titleType: 'Interface',
26         _loaded : false,
27         load : function()
28         {
29             if (this._loaded) {
30                 return; // already loaded..
31             }
32             // my props..
33             var props = [];
34             this.genericBuildList('interface', 'property', props, 'properties');
35            
36            
37             var signals = [];
38             this.genericBuildList('interface', 'signal', signals, 'signals');
39           
40             
41             var methods = [];
42             this.genericBuildList('interface', 'method', methods, 'methods');
43             
44             
45             NameSpace.ifaceList[this.alias] = NameSpace.ifaceList[this.alias] || [];
46             this.implementedBy = NameSpace.ifaceList[this.alias];
47             
48               
49            
50             this._loaded  = true;
51         },
52          
53
54 });