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_targets_render_use targets_render_use;
30 public Xcls_build_pack_target build_pack_target;
31 public Xcls_build_compile_flags build_compile_flags;
32 public Xcls_files_render files_render;
33 public Xcls_targets_render_use targets_render_use;
36 public Project.Gtk project;
37 public Xcls_MainWindow window;
40 public ValaProjectSettings()
43 this.el = new Gtk.VBox( true, 0 );
50 var child_0 = new Xcls_Notebook2( _this );
52 this.el.pack_start ( child_0.el , true,true,0 );
55 // user defined functions
56 public void show (Project.Gtk project) {
59 print("ValaProjectSettings show\n");
61 this.project= project;
63 this.compile_flags.el.text = "";
65 this.default_directory_tree_store.load();
66 this.default_packages_tree_store.load();
67 this.targets_tree_store.load();
71 public class Xcls_Notebook2 : Object
73 public Gtk.Notebook el;
74 private ValaProjectSettings _this;
80 public Xcls_Notebook2(ValaProjectSettings _owner )
83 this.el = new Gtk.Notebook();
88 var child_0 = new Xcls_label_global( _this );
90 var child_1 = new Xcls_label_targets( _this );
92 var child_2 = new Xcls_VBox5( _this );
94 this.el.append_page ( child_2.el , _this.label_global.el );
95 var child_3 = new Xcls_HPaned27( _this );
97 this.el.append_page ( child_3.el , _this.label_targets.el );
100 // user defined functions
102 public class Xcls_label_global : Object
105 private ValaProjectSettings _this;
111 public Xcls_label_global(ValaProjectSettings _owner )
114 _this.label_global = this;
115 this.el = new Gtk.Label( "Global" );
119 // set gobject values
122 // user defined functions
124 public class Xcls_label_targets : Object
127 private ValaProjectSettings _this;
133 public Xcls_label_targets(ValaProjectSettings _owner )
136 _this.label_targets = this;
137 this.el = new Gtk.Label( "Targets" );
141 // set gobject values
144 // user defined functions
146 public class Xcls_VBox5 : Object
149 private ValaProjectSettings _this;
155 public Xcls_VBox5(ValaProjectSettings _owner )
158 this.el = new Gtk.VBox( false, 0 );
162 // set gobject values
163 var child_0 = new Xcls_Label6( _this );
165 this.el.pack_start ( child_0.el , false,false,0 );
166 var child_1 = new Xcls_compile_flags( _this );
168 this.el.pack_start ( child_1.el , false,false,0 );
169 var child_2 = new Xcls_Label8( _this );
171 this.el.pack_start ( child_2.el , false,false,0 );
172 var child_3 = new Xcls_ScrolledWindow9( _this );
174 this.el.pack_start ( child_3.el , true,true,0 );
175 var child_4 = new Xcls_Label16( _this );
177 this.el.pack_start ( child_4.el , false,false,0 );
178 var child_5 = new Xcls_ScrolledWindow17( _this );
180 this.el.pack_start ( child_5.el , true,true,0 );
183 // user defined functions
185 public class Xcls_Label6 : Object
188 private ValaProjectSettings _this;
194 public Xcls_Label6(ValaProjectSettings _owner )
197 this.el = new Gtk.Label( "compile flags" );
201 // set gobject values
204 // user defined functions
206 public class Xcls_compile_flags : Object
209 private ValaProjectSettings _this;
215 public Xcls_compile_flags(ValaProjectSettings _owner )
218 _this.compile_flags = this;
219 this.el = new Gtk.Entry();
223 // set gobject values
226 // user defined functions
228 public class Xcls_Label8 : Object
231 private ValaProjectSettings _this;
237 public Xcls_Label8(ValaProjectSettings _owner )
240 this.el = new Gtk.Label( "packages" );
244 // set gobject values
247 // user defined functions
249 public class Xcls_ScrolledWindow9 : Object
251 public Gtk.ScrolledWindow el;
252 private ValaProjectSettings _this;
258 public Xcls_ScrolledWindow9(ValaProjectSettings _owner )
261 this.el = new Gtk.ScrolledWindow( null, null );
265 // set gobject values
266 var child_0 = new Xcls_default_packages_tree( _this );
268 this.el.add ( child_0.el );
271 // user defined functions
273 public class Xcls_default_packages_tree : Object
275 public Gtk.TreeView el;
276 private ValaProjectSettings _this;
282 public Xcls_default_packages_tree(ValaProjectSettings _owner )
285 this.el = new Gtk.TreeView();
289 // set gobject values
290 this.el.headers_visible = false;
291 var child_0 = new Xcls_default_packages_tree_store( _this );
293 this.el.set_model ( child_0.el );
294 var child_1 = new Xcls_TreeViewColumn12( _this );
296 this.el.append_column ( child_1.el );
297 var child_2 = new Xcls_TreeViewColumn14( _this );
299 this.el.append_column ( child_2.el );
302 // user defined functions
304 public class Xcls_default_packages_tree_store : Object
306 public Gtk.ListStore el;
307 private ValaProjectSettings _this;
313 public Xcls_default_packages_tree_store(ValaProjectSettings _owner )
316 _this.default_packages_tree_store = this;
317 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
322 // set gobject values
325 // user defined functions
326 public void load () {
328 var def = _this.project.compilegroups.get("_default_");
329 var items = def.packages;
332 var pal = (Palete.Gtk) Palete.factory("Gtk");
333 var pkgs = pal.packages();
334 print("ValaProjectSettings:packages load %d\n", pkgs.size);
338 for(var i =0 ; i < pkgs.size; i++) {
339 this.el.append(out citer);
341 this.el.set_value(citer, 0, pkgs.get(i) ); // title
342 this.el.set_value(citer, 1, items.contains(pkgs.get(i)) );
344 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
348 public class Xcls_TreeViewColumn12 : Object
350 public Gtk.TreeViewColumn el;
351 private ValaProjectSettings _this;
357 public Xcls_TreeViewColumn12(ValaProjectSettings _owner )
360 this.el = new Gtk.TreeViewColumn();
364 // set gobject values
365 this.el.title = "name";
366 this.el.expand = true;
367 this.el.resizable = true;
368 var child_0 = new Xcls_packages_render( _this );
370 this.el.pack_start ( child_0.el , false );
374 this.el.add_attribute(_this.packages_render.el , "text", 0 ); }
376 // user defined functions
378 public class Xcls_packages_render : Object
380 public Gtk.CellRendererText el;
381 private ValaProjectSettings _this;
387 public Xcls_packages_render(ValaProjectSettings _owner )
390 _this.packages_render = this;
391 this.el = new Gtk.CellRendererText();
395 // set gobject values
398 // user defined functions
400 public class Xcls_TreeViewColumn14 : Object
402 public Gtk.TreeViewColumn el;
403 private ValaProjectSettings _this;
409 public Xcls_TreeViewColumn14(ValaProjectSettings _owner )
412 this.el = new Gtk.TreeViewColumn();
416 // set gobject values
417 this.el.title = "use";
418 this.el.resizable = false;
419 this.el.fixed_width = 50;
420 var child_0 = new Xcls_packages_render_use( _this );
422 this.el.pack_start ( child_0.el , false );
427 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
430 // user defined functions
432 public class Xcls_packages_render_use : Object
434 public Gtk.CellRendererToggle el;
435 private ValaProjectSettings _this;
441 public Xcls_packages_render_use(ValaProjectSettings _owner )
444 _this.packages_render_use = this;
445 this.el = new Gtk.CellRendererToggle();
449 // set gobject values
450 this.el.activatable = true;
453 this.el.toggled.connect( ( path_string) => {
454 var m = _this.default_packages_tree_store.el;
456 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
457 m.get_iter (out iter, path);
459 m.get_value(iter, 1, out val);
460 m.set_value(iter, 1, ((bool) val) ? false :true);
462 m.get_value(iter, 0, out fval);
463 var fn = (string)fval;
465 var def = _this.project.compilegroups.get("_default_");
466 var items = def.packages;
477 // user defined functions
479 public class Xcls_Label16 : Object
482 private ValaProjectSettings _this;
488 public Xcls_Label16(ValaProjectSettings _owner )
491 this.el = new Gtk.Label( "Available Directories" );
495 // set gobject values
498 // user defined functions
500 public class Xcls_ScrolledWindow17 : Object
502 public Gtk.ScrolledWindow el;
503 private ValaProjectSettings _this;
509 public Xcls_ScrolledWindow17(ValaProjectSettings _owner )
512 this.el = new Gtk.ScrolledWindow( null, null );
516 // set gobject values
517 var child_0 = new Xcls_default_directory_tree( _this );
519 this.el.add ( child_0.el );
520 var child_1 = new Xcls_default_directory_menu( _this );
524 // user defined functions
526 public class Xcls_default_directory_tree : Object
528 public Gtk.TreeView el;
529 private ValaProjectSettings _this;
535 public Xcls_default_directory_tree(ValaProjectSettings _owner )
538 _this.default_directory_tree = this;
539 this.el = new Gtk.TreeView();
543 // set gobject values
544 this.el.headers_visible = false;
545 var child_0 = new Xcls_default_directory_tree_store( _this );
547 this.el.set_model ( child_0.el );
548 var child_1 = new Xcls_TreeViewColumn20( _this );
550 this.el.append_column ( child_1.el );
553 this.el.button_press_event.connect( ( ev) => {
554 //console.log("button press?");
557 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
558 //print("click" + ev.type);
562 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
566 // this.el.get_selection().select_path(res);
568 //if (!this.get('/LeftTreeMenu').el) {
569 // this.get('/LeftTreeMenu').init();
572 _this.default_directory_menu.el.set_screen(Gdk.Screen.get_default());
573 _this.default_directory_menu.el.show_all();
574 _this.default_directory_menu.el.popup(null, null, null, 3, ev.time);
575 // print("click:" + res.path.to_string());
580 // user defined functions
582 public class Xcls_default_directory_tree_store : Object
584 public Gtk.ListStore el;
585 private ValaProjectSettings _this;
591 public Xcls_default_directory_tree_store(ValaProjectSettings _owner )
594 _this.default_directory_tree_store = this;
595 this.el = new Gtk.ListStore( 1, typeof(string)
600 // set gobject values
603 // user defined functions
604 public void load () {
609 var def = _this.project.compilegroups.get("_default_");
610 var items = def.sources;
615 for(var i =0 ; i < items.size; i++) {
616 this.el.append(out citer);
618 this.el.set_value(citer, 0, items.get(i) ); // title
619 //this.el.set_value(citer, 1, items.get(i) );
621 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
625 public class Xcls_TreeViewColumn20 : Object
627 public Gtk.TreeViewColumn el;
628 private ValaProjectSettings _this;
634 public Xcls_TreeViewColumn20(ValaProjectSettings _owner )
637 this.el = new Gtk.TreeViewColumn();
641 // set gobject values
642 this.el.title = "name";
643 this.el.resizable = true;
644 var child_0 = new Xcls_directory_render( _this );
646 this.el.pack_start ( child_0.el , false );
650 this.el.add_attribute(_this.directory_render.el , "text", 0 ); }
652 // user defined functions
654 public class Xcls_directory_render : Object
656 public Gtk.CellRendererText el;
657 private ValaProjectSettings _this;
663 public Xcls_directory_render(ValaProjectSettings _owner )
666 _this.directory_render = this;
667 this.el = new Gtk.CellRendererText();
671 // set gobject values
674 // user defined functions
676 public class Xcls_default_directory_menu : Object
679 private ValaProjectSettings _this;
685 public Xcls_default_directory_menu(ValaProjectSettings _owner )
688 _this.default_directory_menu = this;
689 this.el = new Gtk.Menu();
693 // set gobject values
694 var child_0 = new Xcls_MenuItem23( _this );
696 this.el.add ( child_0.el );
697 var child_1 = new Xcls_MenuItem24( _this );
699 this.el.add ( child_1.el );
700 var child_2 = new Xcls_SeparatorMenuItem25( _this );
702 this.el.add ( child_2.el );
703 var child_3 = new Xcls_MenuItem26( _this );
705 this.el.add ( child_3.el );
708 // user defined functions
710 public class Xcls_MenuItem23 : Object
712 public Gtk.MenuItem el;
713 private ValaProjectSettings _this;
719 public Xcls_MenuItem23(ValaProjectSettings _owner )
722 this.el = new Gtk.MenuItem();
726 // set gobject values
727 this.el.label = "Add Directory";
730 this.el.activate.connect( () => {
732 var chooser = new Gtk.FileChooserDialog (
733 "Add a directory", _this.window.el, Gtk.FileChooserAction.SELECT_FOLDER ,
735 Gtk.ResponseType.CANCEL,
737 Gtk.ResponseType.ACCEPT);
738 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
743 // add the directory..
744 var fn = _this.project.relPath(chooser.get_filename());
745 _this.project.compilegroups.get("_default_").sources.add(fn);
746 _this.default_directory_tree_store.load();
750 // user defined functions
752 public class Xcls_MenuItem24 : Object
754 public Gtk.MenuItem el;
755 private ValaProjectSettings _this;
761 public Xcls_MenuItem24(ValaProjectSettings _owner )
764 this.el = new Gtk.MenuItem();
768 // set gobject values
769 this.el.label = "Add File";
772 this.el.activate.connect( () => {
774 var chooser = new Gtk.FileChooserDialog (
775 "Add a directory", _this.window.el, Gtk.FileChooserAction.OPEN ,
777 Gtk.ResponseType.CANCEL,
779 Gtk.ResponseType.ACCEPT);
780 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
785 // add the directory..
786 var fn = _this.project.relPath(chooser.get_filename());
787 _this.project.compilegroups.get("_default_").sources.add(fn);
788 _this.default_directory_tree_store.load();
792 // user defined functions
794 public class Xcls_SeparatorMenuItem25 : Object
796 public Gtk.SeparatorMenuItem el;
797 private ValaProjectSettings _this;
803 public Xcls_SeparatorMenuItem25(ValaProjectSettings _owner )
806 this.el = new Gtk.SeparatorMenuItem();
810 // set gobject values
813 // user defined functions
815 public class Xcls_MenuItem26 : Object
817 public Gtk.MenuItem el;
818 private ValaProjectSettings _this;
824 public Xcls_MenuItem26(ValaProjectSettings _owner )
827 this.el = new Gtk.MenuItem();
831 // set gobject values
832 this.el.label = "Remove File/Directory";
835 this.el.activate.connect( () => {
840 if (!_this.default_directory_tree.el.get_selection().get_selected(out mod, out iter)) {
841 print("nothing selected\n");
846 // add the directory..
850 mod.get_value(iter,0, out val);
851 var fn = (string) val;
853 print("remove: %s\n", fn);
854 if (!_this.project.compilegroups.get("_default_").sources.remove(fn)) {
855 print("remove failed");
857 _this.default_directory_tree_store.load();
861 // user defined functions
863 public class Xcls_HPaned27 : Object
865 public Gtk.HPaned el;
866 private ValaProjectSettings _this;
872 public Xcls_HPaned27(ValaProjectSettings _owner )
875 this.el = new Gtk.HPaned();
879 // set gobject values
880 this.el.position = 300;
881 var child_0 = new Xcls_ScrolledWindow28( _this );
883 this.el.add1 ( child_0.el );
884 var child_1 = new Xcls_set_vbox( _this );
886 this.el.add2 ( child_1.el );
889 // user defined functions
891 public class Xcls_ScrolledWindow28 : Object
893 public Gtk.ScrolledWindow el;
894 private ValaProjectSettings _this;
900 public Xcls_ScrolledWindow28(ValaProjectSettings _owner )
903 this.el = new Gtk.ScrolledWindow( null, null );
907 // set gobject values
908 var child_0 = new Xcls_targets_tree_menu( _this );
910 this.el.add ( child_0.el );
911 var child_1 = new Xcls_targets_tree( _this );
913 this.el.add ( child_1.el );
918 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
922 // user defined functions
924 public class Xcls_targets_tree_menu : Object
927 private ValaProjectSettings _this;
933 public Xcls_targets_tree_menu(ValaProjectSettings _owner )
936 _this.targets_tree_menu = this;
937 this.el = new Gtk.Menu();
941 // set gobject values
942 var child_0 = new Xcls_MenuItem30( _this );
944 this.el.add ( child_0.el );
945 var child_1 = new Xcls_SeparatorMenuItem31( _this );
947 this.el.add ( child_1.el );
948 var child_2 = new Xcls_MenuItem32( _this );
950 this.el.add ( child_2.el );
953 // user defined functions
955 public class Xcls_MenuItem30 : Object
957 public Gtk.MenuItem el;
958 private ValaProjectSettings _this;
964 public Xcls_MenuItem30(ValaProjectSettings _owner )
967 this.el = new Gtk.MenuItem();
971 // set gobject values
972 this.el.label = "Add Compile Target";
975 this.el.activate.connect( () => {
977 if (_this.project.compilegroups.has_key("NEW GROUP")) {
981 // add the directory..
983 _this.project.compilegroups.set("NEW GROUP", new Project.GtkValaSettings("NEW GROUP"));
984 _this.targets_tree_store.load();
988 // user defined functions
990 public class Xcls_SeparatorMenuItem31 : Object
992 public Gtk.SeparatorMenuItem el;
993 private ValaProjectSettings _this;
999 public Xcls_SeparatorMenuItem31(ValaProjectSettings _owner )
1002 this.el = new Gtk.SeparatorMenuItem();
1006 // set gobject values
1009 // user defined functions
1011 public class Xcls_MenuItem32 : Object
1013 public Gtk.MenuItem el;
1014 private ValaProjectSettings _this;
1020 public Xcls_MenuItem32(ValaProjectSettings _owner )
1023 this.el = new Gtk.MenuItem();
1027 // set gobject values
1028 this.el.label = "Remove Target";
1031 this.el.activate.connect( () => {
1036 if (!_this.targets_tree.el.get_selection().get_selected(out mod, out iter)) {
1037 print("nothing selected\n");
1042 // add the directory..
1046 mod.get_value(iter,0, out val);
1047 var fn = (string) val;
1049 print("remove: %s\n", fn);
1050 if (!_this.project.compilegroups.unset(fn)) {
1051 print("remove failed");
1053 _this.targets_tree_store.load();
1057 // user defined functions
1059 public class Xcls_targets_tree : Object
1061 public Gtk.TreeView el;
1062 private ValaProjectSettings _this;
1066 public string cursor;
1069 public Xcls_targets_tree(ValaProjectSettings _owner )
1072 _this.targets_tree = this;
1073 this.el = new Gtk.TreeView();
1077 // set gobject values
1078 var child_0 = new Xcls_targets_tree_store( _this );
1080 this.el.set_model ( child_0.el );
1081 var child_1 = new Xcls_TreeViewColumn35( _this );
1083 this.el.append_column ( child_1.el );
1084 var child_2 = new Xcls_TreeViewColumn37( _this );
1086 this.el.append_column ( child_2.el );
1089 this.el.button_press_event.connect( ( ev) => {
1090 //console.log("button press?");
1093 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
1094 //print("click" + ev.type);
1098 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
1102 // this.el.get_selection().select_path(res);
1104 //if (!this.get('/LeftTreeMenu').el) {
1105 // this.get('/LeftTreeMenu').init();
1108 _this.targets_tree_menu.el.set_screen(Gdk.Screen.get_default());
1109 _this.targets_tree_menu.el.show_all();
1110 _this.targets_tree_menu.el.popup(null, null, null, 3, ev.time);
1111 // print("click:" + res.path.to_string());
1114 this.el.cursor_changed.connect( ( ) => {
1116 if (this.cursor != "") {
1117 // save the values..
1120 // load the new values.
1125 if (!this.el.get_selection().get_selected(out mod, out iter)) {
1126 print("nothing selected\n");
1131 // add the directory..
1135 mod.get_value(iter,0, out val);
1136 var fn = (string) val;
1139 var cg = _this.project.compilegroups.get(fn);
1140 _this.build_pack_target.el.set_text(cg.target_bin);
1141 _this.build_compile_flags.el.set_text(cg.compile_flags);
1148 // user defined functions
1150 public class Xcls_targets_tree_store : Object
1152 public Gtk.ListStore el;
1153 private ValaProjectSettings _this;
1159 public Xcls_targets_tree_store(ValaProjectSettings _owner )
1162 _this.targets_tree_store = this;
1163 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1164 typeof(string) // ??
1169 // set gobject values
1172 // user defined functions
1173 public void load () {
1178 var cg = _this.project.compilegroups;
1180 _this.targets_tree.cursor = "";
1182 var iter = cg.map_iterator();
1183 while(iter.next()) {
1184 var key = iter.get_key();
1185 if (key == "_default_") {
1189 this.el.append(out citer);
1191 this.el.set_value(citer, 0, key ); // title
1192 //this.el.set_value(citer, 1, items.get(i) );
1194 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
1198 public class Xcls_TreeViewColumn35 : Object
1200 public Gtk.TreeViewColumn el;
1201 private ValaProjectSettings _this;
1207 public Xcls_TreeViewColumn35(ValaProjectSettings _owner )
1210 this.el = new Gtk.TreeViewColumn();
1214 // set gobject values
1215 this.el.title = "name";
1216 this.el.resizable = true;
1217 var child_0 = new Xcls_targets_render( _this );
1219 this.el.pack_start ( child_0.el , false );
1224 this.el.add_attribute(_this.targets_render.el , "text", 0 );
1227 // user defined functions
1229 public class Xcls_targets_render : Object
1231 public Gtk.CellRendererText el;
1232 private ValaProjectSettings _this;
1238 public Xcls_targets_render(ValaProjectSettings _owner )
1241 _this.targets_render = this;
1242 this.el = new Gtk.CellRendererText();
1246 // set gobject values
1247 this.el.editable = true;
1250 this.el.edited.connect( (path, newtext) => {
1253 _this.targets_tree_store.el.get_iter(out iter, new Gtk.TreePath.from_string(path));
1255 _this.targets_tree_store.el.get_value(iter,0, out gval);
1256 var oldval = (string)gval;
1257 if (oldval == newtext) {
1260 var cg = _this.project.compilegroups.get(oldval);
1262 _this.project.compilegroups.unset(oldval);
1263 _this.project.compilegroups.set(newtext, cg);
1264 _this.targets_tree_store.load();
1268 // user defined functions
1270 public class Xcls_TreeViewColumn37 : Object
1272 public Gtk.TreeViewColumn el;
1273 private ValaProjectSettings _this;
1279 public Xcls_TreeViewColumn37(ValaProjectSettings _owner )
1282 this.el = new Gtk.TreeViewColumn();
1286 // set gobject values
1287 this.el.title = "use";
1288 this.el.resizable = false;
1289 this.el.fixed_width = 50;
1290 var child_0 = new Xcls_targets_render_use( _this );
1292 this.el.pack_start ( child_0.el , false );
1297 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
1300 // user defined functions
1302 public class Xcls_targets_render_use : Object
1304 public Gtk.CellRendererToggle el;
1305 private ValaProjectSettings _this;
1311 public Xcls_targets_render_use(ValaProjectSettings _owner )
1314 _this.targets_render_use = this;
1315 this.el = new Gtk.CellRendererToggle();
1319 // set gobject values
1320 this.el.activatable = true;
1323 this.el.toggled.connect( ( path_string) => {
1324 var m = _this.default_packages_tree_store.el;
1326 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
1327 m.get_iter (out iter, path);
1329 m.get_value(iter, 1, out val);
1330 m.set_value(iter, 1, ((bool) val) ? false :true);
1332 m.get_value(iter, 0, out fval);
1333 var fn = (string)fval;
1335 var def = _this.project.compilegroups.get("_default_");
1336 var items = def.packages;
1347 // user defined functions
1349 public class Xcls_set_vbox : Object
1352 private ValaProjectSettings _this;
1358 public Xcls_set_vbox(ValaProjectSettings _owner )
1361 this.el = new Gtk.VBox( false, 0 );
1365 // set gobject values
1366 var child_0 = new Xcls_Label40( _this );
1368 this.el.pack_start ( child_0.el , false,false,0 );
1369 var child_1 = new Xcls_build_pack_target( _this );
1371 this.el.pack_start ( child_1.el , false,false,0 );
1372 var child_2 = new Xcls_Label42( _this );
1374 this.el.pack_start ( child_2.el , false,false,0 );
1375 var child_3 = new Xcls_build_compile_flags( _this );
1377 this.el.pack_start ( child_3.el , false,false,0 );
1378 var child_4 = new Xcls_Label44( _this );
1380 this.el.pack_start ( child_4.el , false,false,0 );
1381 var child_5 = new Xcls_ScrolledWindow45( _this );
1383 this.el.pack_start ( child_5.el , true,true,0 );
1386 // user defined functions
1388 public class Xcls_Label40 : Object
1390 public Gtk.Label el;
1391 private ValaProjectSettings _this;
1397 public Xcls_Label40(ValaProjectSettings _owner )
1400 this.el = new Gtk.Label( "target filename" );
1404 // set gobject values
1407 // user defined functions
1409 public class Xcls_build_pack_target : Object
1411 public Gtk.Entry el;
1412 private ValaProjectSettings _this;
1418 public Xcls_build_pack_target(ValaProjectSettings _owner )
1421 _this.build_pack_target = this;
1422 this.el = new Gtk.Entry();
1426 // set gobject values
1429 this.el.changed.connect( () => {
1430 if (_this.targets_tree.cursor.length < 1) {
1433 _this.project.compilegroups.get(_this.targets_tree.cursor).target_bin = this.el.text;
1437 // user defined functions
1439 public class Xcls_Label42 : Object
1441 public Gtk.Label el;
1442 private ValaProjectSettings _this;
1448 public Xcls_Label42(ValaProjectSettings _owner )
1451 this.el = new Gtk.Label( "compile flags" );
1455 // set gobject values
1458 // user defined functions
1460 public class Xcls_build_compile_flags : Object
1462 public Gtk.Entry el;
1463 private ValaProjectSettings _this;
1469 public Xcls_build_compile_flags(ValaProjectSettings _owner )
1472 _this.build_compile_flags = this;
1473 this.el = new Gtk.Entry();
1477 // set gobject values
1480 this.el.changed.connect( () => {
1481 if (_this.targets_tree.cursor.length < 1) {
1484 _this.project.compilegroups.get(_this.targets_tree.cursor).compile_flags = this.el.text;
1488 // user defined functions
1490 public class Xcls_Label44 : Object
1492 public Gtk.Label el;
1493 private ValaProjectSettings _this;
1499 public Xcls_Label44(ValaProjectSettings _owner )
1502 this.el = new Gtk.Label( "Files to compile" );
1506 // set gobject values
1509 // user defined functions
1511 public class Xcls_ScrolledWindow45 : Object
1513 public Gtk.ScrolledWindow el;
1514 private ValaProjectSettings _this;
1520 public Xcls_ScrolledWindow45(ValaProjectSettings _owner )
1523 this.el = new Gtk.ScrolledWindow( null, null );
1527 // set gobject values
1528 var child_0 = new Xcls_files_tree( _this );
1532 // user defined functions
1534 public class Xcls_files_tree : Object
1536 public Gtk.TreeView el;
1537 private ValaProjectSettings _this;
1543 public Xcls_files_tree(ValaProjectSettings _owner )
1546 this.el = new Gtk.TreeView();
1550 // set gobject values
1551 var child_0 = new Xcls_ListStore47( _this );
1553 this.el.set_model ( child_0.el );
1554 var child_1 = new Xcls_TreeViewColumn48( _this );
1556 this.el.append_column ( child_1.el );
1557 var child_2 = new Xcls_TreeViewColumn50( _this );
1559 this.el.append_column ( child_2.el );
1562 // user defined functions
1564 public class Xcls_ListStore47 : Object
1566 public Gtk.ListStore el;
1567 private ValaProjectSettings _this;
1573 public Xcls_ListStore47(ValaProjectSettings _owner )
1576 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1577 typeof(string) // ??
1582 // set gobject values
1585 // user defined functions
1587 public class Xcls_TreeViewColumn48 : Object
1589 public Gtk.TreeViewColumn el;
1590 private ValaProjectSettings _this;
1596 public Xcls_TreeViewColumn48(ValaProjectSettings _owner )
1599 this.el = new Gtk.TreeViewColumn();
1603 // set gobject values
1604 this.el.title = "name";
1605 this.el.resizable = true;
1606 var child_0 = new Xcls_files_render( _this );
1608 this.el.pack_start ( child_0.el , false );
1612 this.el.add_attribute(_this.files_render.el , "markup", 2 );
1613 this.el.add_attribute(_this.files_render.el , "text", 1 ); }
1615 // user defined functions
1617 public class Xcls_files_render : Object
1619 public Gtk.CellRendererText el;
1620 private ValaProjectSettings _this;
1626 public Xcls_files_render(ValaProjectSettings _owner )
1629 _this.files_render = this;
1630 this.el = new Gtk.CellRendererText();
1634 // set gobject values
1637 // user defined functions
1639 public class Xcls_TreeViewColumn50 : Object
1641 public Gtk.TreeViewColumn el;
1642 private ValaProjectSettings _this;
1648 public Xcls_TreeViewColumn50(ValaProjectSettings _owner )
1651 this.el = new Gtk.TreeViewColumn();
1655 // set gobject values
1656 this.el.title = "use";
1657 this.el.resizable = false;
1658 this.el.fixed_width = 50;
1659 var child_0 = new Xcls_targets_render_use( _this );
1661 this.el.pack_start ( child_0.el , false );
1666 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
1669 // user defined functions
1671 public class Xcls_targets_render_use : Object
1673 public Gtk.CellRendererToggle el;
1674 private ValaProjectSettings _this;
1680 public Xcls_targets_render_use(ValaProjectSettings _owner )
1683 _this.targets_render_use = this;
1684 this.el = new Gtk.CellRendererToggle();
1688 // set gobject values
1689 this.el.activatable = true;
1692 this.el.toggled.connect( ( path_string) => {
1693 var m = _this.default_packages_tree_store.el;
1695 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
1696 m.get_iter (out iter, path);
1698 m.get_value(iter, 1, out val);
1699 m.set_value(iter, 1, ((bool) val) ? false :true);
1701 m.get_value(iter, 0, out fval);
1702 var fn = (string)fval;
1704 var def = _this.project.compilegroups.get("_default_");
1705 var items = def.packages;
1716 // user defined functions