fix line numbering issues with vala generator - hopefully fixes completion in node...
[roobuilder] / src / Builder4 / ValaProjectSettingsPopover.vala
1     static ValaProjectSettingsPopover  _ValaProjectSettingsPopover;
2
3     public class ValaProjectSettingsPopover : Object
4     {
5         public Gtk.Window el;
6         private ValaProjectSettingsPopover  _this;
7
8         public static ValaProjectSettingsPopover singleton()
9         {
10             if (_ValaProjectSettingsPopover == null) {
11                 _ValaProjectSettingsPopover= new ValaProjectSettingsPopover();
12             }
13             return _ValaProjectSettingsPopover;
14         }
15         public Xcls_notebook notebook;
16         public Xcls_label_global label_global;
17         public Xcls_label_targets label_targets;
18         public Xcls_compile_flags compile_flags;
19         public Xcls_vapi_scroll vapi_scroll;
20         public Xcls_vapimodel vapimodel;
21         public Xcls_vapi_filter vapi_filter;
22         public Xcls_vapi_search vapi_search;
23         public Xcls_set_vbox set_vbox;
24         public Xcls_treeview treeview;
25         public Xcls_treeselmodel treeselmodel;
26         public Xcls_treelistsort treelistsort;
27         public Xcls_treelistmodel treelistmodel;
28         public Xcls_treemodel treemodel;
29         public Xcls_name name;
30         public Xcls_target_sel target_sel;
31         public Xcls_target_model target_model;
32         public Xcls_set_vboxb set_vboxb;
33         public Xcls_build_name build_name;
34         public Xcls_build_execute_args build_execute_args;
35         public Xcls_save_btn save_btn;
36
37             // my vars (def)
38         public Project.Callback doneObj;
39         public Xcls_MainWindow window;
40         public Project.GtkValaSettings? selected_target;
41         public uint border_width;
42         public bool done;
43         public Project.Gtk project;
44
45         // ctor
46         public ValaProjectSettingsPopover()
47         {
48             _this = this;
49             this.el = new Gtk.Window();
50
51             // my vars (dec)
52             this.doneObj = null;
53             this.window = null;
54             this.selected_target = null;
55             this.border_width = 0;
56             this.done = false;
57             this.project = null;
58
59             // set gobject values
60             this.el.modal = true;
61             var child_1 = new Xcls_HeaderBar2( _this );
62             this.el.titlebar = child_1.el;
63             var child_2 = new Xcls_Box4( _this );
64             child_2.ref();
65             this.el.set_child ( child_2.el  );
66
67             //listeners
68             this.el.close_request.connect( ( ) => {
69                 if (!this.done) {
70                         return true;
71                 }
72                 return false;
73             });
74             this.el.hide.connect( () => {
75                   if (!this.done) {
76                 _this.el.show();
77               
78               }
79             });
80         }
81
82         // user defined functions
83         public void show (Gtk.Window pwin, Project.Gtk project, Project.Callback? doneObj) {
84              
85             //print("ValaProjectSettings show\n");
86             this.doneObj = doneObj;
87             this.project=  project;
88                  
89             this.compile_flags.el.buffer.set_text(
90                 project.compile_flags.data
91                 );
92                    
93             project.loadVapiIntoStore(_this.vapimodel.el);
94              GLib.Timeout.add(500, () => {
95                          this.vapi_scroll.el.vadjustment.value  = 0;     
96                      return false;
97              });
98             
99            
100                 
101                 project.loadTargetsIntoStore(this.target_model.el);
102                 
103                 _this.target_sel.el.selected = Gtk.INVALID_LIST_POSITION;
104                 _this.target_sel.selectTarget(null);
105         //      Gtk.Allocation rect;
106                 //btn.get_allocation(out rect);
107          //   this.el.set_pointing_to(rect);
108          this.el.application = pwin.application; // ??? make it modal?
109                  this.el.set_transient_for(pwin);
110                  
111                 // window + header?
112                 // print("SHOWALL - POPIP\n");
113                 this.el.set_size_request(800,800);
114                 this.el.show();
115                 this.notebook.el.page = 0; // first page.
116                 
117                 //this.view.el.grab_focus();
118         
119         }
120         public void save ()  {
121             this.project.save(); 
122         }
123         public class Xcls_HeaderBar2 : Object
124         {
125             public Gtk.HeaderBar el;
126             private ValaProjectSettingsPopover  _this;
127
128
129                 // my vars (def)
130
131             // ctor
132             public Xcls_HeaderBar2(ValaProjectSettingsPopover _owner )
133             {
134                 _this = _owner;
135                 this.el = new Gtk.HeaderBar();
136
137                 // my vars (dec)
138
139                 // set gobject values
140                 var child_1 = new Xcls_Label3( _this );
141                 this.el.title_widget = child_1.el;
142             }
143
144             // user defined functions
145         }
146         public class Xcls_Label3 : Object
147         {
148             public Gtk.Label el;
149             private ValaProjectSettingsPopover  _this;
150
151
152                 // my vars (def)
153
154             // ctor
155             public Xcls_Label3(ValaProjectSettingsPopover _owner )
156             {
157                 _this = _owner;
158                 this.el = new Gtk.Label( "Change Vala  Compile settings" );
159
160                 // my vars (dec)
161
162                 // set gobject values
163             }
164
165             // user defined functions
166         }
167
168
169         public class Xcls_Box4 : Object
170         {
171             public Gtk.Box el;
172             private ValaProjectSettingsPopover  _this;
173
174
175                 // my vars (def)
176
177             // ctor
178             public Xcls_Box4(ValaProjectSettingsPopover _owner )
179             {
180                 _this = _owner;
181                 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
182
183                 // my vars (dec)
184
185                 // set gobject values
186                 this.el.hexpand = true;
187                 this.el.vexpand = true;
188                 new Xcls_notebook( _this );
189                 this.el.append( _this.notebook.el );
190                 var child_2 = new Xcls_Box58( _this );
191                 child_2.ref();
192                 this.el.append( child_2.el );
193             }
194
195             // user defined functions
196         }
197         public class Xcls_notebook : Object
198         {
199             public Gtk.Notebook el;
200             private ValaProjectSettingsPopover  _this;
201
202
203                 // my vars (def)
204
205             // ctor
206             public Xcls_notebook(ValaProjectSettingsPopover _owner )
207             {
208                 _this = _owner;
209                 _this.notebook = this;
210                 this.el = new Gtk.Notebook();
211
212                 // my vars (dec)
213
214                 // set gobject values
215                 this.el.vexpand = true;
216                 new Xcls_label_global( _this );
217                 new Xcls_label_targets( _this );
218                 var child_3 = new Xcls_Box8( _this );
219                 child_3.ref();
220                 this.el.append_page ( child_3.el , _this.label_global.el );
221                 var child_4 = new Xcls_Paned26( _this );
222                 child_4.ref();
223                 this.el.append_page ( child_4.el , _this.label_targets.el );
224             }
225
226             // user defined functions
227         }
228         public class Xcls_label_global : Object
229         {
230             public Gtk.Label el;
231             private ValaProjectSettingsPopover  _this;
232
233
234                 // my vars (def)
235
236             // ctor
237             public Xcls_label_global(ValaProjectSettingsPopover _owner )
238             {
239                 _this = _owner;
240                 _this.label_global = this;
241                 this.el = new Gtk.Label( "Global" );
242
243                 // my vars (dec)
244
245                 // set gobject values
246             }
247
248             // user defined functions
249         }
250
251         public class Xcls_label_targets : Object
252         {
253             public Gtk.Label el;
254             private ValaProjectSettingsPopover  _this;
255
256
257                 // my vars (def)
258
259             // ctor
260             public Xcls_label_targets(ValaProjectSettingsPopover _owner )
261             {
262                 _this = _owner;
263                 _this.label_targets = this;
264                 this.el = new Gtk.Label( "Targets" );
265
266                 // my vars (dec)
267
268                 // set gobject values
269             }
270
271             // user defined functions
272         }
273
274         public class Xcls_Box8 : Object
275         {
276             public Gtk.Box el;
277             private ValaProjectSettingsPopover  _this;
278
279
280                 // my vars (def)
281
282             // ctor
283             public Xcls_Box8(ValaProjectSettingsPopover _owner )
284             {
285                 _this = _owner;
286                 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
287
288                 // my vars (dec)
289
290                 // set gobject values
291                 this.el.homogeneous = false;
292                 var child_1 = new Xcls_Label9( _this );
293                 child_1.ref();
294                 this.el.append( child_1.el );
295                 new Xcls_compile_flags( _this );
296                 this.el.append( _this.compile_flags.el );
297                 new Xcls_vapi_scroll( _this );
298                 this.el.append( _this.vapi_scroll.el );
299                 new Xcls_vapi_search( _this );
300                 this.el.append( _this.vapi_search.el );
301             }
302
303             // user defined functions
304         }
305         public class Xcls_Label9 : Object
306         {
307             public Gtk.Label el;
308             private ValaProjectSettingsPopover  _this;
309
310
311                 // my vars (def)
312
313             // ctor
314             public Xcls_Label9(ValaProjectSettingsPopover _owner )
315             {
316                 _this = _owner;
317                 this.el = new Gtk.Label( "compile flags" );
318
319                 // my vars (dec)
320
321                 // set gobject values
322                 this.el.halign = Gtk.Align.START;
323                 this.el.hexpand = true;
324             }
325
326             // user defined functions
327         }
328
329         public class Xcls_compile_flags : Object
330         {
331             public Gtk.Entry el;
332             private ValaProjectSettingsPopover  _this;
333
334
335                 // my vars (def)
336
337             // ctor
338             public Xcls_compile_flags(ValaProjectSettingsPopover _owner )
339             {
340                 _this = _owner;
341                 _this.compile_flags = this;
342                 this.el = new Gtk.Entry();
343
344                 // my vars (dec)
345
346                 // set gobject values
347                 this.el.placeholder_text = "eg. -g --valasrc $BASEDIR ";
348
349                 //listeners
350                 this.el.changed.connect( () => {
351                     
352                    _this.project.compile_flags = this.el.buffer.text;
353                    _this.project.save();
354                 //    _this.project.save();
355                 
356                 });
357             }
358
359             // user defined functions
360         }
361
362         public class Xcls_vapi_scroll : Object
363         {
364             public Gtk.ScrolledWindow el;
365             private ValaProjectSettingsPopover  _this;
366
367
368                 // my vars (def)
369
370             // ctor
371             public Xcls_vapi_scroll(ValaProjectSettingsPopover _owner )
372             {
373                 _this = _owner;
374                 _this.vapi_scroll = this;
375                 this.el = new Gtk.ScrolledWindow();
376
377                 // my vars (dec)
378
379                 // set gobject values
380                 this.el.vscrollbar_policy = Gtk.PolicyType.AUTOMATIC;
381                 this.el.has_frame = true;
382                 this.el.hexpand = true;
383                 this.el.vexpand = true;
384                 this.el.hscrollbar_policy = Gtk.PolicyType.AUTOMATIC;
385                 var child_1 = new Xcls_ColumnView12( _this );
386                 this.el.child = child_1.el;
387             }
388
389             // user defined functions
390         }
391         public class Xcls_ColumnView12 : Object
392         {
393             public Gtk.ColumnView el;
394             private ValaProjectSettingsPopover  _this;
395
396
397                 // my vars (def)
398
399             // ctor
400             public Xcls_ColumnView12(ValaProjectSettingsPopover _owner )
401             {
402                 _this = _owner;
403                 var child_1 = new Xcls_NoSelection13( _this );
404                 child_1.ref();
405                 this.el = new Gtk.ColumnView( child_1.el );
406
407                 // my vars (dec)
408
409                 // set gobject values
410                 var child_2 = new Xcls_ColumnViewColumn21( _this );
411                 child_2.ref();
412                 this.el.append_column ( child_2.el  );
413                 var child_3 = new Xcls_ColumnViewColumn23( _this );
414                 child_3.ref();
415                 this.el.append_column ( child_3.el  );
416             }
417
418             // user defined functions
419         }
420         public class Xcls_NoSelection13 : Object
421         {
422             public Gtk.NoSelection el;
423             private ValaProjectSettingsPopover  _this;
424
425
426                 // my vars (def)
427
428             // ctor
429             public Xcls_NoSelection13(ValaProjectSettingsPopover _owner )
430             {
431                 _this = _owner;
432                 var child_1 = new Xcls_FilterListModel14( _this );
433                 child_1.ref();
434                 this.el = new Gtk.NoSelection( child_1.el );
435
436                 // my vars (dec)
437
438                 // set gobject values
439             }
440
441             // user defined functions
442         }
443         public class Xcls_FilterListModel14 : Object
444         {
445             public Gtk.FilterListModel el;
446             private ValaProjectSettingsPopover  _this;
447
448
449                 // my vars (def)
450
451             // ctor
452             public Xcls_FilterListModel14(ValaProjectSettingsPopover _owner )
453             {
454                 _this = _owner;
455                 var child_1 = new Xcls_SortListModel15( _this );
456                 child_1.ref();
457                 new Xcls_vapi_filter( _this );
458                 this.el = new Gtk.FilterListModel( child_1.el, _this.vapi_filter.el );
459
460                 // my vars (dec)
461
462                 // set gobject values
463             }
464
465             // user defined functions
466         }
467         public class Xcls_SortListModel15 : Object
468         {
469             public Gtk.SortListModel el;
470             private ValaProjectSettingsPopover  _this;
471
472
473                 // my vars (def)
474
475             // ctor
476             public Xcls_SortListModel15(ValaProjectSettingsPopover _owner )
477             {
478                 _this = _owner;
479                 new Xcls_vapimodel( _this );
480                 var child_2 = new Xcls_StringSorter17( _this );
481                 child_2.ref();
482                 this.el = new Gtk.SortListModel( _this.vapimodel.el, child_2.el );
483
484                 // my vars (dec)
485
486                 // set gobject values
487             }
488
489             // user defined functions
490         }
491         public class Xcls_vapimodel : Object
492         {
493             public GLib.ListStore el;
494             private ValaProjectSettingsPopover  _this;
495
496
497                 // my vars (def)
498
499             // ctor
500             public Xcls_vapimodel(ValaProjectSettingsPopover _owner )
501             {
502                 _this = _owner;
503                 _this.vapimodel = this;
504                 this.el = new GLib.ListStore( typeof(Project.VapiSelection) );
505
506                 // my vars (dec)
507
508                 // set gobject values
509             }
510
511             // user defined functions
512         }
513
514         public class Xcls_StringSorter17 : Object
515         {
516             public Gtk.StringSorter el;
517             private ValaProjectSettingsPopover  _this;
518
519
520                 // my vars (def)
521
522             // ctor
523             public Xcls_StringSorter17(ValaProjectSettingsPopover _owner )
524             {
525                 _this = _owner;
526                 var child_1 = new Xcls_PropertyExpression18( _this );
527                 child_1.ref();
528                 this.el = new Gtk.StringSorter( child_1.el );
529
530                 // my vars (dec)
531
532                 // set gobject values
533             }
534
535             // user defined functions
536         }
537         public class Xcls_PropertyExpression18 : Object
538         {
539             public Gtk.PropertyExpression el;
540             private ValaProjectSettingsPopover  _this;
541
542
543                 // my vars (def)
544
545             // ctor
546             public Xcls_PropertyExpression18(ValaProjectSettingsPopover _owner )
547             {
548                 _this = _owner;
549                 this.el = new Gtk.PropertyExpression( typeof(Project.VapiSelection), null, "sortkey" );
550
551                 // my vars (dec)
552
553                 // set gobject values
554             }
555
556             // user defined functions
557         }
558
559
560
561         public class Xcls_vapi_filter : Object
562         {
563             public Gtk.StringFilter el;
564             private ValaProjectSettingsPopover  _this;
565
566
567                 // my vars (def)
568
569             // ctor
570             public Xcls_vapi_filter(ValaProjectSettingsPopover _owner )
571             {
572                 _this = _owner;
573                 _this.vapi_filter = this;
574                 var child_1 = new Xcls_PropertyExpression20( _this );
575                 child_1.ref();
576                 this.el = new Gtk.StringFilter( child_1.el );
577
578                 // my vars (dec)
579
580                 // set gobject values
581             }
582
583             // user defined functions
584         }
585         public class Xcls_PropertyExpression20 : Object
586         {
587             public Gtk.PropertyExpression el;
588             private ValaProjectSettingsPopover  _this;
589
590
591                 // my vars (def)
592
593             // ctor
594             public Xcls_PropertyExpression20(ValaProjectSettingsPopover _owner )
595             {
596                 _this = _owner;
597                 this.el = new Gtk.PropertyExpression( typeof(Project.VapiSelection), null, "sortkey" );
598
599                 // my vars (dec)
600
601                 // set gobject values
602             }
603
604             // user defined functions
605         }
606
607
608
609
610         public class Xcls_ColumnViewColumn21 : Object
611         {
612             public Gtk.ColumnViewColumn el;
613             private ValaProjectSettingsPopover  _this;
614
615
616                 // my vars (def)
617
618             // ctor
619             public Xcls_ColumnViewColumn21(ValaProjectSettingsPopover _owner )
620             {
621                 _this = _owner;
622                 var child_1 = new Xcls_SignalListItemFactory22( _this );
623                 child_1.ref();
624                 this.el = new Gtk.ColumnViewColumn( "Vapi Package", child_1.el );
625
626                 // my vars (dec)
627
628                 // set gobject values
629                 this.el.expand = true;
630             }
631
632             // user defined functions
633         }
634         public class Xcls_SignalListItemFactory22 : Object
635         {
636             public Gtk.SignalListItemFactory el;
637             private ValaProjectSettingsPopover  _this;
638
639
640                 // my vars (def)
641
642             // ctor
643             public Xcls_SignalListItemFactory22(ValaProjectSettingsPopover _owner )
644             {
645                 _this = _owner;
646                 this.el = new Gtk.SignalListItemFactory();
647
648                 // my vars (dec)
649
650                 // set gobject values
651
652                 //listeners
653                 this.el.setup.connect( (item) => {
654                         //var j = (JsRender.JsRender) item;
655                         var gi = (Gtk.ListItem)item;
656                          
657                         var lbl = new Gtk.Label("");
658                         lbl.halign = Gtk.Align.START;
659                         gi.set_child(lbl);
660                 
661                 
662                 
663                 });
664                 this.el.bind.connect( (listitem) => {
665                  
666                         var lbl = (Gtk.Box)  ((Gtk.ListItem)listitem).get_child();
667                            
668                         var item = (Project.VapiSelection)  ((Gtk.ListItem)listitem).get_item();
669                 
670                         item.bind_property("name",
671                                 lbl, "label",
672                            GLib.BindingFlags.SYNC_CREATE);
673                 
674                           
675                 });
676             }
677
678             // user defined functions
679         }
680
681
682         public class Xcls_ColumnViewColumn23 : Object
683         {
684             public Gtk.ColumnViewColumn el;
685             private ValaProjectSettingsPopover  _this;
686
687
688                 // my vars (def)
689
690             // ctor
691             public Xcls_ColumnViewColumn23(ValaProjectSettingsPopover _owner )
692             {
693                 _this = _owner;
694                 var child_1 = new Xcls_SignalListItemFactory24( _this );
695                 child_1.ref();
696                 this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
697
698                 // my vars (dec)
699
700                 // set gobject values
701             }
702
703             // user defined functions
704         }
705         public class Xcls_SignalListItemFactory24 : Object
706         {
707             public Gtk.SignalListItemFactory el;
708             private ValaProjectSettingsPopover  _this;
709
710
711                 // my vars (def)
712
713             // ctor
714             public Xcls_SignalListItemFactory24(ValaProjectSettingsPopover _owner )
715             {
716                 _this = _owner;
717                 this.el = new Gtk.SignalListItemFactory();
718
719                 // my vars (dec)
720
721                 // set gobject values
722
723                 //listeners
724                 this.el.setup.connect( (listitem) => {
725                 
726                         var btn = new Gtk.CheckButton();
727                  
728                         ((Gtk.ListItem)listitem).set_child(btn);
729                         
730                         btn.toggled.connect(() =>  {
731                          
732                                 var jr = (Project.VapiSelection) ((Gtk.ListItem)listitem).get_item();
733                                 jr.selected = btn.active;
734                         });
735                 });
736                 this.el.bind.connect( (listitem) => {
737                          //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
738                         
739                         
740                         
741                         //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
742                         var btn = (Gtk.CheckButton)  ((Gtk.ListItem)listitem).get_child();
743                           
744                  
745                         var vs = (Project.VapiSelection)((Gtk.ListItem)listitem).get_item();
746                 
747                         //GLib.debug("change  %s to %s", lbl.label, np.name);
748                 
749                         btn.active = vs.selected; 
750                         
751                         vs.btn = btn;
752                         // bind image...
753                         
754                 });
755             }
756
757             // user defined functions
758         }
759
760
761
762
763         public class Xcls_vapi_search : Object
764         {
765             public Gtk.SearchEntry el;
766             private ValaProjectSettingsPopover  _this;
767
768
769                 // my vars (def)
770
771             // ctor
772             public Xcls_vapi_search(ValaProjectSettingsPopover _owner )
773             {
774                 _this = _owner;
775                 _this.vapi_search = this;
776                 this.el = new Gtk.SearchEntry();
777
778                 // my vars (dec)
779
780                 // set gobject values
781                 this.el.placeholder_text = "Search Libraries (Vapi)";
782                 this.el.search_delay = 500;
783
784                 //listeners
785                 this.el.search_changed.connect( ( ) => {
786                 
787                  _this.vapi_filter.el.set_search(this.el.get_text());
788                  
789                 });
790             }
791
792             // user defined functions
793         }
794
795
796         public class Xcls_Paned26 : Object
797         {
798             public Gtk.Paned el;
799             private ValaProjectSettingsPopover  _this;
800
801
802                 // my vars (def)
803
804             // ctor
805             public Xcls_Paned26(ValaProjectSettingsPopover _owner )
806             {
807                 _this = _owner;
808                 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
809
810                 // my vars (dec)
811
812                 // set gobject values
813                 this.el.vexpand = true;
814                 this.el.position = 300;
815                 new Xcls_set_vbox( _this );
816                 this.el.set_end_child ( _this.set_vbox.el  );
817                 var child_2 = new Xcls_Box43( _this );
818                 this.el.start_child = child_2.el;
819             }
820
821             // user defined functions
822         }
823         public class Xcls_set_vbox : Object
824         {
825             public Gtk.Box el;
826             private ValaProjectSettingsPopover  _this;
827
828
829                 // my vars (def)
830
831             // ctor
832             public Xcls_set_vbox(ValaProjectSettingsPopover _owner )
833             {
834                 _this = _owner;
835                 _this.set_vbox = this;
836                 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
837
838                 // my vars (dec)
839
840                 // set gobject values
841                 this.el.homogeneous = false;
842                 var child_1 = new Xcls_ScrolledWindow28( _this );
843                 child_1.ref();
844                 this.el.append( child_1.el );
845             }
846
847             // user defined functions
848         }
849         public class Xcls_ScrolledWindow28 : Object
850         {
851             public Gtk.ScrolledWindow el;
852             private ValaProjectSettingsPopover  _this;
853
854
855                 // my vars (def)
856
857             // ctor
858             public Xcls_ScrolledWindow28(ValaProjectSettingsPopover _owner )
859             {
860                 _this = _owner;
861                 this.el = new Gtk.ScrolledWindow();
862
863                 // my vars (dec)
864
865                 // set gobject values
866                 this.el.vexpand = true;
867                 new Xcls_treeview( _this );
868                 this.el.child = _this.treeview.el;
869             }
870
871             // user defined functions
872         }
873         public class Xcls_treeview : Object
874         {
875             public Gtk.ColumnView el;
876             private ValaProjectSettingsPopover  _this;
877
878
879                 // my vars (def)
880
881             // ctor
882             public Xcls_treeview(ValaProjectSettingsPopover _owner )
883             {
884                 _this = _owner;
885                 _this.treeview = this;
886                 new Xcls_treeselmodel( _this );
887                 this.el = new Gtk.ColumnView( _this.treeselmodel.el );
888
889                 // my vars (dec)
890
891                 // set gobject values
892                 new Xcls_name( _this );
893                 this.el.append_column ( _this.name.el  );
894                 var child_3 = new Xcls_ColumnViewColumn41( _this );
895                 child_3.ref();
896                 this.el.append_column ( child_3.el  );
897             }
898
899             // user defined functions
900         }
901         public class Xcls_treeselmodel : Object
902         {
903             public Gtk.SingleSelection el;
904             private ValaProjectSettingsPopover  _this;
905
906
907                 // my vars (def)
908
909             // ctor
910             public Xcls_treeselmodel(ValaProjectSettingsPopover _owner )
911             {
912                 _this = _owner;
913                 _this.treeselmodel = this;
914                 var child_1 = new Xcls_FilterListModel31( _this );
915                 child_1.ref();
916                 this.el = new Gtk.SingleSelection( child_1.el );
917
918                 // my vars (dec)
919
920                 // set gobject values
921             }
922
923             // user defined functions
924         }
925         public class Xcls_FilterListModel31 : Object
926         {
927             public Gtk.FilterListModel el;
928             private ValaProjectSettingsPopover  _this;
929
930
931                 // my vars (def)
932
933             // ctor
934             public Xcls_FilterListModel31(ValaProjectSettingsPopover _owner )
935             {
936                 _this = _owner;
937                 new Xcls_treelistsort( _this );
938                 var child_2 = new Xcls_CustomFilter38( _this );
939                 child_2.ref();
940                 this.el = new Gtk.FilterListModel( _this.treelistsort.el, child_2.el );
941
942                 // my vars (dec)
943
944                 // set gobject values
945             }
946
947             // user defined functions
948         }
949         public class Xcls_treelistsort : Object
950         {
951             public Gtk.SortListModel el;
952             private ValaProjectSettingsPopover  _this;
953
954
955                 // my vars (def)
956
957             // ctor
958             public Xcls_treelistsort(ValaProjectSettingsPopover _owner )
959             {
960                 _this = _owner;
961                 _this.treelistsort = this;
962                 new Xcls_treelistmodel( _this );
963                 var child_2 = new Xcls_TreeListRowSorter35( _this );
964                 child_2.ref();
965                 this.el = new Gtk.SortListModel( _this.treelistmodel.el, child_2.el );
966
967                 // my vars (dec)
968
969                 // set gobject values
970
971                 // init method
972
973                 {
974                         //this.el.set_sorter(new Gtk.TreeListRowSorter(_this.treeview.el.sorter));
975                 }
976             }
977
978             // user defined functions
979         }
980         public class Xcls_treelistmodel : Object
981         {
982             public Gtk.TreeListModel el;
983             private ValaProjectSettingsPopover  _this;
984
985
986                 // my vars (def)
987
988             // ctor
989             public Xcls_treelistmodel(ValaProjectSettingsPopover _owner )
990             {
991                 _this = _owner;
992                 _this.treelistmodel = this;
993                 new Xcls_treemodel( _this );
994                 this.el = new Gtk.TreeListModel( _this.treemodel.el, false, true, (item) => {
995         //GLib.debug("liststore got %s", item.get_type().name());
996         return ((JsRender.JsRender)item).childfiles;
997 }  );
998
999                 // my vars (dec)
1000
1001                 // set gobject values
1002             }
1003
1004             // user defined functions
1005         }
1006         public class Xcls_treemodel : Object
1007         {
1008             public GLib.ListStore el;
1009             private ValaProjectSettingsPopover  _this;
1010
1011
1012                 // my vars (def)
1013
1014             // ctor
1015             public Xcls_treemodel(ValaProjectSettingsPopover _owner )
1016             {
1017                 _this = _owner;
1018                 _this.treemodel = this;
1019                 this.el = new GLib.ListStore( typeof(JsRender.JsRender) );
1020
1021                 // my vars (dec)
1022
1023                 // set gobject values
1024             }
1025
1026             // user defined functions
1027         }
1028
1029
1030         public class Xcls_TreeListRowSorter35 : Object
1031         {
1032             public Gtk.TreeListRowSorter el;
1033             private ValaProjectSettingsPopover  _this;
1034
1035
1036                 // my vars (def)
1037
1038             // ctor
1039             public Xcls_TreeListRowSorter35(ValaProjectSettingsPopover _owner )
1040             {
1041                 _this = _owner;
1042                 var child_1 = new Xcls_StringSorter36( _this );
1043                 child_1.ref();
1044                 this.el = new Gtk.TreeListRowSorter( child_1.el );
1045
1046                 // my vars (dec)
1047
1048                 // set gobject values
1049             }
1050
1051             // user defined functions
1052         }
1053         public class Xcls_StringSorter36 : Object
1054         {
1055             public Gtk.StringSorter el;
1056             private ValaProjectSettingsPopover  _this;
1057
1058
1059                 // my vars (def)
1060
1061             // ctor
1062             public Xcls_StringSorter36(ValaProjectSettingsPopover _owner )
1063             {
1064                 _this = _owner;
1065                 var child_1 = new Xcls_PropertyExpression37( _this );
1066                 child_1.ref();
1067                 this.el = new Gtk.StringSorter( child_1.el );
1068
1069                 // my vars (dec)
1070
1071                 // set gobject values
1072             }
1073
1074             // user defined functions
1075         }
1076         public class Xcls_PropertyExpression37 : Object
1077         {
1078             public Gtk.PropertyExpression el;
1079             private ValaProjectSettingsPopover  _this;
1080
1081
1082                 // my vars (def)
1083
1084             // ctor
1085             public Xcls_PropertyExpression37(ValaProjectSettingsPopover _owner )
1086             {
1087                 _this = _owner;
1088                 this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender), null, "name" );
1089
1090                 // my vars (dec)
1091
1092                 // set gobject values
1093             }
1094
1095             // user defined functions
1096         }
1097
1098
1099
1100
1101         public class Xcls_CustomFilter38 : Object
1102         {
1103             public Gtk.CustomFilter el;
1104             private ValaProjectSettingsPopover  _this;
1105
1106
1107                 // my vars (def)
1108
1109             // ctor
1110             public Xcls_CustomFilter38(ValaProjectSettingsPopover _owner )
1111             {
1112                 _this = _owner;
1113                 this.el = new Gtk.CustomFilter( (item) => { 
1114         
1115         var tr = ((Gtk.TreeListRow)item).get_item();
1116         //GLib.debug("filter %s", tr.get_type().name());
1117         var j =  (JsRender.JsRender) tr;
1118         if (j.xtype == "Gtk") {
1119                 return true;
1120         }
1121         if (j.xtype != "Dir") {
1122                 return j.path.has_suffix(".vala") ||  j.path.has_suffix(".c");
1123         }
1124         // dirs..
1125          
1126         for (var i =0 ; i < j.childfiles.n_items; i++) {
1127                 var f = (JsRender.JsRender) j.childfiles.get_item(i);
1128                 if (f.xtype == "Gtk") {
1129                         return true;
1130                 }
1131                 if (f.path.has_suffix(".vala") ||  f.path.has_suffix(".c")) {
1132                         return true;
1133                 }
1134         }
1135         return false;
1136
1137 } );
1138
1139                 // my vars (dec)
1140
1141                 // set gobject values
1142             }
1143
1144             // user defined functions
1145         }
1146
1147
1148
1149         public class Xcls_name : Object
1150         {
1151             public Gtk.ColumnViewColumn el;
1152             private ValaProjectSettingsPopover  _this;
1153
1154
1155                 // my vars (def)
1156
1157             // ctor
1158             public Xcls_name(ValaProjectSettingsPopover _owner )
1159             {
1160                 _this = _owner;
1161                 _this.name = this;
1162                 var child_1 = new Xcls_SignalListItemFactory40( _this );
1163                 child_1.ref();
1164                 this.el = new Gtk.ColumnViewColumn( "Other Files", child_1.el );
1165
1166                 // my vars (dec)
1167
1168                 // set gobject values
1169                 this.el.id = "name";
1170                 this.el.expand = true;
1171                 this.el.resizable = true;
1172
1173                 // init method
1174
1175                 {
1176                          this.el.set_sorter(  new Gtk.StringSorter(
1177                                 new Gtk.PropertyExpression(typeof(JsRender.JsRender), null, "name")
1178                         ));
1179                                 ;
1180                                 
1181                 }
1182             }
1183
1184             // user defined functions
1185         }
1186         public class Xcls_SignalListItemFactory40 : Object
1187         {
1188             public Gtk.SignalListItemFactory el;
1189             private ValaProjectSettingsPopover  _this;
1190
1191
1192                 // my vars (def)
1193
1194             // ctor
1195             public Xcls_SignalListItemFactory40(ValaProjectSettingsPopover _owner )
1196             {
1197                 _this = _owner;
1198                 this.el = new Gtk.SignalListItemFactory();
1199
1200                 // my vars (dec)
1201
1202                 // set gobject values
1203
1204                 //listeners
1205                 this.el.setup.connect( (listitem) => {
1206                         
1207                         var expand = new Gtk.TreeExpander();
1208                          
1209                         expand.set_indent_for_depth(true);
1210                         expand.set_indent_for_icon(true);
1211                          
1212                         var lbl = new Gtk.Label("");
1213                         lbl.use_markup = true;
1214                         
1215                         
1216                         lbl.justify = Gtk.Justification.LEFT;
1217                         lbl.xalign = 0;
1218                 
1219                  
1220                         expand.set_child(lbl);
1221                         ((Gtk.ListItem)listitem).set_child(expand);
1222                         ((Gtk.ListItem)listitem).activatable = false;
1223                 });
1224                 this.el.bind.connect( (listitem) => {
1225                          //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
1226                         
1227                         
1228                         
1229                         //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
1230                         var expand = (Gtk.TreeExpander)  ((Gtk.ListItem)listitem).get_child();
1231                           
1232                  
1233                         var lbl = (Gtk.Label) expand.child;
1234                         
1235                          if (lbl.label != "") { // do not update
1236                                 return;
1237                         }
1238                         
1239                 
1240                         var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
1241                         var jr = (JsRender.JsRender) lr.get_item();
1242                         //GLib.debug("change  %s to %s", lbl.label, np.name);
1243                         lbl.label = jr.name; // for dir's we could hsow the sub path..
1244                         lbl.tooltip_markup = jr.path;
1245                          
1246                     expand.set_hide_expander(  jr.childfiles.n_items < 1);
1247                         expand.set_list_row(lr);
1248                  
1249                    expand.set_hide_expander(  jr.xtype != "Dir" );
1250                          expand.set_list_row(lr);
1251                  
1252                         // bind image...
1253                         
1254                 });
1255             }
1256
1257             // user defined functions
1258         }
1259
1260
1261         public class Xcls_ColumnViewColumn41 : Object
1262         {
1263             public Gtk.ColumnViewColumn el;
1264             private ValaProjectSettingsPopover  _this;
1265
1266
1267                 // my vars (def)
1268
1269             // ctor
1270             public Xcls_ColumnViewColumn41(ValaProjectSettingsPopover _owner )
1271             {
1272                 _this = _owner;
1273                 var child_1 = new Xcls_SignalListItemFactory42( _this );
1274                 child_1.ref();
1275                 this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
1276
1277                 // my vars (dec)
1278
1279                 // set gobject values
1280             }
1281
1282             // user defined functions
1283         }
1284         public class Xcls_SignalListItemFactory42 : Object
1285         {
1286             public Gtk.SignalListItemFactory el;
1287             private ValaProjectSettingsPopover  _this;
1288
1289
1290                 // my vars (def)
1291
1292             // ctor
1293             public Xcls_SignalListItemFactory42(ValaProjectSettingsPopover _owner )
1294             {
1295                 _this = _owner;
1296                 this.el = new Gtk.SignalListItemFactory();
1297
1298                 // my vars (dec)
1299
1300                 // set gobject values
1301
1302                 //listeners
1303                 this.el.setup.connect( (listitem) => {
1304                 
1305                         var btn = new Gtk.CheckButton();
1306                  
1307                         ((Gtk.ListItem)listitem).set_child(btn);
1308                         
1309                         btn.toggled.connect(() =>  {
1310                          
1311                                 var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
1312                                 var jr = (JsRender.JsRender) lr.get_item();
1313                                 jr.compile_group_selected = btn.active;
1314                                 
1315                                 
1316                         });
1317                 });
1318                 this.el.bind.connect( (listitem) => {
1319                          //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
1320                         
1321                         
1322                         
1323                         //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
1324                         var btn = (Gtk.CheckButton)  ((Gtk.ListItem)listitem).get_child();
1325                           
1326                  
1327                         var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
1328                         var jr = (JsRender.JsRender) lr.get_item();
1329                         //GLib.debug("change  %s to %s", lbl.label, np.name);
1330                 
1331                         
1332                          
1333                         jr.bind_property("compile_group_selected",
1334                                     btn, "active",
1335                                    GLib.BindingFlags.SYNC_CREATE); 
1336                         // bind image...
1337                         
1338                 });
1339             }
1340
1341             // user defined functions
1342         }
1343
1344
1345
1346
1347
1348         public class Xcls_Box43 : Object
1349         {
1350             public Gtk.Box el;
1351             private ValaProjectSettingsPopover  _this;
1352
1353
1354                 // my vars (def)
1355
1356             // ctor
1357             public Xcls_Box43(ValaProjectSettingsPopover _owner )
1358             {
1359                 _this = _owner;
1360                 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
1361
1362                 // my vars (dec)
1363
1364                 // set gobject values
1365                 var child_1 = new Xcls_Box44( _this );
1366                 child_1.ref();
1367                 this.el.append( child_1.el );
1368                 var child_2 = new Xcls_ScrolledWindow47( _this );
1369                 child_2.ref();
1370                 this.el.append( child_2.el );
1371                 new Xcls_set_vboxb( _this );
1372                 this.el.append( _this.set_vboxb.el );
1373             }
1374
1375             // user defined functions
1376         }
1377         public class Xcls_Box44 : Object
1378         {
1379             public Gtk.Box el;
1380             private ValaProjectSettingsPopover  _this;
1381
1382
1383                 // my vars (def)
1384
1385             // ctor
1386             public Xcls_Box44(ValaProjectSettingsPopover _owner )
1387             {
1388                 _this = _owner;
1389                 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
1390
1391                 // my vars (dec)
1392
1393                 // set gobject values
1394                 this.el.hexpand = true;
1395                 var child_1 = new Xcls_Button45( _this );
1396                 child_1.ref();
1397                 this.el.append( child_1.el );
1398                 var child_2 = new Xcls_Button46( _this );
1399                 child_2.ref();
1400                 this.el.append( child_2.el );
1401             }
1402
1403             // user defined functions
1404         }
1405         public class Xcls_Button45 : Object
1406         {
1407             public Gtk.Button el;
1408             private ValaProjectSettingsPopover  _this;
1409
1410
1411                 // my vars (def)
1412
1413             // ctor
1414             public Xcls_Button45(ValaProjectSettingsPopover _owner )
1415             {
1416                 _this = _owner;
1417                 this.el = new Gtk.Button();
1418
1419                 // my vars (dec)
1420
1421                 // set gobject values
1422                 this.el.hexpand = true;
1423                 this.el.label = "Add Compile Target";
1424
1425                 //listeners
1426                 this.el.clicked.connect( ()  => {
1427                     
1428                        if (_this.project.compilegroups.has_key("NEW GROUP")) {
1429                         return;
1430                     }
1431                     var cg = new Project.GtkValaSettings(_this.project, "NEW GROUP");
1432                     _this.project.compilegroups.set(cg.name, cg);
1433                      _this.project.loadTargetsIntoStore(_this.target_model.el);
1434                      //  select it.. ?? should load it??
1435                      for(var i =0;i < _this.target_model.el.n_items; i++) {
1436                         var ncg = (Project.GtkValaSettings) _this.target_model.el.get_item(i);
1437                         if (ncg.name == cg.name) {
1438                                 _this.target_sel.el.selected = i;
1439                                 _this.target_sel.selectTarget(cg);
1440                                 break;
1441                                 }
1442                         } 
1443                         
1444                         
1445                          
1446                 });
1447             }
1448
1449             // user defined functions
1450         }
1451
1452         public class Xcls_Button46 : Object
1453         {
1454             public Gtk.Button el;
1455             private ValaProjectSettingsPopover  _this;
1456
1457
1458                 // my vars (def)
1459
1460             // ctor
1461             public Xcls_Button46(ValaProjectSettingsPopover _owner )
1462             {
1463                 _this = _owner;
1464                 this.el = new Gtk.Button();
1465
1466                 // my vars (dec)
1467
1468                 // set gobject values
1469                 this.el.hexpand = true;
1470                 this.el.label = "Remove Target";
1471
1472                 //listeners
1473                 this.el.clicked.connect( ()  => {
1474                     // load the new values.
1475                         if (_this.target_sel.el.selected == Gtk.INVALID_LIST_POSITION) {
1476                                 GLib.debug("nothing selected");
1477                                 return;
1478                         }
1479                         
1480                          
1481                         // add the directory..
1482                         var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(_this.target_sel.el.selected);
1483                          
1484                          
1485                         GLib.debug("remove: %s\n", cg.name);
1486                         if (!_this.project.compilegroups.unset(cg.name)) {
1487                                 GLib.debug("remove failed");
1488                         }
1489                         _this.project.loadTargetsIntoStore(_this.target_model.el);
1490                 });
1491             }
1492
1493             // user defined functions
1494         }
1495
1496
1497         public class Xcls_ScrolledWindow47 : Object
1498         {
1499             public Gtk.ScrolledWindow el;
1500             private ValaProjectSettingsPopover  _this;
1501
1502
1503                 // my vars (def)
1504
1505             // ctor
1506             public Xcls_ScrolledWindow47(ValaProjectSettingsPopover _owner )
1507             {
1508                 _this = _owner;
1509                 this.el = new Gtk.ScrolledWindow();
1510
1511                 // my vars (dec)
1512
1513                 // set gobject values
1514                 this.el.vexpand = true;
1515                 var child_1 = new Xcls_ColumnView48( _this );
1516                 this.el.child = child_1.el;
1517
1518                 // init method
1519
1520                 {  
1521                 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
1522                 
1523                 }
1524             }
1525
1526             // user defined functions
1527         }
1528         public class Xcls_ColumnView48 : Object
1529         {
1530             public Gtk.ColumnView el;
1531             private ValaProjectSettingsPopover  _this;
1532
1533
1534                 // my vars (def)
1535
1536             // ctor
1537             public Xcls_ColumnView48(ValaProjectSettingsPopover _owner )
1538             {
1539                 _this = _owner;
1540                 new Xcls_target_sel( _this );
1541                 this.el = new Gtk.ColumnView( _this.target_sel.el );
1542
1543                 // my vars (dec)
1544
1545                 // set gobject values
1546                 var child_2 = new Xcls_ColumnViewColumn51( _this );
1547                 child_2.ref();
1548                 this.el.append_column ( child_2.el  );
1549             }
1550
1551             // user defined functions
1552         }
1553         public class Xcls_target_sel : Object
1554         {
1555             public Gtk.SingleSelection el;
1556             private ValaProjectSettingsPopover  _this;
1557
1558
1559                 // my vars (def)
1560
1561             // ctor
1562             public Xcls_target_sel(ValaProjectSettingsPopover _owner )
1563             {
1564                 _this = _owner;
1565                 _this.target_sel = this;
1566                 new Xcls_target_model( _this );
1567                 this.el = new Gtk.SingleSelection( _this.target_model.el );
1568
1569                 // my vars (dec)
1570
1571                 // set gobject values
1572
1573                 //listeners
1574                 this.el.selection_changed.connect( (position, n_items) => {
1575                 
1576                          
1577                         // load the new values.
1578                         if (this.el.selected == Gtk.INVALID_LIST_POSITION) {
1579                                 this.selectTarget(null);
1580                                 return;
1581                         }
1582                         this.selectTarget(null);
1583                         
1584                  
1585                 
1586                         // add the directory..
1587                         var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(this.el.selected);
1588                         
1589                         this.selectTarget(cg);
1590                    
1591                 });
1592             }
1593
1594             // user defined functions
1595             public void selectTarget (Project.GtkValaSettings? cg) {
1596             // load the new values
1597                  _this.selected_target = cg;  
1598                  _this.project.active_cg = cg;
1599                  
1600             
1601                 if (cg == null) {
1602                          
1603                         _this.set_vbox.el.hide();       
1604                         _this.set_vboxb.el.hide();      
1605                         return;
1606                 }
1607                 
1608                 
1609                 _this.set_vbox.el.show();
1610                 _this.set_vboxb.el.show();
1611                 // add the directory..
1612              
1613                  
1614                  GLib.debug("loading dirs into project list");
1615                  cg.loading_ui = true;
1616                  
1617             
1618                   _this.treeview.el.set_model(new Gtk.SingleSelection(null));
1619                   _this.project.loadDirsIntoStore(_this.treemodel.el);
1620                   _this.treeview.el.set_model(_this.treeselmodel.el);
1621                   
1622                  cg.loading_ui = false;
1623                  GLib.debug("Set name to %s", cg.name);
1624                  
1625                 _this.build_name.el.buffer.set_text(cg.name.data);
1626              
1627              
1628                 _this.build_execute_args.el.buffer.set_text(  cg.execute_args.data );
1629             
1630              
1631             }
1632         }
1633         public class Xcls_target_model : Object
1634         {
1635             public GLib.ListStore el;
1636             private ValaProjectSettingsPopover  _this;
1637
1638
1639                 // my vars (def)
1640
1641             // ctor
1642             public Xcls_target_model(ValaProjectSettingsPopover _owner )
1643             {
1644                 _this = _owner;
1645                 _this.target_model = this;
1646                 this.el = new GLib.ListStore( typeof(Project.GtkValaSettings) );
1647
1648                 // my vars (dec)
1649
1650                 // set gobject values
1651             }
1652
1653             // user defined functions
1654         }
1655
1656
1657         public class Xcls_ColumnViewColumn51 : Object
1658         {
1659             public Gtk.ColumnViewColumn el;
1660             private ValaProjectSettingsPopover  _this;
1661
1662
1663                 // my vars (def)
1664
1665             // ctor
1666             public Xcls_ColumnViewColumn51(ValaProjectSettingsPopover _owner )
1667             {
1668                 _this = _owner;
1669                 var child_1 = new Xcls_SignalListItemFactory52( _this );
1670                 child_1.ref();
1671                 this.el = new Gtk.ColumnViewColumn( "Build Target", child_1.el );
1672
1673                 // my vars (dec)
1674
1675                 // set gobject values
1676                 this.el.expand = true;
1677             }
1678
1679             // user defined functions
1680         }
1681         public class Xcls_SignalListItemFactory52 : Object
1682         {
1683             public Gtk.SignalListItemFactory el;
1684             private ValaProjectSettingsPopover  _this;
1685
1686
1687                 // my vars (def)
1688
1689             // ctor
1690             public Xcls_SignalListItemFactory52(ValaProjectSettingsPopover _owner )
1691             {
1692                 _this = _owner;
1693                 this.el = new Gtk.SignalListItemFactory();
1694
1695                 // my vars (dec)
1696
1697                 // set gobject values
1698
1699                 //listeners
1700                 this.el.setup.connect( (item) => {
1701                         //var j = (JsRender.JsRender) item;
1702                         var gi = (Gtk.ListItem)item;
1703                          
1704                         var lbl = new Gtk.Label("");
1705                         lbl.halign = Gtk.Align.START;
1706                         gi.set_child(lbl);
1707                 
1708                 
1709                 
1710                 });
1711                 this.el.bind.connect( (listitem) => {
1712                  
1713                         var lbl = (Gtk.Box)  ((Gtk.ListItem)listitem).get_child();
1714                            
1715                         var item = (Project.GtkValaSettings)  ((Gtk.ListItem)listitem).get_item();
1716                 
1717                         item.bind_property("name",
1718                                 lbl, "label",
1719                            GLib.BindingFlags.SYNC_CREATE);
1720                 
1721                           
1722                 });
1723             }
1724
1725             // user defined functions
1726         }
1727
1728
1729
1730
1731         public class Xcls_set_vboxb : Object
1732         {
1733             public Gtk.Box el;
1734             private ValaProjectSettingsPopover  _this;
1735
1736
1737                 // my vars (def)
1738
1739             // ctor
1740             public Xcls_set_vboxb(ValaProjectSettingsPopover _owner )
1741             {
1742                 _this = _owner;
1743                 _this.set_vboxb = this;
1744                 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
1745
1746                 // my vars (dec)
1747
1748                 // set gobject values
1749                 var child_1 = new Xcls_Label54( _this );
1750                 child_1.ref();
1751                 this.el.append( child_1.el );
1752                 new Xcls_build_name( _this );
1753                 this.el.append( _this.build_name.el );
1754                 var child_3 = new Xcls_Label56( _this );
1755                 child_3.ref();
1756                 this.el.append( child_3.el );
1757                 new Xcls_build_execute_args( _this );
1758                 this.el.append( _this.build_execute_args.el );
1759             }
1760
1761             // user defined functions
1762         }
1763         public class Xcls_Label54 : Object
1764         {
1765             public Gtk.Label el;
1766             private ValaProjectSettingsPopover  _this;
1767
1768
1769                 // my vars (def)
1770
1771             // ctor
1772             public Xcls_Label54(ValaProjectSettingsPopover _owner )
1773             {
1774                 _this = _owner;
1775                 this.el = new Gtk.Label( "Build Name (executable name)" );
1776
1777                 // my vars (dec)
1778
1779                 // set gobject values
1780             }
1781
1782             // user defined functions
1783         }
1784
1785         public class Xcls_build_name : Object
1786         {
1787             public Gtk.Entry el;
1788             private ValaProjectSettingsPopover  _this;
1789
1790
1791                 // my vars (def)
1792
1793             // ctor
1794             public Xcls_build_name(ValaProjectSettingsPopover _owner )
1795             {
1796                 _this = _owner;
1797                 _this.build_name = this;
1798                 this.el = new Gtk.Entry();
1799
1800                 // my vars (dec)
1801
1802                 // set gobject values
1803
1804                 //listeners
1805                 this.el.changed.connect( ()  => {
1806                         if (_this.selected_target == null) {
1807                                 return;
1808                         }
1809                         var name = this.el.text;
1810                         // name ischanging.. probably always..
1811                         if (_this.selected_target.name != name) {
1812                                 _this.project.compilegroups.unset(_this.selected_target.name);
1813                                 _this.project.compilegroups.set(name, _this.selected_target);
1814                         }
1815                 
1816                         _this.selected_target.name = this.el.buffer.text;
1817                 });
1818             }
1819
1820             // user defined functions
1821         }
1822
1823         public class Xcls_Label56 : Object
1824         {
1825             public Gtk.Label el;
1826             private ValaProjectSettingsPopover  _this;
1827
1828
1829                 // my vars (def)
1830
1831             // ctor
1832             public Xcls_Label56(ValaProjectSettingsPopover _owner )
1833             {
1834                 _this = _owner;
1835                 this.el = new Gtk.Label( "test argments - when run after a build" );
1836
1837                 // my vars (dec)
1838
1839                 // set gobject values
1840             }
1841
1842             // user defined functions
1843         }
1844
1845         public class Xcls_build_execute_args : Object
1846         {
1847             public Gtk.Entry el;
1848             private ValaProjectSettingsPopover  _this;
1849
1850
1851                 // my vars (def)
1852
1853             // ctor
1854             public Xcls_build_execute_args(ValaProjectSettingsPopover _owner )
1855             {
1856                 _this = _owner;
1857                 _this.build_execute_args = this;
1858                 this.el = new Gtk.Entry();
1859
1860                 // my vars (dec)
1861
1862                 // set gobject values
1863                 this.el.placeholder_text = "eg.  -f somefile -g ";
1864
1865                 //listeners
1866                 this.el.changed.connect( () => {
1867                     if (_this.selected_target == null) {
1868                         return;
1869                     }
1870                     _this.selected_target.execute_args = this.el.buffer.text;
1871                     
1872                 });
1873             }
1874
1875             // user defined functions
1876         }
1877
1878
1879
1880
1881
1882         public class Xcls_Box58 : Object
1883         {
1884             public Gtk.Box el;
1885             private ValaProjectSettingsPopover  _this;
1886
1887
1888                 // my vars (def)
1889
1890             // ctor
1891             public Xcls_Box58(ValaProjectSettingsPopover _owner )
1892             {
1893                 _this = _owner;
1894                 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
1895
1896                 // my vars (dec)
1897
1898                 // set gobject values
1899                 this.el.margin_end = 4;
1900                 this.el.margin_start = 4;
1901                 this.el.hexpand = true;
1902                 this.el.margin_bottom = 4;
1903                 this.el.margin_top = 4;
1904                 var child_1 = new Xcls_Button59( _this );
1905                 child_1.ref();
1906                 this.el.append( child_1.el );
1907                 var child_2 = new Xcls_Label60( _this );
1908                 child_2.ref();
1909                 this.el.append( child_2.el );
1910                 new Xcls_save_btn( _this );
1911                 this.el.append( _this.save_btn.el );
1912             }
1913
1914             // user defined functions
1915         }
1916         public class Xcls_Button59 : Object
1917         {
1918             public Gtk.Button el;
1919             private ValaProjectSettingsPopover  _this;
1920
1921
1922                 // my vars (def)
1923
1924             // ctor
1925             public Xcls_Button59(ValaProjectSettingsPopover _owner )
1926             {
1927                 _this = _owner;
1928                 this.el = new Gtk.Button();
1929
1930                 // my vars (dec)
1931
1932                 // set gobject values
1933                 this.el.label = "Cancel";
1934
1935                 //listeners
1936                 this.el.clicked.connect( () => { 
1937                 
1938                   _this.done = true;
1939                     _this.el.hide(); 
1940                 });
1941             }
1942
1943             // user defined functions
1944         }
1945
1946         public class Xcls_Label60 : Object
1947         {
1948             public Gtk.Label el;
1949             private ValaProjectSettingsPopover  _this;
1950
1951
1952                 // my vars (def)
1953
1954             // ctor
1955             public Xcls_Label60(ValaProjectSettingsPopover _owner )
1956             {
1957                 _this = _owner;
1958                 this.el = new Gtk.Label( "" );
1959
1960                 // my vars (dec)
1961
1962                 // set gobject values
1963                 this.el.hexpand = true;
1964             }
1965
1966             // user defined functions
1967         }
1968
1969         public class Xcls_save_btn : Object
1970         {
1971             public Gtk.Button el;
1972             private ValaProjectSettingsPopover  _this;
1973
1974
1975                 // my vars (def)
1976
1977             // ctor
1978             public Xcls_save_btn(ValaProjectSettingsPopover _owner )
1979             {
1980                 _this = _owner;
1981                 _this.save_btn = this;
1982                 this.el = new Gtk.Button();
1983
1984                 // my vars (dec)
1985
1986                 // set gobject values
1987                 this.el.css_classes = { "suggested-action" };
1988                 this.el.label = "Save";
1989
1990                 //listeners
1991                 this.el.clicked.connect( ( ) =>  { 
1992                 
1993                  
1994                 _this.project.save(); 
1995                  
1996                         // what about .js ?
1997                 _this.done = true;
1998                 _this.el.hide();
1999                 if (_this.doneObj != null) {
2000                         _this.doneObj.call(_this.project);
2001                 }
2002                  
2003                    
2004                 });
2005             }
2006
2007             // user defined functions
2008         }
2009
2010
2011
2012     }