"|xns": "Gtk",
"items": [
{
- "|columns": " typeof(Object), // 0 real key\n typeof(string), // 1 property type (prop|event)\n typeof(string), // 2 real key\n typeof(string), // 4 visable key\n typeof(string) // 5 visable value\n ",
"id": "model",
- "n_columns": 6,
+ "n_columns": 5,
"pack": "set_model",
"xtype": "TreeStore",
"|changed": "function(str, doRefresh) {\n if (!this.activePath) {\n return;\n }\n var iter = new Gtk.TreeIter();\n this.el.get_iter(iter, new Gtk.TreePath.from_string(this.activePath));\n \n this.el.set_value(iter, 1, '' +str);\n this.el.set_value(iter, 3, '' + this.toShort(str));\n var type = this.getIterValue(iter, 4);\n\n this.el.set_value(iter, 5, type + ' : ' + str);\n // update the tree... \n\n this.get('/LeftTree.model').changed(this.toJS(), doRefresh); \n}\n",
+ "|columns": " typeof(Object), // 0 real key\n typeof(string), // 1 property type (prop|event)\n typeof(string), // 2 real key\n typeof(string), // 4 visable key\n typeof(string) // 5 visable value\n ",
"|toShort": "function(str) {\n var a = typeof(str) == 'string' ? str.split(\"\\n\") : [];\n return a.length > 1 ? a[0] + '....' : '' + str;\n}\n",
"|xns": "Gtk"
},
items : [
{
xtype: Gtk.TreeStore,
- columns : typeof(Object), // 0 real key
- typeof(string), // 1 property type (prop|event)
- typeof(string), // 2 real key
- typeof(string), // 4 visable key
- typeof(string) // 5 visable value,
id : "model",
- n_columns : 6,
+ n_columns : 5,
pack : "set_model",
changed : function(str, doRefresh) {
if (!this.activePath) {
this.get('/LeftTree.model').changed(this.toJS(), doRefresh);
},
+ columns : typeof(Object), // 0 real key
+ typeof(string), // 1 property type (prop|event)
+ typeof(string), // 2 real key
+ typeof(string), // 4 visable key
+ typeof(string) // 5 visable value,
toShort : function(str) {
var a = typeof(str) == 'string' ? str.split("\n") : [];
return a.length > 1 ? a[0] + '....' : '' + str;
{
_this = _owner;
_this.model = this;
- this.el = new Gtk.TreeStore( 6, typeof(Object), // 0 real key
+ this.el = new Gtk.TreeStore( 5, typeof(Object), // 0 real key
typeof(string), // 1 property type (prop|event)
typeof(string), // 2 real key
typeof(string), // 4 visable key