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) {
323 var pal = (Palete.Gtk) Palete.factory("Gtk");
324 //var pkgs = pal.packages();
329 for(var i =0 ; i < items.size; i++) {
330 this.el.append(out citer);
332 this.el.set_value(citer, 0, items.get(i) ); // title
333 this.el.set_value(citer, 1, items.get(i) );
335 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
339 public class Xcls_TreeViewColumn12 : Object
341 public Gtk.TreeViewColumn el;
342 private ValaProjectSettings _this;
348 public Xcls_TreeViewColumn12(ValaProjectSettings _owner )
351 this.el = new Gtk.TreeViewColumn();
355 // set gobject values
356 this.el.title = "name";
357 this.el.resizable = true;
358 var child_0 = new Xcls_packages_render( _this );
360 this.el.pack_start ( child_0.el , false );
364 this.el.add_attribute(_this.packages_render.el , "markup", 2 );
365 this.el.add_attribute(_this.packages_render.el , "text", 1 ); }
367 // user defined functions
369 public class Xcls_packages_render : Object
371 public Gtk.CellRendererText el;
372 private ValaProjectSettings _this;
378 public Xcls_packages_render(ValaProjectSettings _owner )
381 _this.packages_render = this;
382 this.el = new Gtk.CellRendererText();
386 // set gobject values
389 // user defined functions
391 public class Xcls_TreeViewColumn14 : Object
393 public Gtk.TreeViewColumn el;
394 private ValaProjectSettings _this;
400 public Xcls_TreeViewColumn14(ValaProjectSettings _owner )
403 this.el = new Gtk.TreeViewColumn();
407 // set gobject values
408 this.el.title = "use";
409 this.el.resizable = false;
410 var child_0 = new Xcls_packages_render_use( _this );
412 this.el.pack_start ( child_0.el , false );
417 this.el.add_attribute(_this.packages_render_use.el , "value", 2 );
420 // user defined functions
422 public class Xcls_packages_render_use : Object
424 public Gtk.CellRendererToggle el;
425 private ValaProjectSettings _this;
431 public Xcls_packages_render_use(ValaProjectSettings _owner )
434 _this.packages_render_use = this;
435 this.el = new Gtk.CellRendererToggle();
439 // set gobject values
442 // user defined functions
444 public class Xcls_Label16 : Object
447 private ValaProjectSettings _this;
453 public Xcls_Label16(ValaProjectSettings _owner )
456 this.el = new Gtk.Label( "Available Directories" );
460 // set gobject values
463 // user defined functions
465 public class Xcls_ScrolledWindow17 : Object
467 public Gtk.ScrolledWindow el;
468 private ValaProjectSettings _this;
474 public Xcls_ScrolledWindow17(ValaProjectSettings _owner )
477 this.el = new Gtk.ScrolledWindow( null, null );
481 // set gobject values
482 var child_0 = new Xcls_default_directory_tree( _this );
484 this.el.add ( child_0.el );
487 // user defined functions
489 public class Xcls_default_directory_tree : Object
491 public Gtk.TreeView el;
492 private ValaProjectSettings _this;
498 public Xcls_default_directory_tree(ValaProjectSettings _owner )
501 this.el = new Gtk.TreeView();
505 // set gobject values
506 var child_0 = new Xcls_default_directory_tree_store( _this );
508 this.el.set_model ( child_0.el );
509 var child_1 = new Xcls_TreeViewColumn20( _this );
511 this.el.append_column ( child_1.el );
514 // user defined functions
516 public class Xcls_default_directory_tree_store : Object
518 public Gtk.ListStore el;
519 private ValaProjectSettings _this;
525 public Xcls_default_directory_tree_store(ValaProjectSettings _owner )
528 _this.default_directory_tree_store = this;
529 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
535 // set gobject values
538 // user defined functions
539 public void load (Gee.ArrayList<string> items) {
544 for(var i =0 ; i < items.size; i++) {
545 this.el.append(out citer);
547 this.el.set_value(citer, 0, items.get(i) ); // title
548 this.el.set_value(citer, 1, items.get(i) );
550 this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);
554 public class Xcls_TreeViewColumn20 : Object
556 public Gtk.TreeViewColumn el;
557 private ValaProjectSettings _this;
563 public Xcls_TreeViewColumn20(ValaProjectSettings _owner )
566 this.el = new Gtk.TreeViewColumn();
570 // set gobject values
571 this.el.title = "name";
572 this.el.resizable = true;
573 var child_0 = new Xcls_directory_render( _this );
575 this.el.pack_start ( child_0.el , false );
579 this.el.add_attribute(_this.directory_render.el , "markup", 2 );
580 this.el.add_attribute(_this.directory_render.el , "text", 1 ); }
582 // user defined functions
584 public class Xcls_directory_render : Object
586 public Gtk.CellRendererText el;
587 private ValaProjectSettings _this;
593 public Xcls_directory_render(ValaProjectSettings _owner )
596 _this.directory_render = this;
597 this.el = new Gtk.CellRendererText();
601 // set gobject values
604 // user defined functions
606 public class Xcls_HPaned22 : Object
608 public Gtk.HPaned el;
609 private ValaProjectSettings _this;
615 public Xcls_HPaned22(ValaProjectSettings _owner )
618 this.el = new Gtk.HPaned();
622 // set gobject values
623 this.el.position = 300;
624 var child_0 = new Xcls_ScrolledWindow23( _this );
626 this.el.add1 ( child_0.el );
627 var child_1 = new Xcls_set_vbox( _this );
629 this.el.add2 ( child_1.el );
632 // user defined functions
634 public class Xcls_ScrolledWindow23 : Object
636 public Gtk.ScrolledWindow el;
637 private ValaProjectSettings _this;
643 public Xcls_ScrolledWindow23(ValaProjectSettings _owner )
646 this.el = new Gtk.ScrolledWindow( null, null );
650 // set gobject values
651 var child_0 = new Xcls_targets_tree( _this );
657 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
661 // user defined functions
663 public class Xcls_targets_tree : Object
665 public Gtk.TreeView el;
666 private ValaProjectSettings _this;
672 public Xcls_targets_tree(ValaProjectSettings _owner )
675 _this.targets_tree = this;
676 this.el = new Gtk.TreeView();
680 // set gobject values
681 var child_0 = new Xcls_ListStore25( _this );
683 this.el.set_model ( child_0.el );
684 var child_1 = new Xcls_TreeViewColumn26( _this );
686 this.el.append_column ( child_1.el );
689 // user defined functions
691 public class Xcls_ListStore25 : Object
693 public Gtk.ListStore el;
694 private ValaProjectSettings _this;
700 public Xcls_ListStore25(ValaProjectSettings _owner )
703 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
709 // set gobject values
712 // user defined functions
714 public class Xcls_TreeViewColumn26 : Object
716 public Gtk.TreeViewColumn el;
717 private ValaProjectSettings _this;
723 public Xcls_TreeViewColumn26(ValaProjectSettings _owner )
726 this.el = new Gtk.TreeViewColumn();
730 // set gobject values
731 this.el.title = "name";
732 this.el.resizable = true;
733 var child_0 = new Xcls_targets_render( _this );
735 this.el.pack_start ( child_0.el , false );
739 this.el.add_attribute(_this.targets_render.el , "markup", 2 );
740 this.el.add_attribute(_this.targets_render.el , "text", 1 ); }
742 // user defined functions
744 public class Xcls_targets_render : Object
746 public Gtk.CellRendererText el;
747 private ValaProjectSettings _this;
753 public Xcls_targets_render(ValaProjectSettings _owner )
756 _this.targets_render = this;
757 this.el = new Gtk.CellRendererText();
761 // set gobject values
764 // user defined functions
766 public class Xcls_set_vbox : Object
769 private ValaProjectSettings _this;
775 public Xcls_set_vbox(ValaProjectSettings _owner )
778 this.el = new Gtk.VBox( false, 0 );
782 // set gobject values
783 var child_0 = new Xcls_Label29( _this );
785 this.el.pack_start ( child_0.el , false,false,0 );
786 var child_1 = new Xcls_build_pack_target( _this );
788 this.el.pack_start ( child_1.el , false,false,0 );
789 var child_2 = new Xcls_Label31( _this );
791 this.el.pack_start ( child_2.el , false,false,0 );
792 var child_3 = new Xcls_build_compile_flags( _this );
794 this.el.pack_start ( child_3.el , false,false,0 );
795 var child_4 = new Xcls_Label33( _this );
797 this.el.pack_start ( child_4.el , false,false,0 );
798 var child_5 = new Xcls_ScrolledWindow34( _this );
800 this.el.pack_start ( child_5.el , true,true,0 );
803 // user defined functions
805 public class Xcls_Label29 : Object
808 private ValaProjectSettings _this;
814 public Xcls_Label29(ValaProjectSettings _owner )
817 this.el = new Gtk.Label( "target filename" );
821 // set gobject values
824 // user defined functions
826 public class Xcls_build_pack_target : Object
829 private ValaProjectSettings _this;
835 public Xcls_build_pack_target(ValaProjectSettings _owner )
838 this.el = new Gtk.Entry();
842 // set gobject values
845 // user defined functions
847 public class Xcls_Label31 : Object
850 private ValaProjectSettings _this;
856 public Xcls_Label31(ValaProjectSettings _owner )
859 this.el = new Gtk.Label( "compile flags" );
863 // set gobject values
866 // user defined functions
868 public class Xcls_build_compile_flags : Object
871 private ValaProjectSettings _this;
877 public Xcls_build_compile_flags(ValaProjectSettings _owner )
880 this.el = new Gtk.Entry();
884 // set gobject values
887 // user defined functions
889 public class Xcls_Label33 : Object
892 private ValaProjectSettings _this;
898 public Xcls_Label33(ValaProjectSettings _owner )
901 this.el = new Gtk.Label( "Files to compile" );
905 // set gobject values
908 // user defined functions
910 public class Xcls_ScrolledWindow34 : Object
912 public Gtk.ScrolledWindow el;
913 private ValaProjectSettings _this;
919 public Xcls_ScrolledWindow34(ValaProjectSettings _owner )
922 this.el = new Gtk.ScrolledWindow( null, null );
926 // set gobject values
927 var child_0 = new Xcls_files_tree( _this );
931 // user defined functions
933 public class Xcls_files_tree : Object
935 public Gtk.TreeView el;
936 private ValaProjectSettings _this;
942 public Xcls_files_tree(ValaProjectSettings _owner )
945 this.el = new Gtk.TreeView();
949 // set gobject values
950 var child_0 = new Xcls_ListStore36( _this );
952 this.el.set_model ( child_0.el );
953 var child_1 = new Xcls_TreeViewColumn37( _this );
955 this.el.append_column ( child_1.el );
958 // user defined functions
960 public class Xcls_ListStore36 : Object
962 public Gtk.ListStore el;
963 private ValaProjectSettings _this;
969 public Xcls_ListStore36(ValaProjectSettings _owner )
972 this.el = new Gtk.ListStore( 2, typeof(string), // 0 key type
978 // set gobject values
981 // user defined functions
983 public class Xcls_TreeViewColumn37 : Object
985 public Gtk.TreeViewColumn el;
986 private ValaProjectSettings _this;
992 public Xcls_TreeViewColumn37(ValaProjectSettings _owner )
995 this.el = new Gtk.TreeViewColumn();
999 // set gobject values
1000 this.el.title = "name";
1001 this.el.resizable = true;
1002 var child_0 = new Xcls_files_render( _this );
1004 this.el.pack_start ( child_0.el , false );
1008 this.el.add_attribute(_this.files_render.el , "markup", 2 );
1009 this.el.add_attribute(_this.files_render.el , "text", 1 ); }
1011 // user defined functions
1013 public class Xcls_files_render : Object
1015 public Gtk.CellRendererText el;
1016 private ValaProjectSettings _this;
1022 public Xcls_files_render(ValaProjectSettings _owner )
1025 _this.files_render = this;
1026 this.el = new Gtk.CellRendererText();
1030 // set gobject values
1033 // user defined functions