1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3 GI = imports.gi.GIRepository;
4 GLib = imports.gi.GLib;
6 //GObject = imports.gi.GObject;
8 console = imports['console.js'].console;
9 JSDOC = imports['JSDOC.js'].JSDOC;
10 Roo = imports['Roo.js'].Roo;
13 Introspect = imports['JSDOC/Introspect.js'].Introspect;
14 Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
21 Property = function(prop, memberOf, saveto, keylist) {
22 this.propertyType = 'Property';
23 var n_original = GI.base_info_get_name(prop);
24 this.name = n_original.replace(/\-/g, '_') ,
25 this.type = this.typeToName(GI.property_info_get_type(prop)),
26 this.flags = GI.property_info_get_flags(prop),
27 this.memberOf = memberOf.alias
28 memberOf[saveto].push(this);
29 keylist.push(this.name);
30 this.desc = Introspect.doc(this.memberOf + '.' + n_original);
33 if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
35 Introspect.references[this.type] = Introspect.references[this.type] || [];
36 Introspect.references[this.type].push(this);
42 Roo.extend(Property,Basic);