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;
35 public Project.Gtk project;
36 public Xcls_MainWindow window;
39 public ValaProjectSettings()
42 this.el = new Gtk.VBox( true, 0 );
49 var child_0 = new Xcls_Notebook2( _this );
51 this.el.pack_start ( child_0.el , true,true,0 );
54 // user defined functions
55 public void show (Project.Gtk project) {
58 print("ValaProjectSettings show\n");
60 this.project= project;
62 this.compile_flags.el.text = "";
64 this.default_directory_tree_store.load();
65 this.default_packages_tree_store.load();
66 this.targets_tree_store.load();
70 public class Xcls_Notebook2 : Object
72 public Gtk.Notebook el;
73 private ValaProjectSettings _this;
79 public Xcls_Notebook2(ValaProjectSettings _owner )
82 this.el = new Gtk.Notebook();
87 var child_0 = new Xcls_label_global( _this );
89 var child_1 = new Xcls_label_targets( _this );
91 var child_2 = new Xcls_VBox5( _this );
93 this.el.append_page ( child_2.el , _this.label_global.el );
94 var child_3 = new Xcls_HPaned27( _this );
96 this.el.append_page ( child_3.el , _this.label_targets.el );
99 // user defined functions
101 public class Xcls_label_global : Object
104 private ValaProjectSettings _this;
110 public Xcls_label_global(ValaProjectSettings _owner )
113 _this.label_global = this;
114 this.el = new Gtk.Label( "Global" );
118 // set gobject values
121 // user defined functions
123 public class Xcls_label_targets : Object
126 private ValaProjectSettings _this;
132 public Xcls_label_targets(ValaProjectSettings _owner )
135 _this.label_targets = this;
136 this.el = new Gtk.Label( "Targets" );
140 // set gobject values
143 // user defined functions
145 public class Xcls_VBox5 : Object
148 private ValaProjectSettings _this;
154 public Xcls_VBox5(ValaProjectSettings _owner )
157 this.el = new Gtk.VBox( false, 0 );
161 // set gobject values
162 var child_0 = new Xcls_Label6( _this );
164 this.el.pack_start ( child_0.el , false,false,0 );
165 var child_1 = new Xcls_compile_flags( _this );
167 this.el.pack_start ( child_1.el , false,false,0 );
168 var child_2 = new Xcls_Label8( _this );
170 this.el.pack_start ( child_2.el , false,false,0 );
171 var child_3 = new Xcls_ScrolledWindow9( _this );
173 this.el.pack_start ( child_3.el , true,true,0 );
174 var child_4 = new Xcls_Label16( _this );
176 this.el.pack_start ( child_4.el , false,false,0 );
177 var child_5 = new Xcls_ScrolledWindow17( _this );
179 this.el.pack_start ( child_5.el , true,true,0 );
182 // user defined functions
184 public class Xcls_Label6 : Object
187 private ValaProjectSettings _this;
193 public Xcls_Label6(ValaProjectSettings _owner )
196 this.el = new Gtk.Label( "compile flags" );
200 // set gobject values
203 // user defined functions
205 public class Xcls_compile_flags : Object
208 private ValaProjectSettings _this;
214 public Xcls_compile_flags(ValaProjectSettings _owner )
217 _this.compile_flags = this;
218 this.el = new Gtk.Entry();
222 // set gobject values
225 // user defined functions
227 public class Xcls_Label8 : Object
230 private ValaProjectSettings _this;
236 public Xcls_Label8(ValaProjectSettings _owner )
239 this.el = new Gtk.Label( "packages" );
243 // set gobject values
246 // user defined functions
248 public class Xcls_ScrolledWindow9 : Object
250 public Gtk.ScrolledWindow el;
251 private ValaProjectSettings _this;
257 public Xcls_ScrolledWindow9(ValaProjectSettings _owner )
260 this.el = new Gtk.ScrolledWindow( null, null );
264 // set gobject values
265 var child_0 = new Xcls_default_packages_tree( _this );
267 this.el.add ( child_0.el );
270 // user defined functions
272 public class Xcls_default_packages_tree : Object
274 public Gtk.TreeView el;
275 private ValaProjectSettings _this;
281 public Xcls_default_packages_tree(ValaProjectSettings _owner )
284 this.el = new Gtk.TreeView();
288 // set gobject values
289 this.el.headers_visible = false;
290 var child_0 = new Xcls_default_packages_tree_store( _this );
292 this.el.set_model ( child_0.el );
293 var child_1 = new Xcls_TreeViewColumn12( _this );
295 this.el.append_column ( child_1.el );
296 var child_2 = new Xcls_TreeViewColumn14( _this );
298 this.el.append_column ( child_2.el );
301 // user defined functions
303 public class Xcls_default_packages_tree_store : Object
305 public Gtk.ListStore el;
306 private ValaProjectSettings _this;
312 public Xcls_default_packages_tree_store(ValaProjectSettings _owner )
315 _this.default_packages_tree_store = this;
316 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
321 // set gobject values
324 // user defined functions
325 public void load () {
327 var def = _this.project.compilegroups.get("_default_");
328 var items = def.packages;
331 var pal = (Palete.Gtk) Palete.factory("Gtk");
332 var pkgs = pal.packages();
333 print("ValaProjectSettings:packages load %d\n", pkgs.size);
337 for(var i =0 ; i < pkgs.size; i++) {
338 this.el.append(out citer);
340 this.el.set_value(citer, 0, pkgs.get(i) ); // title
341 this.el.set_value(citer, 1, items.contains(pkgs.get(i)) );
343 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
347 public class Xcls_TreeViewColumn12 : Object
349 public Gtk.TreeViewColumn el;
350 private ValaProjectSettings _this;
356 public Xcls_TreeViewColumn12(ValaProjectSettings _owner )
359 this.el = new Gtk.TreeViewColumn();
363 // set gobject values
364 this.el.title = "name";
365 this.el.expand = true;
366 this.el.resizable = true;
367 var child_0 = new Xcls_packages_render( _this );
369 this.el.pack_start ( child_0.el , false );
373 this.el.add_attribute(_this.packages_render.el , "text", 0 ); }
375 // user defined functions
377 public class Xcls_packages_render : Object
379 public Gtk.CellRendererText el;
380 private ValaProjectSettings _this;
386 public Xcls_packages_render(ValaProjectSettings _owner )
389 _this.packages_render = this;
390 this.el = new Gtk.CellRendererText();
394 // set gobject values
397 // user defined functions
399 public class Xcls_TreeViewColumn14 : Object
401 public Gtk.TreeViewColumn el;
402 private ValaProjectSettings _this;
408 public Xcls_TreeViewColumn14(ValaProjectSettings _owner )
411 this.el = new Gtk.TreeViewColumn();
415 // set gobject values
416 this.el.title = "use";
417 this.el.resizable = false;
418 this.el.fixed_width = 50;
419 var child_0 = new Xcls_packages_render_use( _this );
421 this.el.pack_start ( child_0.el , false );
426 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
429 // user defined functions
431 public class Xcls_packages_render_use : Object
433 public Gtk.CellRendererToggle el;
434 private ValaProjectSettings _this;
440 public Xcls_packages_render_use(ValaProjectSettings _owner )
443 _this.packages_render_use = this;
444 this.el = new Gtk.CellRendererToggle();
448 // set gobject values
449 this.el.activatable = true;
452 this.el.toggled.connect( ( path_string) => {
453 var m = _this.default_packages_tree_store.el;
455 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
456 m.get_iter (out iter, path);
458 m.get_value(iter, 1, out val);
459 m.set_value(iter, 1, ((bool) val) ? false :true);
461 m.get_value(iter, 0, out fval);
462 var fn = (string)fval;
464 var def = _this.project.compilegroups.get("_default_");
465 var items = def.packages;
476 // user defined functions
478 public class Xcls_Label16 : Object
481 private ValaProjectSettings _this;
487 public Xcls_Label16(ValaProjectSettings _owner )
490 this.el = new Gtk.Label( "Available Directories" );
494 // set gobject values
497 // user defined functions
499 public class Xcls_ScrolledWindow17 : Object
501 public Gtk.ScrolledWindow el;
502 private ValaProjectSettings _this;
508 public Xcls_ScrolledWindow17(ValaProjectSettings _owner )
511 this.el = new Gtk.ScrolledWindow( null, null );
515 // set gobject values
516 var child_0 = new Xcls_default_directory_tree( _this );
518 this.el.add ( child_0.el );
519 var child_1 = new Xcls_default_directory_menu( _this );
523 // user defined functions
525 public class Xcls_default_directory_tree : Object
527 public Gtk.TreeView el;
528 private ValaProjectSettings _this;
534 public Xcls_default_directory_tree(ValaProjectSettings _owner )
537 _this.default_directory_tree = this;
538 this.el = new Gtk.TreeView();
542 // set gobject values
543 this.el.headers_visible = false;
544 var child_0 = new Xcls_default_directory_tree_store( _this );
546 this.el.set_model ( child_0.el );
547 var child_1 = new Xcls_TreeViewColumn20( _this );
549 this.el.append_column ( child_1.el );
552 this.el.button_press_event.connect( ( ev) => {
553 //console.log("button press?");
556 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
557 //print("click" + ev.type);
561 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
565 // this.el.get_selection().select_path(res);
567 //if (!this.get('/LeftTreeMenu').el) {
568 // this.get('/LeftTreeMenu').init();
571 _this.default_directory_menu.el.set_screen(Gdk.Screen.get_default());
572 _this.default_directory_menu.el.show_all();
573 _this.default_directory_menu.el.popup(null, null, null, 3, ev.time);
574 // print("click:" + res.path.to_string());
579 // user defined functions
581 public class Xcls_default_directory_tree_store : Object
583 public Gtk.ListStore el;
584 private ValaProjectSettings _this;
590 public Xcls_default_directory_tree_store(ValaProjectSettings _owner )
593 _this.default_directory_tree_store = this;
594 this.el = new Gtk.ListStore( 1, typeof(string)
599 // set gobject values
602 // user defined functions
603 public void load () {
608 var def = _this.project.compilegroups.get("_default_");
609 var items = def.sources;
614 for(var i =0 ; i < items.size; i++) {
615 this.el.append(out citer);
617 this.el.set_value(citer, 0, items.get(i) ); // title
618 //this.el.set_value(citer, 1, items.get(i) );
620 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
624 public class Xcls_TreeViewColumn20 : Object
626 public Gtk.TreeViewColumn el;
627 private ValaProjectSettings _this;
633 public Xcls_TreeViewColumn20(ValaProjectSettings _owner )
636 this.el = new Gtk.TreeViewColumn();
640 // set gobject values
641 this.el.title = "name";
642 this.el.resizable = true;
643 var child_0 = new Xcls_directory_render( _this );
645 this.el.pack_start ( child_0.el , false );
649 this.el.add_attribute(_this.directory_render.el , "text", 0 ); }
651 // user defined functions
653 public class Xcls_directory_render : Object
655 public Gtk.CellRendererText el;
656 private ValaProjectSettings _this;
662 public Xcls_directory_render(ValaProjectSettings _owner )
665 _this.directory_render = this;
666 this.el = new Gtk.CellRendererText();
670 // set gobject values
673 // user defined functions
675 public class Xcls_default_directory_menu : Object
678 private ValaProjectSettings _this;
684 public Xcls_default_directory_menu(ValaProjectSettings _owner )
687 _this.default_directory_menu = this;
688 this.el = new Gtk.Menu();
692 // set gobject values
693 var child_0 = new Xcls_MenuItem23( _this );
695 this.el.add ( child_0.el );
696 var child_1 = new Xcls_MenuItem24( _this );
698 this.el.add ( child_1.el );
699 var child_2 = new Xcls_SeparatorMenuItem25( _this );
701 this.el.add ( child_2.el );
702 var child_3 = new Xcls_MenuItem26( _this );
704 this.el.add ( child_3.el );
707 // user defined functions
709 public class Xcls_MenuItem23 : Object
711 public Gtk.MenuItem el;
712 private ValaProjectSettings _this;
718 public Xcls_MenuItem23(ValaProjectSettings _owner )
721 this.el = new Gtk.MenuItem();
725 // set gobject values
726 this.el.label = "Add Directory";
729 this.el.activate.connect( () => {
731 var chooser = new Gtk.FileChooserDialog (
732 "Add a directory", _this.window.el, Gtk.FileChooserAction.SELECT_FOLDER ,
734 Gtk.ResponseType.CANCEL,
736 Gtk.ResponseType.ACCEPT);
737 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
742 // add the directory..
743 var fn = _this.project.relPath(chooser.get_filename());
744 _this.project.compilegroups.get("_default_").sources.add(fn);
745 _this.default_directory_tree_store.load();
749 // user defined functions
751 public class Xcls_MenuItem24 : Object
753 public Gtk.MenuItem el;
754 private ValaProjectSettings _this;
760 public Xcls_MenuItem24(ValaProjectSettings _owner )
763 this.el = new Gtk.MenuItem();
767 // set gobject values
768 this.el.label = "Add File";
771 this.el.activate.connect( () => {
773 var chooser = new Gtk.FileChooserDialog (
774 "Add a directory", _this.window.el, Gtk.FileChooserAction.OPEN ,
776 Gtk.ResponseType.CANCEL,
778 Gtk.ResponseType.ACCEPT);
779 if (chooser.run () != Gtk.ResponseType.ACCEPT) {
784 // add the directory..
785 var fn = _this.project.relPath(chooser.get_filename());
786 _this.project.compilegroups.get("_default_").sources.add(fn);
787 _this.default_directory_tree_store.load();
791 // user defined functions
793 public class Xcls_SeparatorMenuItem25 : Object
795 public Gtk.SeparatorMenuItem el;
796 private ValaProjectSettings _this;
802 public Xcls_SeparatorMenuItem25(ValaProjectSettings _owner )
805 this.el = new Gtk.SeparatorMenuItem();
809 // set gobject values
812 // user defined functions
814 public class Xcls_MenuItem26 : Object
816 public Gtk.MenuItem el;
817 private ValaProjectSettings _this;
823 public Xcls_MenuItem26(ValaProjectSettings _owner )
826 this.el = new Gtk.MenuItem();
830 // set gobject values
831 this.el.label = "Remove File/Directory";
834 this.el.activate.connect( () => {
839 if (!_this.default_directory_tree.el.get_selection().get_selected(out mod, out iter)) {
840 print("nothing selected\n");
845 // add the directory..
849 mod.get_value(iter,0, out val);
850 var fn = (string) val;
852 print("remove: %s\n", fn);
853 if (!_this.project.compilegroups.get("_default_").sources.remove(fn)) {
854 print("remove failed");
856 _this.default_directory_tree_store.load();
860 // user defined functions
862 public class Xcls_HPaned27 : Object
864 public Gtk.HPaned el;
865 private ValaProjectSettings _this;
871 public Xcls_HPaned27(ValaProjectSettings _owner )
874 this.el = new Gtk.HPaned();
878 // set gobject values
879 this.el.position = 300;
880 var child_0 = new Xcls_ScrolledWindow28( _this );
882 this.el.add1 ( child_0.el );
883 var child_1 = new Xcls_set_vbox( _this );
885 this.el.add2 ( child_1.el );
888 // user defined functions
890 public class Xcls_ScrolledWindow28 : Object
892 public Gtk.ScrolledWindow el;
893 private ValaProjectSettings _this;
899 public Xcls_ScrolledWindow28(ValaProjectSettings _owner )
902 this.el = new Gtk.ScrolledWindow( null, null );
906 // set gobject values
907 var child_0 = new Xcls_targets_tree_menu( _this );
909 this.el.add ( child_0.el );
910 var child_1 = new Xcls_targets_tree( _this );
912 this.el.add ( child_1.el );
917 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
921 // user defined functions
923 public class Xcls_targets_tree_menu : Object
926 private ValaProjectSettings _this;
932 public Xcls_targets_tree_menu(ValaProjectSettings _owner )
935 _this.targets_tree_menu = this;
936 this.el = new Gtk.Menu();
940 // set gobject values
941 var child_0 = new Xcls_MenuItem30( _this );
943 this.el.add ( child_0.el );
944 var child_1 = new Xcls_SeparatorMenuItem31( _this );
946 this.el.add ( child_1.el );
947 var child_2 = new Xcls_MenuItem32( _this );
949 this.el.add ( child_2.el );
952 // user defined functions
954 public class Xcls_MenuItem30 : Object
956 public Gtk.MenuItem el;
957 private ValaProjectSettings _this;
963 public Xcls_MenuItem30(ValaProjectSettings _owner )
966 this.el = new Gtk.MenuItem();
970 // set gobject values
971 this.el.label = "Add Compile Target";
974 this.el.activate.connect( () => {
976 if (_this.project.compilegroups.has_key("NEW GROUP")) {
980 // add the directory..
982 _this.project.compilegroups.set("NEW GROUP", new Project.GtkValaSettings("NEW GROUP"));
983 _this.targets_tree_store.load();
987 // user defined functions
989 public class Xcls_SeparatorMenuItem31 : Object
991 public Gtk.SeparatorMenuItem el;
992 private ValaProjectSettings _this;
998 public Xcls_SeparatorMenuItem31(ValaProjectSettings _owner )
1001 this.el = new Gtk.SeparatorMenuItem();
1005 // set gobject values
1008 // user defined functions
1010 public class Xcls_MenuItem32 : Object
1012 public Gtk.MenuItem el;
1013 private ValaProjectSettings _this;
1019 public Xcls_MenuItem32(ValaProjectSettings _owner )
1022 this.el = new Gtk.MenuItem();
1026 // set gobject values
1027 this.el.label = "Remove Target";
1030 this.el.activate.connect( () => {
1035 if (!_this.targets_tree.el.get_selection().get_selected(out mod, out iter)) {
1036 print("nothing selected\n");
1041 // add the directory..
1045 mod.get_value(iter,0, out val);
1046 var fn = (string) val;
1048 print("remove: %s\n", fn);
1049 if (!_this.project.compilegroups.unset(fn)) {
1050 print("remove failed");
1052 _this.targets_tree_store.load();
1056 // user defined functions
1058 public class Xcls_targets_tree : Object
1060 public Gtk.TreeView el;
1061 private ValaProjectSettings _this;
1065 public string cursor;
1068 public Xcls_targets_tree(ValaProjectSettings _owner )
1071 _this.targets_tree = this;
1072 this.el = new Gtk.TreeView();
1076 // set gobject values
1077 var child_0 = new Xcls_targets_tree_store( _this );
1079 this.el.set_model ( child_0.el );
1080 var child_1 = new Xcls_TreeViewColumn35( _this );
1082 this.el.append_column ( child_1.el );
1083 var child_2 = new Xcls_TreeViewColumn37( _this );
1085 this.el.append_column ( child_2.el );
1088 this.el.button_press_event.connect( ( ev) => {
1089 //console.log("button press?");
1092 if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
1093 //print("click" + ev.type);
1097 //if (!this.el.get_path_at_pos((int)ev.x,(int)ev.y, out res, null, null, null) ) {
1101 // this.el.get_selection().select_path(res);
1103 //if (!this.get('/LeftTreeMenu').el) {
1104 // this.get('/LeftTreeMenu').init();
1107 _this.targets_tree_menu.el.set_screen(Gdk.Screen.get_default());
1108 _this.targets_tree_menu.el.show_all();
1109 _this.targets_tree_menu.el.popup(null, null, null, 3, ev.time);
1110 // print("click:" + res.path.to_string());
1113 this.el.cursor_changed.connect( ( ) => {
1115 if (this.cursor != "") {
1116 // save the values..
1119 // load the new values.
1124 if (!this.el.get_selection().get_selected(out mod, out iter)) {
1125 print("nothing selected\n");
1130 // add the directory..
1134 mod.get_value(iter,0, out val);
1135 var fn = (string) val;
1138 var cg = _this.project.compilegroups.get(fn);
1139 _this.build_pack_target.el.set_text(cg.target_bin);
1140 _this.build_compile_flags.el.set_text(cg.compile_flags);
1147 // user defined functions
1149 public class Xcls_targets_tree_store : Object
1151 public Gtk.ListStore el;
1152 private ValaProjectSettings _this;
1158 public Xcls_targets_tree_store(ValaProjectSettings _owner )
1161 _this.targets_tree_store = this;
1162 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1163 typeof(string) // ??
1168 // set gobject values
1171 // user defined functions
1172 public void load () {
1177 var cg = _this.project.compilegroups;
1179 _this.targets_tree.cursor = "";
1181 var iter = cg.map_iterator();
1182 while(iter.next()) {
1183 var key = iter.get_key();
1184 if (key == "_default_") {
1188 this.el.append(out citer);
1190 this.el.set_value(citer, 0, key ); // title
1191 //this.el.set_value(citer, 1, items.get(i) );
1193 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
1197 public class Xcls_TreeViewColumn35 : Object
1199 public Gtk.TreeViewColumn el;
1200 private ValaProjectSettings _this;
1206 public Xcls_TreeViewColumn35(ValaProjectSettings _owner )
1209 this.el = new Gtk.TreeViewColumn();
1213 // set gobject values
1214 this.el.title = "name";
1215 this.el.resizable = true;
1216 var child_0 = new Xcls_targets_render( _this );
1218 this.el.pack_start ( child_0.el , false );
1223 this.el.add_attribute(_this.targets_render.el , "text", 0 );
1226 // user defined functions
1228 public class Xcls_targets_render : Object
1230 public Gtk.CellRendererText el;
1231 private ValaProjectSettings _this;
1237 public Xcls_targets_render(ValaProjectSettings _owner )
1240 _this.targets_render = this;
1241 this.el = new Gtk.CellRendererText();
1245 // set gobject values
1246 this.el.editable = true;
1249 this.el.edited.connect( (path, newtext) => {
1252 _this.targets_tree_store.el.get_iter(out iter, new Gtk.TreePath.from_string(path));
1254 _this.targets_tree_store.el.get_value(iter,0, out gval);
1255 var oldval = (string)gval;
1256 if (oldval == newtext) {
1259 var cg = _this.project.compilegroups.get(oldval);
1261 _this.project.compilegroups.unset(oldval);
1262 _this.project.compilegroups.set(newtext, cg);
1263 _this.targets_tree_store.load();
1267 // user defined functions
1269 public class Xcls_TreeViewColumn37 : Object
1271 public Gtk.TreeViewColumn el;
1272 private ValaProjectSettings _this;
1278 public Xcls_TreeViewColumn37(ValaProjectSettings _owner )
1281 this.el = new Gtk.TreeViewColumn();
1285 // set gobject values
1286 this.el.title = "use";
1287 this.el.resizable = false;
1288 this.el.fixed_width = 50;
1289 var child_0 = new Xcls_targets_render_use( _this );
1291 this.el.pack_start ( child_0.el , false );
1296 this.el.add_attribute(_this.packages_render_use.el , "active", 1 );
1299 // user defined functions
1301 public class Xcls_targets_render_use : Object
1303 public Gtk.CellRendererToggle el;
1304 private ValaProjectSettings _this;
1310 public Xcls_targets_render_use(ValaProjectSettings _owner )
1313 _this.targets_render_use = this;
1314 this.el = new Gtk.CellRendererToggle();
1318 // set gobject values
1319 this.el.activatable = true;
1322 this.el.toggled.connect( ( path_string) => {
1323 var m = _this.default_packages_tree_store.el;
1325 Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);
1326 m.get_iter (out iter, path);
1328 m.get_value(iter, 1, out val);
1329 m.set_value(iter, 1, ((bool) val) ? false :true);
1331 m.get_value(iter, 0, out fval);
1332 var fn = (string)fval;
1334 var def = _this.project.compilegroups.get("_default_");
1335 var items = def.packages;
1346 // user defined functions
1348 public class Xcls_set_vbox : Object
1351 private ValaProjectSettings _this;
1357 public Xcls_set_vbox(ValaProjectSettings _owner )
1360 this.el = new Gtk.VBox( false, 0 );
1364 // set gobject values
1365 var child_0 = new Xcls_Label40( _this );
1367 this.el.pack_start ( child_0.el , false,false,0 );
1368 var child_1 = new Xcls_build_pack_target( _this );
1370 this.el.pack_start ( child_1.el , false,false,0 );
1371 var child_2 = new Xcls_Label42( _this );
1373 this.el.pack_start ( child_2.el , false,false,0 );
1374 var child_3 = new Xcls_build_compile_flags( _this );
1376 this.el.pack_start ( child_3.el , false,false,0 );
1377 var child_4 = new Xcls_Label44( _this );
1379 this.el.pack_start ( child_4.el , false,false,0 );
1380 var child_5 = new Xcls_ScrolledWindow45( _this );
1382 this.el.pack_start ( child_5.el , true,true,0 );
1385 // user defined functions
1387 public class Xcls_Label40 : Object
1389 public Gtk.Label el;
1390 private ValaProjectSettings _this;
1396 public Xcls_Label40(ValaProjectSettings _owner )
1399 this.el = new Gtk.Label( "target filename" );
1403 // set gobject values
1406 // user defined functions
1408 public class Xcls_build_pack_target : Object
1410 public Gtk.Entry el;
1411 private ValaProjectSettings _this;
1417 public Xcls_build_pack_target(ValaProjectSettings _owner )
1420 _this.build_pack_target = this;
1421 this.el = new Gtk.Entry();
1425 // set gobject values
1428 this.el.changed.connect( () => {
1429 if (_this.targets_tree.cursor.length < 1) {
1432 _this.project.compilegroups.get(_this.targets_tree.cursor).target_bin = this.el.text;
1436 // user defined functions
1438 public class Xcls_Label42 : Object
1440 public Gtk.Label el;
1441 private ValaProjectSettings _this;
1447 public Xcls_Label42(ValaProjectSettings _owner )
1450 this.el = new Gtk.Label( "compile flags" );
1454 // set gobject values
1457 // user defined functions
1459 public class Xcls_build_compile_flags : Object
1461 public Gtk.Entry el;
1462 private ValaProjectSettings _this;
1468 public Xcls_build_compile_flags(ValaProjectSettings _owner )
1471 _this.build_compile_flags = this;
1472 this.el = new Gtk.Entry();
1476 // set gobject values
1479 this.el.changed.connect( () => {
1480 if (_this.targets_tree.cursor.length < 1) {
1483 _this.project.compilegroups.get(_this.targets_tree.cursor).compile_flags = this.el.text;
1487 // user defined functions
1489 public class Xcls_Label44 : Object
1491 public Gtk.Label el;
1492 private ValaProjectSettings _this;
1498 public Xcls_Label44(ValaProjectSettings _owner )
1501 this.el = new Gtk.Label( "Files to compile" );
1505 // set gobject values
1508 // user defined functions
1510 public class Xcls_ScrolledWindow45 : Object
1512 public Gtk.ScrolledWindow el;
1513 private ValaProjectSettings _this;
1519 public Xcls_ScrolledWindow45(ValaProjectSettings _owner )
1522 this.el = new Gtk.ScrolledWindow( null, null );
1526 // set gobject values
1527 var child_0 = new Xcls_files_tree( _this );
1531 // user defined functions
1533 public class Xcls_files_tree : Object
1535 public Gtk.TreeView el;
1536 private ValaProjectSettings _this;
1542 public Xcls_files_tree(ValaProjectSettings _owner )
1545 this.el = new Gtk.TreeView();
1549 // set gobject values
1550 var child_0 = new Xcls_ListStore47( _this );
1552 this.el.set_model ( child_0.el );
1553 var child_1 = new Xcls_TreeViewColumn48( _this );
1555 this.el.append_column ( child_1.el );
1558 // user defined functions
1560 public class Xcls_ListStore47 : Object
1562 public Gtk.ListStore el;
1563 private ValaProjectSettings _this;
1569 public Xcls_ListStore47(ValaProjectSettings _owner )
1572 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
1573 typeof(string) // ??
1578 // set gobject values
1581 // user defined functions
1583 public class Xcls_TreeViewColumn48 : Object
1585 public Gtk.TreeViewColumn el;
1586 private ValaProjectSettings _this;
1592 public Xcls_TreeViewColumn48(ValaProjectSettings _owner )
1595 this.el = new Gtk.TreeViewColumn();
1599 // set gobject values
1600 this.el.title = "name";
1601 this.el.resizable = true;
1602 var child_0 = new Xcls_files_render( _this );
1604 this.el.pack_start ( child_0.el , false );
1608 this.el.add_attribute(_this.files_render.el , "markup", 2 );
1609 this.el.add_attribute(_this.files_render.el , "text", 1 ); }
1611 // user defined functions
1613 public class Xcls_files_render : Object
1615 public Gtk.CellRendererText el;
1616 private ValaProjectSettings _this;
1622 public Xcls_files_render(ValaProjectSettings _owner )
1625 _this.files_render = this;
1626 this.el = new Gtk.CellRendererText();
1630 // set gobject values
1633 // user defined functions