1 static ValaProjectSettings _ValaProjectSettings;
3 public class ValaProjectSettings : Object
6 private ValaProjectSettings _this;
8 public static ValaProjectSettings singleton()
10 if (_ValaProjectSettings == null) {
11 _ValaProjectSettings= new ValaProjectSettings();
13 return _ValaProjectSettings;
15 public Xcls_label_global label_global;
16 public Xcls_label_targets label_targets;
17 public Xcls_compile_flags compile_flags;
18 public Xcls_default_packages_tree_store default_packages_tree_store;
19 public Xcls_packages_render packages_render;
20 public Xcls_packages_render_use packages_render_use;
21 public Xcls_default_directory_tree default_directory_tree;
22 public Xcls_default_directory_tree_store default_directory_tree_store;
23 public Xcls_directory_render directory_render;
24 public Xcls_default_directory_menu default_directory_menu;
25 public Xcls_targets_tree_menu targets_tree_menu;
26 public Xcls_targets_tree targets_tree;
27 public Xcls_targets_tree_store targets_tree_store;
28 public Xcls_targets_render targets_render;
29 public Xcls_build_pack_target build_pack_target;
30 public Xcls_build_compile_flags build_compile_flags;
31 public Xcls_files_render files_render;
34 public Project.Gtk project;
35 public Xcls_MainWindow window;
38 public ValaProjectSettings()
41 this.el = new Gtk.VBox( true, 0 );
48 var child_0 = new Xcls_Notebook2( _this );
50 this.el.pack_start ( child_0.el , true,true,0 );
53 // user defined functions
54 public void show (Project.Gtk project) {
57 print("ValaProjectSettings show\n");
59 this.project= project;
61 this.compile_flags.el.text = "";
63 this.default_directory_tree_store.load();
64 this.default_packages_tree_store.load();
65 this.targets_tree_store.load();
69 public class Xcls_Notebook2 : Object
71 public Gtk.Notebook el;
72 private ValaProjectSettings _this;
78 public Xcls_Notebook2(ValaProjectSettings _owner )
81 this.el = new Gtk.Notebook();
86 var child_0 = new Xcls_label_global( _this );
88 var child_1 = new Xcls_label_targets( _this );
90 var child_2 = new Xcls_VBox5( _this );
92 this.el.append_page ( child_2.el , _this.label_global.el );
93 var child_3 = new Xcls_HPaned27( _this );
95 this.el.append_page ( child_3.el , _this.label_targets.el );
98 // user defined functions
100 public class Xcls_label_global : Object
103 private ValaProjectSettings _this;
109 public Xcls_label_global(ValaProjectSettings _owner )
112 _this.label_global = this;
113 this.el = new Gtk.Label( "Global" );
117 // set gobject values
120 // user defined functions
122 public class Xcls_label_targets : Object
125 private ValaProjectSettings _this;
131 public Xcls_label_targets(ValaProjectSettings _owner )
134 _this.label_targets = this;
135 this.el = new Gtk.Label( "Targets" );
139 // set gobject values
142 // user defined functions
144 public class Xcls_VBox5 : Object
147 private ValaProjectSettings _this;
153 public Xcls_VBox5(ValaProjectSettings _owner )
156 this.el = new Gtk.VBox( false, 0 );
160 // set gobject values
161 var child_0 = new Xcls_Label6( _this );
163 this.el.pack_start ( child_0.el , false,false,0 );
164 var child_1 = new Xcls_compile_flags( _this );
166 this.el.pack_start ( child_1.el , false,false,0 );
167 var child_2 = new Xcls_Label8( _this );
169 this.el.pack_start ( child_2.el , false,false,0 );
170 var child_3 = new Xcls_ScrolledWindow9( _this );
172 this.el.pack_start ( child_3.el , true,true,0 );
173 var child_4 = new Xcls_Label16( _this );
175 this.el.pack_start ( child_4.el , false,false,0 );
176 var child_5 = new Xcls_ScrolledWindow17( _this );
178 this.el.pack_start ( child_5.el , true,true,0 );
181 // user defined functions
183 public class Xcls_Label6 : Object
186 private ValaProjectSettings _this;
192 public Xcls_Label6(ValaProjectSettings _owner )
195 this.el = new Gtk.Label( "compile flags" );
199 // set gobject values
202 // user defined functions
204 public class Xcls_compile_flags : Object
207 private ValaProjectSettings _this;
213 public Xcls_compile_flags(ValaProjectSettings _owner )
216 _this.compile_flags = this;
217 this.el = new Gtk.Entry();
221 // set gobject values
224 // user defined functions
226 public class Xcls_Label8 : Object
229 private ValaProjectSettings _this;
235 public Xcls_Label8(ValaProjectSettings _owner )
238 this.el = new Gtk.Label( "packages" );
242 // set gobject values
245 // user defined functions
247 public class Xcls_ScrolledWindow9 : Object
249 public Gtk.ScrolledWindow el;
250 private ValaProjectSettings _this;
256 public Xcls_ScrolledWindow9(ValaProjectSettings _owner )
259 this.el = new Gtk.ScrolledWindow( null, null );
263 // set gobject values
264 var child_0 = new Xcls_default_packages_tree( _this );
266 this.el.add ( child_0.el );
269 // user defined functions
271 public class Xcls_default_packages_tree : Object
273 public Gtk.TreeView el;
274 private ValaProjectSettings _this;
280 public Xcls_default_packages_tree(ValaProjectSettings _owner )
283 this.el = new Gtk.TreeView();
287 // set gobject values
288 this.el.headers_visible = false;
289 var child_0 = new Xcls_default_packages_tree_store( _this );
291 this.el.set_model ( child_0.el );
292 var child_1 = new Xcls_TreeViewColumn12( _this );
294 this.el.append_column ( child_1.el );
295 var child_2 = new Xcls_TreeViewColumn14( _this );
297 this.el.append_column ( child_2.el );
300 // user defined functions
302 public class Xcls_default_packages_tree_store : Object
304 public Gtk.ListStore el;
305 private ValaProjectSettings _this;
311 public Xcls_default_packages_tree_store(ValaProjectSettings _owner )
314 _this.default_packages_tree_store = this;
315 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
320 // set gobject values
323 // user defined functions
324 public void load () {
326 var def = _this.project.compilegroups.get("_default_");
327 var items = def.packages;
330 var pal = (Palete.Gtk) Palete.factory("Gtk");
331 var pkgs = pal.packages();
332 print("ValaProjectSettings:packages load %d\n", pkgs.size);
336 for(var i =0 ; i < pkgs.size; i++) {
337 this.el.append(out citer);
339 this.el.set_value(citer, 0, pkgs.get(i) ); // title
340 this.el.set_value(citer, 1, items.contains(pkgs.get(i)) );
342 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
346 public class Xcls_TreeViewColumn12 : Object
348 public Gtk.TreeViewColumn el;
349 private ValaProjectSettings _this;
355 public Xcls_TreeViewColumn12(ValaProjectSettings _owner )
358 this.el = new Gtk.TreeViewColumn();
362 // set gobject values
363 this.el.title = "name";
364 this.el.expand = true;
365 this.el.resizable = true;
366 var child_0 = new Xcls_packages_render( _this );
368 this.el.pack_start ( child_0.el , false );
372 this.el.add_attribute(_this.packages_render.el , "text", 0 ); }
374 // user defined functions
376 public class Xcls_packages_render : Object
378 public Gtk.CellRendererText el;
379 private ValaProjectSettings _this;
385 public Xcls_packages_render(ValaProjectSettings _owner )
388 _this.packages_render = this;
389 this.el = new Gtk.CellRendererText();
393 // set gobject values
396 // user defined functions
398 public class Xcls_TreeViewColumn14 : Object
400 public Gtk.TreeViewColumn el;
401 private ValaProjectSettings _this;
407 public Xcls_TreeViewColumn14(ValaProjectSettings _owner )
410 this.el = new Gtk.TreeViewColumn();
414 // set gobject values
415 this.el.title = "use";
416 this.el.resizable = false;
417 this.el.fixed_width = 50;
418 var child_0 = new Xcls_packages_render_use( _this );
420 this.el.pack_start ( child_0.el , false );
425 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
428 // user defined functions
430 public class Xcls_packages_render_use : Object
432 public Gtk.CellRendererToggle el;
433 private ValaProjectSettings _this;
439 public Xcls_packages_render_use(ValaProjectSettings _owner )
442 _this.packages_render_use = this;
443 this.el = new Gtk.CellRendererToggle();
447 // set gobject values
448 this.el.activatable = true;
451 this.el.toggled.connect( ( path_string) => {
452 var m = _this.default_packages_tree_store.el;
454 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
455 m.get_iter (out iter, path);
457 m.get_value(iter, 1, out val);
458 m.set_value(iter, 1, ((bool) val) ? false :true);
460 m.get_value(iter, 0, out fval);
461 var fn = (string)fval;
463 var def = _this.project.compilegroups.get("_default_");
464 var items = def.packages;
475 // user defined functions
477 public class Xcls_Label16 : Object
480 private ValaProjectSettings _this;
486 public Xcls_Label16(ValaProjectSettings _owner )
489 this.el = new Gtk.Label( "Available Directories" );
493 // set gobject values
496 // user defined functions
498 public class Xcls_ScrolledWindow17 : Object
500 public Gtk.ScrolledWindow el;
501 private ValaProjectSettings _this;
507 public Xcls_ScrolledWindow17(ValaProjectSettings _owner )
510 this.el = new Gtk.ScrolledWindow( null, null );
514 // set gobject values
515 var child_0 = new Xcls_default_directory_tree( _this );
517 this.el.add ( child_0.el );
518 var child_1 = new Xcls_default_directory_menu( _this );
522 // user defined functions
524 public class Xcls_default_directory_tree : Object
526 public Gtk.TreeView el;
527 private ValaProjectSettings _this;
533 public Xcls_default_directory_tree(ValaProjectSettings _owner )
536 _this.default_directory_tree = this;
537 this.el = new Gtk.TreeView();
541 // set gobject values
542 this.el.headers_visible = false;
543 var child_0 = new Xcls_default_directory_tree_store( _this );
545 this.el.set_model ( child_0.el );
546 var child_1 = new Xcls_TreeViewColumn20( _this );
548 this.el.append_column ( child_1.el );
551 this.el.button_press_event.connect( ( ev) => {
552 //console.log("button press?");
555 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
556 //print("click" + ev.type);
560 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
564 // this.el.get_selection().select_path(res);
566 //if (!this.get('/LeftTreeMenu').el) {
567 // this.get('/LeftTreeMenu').init();
570 _this.default_directory_menu.el.set_screen(Gdk.Screen.get_default());
571 _this.default_directory_menu.el.show_all();
572 _this.default_directory_menu.el.popup(null, null, null, 3, ev.time);
573 // print("click:" + res.path.to_string());
578 // user defined functions
580 public class Xcls_default_directory_tree_store : Object
582 public Gtk.ListStore el;
583 private ValaProjectSettings _this;
589 public Xcls_default_directory_tree_store(ValaProjectSettings _owner )
592 _this.default_directory_tree_store = this;
593 this.el = new Gtk.ListStore( 1, typeof(string)
598 // set gobject values
601 // user defined functions
602 public void load () {
607 var def = _this.project.compilegroups.get("_default_");
608 var items = def.sources;
613 for(var i =0 ; i < items.size; i++) {
614 this.el.append(out citer);
616 this.el.set_value(citer, 0, items.get(i) ); // title
617 //this.el.set_value(citer, 1, items.get(i) );
619 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
623 public class Xcls_TreeViewColumn20 : Object
625 public Gtk.TreeViewColumn el;
626 private ValaProjectSettings _this;
632 public Xcls_TreeViewColumn20(ValaProjectSettings _owner )
635 this.el = new Gtk.TreeViewColumn();
639 // set gobject values
640 this.el.title = "name";
641 this.el.resizable = true;
642 var child_0 = new Xcls_directory_render( _this );
644 this.el.pack_start ( child_0.el , false );
648 this.el.add_attribute(_this.directory_render.el , "text", 0 ); }
650 // user defined functions
652 public class Xcls_directory_render : Object
654 public Gtk.CellRendererText el;
655 private ValaProjectSettings _this;
661 public Xcls_directory_render(ValaProjectSettings _owner )
664 _this.directory_render = this;
665 this.el = new Gtk.CellRendererText();
669 // set gobject values
672 // user defined functions
674 public class Xcls_default_directory_menu : Object
677 private ValaProjectSettings _this;
683 public Xcls_default_directory_menu(ValaProjectSettings _owner )
686 _this.default_directory_menu = this;
687 this.el = new Gtk.Menu();
691 // set gobject values
692 var child_0 = new Xcls_MenuItem23( _this );
694 this.el.add ( child_0.el );
695 var child_1 = new Xcls_MenuItem24( _this );
697 this.el.add ( child_1.el );
698 var child_2 = new Xcls_SeparatorMenuItem25( _this );
700 this.el.add ( child_2.el );
701 var child_3 = new Xcls_MenuItem26( _this );
703 this.el.add ( child_3.el );
706 // user defined functions
708 public class Xcls_MenuItem23 : Object
710 public Gtk.MenuItem el;
711 private ValaProjectSettings _this;
717 public Xcls_MenuItem23(ValaProjectSettings _owner )
720 this.el = new Gtk.MenuItem();
724 // set gobject values
725 this.el.label = "Add Directory";
728 this.el.activate.connect( () => {
730 var chooser = new Gtk.FileChooserDialog (
731 "Add a directory", _this.window.el, Gtk.FileChooserAction.SELECT_FOLDER ,
733 Gtk.ResponseType.CANCEL,
735 Gtk.ResponseType.ACCEPT);
736 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
741 // add the directory..
742 var fn = _this.project.relPath(chooser.get_filename());
743 _this.project.compilegroups.get("_default_").sources.add(fn);
744 _this.default_directory_tree_store.load();
748 // user defined functions
750 public class Xcls_MenuItem24 : Object
752 public Gtk.MenuItem el;
753 private ValaProjectSettings _this;
759 public Xcls_MenuItem24(ValaProjectSettings _owner )
762 this.el = new Gtk.MenuItem();
766 // set gobject values
767 this.el.label = "Add File";
770 this.el.activate.connect( () => {
772 var chooser = new Gtk.FileChooserDialog (
773 "Add a directory", _this.window.el, Gtk.FileChooserAction.OPEN ,
775 Gtk.ResponseType.CANCEL,
777 Gtk.ResponseType.ACCEPT);
778 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
783 // add the directory..
784 var fn = _this.project.relPath(chooser.get_filename());
785 _this.project.compilegroups.get("_default_").sources.add(fn);
786 _this.default_directory_tree_store.load();
790 // user defined functions
792 public class Xcls_SeparatorMenuItem25 : Object
794 public Gtk.SeparatorMenuItem el;
795 private ValaProjectSettings _this;
801 public Xcls_SeparatorMenuItem25(ValaProjectSettings _owner )
804 this.el = new Gtk.SeparatorMenuItem();
808 // set gobject values
811 // user defined functions
813 public class Xcls_MenuItem26 : Object
815 public Gtk.MenuItem el;
816 private ValaProjectSettings _this;
822 public Xcls_MenuItem26(ValaProjectSettings _owner )
825 this.el = new Gtk.MenuItem();
829 // set gobject values
830 this.el.label = "Remove File/Directory";
833 this.el.activate.connect( () => {
838 if (!_this.default_directory_tree.el.get_selection().get_selected(out mod, out iter)) {
839 print("nothing selected\n");
844 // add the directory..
848 mod.get_value(iter,0, out val);
849 var fn = (string) val;
851 print("remove: %s\n", fn);
852 if (!_this.project.compilegroups.get("_default_").sources.remove(fn)) {
853 print("remove failed");
855 _this.default_directory_tree_store.load();
859 // user defined functions
861 public class Xcls_HPaned27 : Object
863 public Gtk.HPaned el;
864 private ValaProjectSettings _this;
870 public Xcls_HPaned27(ValaProjectSettings _owner )
873 this.el = new Gtk.HPaned();
877 // set gobject values
878 this.el.position = 300;
879 var child_0 = new Xcls_ScrolledWindow28( _this );
881 this.el.add1 ( child_0.el );
882 var child_1 = new Xcls_set_vbox( _this );
884 this.el.add2 ( child_1.el );
887 // user defined functions
889 public class Xcls_ScrolledWindow28 : Object
891 public Gtk.ScrolledWindow el;
892 private ValaProjectSettings _this;
898 public Xcls_ScrolledWindow28(ValaProjectSettings _owner )
901 this.el = new Gtk.ScrolledWindow( null, null );
905 // set gobject values
906 var child_0 = new Xcls_targets_tree_menu( _this );
908 this.el.add ( child_0.el );
909 var child_1 = new Xcls_targets_tree( _this );
911 this.el.add ( child_1.el );
916 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
920 // user defined functions
922 public class Xcls_targets_tree_menu : Object
925 private ValaProjectSettings _this;
931 public Xcls_targets_tree_menu(ValaProjectSettings _owner )
934 _this.targets_tree_menu = this;
935 this.el = new Gtk.Menu();
939 // set gobject values
940 var child_0 = new Xcls_MenuItem30( _this );
942 this.el.add ( child_0.el );
943 var child_1 = new Xcls_SeparatorMenuItem31( _this );
945 this.el.add ( child_1.el );
946 var child_2 = new Xcls_MenuItem32( _this );
948 this.el.add ( child_2.el );
951 // user defined functions
953 public class Xcls_MenuItem30 : Object
955 public Gtk.MenuItem el;
956 private ValaProjectSettings _this;
962 public Xcls_MenuItem30(ValaProjectSettings _owner )
965 this.el = new Gtk.MenuItem();
969 // set gobject values
970 this.el.label = "Add Compile Target";
973 this.el.activate.connect( () => {
975 if (_this.project.compilegroups.has_key("NEW GROUP")) {
979 // add the directory..
981 _this.project.compilegroups.set("NEW GROUP", new Project.GtkValaSettings("NEW GROUP"));
982 _this.targets_tree_store.load();
986 // user defined functions
988 public class Xcls_SeparatorMenuItem31 : Object
990 public Gtk.SeparatorMenuItem el;
991 private ValaProjectSettings _this;
997 public Xcls_SeparatorMenuItem31(ValaProjectSettings _owner )
1000 this.el = new Gtk.SeparatorMenuItem();
1004 // set gobject values
1007 // user defined functions
1009 public class Xcls_MenuItem32 : Object
1011 public Gtk.MenuItem el;
1012 private ValaProjectSettings _this;
1018 public Xcls_MenuItem32(ValaProjectSettings _owner )
1021 this.el = new Gtk.MenuItem();
1025 // set gobject values
1026 this.el.label = "Remove Target";
1029 this.el.activate.connect( () => {
1034 if (!_this.targets_tree.el.get_selection().get_selected(out mod, out iter)) {
1035 print("nothing selected\n");
1040 // add the directory..
1044 mod.get_value(iter,0, out val);
1045 var fn = (string) val;
1047 print("remove: %s\n", fn);
1048 if (!_this.project.compilegroups.unset(fn)) {
1049 print("remove failed");
1051 _this.targets_tree_store.load();
1055 // user defined functions
1057 public class Xcls_targets_tree : Object
1059 public Gtk.TreeView el;
1060 private ValaProjectSettings _this;
1064 public string cursor;
1067 public Xcls_targets_tree(ValaProjectSettings _owner )
1070 _this.targets_tree = this;
1071 this.el = new Gtk.TreeView();
1075 // set gobject values
1076 var child_0 = new Xcls_targets_tree_store( _this );
1078 this.el.set_model ( child_0.el );
1079 var child_1 = new Xcls_TreeViewColumn35( _this );
1081 this.el.append_column ( child_1.el );
1084 this.el.button_press_event.connect( ( ev) => {
1085 //console.log("button press?");
1088 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
1089 //print("click" + ev.type);
1093 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
1097 // this.el.get_selection().select_path(res);
1099 //if (!this.get('/LeftTreeMenu').el) {
1100 // this.get('/LeftTreeMenu').init();
1103 _this.targets_tree_menu.el.set_screen(Gdk.Screen.get_default());
1104 _this.targets_tree_menu.el.show_all();
1105 _this.targets_tree_menu.el.popup(null, null, null, 3, ev.time);
1106 // print("click:" + res.path.to_string());
1109 this.el.cursor_changed.connect( ( ) => {
1111 if (this.cursor != "") {
1112 // save the values..
1115 // load the new values.
1120 if (!this.el.get_selection().get_selected(out mod, out iter)) {
1121 print("nothing selected\n");
1126 // add the directory..
1130 mod.get_value(iter,0, out val);
1131 var fn = (string) val;
1134 var cg = _this.project.compilegroups.get(fn);
1135 _this.build_pack_target.el.set_text(cg.target_bin);
1136 _this.build_compile_flags.el.set_text(cg.compile_flags);
1143 // user defined functions
1145 public class Xcls_targets_tree_store : Object
1147 public Gtk.ListStore el;
1148 private ValaProjectSettings _this;
1154 public Xcls_targets_tree_store(ValaProjectSettings _owner )
1157 _this.targets_tree_store = this;
1158 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1159 typeof(string) // ??
1164 // set gobject values
1167 // user defined functions
1168 public void load () {
1173 var cg = _this.project.compilegroups;
1175 _this.targets_tree.cursor = "";
1177 var iter = cg.map_iterator();
1178 while(iter.next()) {
1179 var key = iter.get_key();
1180 if (key == "_default_") {
1184 this.el.append(out citer);
1186 this.el.set_value(citer, 0, key ); // title
1187 //this.el.set_value(citer, 1, items.get(i) );
1189 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
1193 public class Xcls_TreeViewColumn35 : Object
1195 public Gtk.TreeViewColumn el;
1196 private ValaProjectSettings _this;
1202 public Xcls_TreeViewColumn35(ValaProjectSettings _owner )
1205 this.el = new Gtk.TreeViewColumn();
1209 // set gobject values
1210 this.el.title = "name";
1211 this.el.resizable = true;
1212 var child_0 = new Xcls_targets_render( _this );
1214 this.el.pack_start ( child_0.el , false );
1219 this.el.add_attribute(_this.targets_render.el , "text", 0 );
1222 // user defined functions
1224 public class Xcls_targets_render : Object
1226 public Gtk.CellRendererText el;
1227 private ValaProjectSettings _this;
1233 public Xcls_targets_render(ValaProjectSettings _owner )
1236 _this.targets_render = this;
1237 this.el = new Gtk.CellRendererText();
1241 // set gobject values
1242 this.el.editable = true;
1245 this.el.edited.connect( (path, newtext) => {
1248 _this.targets_tree_store.el.get_iter(out iter, new Gtk.TreePath.from_string(path));
1250 _this.targets_tree_store.el.get_value(iter,0, out gval);
1251 var oldval = (string)gval;
1252 if (oldval == newtext) {
1255 var cg = _this.project.compilegroups.get(oldval);
1257 _this.project.compilegroups.unset(oldval);
1258 _this.project.compilegroups.set(newtext, cg);
1259 _this.targets_tree_store.load();
1263 // user defined functions
1265 public class Xcls_set_vbox : Object
1268 private ValaProjectSettings _this;
1274 public Xcls_set_vbox(ValaProjectSettings _owner )
1277 this.el = new Gtk.VBox( false, 0 );
1281 // set gobject values
1282 var child_0 = new Xcls_Label38( _this );
1284 this.el.pack_start ( child_0.el , false,false,0 );
1285 var child_1 = new Xcls_build_pack_target( _this );
1287 this.el.pack_start ( child_1.el , false,false,0 );
1288 var child_2 = new Xcls_Label40( _this );
1290 this.el.pack_start ( child_2.el , false,false,0 );
1291 var child_3 = new Xcls_build_compile_flags( _this );
1293 this.el.pack_start ( child_3.el , false,false,0 );
1294 var child_4 = new Xcls_Label42( _this );
1296 this.el.pack_start ( child_4.el , false,false,0 );
1297 var child_5 = new Xcls_ScrolledWindow43( _this );
1299 this.el.pack_start ( child_5.el , true,true,0 );
1302 // user defined functions
1304 public class Xcls_Label38 : Object
1306 public Gtk.Label el;
1307 private ValaProjectSettings _this;
1313 public Xcls_Label38(ValaProjectSettings _owner )
1316 this.el = new Gtk.Label( "target filename" );
1320 // set gobject values
1323 // user defined functions
1325 public class Xcls_build_pack_target : Object
1327 public Gtk.Entry el;
1328 private ValaProjectSettings _this;
1334 public Xcls_build_pack_target(ValaProjectSettings _owner )
1337 _this.build_pack_target = this;
1338 this.el = new Gtk.Entry();
1342 // set gobject values
1345 this.el.changed.connect( () => {
1346 _this.project.get(_this.targets_tree.cursor).target_bin = this.el.text;
1350 // user defined functions
1352 public class Xcls_Label40 : Object
1354 public Gtk.Label el;
1355 private ValaProjectSettings _this;
1361 public Xcls_Label40(ValaProjectSettings _owner )
1364 this.el = new Gtk.Label( "compile flags" );
1368 // set gobject values
1371 // user defined functions
1373 public class Xcls_build_compile_flags : Object
1375 public Gtk.Entry el;
1376 private ValaProjectSettings _this;
1382 public Xcls_build_compile_flags(ValaProjectSettings _owner )
1385 _this.build_compile_flags = this;
1386 this.el = new Gtk.Entry();
1390 // set gobject values
1393 // user defined functions
1395 public class Xcls_Label42 : Object
1397 public Gtk.Label el;
1398 private ValaProjectSettings _this;
1404 public Xcls_Label42(ValaProjectSettings _owner )
1407 this.el = new Gtk.Label( "Files to compile" );
1411 // set gobject values
1414 // user defined functions
1416 public class Xcls_ScrolledWindow43 : Object
1418 public Gtk.ScrolledWindow el;
1419 private ValaProjectSettings _this;
1425 public Xcls_ScrolledWindow43(ValaProjectSettings _owner )
1428 this.el = new Gtk.ScrolledWindow( null, null );
1432 // set gobject values
1433 var child_0 = new Xcls_files_tree( _this );
1437 // user defined functions
1439 public class Xcls_files_tree : Object
1441 public Gtk.TreeView el;
1442 private ValaProjectSettings _this;
1448 public Xcls_files_tree(ValaProjectSettings _owner )
1451 this.el = new Gtk.TreeView();
1455 // set gobject values
1456 var child_0 = new Xcls_ListStore45( _this );
1458 this.el.set_model ( child_0.el );
1459 var child_1 = new Xcls_TreeViewColumn46( _this );
1461 this.el.append_column ( child_1.el );
1464 // user defined functions
1466 public class Xcls_ListStore45 : Object
1468 public Gtk.ListStore el;
1469 private ValaProjectSettings _this;
1475 public Xcls_ListStore45(ValaProjectSettings _owner )
1478 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1479 typeof(string) // ??
1484 // set gobject values
1487 // user defined functions
1489 public class Xcls_TreeViewColumn46 : Object
1491 public Gtk.TreeViewColumn el;
1492 private ValaProjectSettings _this;
1498 public Xcls_TreeViewColumn46(ValaProjectSettings _owner )
1501 this.el = new Gtk.TreeViewColumn();
1505 // set gobject values
1506 this.el.title = "name";
1507 this.el.resizable = true;
1508 var child_0 = new Xcls_files_render( _this );
1510 this.el.pack_start ( child_0.el , false );
1514 this.el.add_attribute(_this.files_render.el , "markup", 2 );
1515 this.el.add_attribute(_this.files_render.el , "text", 1 ); }
1517 // user defined functions
1519 public class Xcls_files_render : Object
1521 public Gtk.CellRendererText el;
1522 private ValaProjectSettings _this;
1528 public Xcls_files_render(ValaProjectSettings _owner )
1531 _this.files_render = this;
1532 this.el = new Gtk.CellRendererText();
1536 // set gobject values
1539 // user defined functions