"| void show" : "(Project.Gtk project) {\n \n \n print(\"ValaProjectSettings show\\n\");\n \n this.project= project;\n\n this.compile_flags.el.text = _this.project.compilegroups.get(\"_default_\").compile_flags;\n \n this.default_directory_tree_store.load(); \n this.default_packages_tree_store.load(); \n this.targets_tree_store.load();\n this.files_tree_store.load();\n\n}\n",
"xtype" : "VBox",
"string id" : "ValaProjectSettings",
- "| void save" : "() => {\n this.project.writeConfig();\n}",
+ "| void save" : "() {\n this.project.writeConfig();\n}",
"$ xns" : "Gtk",
"items" : [
{
{
"listeners" : {
"button_press_event" : " ( ev) => {\n //console.log(\"button press?\");\n \n \n if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {\n //print(\"click\" + ev.type);\n return false;\n }\n //Gtk.TreePath res;\n //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {\n // return true;\n //}\n \n // this.el.get_selection().select_path(res);\n \n //if (!this.get('/LeftTreeMenu').el) { \n // this.get('/LeftTreeMenu').init(); \n // }\n \n _this.targets_tree_menu.el.set_screen(Gdk.Screen.get_default());\n _this.targets_tree_menu.el.show_all();\n _this.targets_tree_menu.el.popup(null, null, null, 3, ev.time);\n // print(\"click:\" + res.path.to_string());\n return true;\n}",
- "cursor_changed" : " ( ) => {\n\n if (this.cursor != \"\") {\n // save the values..\n }\n \n // load the new values.\n \n\n Gtk.TreeModel mod;\n Gtk.TreeIter iter;\n if (!this.el.get_selection().get_selected(out mod, out iter)) {\n print(\"nothing selected\\n\");\n return;\n }\n\n \n // add the directory..\n \n \n GLib.Value val;\n mod.get_value(iter,0, out val);\n var fn = (string) val;\n \n this.cursor = fn;\n var cg = _this.project.compilegroups.get(fn);\n _this.build_pack_target.el.set_text(cg.target_bin);\n _this.build_compile_flags.el.set_text(cg.compile_flags);\n // load the srouces\n\n\n }"
+ "cursor_changed" : " ( ) => {\n\n if (this.cursor != \"\") {\n // save the values..\n }\n \n // load the new values.\n \n\n Gtk.TreeModel mod;\n Gtk.TreeIter iter;\n if (!this.el.get_selection().get_selected(out mod, out iter)) {\n print(\"nothing selected\\n\");\n // should disable the right hand side..\n _this.set_vbox.el.hide();\n return;\n }\n _this.set_vbox.el.show();\n \n // add the directory..\n \n \n GLib.Value val;\n mod.get_value(iter,0, out val);\n var fn = (string) val;\n \n this.cursor = fn;\n var cg = _this.project.compilegroups.get(fn);\n \n _this.build_pack_target.el.set_text(cg.target_bin);\n _this.build_compile_flags.el.set_text(cg.compile_flags);\n \n //_this.files_tree_store.updatesel(cg);\n // load the srouces\n \n\n }"
},
"id" : "targets_tree",
"# string cursor" : "",
]
},
{
- "xtype" : "VBox",
+ "id" : "set_vbox",
"* pack" : "add2",
- "string id" : "set_vbox",
+ "xtype" : "VBox",
"gboolean homogeneous" : false,
"$ xns" : "Gtk",
"items" : [
"items" : [
{
"xtype" : "TreeView",
+ "* pack" : "add",
"string id" : "files_tree",
"$ xns" : "Gtk",
"items" : [
"id" : "files_tree_store",
"* pack" : "set_model",
"xtype" : "ListStore",
- "$ n_columns" : 2,
- "| void load" : "() {\n \n this.el.clear();\n \n \n var def = _this.project.compilegroups.get(\"_default_\");\n var items = def.sources;\n \n \n Gtk.TreeIter citer;\n\n for(var i =0 ; i < items.size; i++) {\n this.el.append(out citer); \n \n this.el.set_value(citer, 0, items.get(i) ); // title \n this.el.set_value(citer, 1, \"dir\"); // type \n this.el.set_value(citer, 2, false ); // checked \n /*\n var files = def.files(items.get(i));\n \n for(var j =0 ; j < files.size; j++) {\n this.el.append(out citer); \n \n this.el.set_value(citer, 0, files.get(j) ); // title \n this.el.set_value(citer, 1, \"file\"); // type \n this.el.set_value(citer, 2, false ); // checked \n\n }\n */\n \n //this.el.set_value(citer, 1, items.get(i) );\n }\n this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n \n}\n ",
- "$ columns" : " typeof(string), // 0 file name\n typeof(string), // type (dir orfile)\n typeof(bool) // is checked.\n ",
+ "$ n_columns" : 3,
+ "| void load" : "() {\n \n this.el.clear();\n \n \n var def = _this.project.compilegroups.get(\"_default_\");\n var items = def.sources;\n \n \n \n \n \n Gtk.TreeIter citer;\n\n for(var i =0 ; i < items.size; i++) {\n this.el.append(out citer); \n \n this.el.set_value(citer, 0, items.get(i) ); // title \n \n print(\"ADD item %s\", items.get(i));\n this.el.set_value(citer, 1, \"dir\"); // type \n this.el.set_value(citer, 2, false ); // checked \n\n var files = _this.project.files(items.get(i));\n \n for(var j =0 ; j < files.size; j++) {\n this.el.append(out citer); \n print(\"ADD item %s\", files.get(j));\n this.el.set_value(citer, 0, files.get(j) ); // title \n this.el.set_value(citer, 1, \"file\"); // type \n this.el.set_value(citer, 2, false ); // checked \n\n }\n \n \n //this.el.set_value(citer, 1, items.get(i) );\n }\n this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n \n}\n ",
+ "$ columns" : " typeof(string), // 0 file name\n typeof(string), // 0 basename\n typeof(string), // type (dir orfile)\n typeof(bool) // is checked.\n ",
"$ xns" : "Gtk"
},
{
"utf8 title" : "name",
- "* init" : "/* this.el.add_attribute(_this.files_render.el , \"markup\", 2 );\n// this.el.add_attribute(_this.files_render.el , \"text\", 1 ); */\n \n",
+ "* init" : "\n this.el.add_attribute(_this.files_render.el , \"text\", 0 ); \n \n/* this.el.add_attribute(_this.files_render.el , \"markup\", 2 );\n*/",
"* pack" : "append_column",
"xtype" : "TreeViewColumn",
"gboolean resizable" : true,
},
{
"utf8 title" : "use",
- "* init" : "/*\n\n this.el.add_attribute(_this.packages_render_use.el , \"active\", 1 );\n \n */\n ",
+ "* init" : "{\n this.el.add_attribute(_this.files_render_use.el , \"active\", 2 );\n }",
"* pack" : "append_column",
"xtype" : "TreeViewColumn",
"gboolean resizable" : false,