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_store default_directory_tree_store;
22 public Xcls_directory_render directory_render;
23 public Xcls_targets_tree targets_tree;
24 public Xcls_targets_render targets_render;
25 public Xcls_files_render files_render;
28 public Project.Gtk project;
31 public ValaProjectSettings()
34 this.el = new Gtk.VBox( true, 0 );
40 var child_0 = new Xcls_Notebook2( _this );
42 this.el.pack_start ( child_0.el , true,true,0 );
45 // user defined functions
46 public void show (Project.Gtk project) {
48 this.project= project;
50 this.compile_flags.el.text = "";
51 this.default_packages_tree_store.el.clear();
52 this.default_directory_tree_store.el.clear();
54 if (this.project.compilegroups.has_key("default")) {
55 var def = this.project.compilegroups.get("default");
56 this.compile_flags.el.text = def.compile_flags;
57 this.default_packages_tree_store.load(def.packages);
58 this.default_directory_tree_store.load(def.sources);
64 public class Xcls_Notebook2 : Object
66 public Gtk.Notebook el;
67 private ValaProjectSettings _this;
73 public Xcls_Notebook2(ValaProjectSettings _owner )
76 this.el = new Gtk.Notebook();
81 var child_0 = new Xcls_label_global( _this );
83 var child_1 = new Xcls_label_targets( _this );
85 var child_2 = new Xcls_VBox5( _this );
87 this.el.append_page ( child_2.el , _this.label_global.el );
88 var child_3 = new Xcls_HPaned22( _this );
90 this.el.append_page ( child_3.el , _this.label_targets.el );
93 // user defined functions
95 public class Xcls_label_global : Object
98 private ValaProjectSettings _this;
104 public Xcls_label_global(ValaProjectSettings _owner )
107 _this.label_global = this;
108 this.el = new Gtk.Label( "Global" );
112 // set gobject values
115 // user defined functions
117 public class Xcls_label_targets : Object
120 private ValaProjectSettings _this;
126 public Xcls_label_targets(ValaProjectSettings _owner )
129 _this.label_targets = this;
130 this.el = new Gtk.Label( "Targets" );
134 // set gobject values
137 // user defined functions
139 public class Xcls_VBox5 : Object
142 private ValaProjectSettings _this;
148 public Xcls_VBox5(ValaProjectSettings _owner )
151 this.el = new Gtk.VBox( false, 0 );
155 // set gobject values
156 var child_0 = new Xcls_Label6( _this );
158 this.el.pack_start ( child_0.el , false,false,0 );
159 var child_1 = new Xcls_compile_flags( _this );
161 this.el.pack_start ( child_1.el , false,false,0 );
162 var child_2 = new Xcls_Label8( _this );
164 this.el.pack_start ( child_2.el , false,false,0 );
165 var child_3 = new Xcls_ScrolledWindow9( _this );
167 this.el.pack_start ( child_3.el , true,true,0 );
168 var child_4 = new Xcls_Label16( _this );
170 this.el.pack_start ( child_4.el , false,false,0 );
171 var child_5 = new Xcls_ScrolledWindow17( _this );
173 this.el.pack_start ( child_5.el , true,true,0 );
176 // user defined functions
178 public class Xcls_Label6 : Object
181 private ValaProjectSettings _this;
187 public Xcls_Label6(ValaProjectSettings _owner )
190 this.el = new Gtk.Label( "compile flags" );
194 // set gobject values
197 // user defined functions
199 public class Xcls_compile_flags : Object
202 private ValaProjectSettings _this;
208 public Xcls_compile_flags(ValaProjectSettings _owner )
211 _this.compile_flags = this;
212 this.el = new Gtk.Entry();
216 // set gobject values
219 // user defined functions
221 public class Xcls_Label8 : Object
224 private ValaProjectSettings _this;
230 public Xcls_Label8(ValaProjectSettings _owner )
233 this.el = new Gtk.Label( "packages" );
237 // set gobject values
240 // user defined functions
242 public class Xcls_ScrolledWindow9 : Object
244 public Gtk.ScrolledWindow el;
245 private ValaProjectSettings _this;
251 public Xcls_ScrolledWindow9(ValaProjectSettings _owner )
254 this.el = new Gtk.ScrolledWindow( null, null );
258 // set gobject values
259 var child_0 = new Xcls_default_packages_tree( _this );
261 this.el.add ( child_0.el );
264 // user defined functions
266 public class Xcls_default_packages_tree : Object
268 public Gtk.TreeView el;
269 private ValaProjectSettings _this;
275 public Xcls_default_packages_tree(ValaProjectSettings _owner )
278 this.el = new Gtk.TreeView();
282 // set gobject values
283 var child_0 = new Xcls_default_packages_tree_store( _this );
285 this.el.set_model ( child_0.el );
286 var child_1 = new Xcls_TreeViewColumn12( _this );
288 this.el.append_column ( child_1.el );
289 var child_2 = new Xcls_TreeViewColumn14( _this );
291 this.el.append_column ( child_2.el );
294 // user defined functions
296 public class Xcls_default_packages_tree_store : Object
298 public Gtk.ListStore el;
299 private ValaProjectSettings _this;
305 public Xcls_default_packages_tree_store(ValaProjectSettings _owner )
308 _this.default_packages_tree_store = this;
309 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
315 // set gobject values
318 // user defined functions
319 public void load (Gee.ArrayList<string> items) {
327 for(var i =0 ; i < items.size; i++) {
328 this.el.append(out citer);
330 this.el.set_value(citer, 0, items.get(i) ); // title
331 this.el.set_value(citer, 1, items.get(i) );
333 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
337 public class Xcls_TreeViewColumn12 : Object
339 public Gtk.TreeViewColumn el;
340 private ValaProjectSettings _this;
346 public Xcls_TreeViewColumn12(ValaProjectSettings _owner )
349 this.el = new Gtk.TreeViewColumn();
353 // set gobject values
354 this.el.title = "name";
355 this.el.resizable = true;
356 var child_0 = new Xcls_packages_render( _this );
358 this.el.pack_start ( child_0.el , false );
362 this.el.add_attribute(_this.packages_render.el , "markup", 2 );
363 this.el.add_attribute(_this.packages_render.el , "text", 1 ); }
365 // user defined functions
367 public class Xcls_packages_render : Object
369 public Gtk.CellRendererText el;
370 private ValaProjectSettings _this;
376 public Xcls_packages_render(ValaProjectSettings _owner )
379 _this.packages_render = this;
380 this.el = new Gtk.CellRendererText();
384 // set gobject values
387 // user defined functions
389 public class Xcls_TreeViewColumn14 : Object
391 public Gtk.TreeViewColumn el;
392 private ValaProjectSettings _this;
398 public Xcls_TreeViewColumn14(ValaProjectSettings _owner )
401 this.el = new Gtk.TreeViewColumn();
405 // set gobject values
406 this.el.title = "use";
407 this.el.resizable = true;
408 var child_0 = new Xcls_packages_render_use( _this );
410 this.el.pack_start ( child_0.el , false );
415 this.el.add_attribute(_this.packages_render_use.el , "value", 2 );
418 // user defined functions
420 public class Xcls_packages_render_use : Object
422 public Gtk.CellRendererToggle el;
423 private ValaProjectSettings _this;
429 public Xcls_packages_render_use(ValaProjectSettings _owner )
432 _this.packages_render_use = this;
433 this.el = new Gtk.CellRendererToggle();
437 // set gobject values
440 // user defined functions
442 public class Xcls_Label16 : Object
445 private ValaProjectSettings _this;
451 public Xcls_Label16(ValaProjectSettings _owner )
454 this.el = new Gtk.Label( "Available Directories" );
458 // set gobject values
461 // user defined functions
463 public class Xcls_ScrolledWindow17 : Object
465 public Gtk.ScrolledWindow el;
466 private ValaProjectSettings _this;
472 public Xcls_ScrolledWindow17(ValaProjectSettings _owner )
475 this.el = new Gtk.ScrolledWindow( null, null );
479 // set gobject values
480 var child_0 = new Xcls_default_directory_tree( _this );
482 this.el.add ( child_0.el );
485 // user defined functions
487 public class Xcls_default_directory_tree : Object
489 public Gtk.TreeView el;
490 private ValaProjectSettings _this;
496 public Xcls_default_directory_tree(ValaProjectSettings _owner )
499 this.el = new Gtk.TreeView();
503 // set gobject values
504 var child_0 = new Xcls_default_directory_tree_store( _this );
506 this.el.set_model ( child_0.el );
507 var child_1 = new Xcls_TreeViewColumn20( _this );
509 this.el.append_column ( child_1.el );
512 // user defined functions
514 public class Xcls_default_directory_tree_store : Object
516 public Gtk.ListStore el;
517 private ValaProjectSettings _this;
523 public Xcls_default_directory_tree_store(ValaProjectSettings _owner )
526 _this.default_directory_tree_store = this;
527 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
533 // set gobject values
536 // user defined functions
537 public void load (Gee.ArrayList items) {
542 for(var i =0 ; i < items.size; i++) {
543 this.model.el.append(out citer);
545 this.model.el.set_value(citer, 0, items.get(i) ); // title
546 this.model.el.set_value(citer, 1, items.get(i) );
548 this.model.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
552 public class Xcls_TreeViewColumn20 : Object
554 public Gtk.TreeViewColumn el;
555 private ValaProjectSettings _this;
561 public Xcls_TreeViewColumn20(ValaProjectSettings _owner )
564 this.el = new Gtk.TreeViewColumn();
568 // set gobject values
569 this.el.title = "name";
570 this.el.resizable = true;
571 var child_0 = new Xcls_directory_render( _this );
573 this.el.pack_start ( child_0.el , false );
577 this.el.add_attribute(_this.directory_render.el , "markup", 2 );
578 this.el.add_attribute(_this.directory_render.el , "text", 1 ); }
580 // user defined functions
582 public class Xcls_directory_render : Object
584 public Gtk.CellRendererText el;
585 private ValaProjectSettings _this;
591 public Xcls_directory_render(ValaProjectSettings _owner )
594 _this.directory_render = this;
595 this.el = new Gtk.CellRendererText();
599 // set gobject values
602 // user defined functions
604 public class Xcls_HPaned22 : Object
606 public Gtk.HPaned el;
607 private ValaProjectSettings _this;
613 public Xcls_HPaned22(ValaProjectSettings _owner )
616 this.el = new Gtk.HPaned();
620 // set gobject values
621 this.el.position = 300;
622 var child_0 = new Xcls_ScrolledWindow23( _this );
624 this.el.add1 ( child_0.el );
625 var child_1 = new Xcls_set_vbox( _this );
627 this.el.add2 ( child_1.el );
630 // user defined functions
632 public class Xcls_ScrolledWindow23 : Object
634 public Gtk.ScrolledWindow el;
635 private ValaProjectSettings _this;
641 public Xcls_ScrolledWindow23(ValaProjectSettings _owner )
644 this.el = new Gtk.ScrolledWindow( null, null );
648 // set gobject values
649 var child_0 = new Xcls_targets_tree( _this );
655 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
659 // user defined functions
661 public class Xcls_targets_tree : Object
663 public Gtk.TreeView el;
664 private ValaProjectSettings _this;
670 public Xcls_targets_tree(ValaProjectSettings _owner )
673 _this.targets_tree = this;
674 this.el = new Gtk.TreeView();
678 // set gobject values
679 var child_0 = new Xcls_ListStore25( _this );
681 this.el.set_model ( child_0.el );
682 var child_1 = new Xcls_TreeViewColumn26( _this );
684 this.el.append_column ( child_1.el );
687 // user defined functions
689 public class Xcls_ListStore25 : Object
691 public Gtk.ListStore el;
692 private ValaProjectSettings _this;
698 public Xcls_ListStore25(ValaProjectSettings _owner )
701 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
707 // set gobject values
710 // user defined functions
712 public class Xcls_TreeViewColumn26 : Object
714 public Gtk.TreeViewColumn el;
715 private ValaProjectSettings _this;
721 public Xcls_TreeViewColumn26(ValaProjectSettings _owner )
724 this.el = new Gtk.TreeViewColumn();
728 // set gobject values
729 this.el.title = "name";
730 this.el.resizable = true;
731 var child_0 = new Xcls_targets_render( _this );
733 this.el.pack_start ( child_0.el , false );
737 this.el.add_attribute(_this.targets_render.el , "markup", 2 );
738 this.el.add_attribute(_this.targets_render.el , "text", 1 ); }
740 // user defined functions
742 public class Xcls_targets_render : Object
744 public Gtk.CellRendererText el;
745 private ValaProjectSettings _this;
751 public Xcls_targets_render(ValaProjectSettings _owner )
754 _this.targets_render = this;
755 this.el = new Gtk.CellRendererText();
759 // set gobject values
762 // user defined functions
764 public class Xcls_set_vbox : Object
767 private ValaProjectSettings _this;
773 public Xcls_set_vbox(ValaProjectSettings _owner )
776 this.el = new Gtk.VBox( false, 0 );
780 // set gobject values
781 var child_0 = new Xcls_Label29( _this );
783 this.el.pack_start ( child_0.el , false,false,0 );
784 var child_1 = new Xcls_build_pack_target( _this );
786 this.el.pack_start ( child_1.el , false,false,0 );
787 var child_2 = new Xcls_Label31( _this );
789 this.el.pack_start ( child_2.el , false,false,0 );
790 var child_3 = new Xcls_build_compile_flags( _this );
792 this.el.pack_start ( child_3.el , false,false,0 );
793 var child_4 = new Xcls_Label33( _this );
795 this.el.pack_start ( child_4.el , false,false,0 );
796 var child_5 = new Xcls_ScrolledWindow34( _this );
798 this.el.pack_start ( child_5.el , true,true,0 );
801 // user defined functions
803 public class Xcls_Label29 : Object
806 private ValaProjectSettings _this;
812 public Xcls_Label29(ValaProjectSettings _owner )
815 this.el = new Gtk.Label( "target filename" );
819 // set gobject values
822 // user defined functions
824 public class Xcls_build_pack_target : Object
827 private ValaProjectSettings _this;
833 public Xcls_build_pack_target(ValaProjectSettings _owner )
836 this.el = new Gtk.Entry();
840 // set gobject values
843 // user defined functions
845 public class Xcls_Label31 : Object
848 private ValaProjectSettings _this;
854 public Xcls_Label31(ValaProjectSettings _owner )
857 this.el = new Gtk.Label( "compile flags" );
861 // set gobject values
864 // user defined functions
866 public class Xcls_build_compile_flags : Object
869 private ValaProjectSettings _this;
875 public Xcls_build_compile_flags(ValaProjectSettings _owner )
878 this.el = new Gtk.Entry();
882 // set gobject values
885 // user defined functions
887 public class Xcls_Label33 : Object
890 private ValaProjectSettings _this;
896 public Xcls_Label33(ValaProjectSettings _owner )
899 this.el = new Gtk.Label( "Files to compile" );
903 // set gobject values
906 // user defined functions
908 public class Xcls_ScrolledWindow34 : Object
910 public Gtk.ScrolledWindow el;
911 private ValaProjectSettings _this;
917 public Xcls_ScrolledWindow34(ValaProjectSettings _owner )
920 this.el = new Gtk.ScrolledWindow( null, null );
924 // set gobject values
925 var child_0 = new Xcls_files_tree( _this );
929 // user defined functions
931 public class Xcls_files_tree : Object
933 public Gtk.TreeView el;
934 private ValaProjectSettings _this;
940 public Xcls_files_tree(ValaProjectSettings _owner )
943 this.el = new Gtk.TreeView();
947 // set gobject values
948 var child_0 = new Xcls_ListStore36( _this );
950 this.el.set_model ( child_0.el );
951 var child_1 = new Xcls_TreeViewColumn37( _this );
953 this.el.append_column ( child_1.el );
956 // user defined functions
958 public class Xcls_ListStore36 : Object
960 public Gtk.ListStore el;
961 private ValaProjectSettings _this;
967 public Xcls_ListStore36(ValaProjectSettings _owner )
970 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
976 // set gobject values
979 // user defined functions
981 public class Xcls_TreeViewColumn37 : Object
983 public Gtk.TreeViewColumn el;
984 private ValaProjectSettings _this;
990 public Xcls_TreeViewColumn37(ValaProjectSettings _owner )
993 this.el = new Gtk.TreeViewColumn();
997 // set gobject values
998 this.el.title = "name";
999 this.el.resizable = true;
1000 var child_0 = new Xcls_files_render( _this );
1002 this.el.pack_start ( child_0.el , false );
1006 this.el.add_attribute(_this.files_render.el , "markup", 2 );
1007 this.el.add_attribute(_this.files_render.el , "text", 1 ); }
1009 // user defined functions
1011 public class Xcls_files_render : Object
1013 public Gtk.CellRendererText el;
1014 private ValaProjectSettings _this;
1020 public Xcls_files_render(ValaProjectSettings _owner )
1023 _this.files_render = this;
1024 this.el = new Gtk.CellRendererText();
1028 // set gobject values
1031 // user defined functions