+ "| void hideAll" : [
+ "() {",
+ "",
+ "\t// exiting only",
+ "\tthis.path_lbl.el.hide();",
+ " this.path.el.hide();",
+ " ",
+ " // new ",
+ " this.name_lbl.el.hide();",
+ " this.name.el.hide();",
+ " //new ",
+ " this.dir_dropdown_lbl.el.hide();",
+ " this.dir_dropdown.el.hide();",
+ "\t// roo",
+ "\tthis.title_lbl.el.hide();",
+ "\tthis.title.el.hide();",
+ "\t",
+ "\tthis.region_lbl.el.hide();",
+ "\tthis.region.el.hide();",
+ "\t",
+ "\tthis.parent_lbl.el.hide();",
+ "\tthis.parent.el.hide();",
+ "\t",
+ "\tthis.permname_lbl.el.hide();",
+ "\tthis.permname.el.hide();",
+ "\t",
+ "\tthis.modOrder_lbl.el.hide();",
+ "\tthis.modOrder.el.hide();",
+ "\t",
+ "\tthis.build_module_lbl.el.hide();",
+ "\tthis.build_module.el.hide();",
+ "\t",
+ "\tthis.gen_lbl.el.hide();",
+ "\tthis.gen.el.hide();",
+ "\t\tthis.filetype_lbl.el.hide();",
+ "\t\tthis.filetype.el.hide();",
+ "}\t"
+ ],
+ "| void onDirChanged" : [
+ "() {",
+ "if (this.dir_dropdown.el.selected == Gtk.INVALID_LIST_POSITION) {",
+ "\t\tthis.build_module_lbl.el.hide();",
+ "\t\tthis.build_module.el.hide();",
+ "\t\tthis.name_lbl.el.hide();",
+ "\t\tthis.name.el.hide();",
+ "\t\t ",
+ " \tthis.gen_lbl.el.hide();",
+ "\t\tthis.gen.el.hide();",
+ " ",
+ "\t\treturn;",
+ "\t\t",
+ "\t",
+ "\t}",
+ "\t// directory selected",
+ "\tvar sel = this.filetype.getValue();",
+ "\t",
+ "\tif (this.file.project.xtype==\"Gtk\" && (sel == \"bjs\" || sel == \"vala\")) {",
+ "\t\tthis.build_module_lbl.el.show();",
+ "\t\tthis.build_module.el.show();",
+ "\t}",
+ "\tthis.name_lbl.el.show();",
+ "\tthis.name.el.show();",
+ "\t",
+ "\tif (sel == \"bjs\") {",
+ " _this.gen_lbl.el.show();",
+ " _this.gen.el.show();",
+ " }",
+ " ",
+ " if (this.file.project.xtype == \"Roo\" && sel == \"bjs\") {",
+ " \tthis.title_lbl.el.show();",
+ "\t\tthis.title.el.show();",
+ "\t\t",
+ "\t\tthis.region_lbl.el.show();",
+ "\t\tthis.region.el.show();",
+ "\t\t",
+ "\t\tthis.parent_lbl.el.show();",
+ "\t\tthis.parent.el.show();",
+ "\t\t",
+ "\t\tthis.permname_lbl.el.show();",
+ "\t\tthis.permname.el.show();",
+ "\t\t",
+ "\t\tthis.modOrder_lbl.el.show();",
+ "\t\tthis.modOrder.el.show();",
+ "\t}",
+ " ",
+ " ",
+ "}"
+ ],
+ "| void onFileTypeChange" : [
+ "() {",
+ "\tif (this.filetype.el.selected == Gtk.INVALID_LIST_POSITION) {",
+ "\t\tthis.dir_dropdown.el.hide();",
+ "\t\tthis.dir_dropdown_lbl.el.hide();",
+ "\t\tthis.build_module_lbl.el.hide();",
+ "\t\tthis.build_module.el.hide();",
+ "\t\tthis.name_lbl.el.hide();",
+ "\t\tthis.name.el.hide();",
+ "\t ",
+ " \tthis.gen_lbl.el.hide();",
+ "\t\tthis.gen.el.hide();",
+ " ",
+ " ",
+ " \tthis.title_lbl.el.hide();",
+ "\t\tthis.title.el.hide();",
+ "\t\t",
+ "\t\tthis.region_lbl.el.hide();",
+ "\t\tthis.region.el.hide();",
+ "\t\t",
+ "\t\tthis.parent_lbl.el.hide();",
+ "\t\tthis.parent.el.hide();",
+ "\t\t",
+ "\t\tthis.permname_lbl.el.hide();",
+ "\t\tthis.permname.el.hide();",
+ "\t\t",
+ "\t\tthis.modOrder_lbl.el.hide();",
+ "\t\tthis.modOrder.el.hide();",
+ " ",
+ "\t\treturn;",
+ "\t\t ",
+ "\t}",
+ "\t",
+ "\tthis.dir_dropdown.el.show();",
+ "\tthis.dir_dropdown_lbl.el.show();",
+ "\tvar sel = this.filetype.getValue();",
+ "\t",
+ "\tvar old_sel = _this.dir_dropdown.el.selected != Gtk.INVALID_LIST_POSITION;",
+ "\tvar olddir = this.dir_dropdown.getValue();",
+ "\tGLib.debug(\"old dir = %s\", olddir);",
+ "\tif (this.file.project.xtype==\"Gtk\" && (sel == \"bjs\" || sel == \"vala\")) {",
+ "\t\t_this.project.loadDirsToStringList(_this.dir_model.el, \"/src\");",
+ "\t\tif (old_sel && olddir.has_prefix(\"/src\")) {",
+ "\t\t \tthis.dir_dropdown.setValue(olddir);",
+ " \t\t} else {",
+ "\t \t _this.dir_dropdown.el.selected = Gtk.INVALID_LIST_POSITION;",
+ " \t }",
+ " ",
+ "\t} else {",
+ "",
+ " _this.project.loadDirsToStringList(_this.dir_model.el, \"\");",
+ "\t\tif (old_sel) {",
+ "\t\t\tthis.dir_dropdown.setValue(olddir);",
+ "\t\t} else {",
+ "\t\t _this.dir_dropdown.el.selected = Gtk.INVALID_LIST_POSITION;",
+ "\t }",
+ " ",
+ " }",
+ "",
+ " ",
+ " // is this confusing? - should we just strip out / add if necessary..",
+ " if (sel == \"bjs\" || sel == \"vala\" || sel == \"js\" || sel == \"css\" || sel == \"php\") {",
+ " _this.name_lbl.el.label = \"Component Name (Filename with-out extension)\";\t\t\t\t ",
+ " } else {",
+ "\t _this.name_lbl.el.label = \"File Name (with extension)\";",
+ " }",
+ " ",
+ "}"
+ ],