id : "model",
pack : "set_model",
changed : function(n, refresh) {
- print("MODEL CHANGED CALLED" + this.activePath);
+ // print("MODEL CHANGED CALLED" + this.activePath);
if (this.activePath) {
var iter = new Gtk.TreeIter();
this.el.get_iter(iter, new Gtk.TreePath.from_string(this.activePath))
}
//this.currentTree = this.toJS(false, true)[0];
this.file.items = this.toJS(false, false);
- print("AFTER CHANGED");
+ // print("AFTER CHANGED");
//console.dump(this.file.items);
this.file.save();
this.currentTree = this.file.items[0];
return val;
}
var type = this.getType(this.el.get_path(iter).to_string());
- print("TYPE: " +type + " - val:" + val);
+ //print("TYPE: " +type + " - val:" + val);
switch(type.toLowerCase()) {
case 'number':
case 'uint':
items : [
{
xtype: GtkSource.Buffer,
- pack : "set_buffer",
listeners : {
changed : function (self) {
var s = new Gtk.TextIter();
this.get('/RightEditor.view').el.modify_base(Gtk.StateType.NORMAL, new Gdk.Color({
red: 0xFFFF, green: 0xCCCC , blue : 0xCCCC
}));
- print("SYNTAX ERROR IN EDITOR");
- print(e);
- console.dump(e);
+ //print("SYNTAX ERROR IN EDITOR");
+ //print(e);
+ //console.dump(e);
return;
}
this.get('/RightEditor.view').el.modify_base(Gtk.StateType.NORMAL, new Gdk.Color({
this.get('/LeftPanel.model').changed( str , false);
}
- }
+ },
+ pack : "set_buffer"
}
]
}