// super?!?!
this.id = 'file-gtk-' + gid++;
- console.dump(this);
+ //console.dump(this);
// various loader methods..
},
},
+ /**
+ * convert xtype for munged output..
+ *
+ */
+ mungeXtype : function(xtype, els)
+ {
+ els.push('xtype: '+ xtype);
+ },
+
+
/**
* saveJS
*
*/
saveJS: function()
{
-
+ if (!this.items[0]) {
+ return false;
+ }
var data = JSON.parse(JSON.stringify(this.items[0]));
- var i = [ 'Gtk', 'Gdk', 'Pango', 'GLib', 'Gio', 'GObject', 'GtkSource', 'WebKit', 'Vte' ];
+ var i = [ 'Gtk', 'Gdk', 'Pango', 'GLib', 'Gio', 'GObject',
+ 'GtkSource', 'WebKit', 'Vte' , 'GtkClutter' , 'Gdl'];
var src = "";
i.forEach(function(e) {
src += e+" = imports.gi." + e +";\n";
src += "XObject = imports.XObject.XObject;\n"; // path?!!?
- src += this.name + '=new XObject('+ this.mungeToString(data) + ')\n;';
+ src += this.name + '=new XObject('+ this.mungeToString(data) + ");\n";
src += this.name + '.init();\n';
-
+ // register it in the cache
+ src += "XObject.cache['/" + this.name + "'] = " + this.name + ";\n";
var fn = GLib.path_get_dirname(this.path) + '/' + this.name + '.js';
File.write(fn, src);
return fn;
- }
+ },
/*
getTree : function( o ) {
}
*/
+ getHelpUrl : function(cls)
+ {
+ return 'http://devel.akbkhome.com/seed/' + cls + '.html';
+ }
});
\ No newline at end of file