items : [
{
xtype: Gtk.ComboBox,
- id : "combo",
- init : function() {
- XObject.prototype.init.call(this);
- this.el.add_attribute(this.get('render').el , 'markup', 1 );
+ listeners : {
+ changed : function (self) {
+ var fn = this.getValue();
+ var pm = imports.Builder.Provider.ProjectManager.ProjectManager;
+ this.get('/LeftProjectTree.model').loadProject(pm.getByFn(fn))
+ }
},
+ id : "combo",
getValue : function() {
var ix = this.el.get_active();
if (ix < 0 ) {
}
return data[ix].fn;
},
+ init : function() {
+ XObject.prototype.init.call(this);
+ this.el.add_attribute(this.get('render').el , 'markup', 1 );
+ },
setValue : function(fn)
{
var el = this.el;
}
});
},
- listeners : {
- changed : function (self) {
- var fn = this.getValue();
- var pm = imports.Builder.Provider.ProjectManager.ProjectManager;
- this.get('/LeftProjectTree.model').loadProject(pm.getByFn(fn))
- }
- },
items : [
{
xtype: Gtk.CellRendererText,
},
{
xtype: Gtk.ListStore,
+ id : "combomodel",
pack : "set_model",
init : function() {
XObject.prototype.init.call(this);
] );
+ // this.el.set_sort_column_id(1,Gtk.SortType.ASCENDING);
var pm = imports.Builder.Provider.ProjectManager.ProjectManager;
var _this = this;
pm.on('changed', function() {
});
this.get('/LeftProjectTree.combo').setValue(ov);
- },
- id : "combomodel"
+ }
}
]
}
// console.log( '<b>' + p.name +'</b> ['+p.type+']');
//GObject.TYPE_STRING, // real key
// GObject.TYPE_STRING, // real type
- // GObject.TYPE_STRING, // docs ?
+ // GObject.TYPE_STRING, // docs ?this.el.set_value(iter, 0, p.name);et_value(iter, 0, p.name);
// GObject.TYPE_STRING // func def?
},
{
xtype: Gtk.TreeViewColumn,
+ pack : false,
init : function() {
this.el = new Gtk.TreeViewColumn();
this.parent.el.append_column(this.el);
XObject.prototype.init.call(this);
this.el.add_attribute(this.items[0].el , 'markup', 4 );
},
- pack : false,
items : [
{
xtype: Gtk.CellRendererText,
{
// does something similar to xobject..
- item.pack = (typeof(item.pack) == 'undefined') ? 'add' : item.pack;
+ //item.pack = (typeof(item.pack) == 'undefined') ? 'add' : item.pack;
+ // pack is forced to 'false'
if (item.pack===false || item.pack === 'false') { // no ;
return;
}
+
print("CREATE: " + item['|xns'] + '.' + item['xtype']);
var pack_m = false;
if (!item.pack && altctr) {
// try XObject.
+ print("SETTING PACK TO XObjectBase method");
pack_m = altctr.prototype.pack;
var args = [];
if (!pack_m) {
+ item.pack = (typeof(item.pack) == 'undefined') ? 'add' : item.pack;
if (typeof(item.pack) == 'string') {
item.pack.split(',').forEach(function(e, i) {