GI = imports.gi.GIRepository;
GLib = imports.gi.GLib;
xml = imports.libxml;
-//GObject = imports.gi.GObject;
+
+
+imports['Object.js'].load(Object);
console = imports['console.js'].console;
JSDOC = imports['JSDOC.js'].JSDOC;
-Roo = imports['Roo.js'].Roo;
+
Introspect = imports['JSDOC/Introspect.js'].Introspect;
-Enum = function(ns, name) {
- Base.call(this, ns, name);
-
-}
-Roo.extend(Enum, Base, {
- titleType: 'Enum',
- _loaded : false,
- load : function()
+Enum = Object.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 = Introspect.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