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