src/Builder4/MainWindow.bjs
[app.Builder.js] / src / Builder4 / MainWindow.vala
1 static Xcls_MainWindow  _MainWindow;
2
3 public class Xcls_MainWindow : Object 
4 {
5     public Gtk.Window el;
6     private Xcls_MainWindow  _this;
7
8     public static Xcls_MainWindow singleton()
9     {
10         if (_MainWindow == null) {
11             _MainWindow= new Xcls_MainWindow();
12         }
13         return _MainWindow;
14     }
15     public Xcls_headerbar headerbar;
16     public Xcls_topbarmenu topbarmenu;
17     public Xcls_vbox vbox;
18     public Xcls_mainpane mainpane;
19     public Xcls_leftpane leftpane;
20     public Xcls_editpane editpane;
21     public Xcls_tree tree;
22     public Xcls_props props;
23     public Xcls_clutterembed clutterembed;
24     public Xcls_rooview rooview;
25     public Xcls_objectview objectview;
26     public Xcls_codeeditview codeeditview;
27     public Xcls_addpropsview addpropsview;
28     public Xcls_projecteditview projecteditview;
29     public Xcls_buttonlayout buttonlayout;
30     public Xcls_backbutton backbutton;
31     public Xcls_projectbutton projectbutton;
32     public Xcls_editfilebutton editfilebutton;
33     public Xcls_projecteditbutton projecteditbutton;
34     public Xcls_objectshowbutton objectshowbutton;
35     public Xcls_addpropbutton addpropbutton;
36     public Xcls_addlistenerbutton addlistenerbutton;
37     public Xcls_addprojectbutton addprojectbutton;
38     public Xcls_addfilebutton addfilebutton;
39     public Xcls_delprojectbutton delprojectbutton;
40     public Xcls_statusbar statusbar;
41     public Xcls_statusbar_errors statusbar_errors;
42     public Xcls_statusbar_warnings statusbar_warnings;
43     public Xcls_statusbar_depricated statusbar_depricated;
44
45         // my vars (def)
46     public Project.Project project;
47     public string title;
48     public int no_windows;
49     public WindowState windowstate;
50
51     // ctor 
52     public Xcls_MainWindow()
53     {
54         _this = this;
55         this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
56
57         // my vars (dec)
58         this.project = null;
59         this.title = "Application Builder";
60         this.no_windows = 1;
61         this.windowstate = null;
62
63         // set gobject values
64         this.el.border_width = 0;
65         this.el.default_height = 500;
66         this.el.default_width = 800;
67         var child_0 = new Xcls_headerbar( _this );
68         child_0.ref();
69         this.el.set_titlebar (  child_0.el  );
70         var child_1 = new Xcls_vbox( _this );
71         child_1.ref();
72         this.el.add (  child_1.el  );
73
74         // init method 
75
76         //this.el.show_all();
77
78         // listeners 
79         this.el.delete_event.connect( (   event) => {
80             return false;
81         });
82         this.el.destroy.connect( () =>  {
83          Xcls_MainWindow.singleton().no_windows--;
84          
85          Resources.singleton().disconnect(_this.statusbar.handler_id);
86          
87          
88          if (Xcls_MainWindow.singleton().no_windows < 1) {
89         
90              Gtk.main_quit();
91          }
92         });
93         this.el.show.connect( ( ) => {
94             // hide the file editing..
95            
96             //this.hideViewEditing();
97             _this.statusbar.el.hide();
98              _this.statusbar_errors.el.hide();
99             _this.statusbar_warnings.el.hide();
100             _this.statusbar_depricated.el.hide();
101             
102           
103             Resources.singleton().checkResources();
104         
105         });
106     }
107
108     // user defined functions 
109     public        void initChildren () {
110         // this needs putting in a better place..
111         this.windowstate = new WindowState(this);
112          
113     
114         //w.el.show_all();
115         var tl = new Clutter.Timeline(6000);
116         tl.set_repeat_count(-1);
117         tl.start();
118         tl.ref();
119     
120         
121     
122     
123     
124     }
125     public             void show () {
126        
127         this.el.show_all();
128     
129     }
130     public             void setTitle (string str) {
131         this.headerbar.el.set_title(this.title + " - " + str);
132     }
133     public class Xcls_headerbar : Object 
134     {
135         public Gtk.HeaderBar el;
136         private Xcls_MainWindow  _this;
137
138
139             // my vars (def)
140
141         // ctor 
142         public Xcls_headerbar(Xcls_MainWindow _owner )
143         {
144             _this = _owner;
145             _this.headerbar = this;
146             this.el = new Gtk.HeaderBar();
147
148             // my vars (dec)
149
150             // set gobject values
151             this.el.title = "Application Builder";
152             this.el.show_close_button = true;
153             var child_0 = new Xcls_HBox3( _this );
154             child_0.ref();
155             this.el.pack_start (  child_0.el  );
156         }
157
158         // user defined functions 
159     }
160     public class Xcls_HBox3 : Object 
161     {
162         public Gtk.HBox el;
163         private Xcls_MainWindow  _this;
164
165
166             // my vars (def)
167
168         // ctor 
169         public Xcls_HBox3(Xcls_MainWindow _owner )
170         {
171             _this = _owner;
172             this.el = new Gtk.HBox( true, 0 );
173
174             // my vars (dec)
175
176             // set gobject values
177             var child_0 = new Xcls_MenuButton4( _this );
178             child_0.ref();
179             this.el.add (  child_0.el  );
180         }
181
182         // user defined functions 
183     }
184     public class Xcls_MenuButton4 : Object 
185     {
186         public Gtk.MenuButton el;
187         private Xcls_MainWindow  _this;
188
189
190             // my vars (def)
191
192         // ctor 
193         public Xcls_MenuButton4(Xcls_MainWindow _owner )
194         {
195             _this = _owner;
196             this.el = new Gtk.MenuButton();
197
198             // my vars (dec)
199
200             // set gobject values
201             this.el.use_popover = false;
202             var child_0 = new Xcls_topbarmenu( _this );
203             child_0.ref();
204             this.el.set_popup (  child_0.el  );
205             var child_1 = new Xcls_Image10( _this );
206             child_1.ref();
207             this.el.set_image (  child_1.el  );
208         }
209
210         // user defined functions 
211     }
212     public class Xcls_topbarmenu : Object 
213     {
214         public Gtk.Menu el;
215         private Xcls_MainWindow  _this;
216
217
218             // my vars (def)
219
220         // ctor 
221         public Xcls_topbarmenu(Xcls_MainWindow _owner )
222         {
223             _this = _owner;
224             _this.topbarmenu = this;
225             this.el = new Gtk.Menu();
226
227             // my vars (dec)
228
229             // set gobject values
230             var child_0 = new Xcls_MenuItem6( _this );
231             child_0.ref();
232             this.el.append (  child_0.el  );
233             var child_1 = new Xcls_SeparatorMenuItem7( _this );
234             child_1.ref();
235             this.el.append (  child_1.el  );
236             var child_2 = new Xcls_MenuItem8( _this );
237             child_2.ref();
238             this.el.append (  child_2.el  );
239             var child_3 = new Xcls_MenuItem9( _this );
240             child_3.ref();
241             this.el.append (  child_3.el  );
242
243             // init method 
244
245             {
246                 this.el.show_all();
247             }
248         }
249
250         // user defined functions 
251     }
252     public class Xcls_MenuItem6 : Object 
253     {
254         public Gtk.MenuItem el;
255         private Xcls_MainWindow  _this;
256
257
258             // my vars (def)
259
260         // ctor 
261         public Xcls_MenuItem6(Xcls_MainWindow _owner )
262         {
263             _this = _owner;
264             this.el = new Gtk.MenuItem();
265
266             // my vars (dec)
267
268             // set gobject values
269             this.el.label = "Open a new Window";
270
271             // listeners 
272             this.el.activate.connect( ( ) => {
273                     Xcls_MainWindow.singleton().no_windows++;
274                     var w = new Xcls_MainWindow();
275                     w.ref();
276             
277                     w.el.show_all();
278                     w.initChildren();
279                     w.windowstate.switchState(WindowState.State.FILES);
280             });
281         }
282
283         // user defined functions 
284     }
285     public class Xcls_SeparatorMenuItem7 : Object 
286     {
287         public Gtk.SeparatorMenuItem el;
288         private Xcls_MainWindow  _this;
289
290
291             // my vars (def)
292
293         // ctor 
294         public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
295         {
296             _this = _owner;
297             this.el = new Gtk.SeparatorMenuItem();
298
299             // my vars (dec)
300
301             // set gobject values
302         }
303
304         // user defined functions 
305     }
306     public class Xcls_MenuItem8 : Object 
307     {
308         public Gtk.MenuItem el;
309         private Xcls_MainWindow  _this;
310
311
312             // my vars (def)
313
314         // ctor 
315         public Xcls_MenuItem8(Xcls_MainWindow _owner )
316         {
317             _this = _owner;
318             this.el = new Gtk.MenuItem();
319
320             // my vars (dec)
321
322             // set gobject values
323             this.el.label = "Download updated Resources";
324
325             // listeners 
326             this.el.activate.connect( ( ) => {
327                      Resources.singleton().fetchStart();
328             });
329         }
330
331         // user defined functions 
332     }
333     public class Xcls_MenuItem9 : Object 
334     {
335         public Gtk.MenuItem el;
336         private Xcls_MainWindow  _this;
337
338
339             // my vars (def)
340
341         // ctor 
342         public Xcls_MenuItem9(Xcls_MainWindow _owner )
343         {
344             _this = _owner;
345             this.el = new Gtk.MenuItem();
346
347             // my vars (dec)
348
349             // set gobject values
350             this.el.label = "About the Builder";
351
352             // listeners 
353             this.el.activate.connect( () => {
354                 About.singleton().el.show();
355                 });
356         }
357
358         // user defined functions 
359     }
360     public class Xcls_Image10 : Object 
361     {
362         public Gtk.Image el;
363         private Xcls_MainWindow  _this;
364
365
366             // my vars (def)
367
368         // ctor 
369         public Xcls_Image10(Xcls_MainWindow _owner )
370         {
371             _this = _owner;
372             this.el = new Gtk.Image();
373
374             // my vars (dec)
375
376             // set gobject values
377             this.el.icon_name = "help-about";
378         }
379
380         // user defined functions 
381     }
382     public class Xcls_vbox : Object 
383     {
384         public Gtk.VBox el;
385         private Xcls_MainWindow  _this;
386
387
388             // my vars (def)
389
390         // ctor 
391         public Xcls_vbox(Xcls_MainWindow _owner )
392         {
393             _this = _owner;
394             _this.vbox = this;
395             this.el = new Gtk.VBox( false, 0 );
396
397             // my vars (dec)
398
399             // set gobject values
400             var child_0 = new Xcls_mainpane( _this );
401             child_0.ref();
402             this.el.pack_start (  child_0.el , true,true,0 );
403             var child_1 = new Xcls_HBox66( _this );
404             child_1.ref();
405             this.el.pack_end (  child_1.el , false,true,0 );
406         }
407
408         // user defined functions 
409     }
410     public class Xcls_mainpane : Object 
411     {
412         public Gtk.HPaned el;
413         private Xcls_MainWindow  _this;
414
415
416             // my vars (def)
417         public int lastWidth;
418
419         // ctor 
420         public Xcls_mainpane(Xcls_MainWindow _owner )
421         {
422             _this = _owner;
423             _this.mainpane = this;
424             this.el = new Gtk.HPaned();
425
426             // my vars (dec)
427             this.lastWidth = 0;
428
429             // set gobject values
430             this.el.position = 400;
431             var child_0 = new Xcls_leftpane( _this );
432             child_0.ref();
433             this.el.add1 (  child_0.el  );
434             var child_1 = new Xcls_VBox17( _this );
435             child_1.ref();
436             this.el.add2 (  child_1.el  );
437         }
438
439         // user defined functions 
440     }
441     public class Xcls_leftpane : Object 
442     {
443         public Gtk.VBox el;
444         private Xcls_MainWindow  _this;
445
446
447             // my vars (def)
448
449         // ctor 
450         public Xcls_leftpane(Xcls_MainWindow _owner )
451         {
452             _this = _owner;
453             _this.leftpane = this;
454             this.el = new Gtk.VBox( true, 0 );
455
456             // my vars (dec)
457
458             // set gobject values
459             var child_0 = new Xcls_editpane( _this );
460             child_0.ref();
461             this.el.pack_start (  child_0.el , false,true,0 );
462         }
463
464         // user defined functions 
465     }
466     public class Xcls_editpane : Object 
467     {
468         public Gtk.VPaned el;
469         private Xcls_MainWindow  _this;
470
471
472             // my vars (def)
473
474         // ctor 
475         public Xcls_editpane(Xcls_MainWindow _owner )
476         {
477             _this = _owner;
478             _this.editpane = this;
479             this.el = new Gtk.VPaned();
480
481             // my vars (dec)
482
483             // set gobject values
484             var child_0 = new Xcls_tree( _this );
485             child_0.ref();
486             this.el.add1 (  child_0.el  );
487             var child_1 = new Xcls_props( _this );
488             child_1.ref();
489             this.el.add2 (  child_1.el  );
490         }
491
492         // user defined functions 
493     }
494     public class Xcls_tree : Object 
495     {
496         public Gtk.VBox el;
497         private Xcls_MainWindow  _this;
498
499
500             // my vars (def)
501
502         // ctor 
503         public Xcls_tree(Xcls_MainWindow _owner )
504         {
505             _this = _owner;
506             _this.tree = this;
507             this.el = new Gtk.VBox( true, 0 );
508
509             // my vars (dec)
510
511             // set gobject values
512         }
513
514         // user defined functions 
515     }
516     public class Xcls_props : Object 
517     {
518         public Gtk.VBox el;
519         private Xcls_MainWindow  _this;
520
521
522             // my vars (def)
523
524         // ctor 
525         public Xcls_props(Xcls_MainWindow _owner )
526         {
527             _this = _owner;
528             _this.props = this;
529             this.el = new Gtk.VBox( true, 0 );
530
531             // my vars (dec)
532
533             // set gobject values
534         }
535
536         // user defined functions 
537     }
538     public class Xcls_VBox17 : Object 
539     {
540         public Gtk.VBox el;
541         private Xcls_MainWindow  _this;
542
543
544             // my vars (def)
545
546         // ctor 
547         public Xcls_VBox17(Xcls_MainWindow _owner )
548         {
549             _this = _owner;
550             this.el = new Gtk.VBox( true, 0 );
551
552             // my vars (dec)
553
554             // set gobject values
555             var child_0 = new Xcls_clutterembed( _this );
556             child_0.ref();
557             this.el.pack_start (  child_0.el , true,true,0 );
558         }
559
560         // user defined functions 
561     }
562     public class Xcls_clutterembed : Object 
563     {
564         public GtkClutter.Embed el;
565         private Xcls_MainWindow  _this;
566
567
568             // my vars (def)
569
570         // ctor 
571         public Xcls_clutterembed(Xcls_MainWindow _owner )
572         {
573             _this = _owner;
574             _this.clutterembed = this;
575             this.el = new GtkClutter.Embed();
576
577             // my vars (dec)
578
579             // set gobject values
580             var child_0 = new Xcls_rooview( _this );
581             child_0.ref();
582             this.el.get_stage().add_child (  child_0.el  );
583             var child_1 = new Xcls_objectview( _this );
584             child_1.ref();
585             this.el.get_stage().add_child (  child_1.el  );
586             var child_2 = new Xcls_codeeditview( _this );
587             child_2.ref();
588             this.el.get_stage().add_child (  child_2.el  );
589             var child_3 = new Xcls_addpropsview( _this );
590             child_3.ref();
591             this.el.get_stage().add_child (  child_3.el  );
592             var child_4 = new Xcls_projecteditview( _this );
593             child_4.ref();
594             this.el.get_stage().add_child (  child_4.el  );
595             var child_5 = new Xcls_buttonlayout( _this );
596             child_5.ref();
597             this.el.get_stage().add_child (  child_5.el  );
598
599             // init method 
600
601             var stage = this.el.get_stage();
602                 stage.set_background_color(  Clutter.Color.from_string("#000"));
603
604             // listeners 
605             this.el.size_allocate.connect( (  alloc) => {
606                 if (_this.windowstate == null) {
607                     return;
608                 }
609                 _this.windowstate.resizeCanvas(); 
610                     
611             });
612         }
613
614         // user defined functions 
615     }
616     public class Xcls_rooview : Object 
617     {
618         public GtkClutter.Actor el;
619         private Xcls_MainWindow  _this;
620
621
622             // my vars (def)
623
624         // ctor 
625         public Xcls_rooview(Xcls_MainWindow _owner )
626         {
627             _this = _owner;
628             _this.rooview = this;
629             this.el = new GtkClutter.Actor();
630
631             // my vars (dec)
632
633             // set gobject values
634
635             // init method 
636
637             {
638                
639                
640                 this.el.add_constraint(
641                     new Clutter.AlignConstraint(
642                         _this.clutterembed.el.get_stage(), 
643                         Clutter.AlignAxis.X_AXIS,
644                         1.0f
645                     )
646                 );
647                     
648                 //this.el.set_position(100,100);
649                 this.el.set_pivot_point(1.0f,1.0f);
650                 
651                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
652                         _this.clutterembed.el.get_stage().height);
653                         
654             }
655         }
656
657         // user defined functions 
658     }
659     public class Xcls_objectview : Object 
660     {
661         public GtkClutter.Actor el;
662         private Xcls_MainWindow  _this;
663
664
665             // my vars (def)
666
667         // ctor 
668         public Xcls_objectview(Xcls_MainWindow _owner )
669         {
670             _this = _owner;
671             _this.objectview = this;
672             this.el = new GtkClutter.Actor();
673
674             // my vars (dec)
675
676             // set gobject values
677
678             // init method 
679
680             {
681                
682                /*
683                 this.el.add_constraint(
684                     new Clutter.AlignConstraint(
685                         _this.clutterembed.el.get_stage(), 
686                         Clutter.AlignAxis.X_AXIS,
687                         0.0f
688                     )
689                 );
690                 */
691                 this.el.fixed_x = 50.0f;
692                 this.el.fixed_y = 0.0f;
693                 //this.el.set_position(100,100);
694                 this.el.set_pivot_point(0.0f,0.0f);
695                 this.el.set_scale(0.0f,1.0f);
696                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
697                         _this.clutterembed.el.get_stage().height);
698                         
699             }
700         }
701
702         // user defined functions 
703     }
704     public class Xcls_codeeditview : Object 
705     {
706         public GtkClutter.Actor el;
707         private Xcls_MainWindow  _this;
708
709
710             // my vars (def)
711
712         // ctor 
713         public Xcls_codeeditview(Xcls_MainWindow _owner )
714         {
715             _this = _owner;
716             _this.codeeditview = this;
717             this.el = new GtkClutter.Actor();
718
719             // my vars (dec)
720
721             // set gobject values
722
723             // init method 
724
725             {
726                
727                /*
728                 this.el.add_constraint(
729                     new Clutter.AlignConstraint(
730                         _this.clutterembed.el.get_stage(), 
731                         Clutter.AlignAxis.X_AXIS,
732                         0.0f
733                     )
734                 );
735                 */
736                 this.el.fixed_x = 50.0f;
737                 this.el.fixed_y = 0.0f;
738                 //this.el.set_position(100,100);
739                 this.el.set_pivot_point(0.0f,0.0f);
740                 this.el.set_scale(0.0f,1.0f);
741                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
742                         _this.clutterembed.el.get_stage().height);
743                         
744             }
745         }
746
747         // user defined functions 
748     }
749     public class Xcls_addpropsview : Object 
750     {
751         public GtkClutter.Actor el;
752         private Xcls_MainWindow  _this;
753
754
755             // my vars (def)
756
757         // ctor 
758         public Xcls_addpropsview(Xcls_MainWindow _owner )
759         {
760             _this = _owner;
761             _this.addpropsview = this;
762             this.el = new GtkClutter.Actor();
763
764             // my vars (dec)
765
766             // set gobject values
767
768             // init method 
769
770             {
771                
772                /*
773                 this.el.add_constraint(
774                     new Clutter.AlignConstraint(
775                         _this.clutterembed.el.get_stage(), 
776                         Clutter.AlignAxis.X_AXIS,
777                         0.0f
778                     )
779                 );
780                 */
781                 this.el.fixed_x = 50.0f;
782                 this.el.fixed_y = 0.0f;
783                 //this.el.set_position(100,100);
784                 this.el.set_pivot_point(0.0f,0.0f);
785                 this.el.set_scale(0.0f,1.0f);
786                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
787                         _this.clutterembed.el.get_stage().height);
788                         
789             }
790         }
791
792         // user defined functions 
793     }
794     public class Xcls_projecteditview : Object 
795     {
796         public GtkClutter.Actor el;
797         private Xcls_MainWindow  _this;
798
799
800             // my vars (def)
801
802         // ctor 
803         public Xcls_projecteditview(Xcls_MainWindow _owner )
804         {
805             _this = _owner;
806             _this.projecteditview = this;
807             this.el = new GtkClutter.Actor();
808
809             // my vars (dec)
810
811             // set gobject values
812
813             // init method 
814
815             {
816                
817                
818                 this.el.add_constraint(
819                     new Clutter.AlignConstraint(
820                         _this.clutterembed.el.get_stage(), 
821                         Clutter.AlignAxis.X_AXIS,
822                         1.0f
823                     )
824                 );
825                     
826                 //this.el.set_position(100,100);
827                 this.el.set_pivot_point(0.0f,0.0f);
828                 this.el.set_scale(1.0f,0.0f);
829                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
830                         _this.clutterembed.el.get_stage().height /2);
831                         
832             }
833         }
834
835         // user defined functions 
836     }
837     public class Xcls_buttonlayout : Object 
838     {
839         public Clutter.Actor el;
840         private Xcls_MainWindow  _this;
841
842
843             // my vars (def)
844
845         // ctor 
846         public Xcls_buttonlayout(Xcls_MainWindow _owner )
847         {
848             _this = _owner;
849             _this.buttonlayout = this;
850             this.el = new Clutter.Actor();
851
852             // my vars (dec)
853
854             // set gobject values
855             var child_0 = new Xcls_BoxLayout25( _this );
856             child_0.ref();
857             this.el.layout_manager = child_0.el;
858             var child_1 = new Xcls_backbutton( _this );
859             child_1.ref();
860             this.el.add_child (  child_1.el  );
861             var child_2 = new Xcls_projectbutton( _this );
862             child_2.ref();
863             this.el.add_child (  child_2.el  );
864             var child_3 = new Xcls_editfilebutton( _this );
865             child_3.ref();
866             this.el.add_child (  child_3.el  );
867             var child_4 = new Xcls_projecteditbutton( _this );
868             child_4.ref();
869             this.el.add_child (  child_4.el  );
870             var child_5 = new Xcls_objectshowbutton( _this );
871             child_5.ref();
872             this.el.add_child (  child_5.el  );
873             var child_6 = new Xcls_addpropbutton( _this );
874             child_6.ref();
875             this.el.add_child (  child_6.el  );
876             var child_7 = new Xcls_addlistenerbutton( _this );
877             child_7.ref();
878             this.el.add_child (  child_7.el  );
879             var child_8 = new Xcls_addprojectbutton( _this );
880             child_8.ref();
881             this.el.add_child (  child_8.el  );
882             var child_9 = new Xcls_addfilebutton( _this );
883             child_9.ref();
884             this.el.add_child (  child_9.el  );
885             var child_10 = new Xcls_delprojectbutton( _this );
886             child_10.ref();
887             this.el.add_child (  child_10.el  );
888
889             // init method 
890
891             {
892                 
893                 this.el.add_constraint(
894                     new Clutter.AlignConstraint(
895                         _this.clutterembed.el.get_stage(), 
896                         Clutter.AlignAxis.X_AXIS,
897                         0.0f
898                     )
899                 );
900                  
901                 
902                 //this.el.set_position(100,100);
903                 this.el.set_pivot_point(0.5f,0.5f);
904                  this.el.set_size(50,
905                        _this.clutterembed.el.get_stage().height);
906                  
907             }
908         }
909
910         // user defined functions 
911     }
912     public class Xcls_BoxLayout25 : Object 
913     {
914         public Clutter.BoxLayout el;
915         private Xcls_MainWindow  _this;
916
917
918             // my vars (def)
919
920         // ctor 
921         public Xcls_BoxLayout25(Xcls_MainWindow _owner )
922         {
923             _this = _owner;
924             this.el = new Clutter.BoxLayout();
925
926             // my vars (dec)
927
928             // set gobject values
929             this.el.orientation = Clutter.Orientation.VERTICAL;
930         }
931
932         // user defined functions 
933     }
934     public class Xcls_backbutton : Object 
935     {
936         public Clutter.Actor el;
937         private Xcls_MainWindow  _this;
938
939
940             // my vars (def)
941
942         // ctor 
943         public Xcls_backbutton(Xcls_MainWindow _owner )
944         {
945             _this = _owner;
946             _this.backbutton = this;
947             this.el = new Clutter.Actor();
948
949             // my vars (dec)
950
951             // set gobject values
952             var child_0 = new Xcls_Actor27( _this );
953             child_0.ref();
954             this.el.add_child (  child_0.el  );
955
956             // init method 
957
958             this.el.set_size(50,50);
959         }
960
961         // user defined functions 
962     }
963     public class Xcls_Actor27 : Object 
964     {
965         public GtkClutter.Actor el;
966         private Xcls_MainWindow  _this;
967
968
969             // my vars (def)
970
971         // ctor 
972         public Xcls_Actor27(Xcls_MainWindow _owner )
973         {
974             _this = _owner;
975             this.el = new GtkClutter.Actor();
976
977             // my vars (dec)
978
979             // set gobject values
980             var child_0 = new Xcls_Button28( _this );
981             child_0.ref();
982
983             // init method 
984
985             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
986         }
987
988         // user defined functions 
989     }
990     public class Xcls_Button28 : Object 
991     {
992         public Gtk.Button el;
993         private Xcls_MainWindow  _this;
994
995
996             // my vars (def)
997
998         // ctor 
999         public Xcls_Button28(Xcls_MainWindow _owner )
1000         {
1001             _this = _owner;
1002             this.el = new Gtk.Button();
1003
1004             // my vars (dec)
1005
1006             // set gobject values
1007             this.el.width_request = 50;
1008             this.el.height_request = 50;
1009             this.el.tooltip_text = "Back";
1010             var child_0 = new Xcls_Image29( _this );
1011             child_0.ref();
1012             this.el.set_image (  child_0.el  );
1013
1014             // listeners 
1015             this.el.clicked.connect( ( ) => {
1016               
1017                 _this.windowstate.switchState(WindowState.State.PREVIEW);
1018                 
1019             
1020             });
1021         }
1022
1023         // user defined functions 
1024     }
1025     public class Xcls_Image29 : Object 
1026     {
1027         public Gtk.Image el;
1028         private Xcls_MainWindow  _this;
1029
1030
1031             // my vars (def)
1032
1033         // ctor 
1034         public Xcls_Image29(Xcls_MainWindow _owner )
1035         {
1036             _this = _owner;
1037             this.el = new Gtk.Image();
1038
1039             // my vars (dec)
1040
1041             // set gobject values
1042             this.el.icon_name = "go-previous";
1043         }
1044
1045         // user defined functions 
1046     }
1047     public class Xcls_projectbutton : Object 
1048     {
1049         public Clutter.Actor el;
1050         private Xcls_MainWindow  _this;
1051
1052
1053             // my vars (def)
1054
1055         // ctor 
1056         public Xcls_projectbutton(Xcls_MainWindow _owner )
1057         {
1058             _this = _owner;
1059             _this.projectbutton = this;
1060             this.el = new Clutter.Actor();
1061
1062             // my vars (dec)
1063
1064             // set gobject values
1065             var child_0 = new Xcls_Actor31( _this );
1066             child_0.ref();
1067             this.el.add_child (  child_0.el  );
1068
1069             // init method 
1070
1071             this.el.set_size(50,50);
1072         }
1073
1074         // user defined functions 
1075     }
1076     public class Xcls_Actor31 : Object 
1077     {
1078         public GtkClutter.Actor el;
1079         private Xcls_MainWindow  _this;
1080
1081
1082             // my vars (def)
1083
1084         // ctor 
1085         public Xcls_Actor31(Xcls_MainWindow _owner )
1086         {
1087             _this = _owner;
1088             this.el = new GtkClutter.Actor();
1089
1090             // my vars (dec)
1091
1092             // set gobject values
1093             var child_0 = new Xcls_Button32( _this );
1094             child_0.ref();
1095
1096             // init method 
1097
1098             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1099         }
1100
1101         // user defined functions 
1102     }
1103     public class Xcls_Button32 : Object 
1104     {
1105         public Gtk.Button el;
1106         private Xcls_MainWindow  _this;
1107
1108
1109             // my vars (def)
1110
1111         // ctor 
1112         public Xcls_Button32(Xcls_MainWindow _owner )
1113         {
1114             _this = _owner;
1115             this.el = new Gtk.Button();
1116
1117             // my vars (dec)
1118
1119             // set gobject values
1120             this.el.width_request = 50;
1121             this.el.height_request = 50;
1122             var child_0 = new Xcls_Image33( _this );
1123             child_0.ref();
1124             this.el.set_image (  child_0.el  );
1125
1126             // listeners 
1127             this.el.clicked.connect( ( ) => {
1128                _this.windowstate.switchState(WindowState.State.FILES);
1129                   
1130             
1131             });
1132         }
1133
1134         // user defined functions 
1135     }
1136     public class Xcls_Image33 : Object 
1137     {
1138         public Gtk.Image el;
1139         private Xcls_MainWindow  _this;
1140
1141
1142             // my vars (def)
1143
1144         // ctor 
1145         public Xcls_Image33(Xcls_MainWindow _owner )
1146         {
1147             _this = _owner;
1148             this.el = new Gtk.Image();
1149
1150             // my vars (dec)
1151
1152             // set gobject values
1153             this.el.icon_name = "document-open";
1154         }
1155
1156         // user defined functions 
1157     }
1158     public class Xcls_editfilebutton : Object 
1159     {
1160         public Clutter.Actor el;
1161         private Xcls_MainWindow  _this;
1162
1163
1164             // my vars (def)
1165
1166         // ctor 
1167         public Xcls_editfilebutton(Xcls_MainWindow _owner )
1168         {
1169             _this = _owner;
1170             _this.editfilebutton = this;
1171             this.el = new Clutter.Actor();
1172
1173             // my vars (dec)
1174
1175             // set gobject values
1176             var child_0 = new Xcls_Actor35( _this );
1177             child_0.ref();
1178             this.el.add_child (  child_0.el  );
1179
1180             // init method 
1181
1182             this.el.set_size(50.0f,50.0f);
1183         }
1184
1185         // user defined functions 
1186     }
1187     public class Xcls_Actor35 : Object 
1188     {
1189         public GtkClutter.Actor el;
1190         private Xcls_MainWindow  _this;
1191
1192
1193             // my vars (def)
1194
1195         // ctor 
1196         public Xcls_Actor35(Xcls_MainWindow _owner )
1197         {
1198             _this = _owner;
1199             this.el = new GtkClutter.Actor();
1200
1201             // my vars (dec)
1202
1203             // set gobject values
1204             var child_0 = new Xcls_Button36( _this );
1205             child_0.ref();
1206
1207             // init method 
1208
1209             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1210         }
1211
1212         // user defined functions 
1213     }
1214     public class Xcls_Button36 : Object 
1215     {
1216         public Gtk.Button el;
1217         private Xcls_MainWindow  _this;
1218
1219
1220             // my vars (def)
1221
1222         // ctor 
1223         public Xcls_Button36(Xcls_MainWindow _owner )
1224         {
1225             _this = _owner;
1226             this.el = new Gtk.Button();
1227
1228             // my vars (dec)
1229
1230             // set gobject values
1231             this.el.width_request = 50;
1232             this.el.height_request = 50;
1233             this.el.tooltip_text = "File Details";
1234             var child_0 = new Xcls_Image37( _this );
1235             child_0.ref();
1236             this.el.set_image (  child_0.el  );
1237
1238             // listeners 
1239             this.el.clicked.connect( ( ) => {
1240               
1241                 // create a new file in project..
1242                 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1243                     return  ;
1244                 }
1245                  _this.windowstate.file_details.show(
1246                     _this.windowstate.left_tree.model.file, this.el
1247                 );
1248                  
1249                 return  ;    
1250             
1251             
1252             });
1253         }
1254
1255         // user defined functions 
1256     }
1257     public class Xcls_Image37 : Object 
1258     {
1259         public Gtk.Image el;
1260         private Xcls_MainWindow  _this;
1261
1262
1263             // my vars (def)
1264
1265         // ctor 
1266         public Xcls_Image37(Xcls_MainWindow _owner )
1267         {
1268             _this = _owner;
1269             this.el = new Gtk.Image();
1270
1271             // my vars (dec)
1272
1273             // set gobject values
1274             this.el.icon_name = "document-properties";
1275         }
1276
1277         // user defined functions 
1278     }
1279     public class Xcls_projecteditbutton : Object 
1280     {
1281         public Clutter.Actor el;
1282         private Xcls_MainWindow  _this;
1283
1284
1285             // my vars (def)
1286
1287         // ctor 
1288         public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1289         {
1290             _this = _owner;
1291             _this.projecteditbutton = this;
1292             this.el = new Clutter.Actor();
1293
1294             // my vars (dec)
1295
1296             // set gobject values
1297             var child_0 = new Xcls_Actor39( _this );
1298             child_0.ref();
1299             this.el.add_child (  child_0.el  );
1300
1301             // init method 
1302
1303             this.el.set_size(50,50);
1304         }
1305
1306         // user defined functions 
1307     }
1308     public class Xcls_Actor39 : Object 
1309     {
1310         public GtkClutter.Actor el;
1311         private Xcls_MainWindow  _this;
1312
1313
1314             // my vars (def)
1315
1316         // ctor 
1317         public Xcls_Actor39(Xcls_MainWindow _owner )
1318         {
1319             _this = _owner;
1320             this.el = new GtkClutter.Actor();
1321
1322             // my vars (dec)
1323
1324             // set gobject values
1325             var child_0 = new Xcls_Button40( _this );
1326             child_0.ref();
1327
1328             // init method 
1329
1330             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1331         }
1332
1333         // user defined functions 
1334     }
1335     public class Xcls_Button40 : Object 
1336     {
1337         public Gtk.Button el;
1338         private Xcls_MainWindow  _this;
1339
1340
1341             // my vars (def)
1342
1343         // ctor 
1344         public Xcls_Button40(Xcls_MainWindow _owner )
1345         {
1346             _this = _owner;
1347             this.el = new Gtk.Button();
1348
1349             // my vars (dec)
1350
1351             // set gobject values
1352             this.el.width_request = 50;
1353             this.el.height_request = 50;
1354             this.el.tooltip_text = "Project Details";
1355             var child_0 = new Xcls_Image41( _this );
1356             child_0.ref();
1357             this.el.set_image (  child_0.el  );
1358
1359             // listeners 
1360             this.el.clicked.connect( ( ) => {
1361                  _this.windowstate.switchState(WindowState.State.PROJECT);
1362                
1363             
1364             
1365             });
1366         }
1367
1368         // user defined functions 
1369     }
1370     public class Xcls_Image41 : Object 
1371     {
1372         public Gtk.Image el;
1373         private Xcls_MainWindow  _this;
1374
1375
1376             // my vars (def)
1377
1378         // ctor 
1379         public Xcls_Image41(Xcls_MainWindow _owner )
1380         {
1381             _this = _owner;
1382             this.el = new Gtk.Image();
1383
1384             // my vars (dec)
1385
1386             // set gobject values
1387             this.el.icon_name = "emblem-system";
1388         }
1389
1390         // user defined functions 
1391     }
1392     public class Xcls_objectshowbutton : Object 
1393     {
1394         public Clutter.Actor el;
1395         private Xcls_MainWindow  _this;
1396
1397
1398             // my vars (def)
1399
1400         // ctor 
1401         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1402         {
1403             _this = _owner;
1404             _this.objectshowbutton = this;
1405             this.el = new Clutter.Actor();
1406
1407             // my vars (dec)
1408
1409             // set gobject values
1410             var child_0 = new Xcls_Actor43( _this );
1411             child_0.ref();
1412             this.el.add_child (  child_0.el  );
1413
1414             // init method 
1415
1416             this.el.set_size(50,50);
1417
1418             // listeners 
1419             this.el.enter_event.connect( (  event)  => {
1420                 this.el.background_color = new Clutter.Color.from_string("#333");
1421                     return false;
1422             });
1423             this.el.leave_event.connect( (  event)  => {
1424                 this.el.background_color = new Clutter.Color.from_string("#000");
1425                 return false;
1426             });
1427         }
1428
1429         // user defined functions 
1430     }
1431     public class Xcls_Actor43 : Object 
1432     {
1433         public GtkClutter.Actor el;
1434         private Xcls_MainWindow  _this;
1435
1436
1437             // my vars (def)
1438
1439         // ctor 
1440         public Xcls_Actor43(Xcls_MainWindow _owner )
1441         {
1442             _this = _owner;
1443             this.el = new GtkClutter.Actor();
1444
1445             // my vars (dec)
1446
1447             // set gobject values
1448             var child_0 = new Xcls_Button44( _this );
1449             child_0.ref();
1450
1451             // init method 
1452
1453             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1454         }
1455
1456         // user defined functions 
1457     }
1458     public class Xcls_Button44 : Object 
1459     {
1460         public Gtk.Button el;
1461         private Xcls_MainWindow  _this;
1462
1463
1464             // my vars (def)
1465
1466         // ctor 
1467         public Xcls_Button44(Xcls_MainWindow _owner )
1468         {
1469             _this = _owner;
1470             this.el = new Gtk.Button();
1471
1472             // my vars (dec)
1473
1474             // set gobject values
1475             this.el.width_request = 50;
1476             this.el.height_request = 50;
1477             this.el.tooltip_text = "Add Child Element";
1478             var child_0 = new Xcls_Image45( _this );
1479             child_0.ref();
1480             this.el.set_image (  child_0.el  );
1481
1482             // listeners 
1483             this.el.clicked.connect( ( ) => {
1484                 
1485                  _this.windowstate.switchState(WindowState.State.OBJECT);
1486               
1487              
1488             });
1489         }
1490
1491         // user defined functions 
1492     }
1493     public class Xcls_Image45 : Object 
1494     {
1495         public Gtk.Image el;
1496         private Xcls_MainWindow  _this;
1497
1498
1499             // my vars (def)
1500
1501         // ctor 
1502         public Xcls_Image45(Xcls_MainWindow _owner )
1503         {
1504             _this = _owner;
1505             this.el = new Gtk.Image();
1506
1507             // my vars (dec)
1508
1509             // set gobject values
1510             this.el.icon_name = "list-add";
1511         }
1512
1513         // user defined functions 
1514     }
1515     public class Xcls_addpropbutton : Object 
1516     {
1517         public Clutter.Actor el;
1518         private Xcls_MainWindow  _this;
1519
1520
1521             // my vars (def)
1522
1523         // ctor 
1524         public Xcls_addpropbutton(Xcls_MainWindow _owner )
1525         {
1526             _this = _owner;
1527             _this.addpropbutton = this;
1528             this.el = new Clutter.Actor();
1529
1530             // my vars (dec)
1531
1532             // set gobject values
1533             var child_0 = new Xcls_Actor47( _this );
1534             child_0.ref();
1535             this.el.add_child (  child_0.el  );
1536
1537             // init method 
1538
1539             this.el.set_size(50,50);
1540         }
1541
1542         // user defined functions 
1543     }
1544     public class Xcls_Actor47 : Object 
1545     {
1546         public GtkClutter.Actor el;
1547         private Xcls_MainWindow  _this;
1548
1549
1550             // my vars (def)
1551
1552         // ctor 
1553         public Xcls_Actor47(Xcls_MainWindow _owner )
1554         {
1555             _this = _owner;
1556             this.el = new GtkClutter.Actor();
1557
1558             // my vars (dec)
1559
1560             // set gobject values
1561             var child_0 = new Xcls_Button48( _this );
1562             child_0.ref();
1563
1564             // init method 
1565
1566             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1567         }
1568
1569         // user defined functions 
1570     }
1571     public class Xcls_Button48 : Object 
1572     {
1573         public Gtk.Button el;
1574         private Xcls_MainWindow  _this;
1575
1576
1577             // my vars (def)
1578
1579         // ctor 
1580         public Xcls_Button48(Xcls_MainWindow _owner )
1581         {
1582             _this = _owner;
1583             this.el = new Gtk.Button();
1584
1585             // my vars (dec)
1586
1587             // set gobject values
1588             this.el.width_request = 50;
1589             this.el.height_request = 50;
1590             this.el.tooltip_text = "Add Property";
1591             var child_0 = new Xcls_Image49( _this );
1592             child_0.ref();
1593             this.el.set_image (  child_0.el  );
1594
1595             // listeners 
1596             this.el.clicked.connect( ( ) => {
1597                 
1598                  _this.windowstate.switchState(WindowState.State.PROP);
1599              
1600             
1601             });
1602         }
1603
1604         // user defined functions 
1605     }
1606     public class Xcls_Image49 : Object 
1607     {
1608         public Gtk.Image el;
1609         private Xcls_MainWindow  _this;
1610
1611
1612             // my vars (def)
1613
1614         // ctor 
1615         public Xcls_Image49(Xcls_MainWindow _owner )
1616         {
1617             _this = _owner;
1618             this.el = new Gtk.Image();
1619
1620             // my vars (dec)
1621
1622             // set gobject values
1623             this.el.icon_name = "format-justify-left";
1624         }
1625
1626         // user defined functions 
1627     }
1628     public class Xcls_addlistenerbutton : Object 
1629     {
1630         public Clutter.Actor el;
1631         private Xcls_MainWindow  _this;
1632
1633
1634             // my vars (def)
1635
1636         // ctor 
1637         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1638         {
1639             _this = _owner;
1640             _this.addlistenerbutton = this;
1641             this.el = new Clutter.Actor();
1642
1643             // my vars (dec)
1644
1645             // set gobject values
1646             var child_0 = new Xcls_Actor51( _this );
1647             child_0.ref();
1648             this.el.add_child (  child_0.el  );
1649
1650             // init method 
1651
1652             this.el.set_size(50,50);
1653         }
1654
1655         // user defined functions 
1656     }
1657     public class Xcls_Actor51 : Object 
1658     {
1659         public GtkClutter.Actor el;
1660         private Xcls_MainWindow  _this;
1661
1662
1663             // my vars (def)
1664
1665         // ctor 
1666         public Xcls_Actor51(Xcls_MainWindow _owner )
1667         {
1668             _this = _owner;
1669             this.el = new GtkClutter.Actor();
1670
1671             // my vars (dec)
1672
1673             // set gobject values
1674             var child_0 = new Xcls_Button52( _this );
1675             child_0.ref();
1676
1677             // init method 
1678
1679             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1680         }
1681
1682         // user defined functions 
1683     }
1684     public class Xcls_Button52 : Object 
1685     {
1686         public Gtk.Button el;
1687         private Xcls_MainWindow  _this;
1688
1689
1690             // my vars (def)
1691
1692         // ctor 
1693         public Xcls_Button52(Xcls_MainWindow _owner )
1694         {
1695             _this = _owner;
1696             this.el = new Gtk.Button();
1697
1698             // my vars (dec)
1699
1700             // set gobject values
1701             this.el.width_request = 50;
1702             this.el.height_request = 50;
1703             this.el.tooltip_text = "Add Event Code";
1704             var child_0 = new Xcls_Image53( _this );
1705             child_0.ref();
1706             this.el.set_image (  child_0.el  );
1707
1708             // listeners 
1709             this.el.clicked.connect( ( ) => {
1710                 
1711                 _this.windowstate.switchState(WindowState.State.LISTENER);
1712               
1713             
1714             
1715             });
1716         }
1717
1718         // user defined functions 
1719     }
1720     public class Xcls_Image53 : Object 
1721     {
1722         public Gtk.Image el;
1723         private Xcls_MainWindow  _this;
1724
1725
1726             // my vars (def)
1727
1728         // ctor 
1729         public Xcls_Image53(Xcls_MainWindow _owner )
1730         {
1731             _this = _owner;
1732             this.el = new Gtk.Image();
1733
1734             // my vars (dec)
1735
1736             // set gobject values
1737             this.el.icon_name = "appointment-new";
1738         }
1739
1740         // user defined functions 
1741     }
1742     public class Xcls_addprojectbutton : Object 
1743     {
1744         public Clutter.Actor el;
1745         private Xcls_MainWindow  _this;
1746
1747
1748             // my vars (def)
1749
1750         // ctor 
1751         public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1752         {
1753             _this = _owner;
1754             _this.addprojectbutton = this;
1755             this.el = new Clutter.Actor();
1756
1757             // my vars (dec)
1758
1759             // set gobject values
1760             var child_0 = new Xcls_Actor55( _this );
1761             child_0.ref();
1762             this.el.add_child (  child_0.el  );
1763
1764             // init method 
1765
1766             this.el.set_size(50.0f,50.0f);
1767         }
1768
1769         // user defined functions 
1770     }
1771     public class Xcls_Actor55 : Object 
1772     {
1773         public GtkClutter.Actor el;
1774         private Xcls_MainWindow  _this;
1775
1776
1777             // my vars (def)
1778
1779         // ctor 
1780         public Xcls_Actor55(Xcls_MainWindow _owner )
1781         {
1782             _this = _owner;
1783             this.el = new GtkClutter.Actor();
1784
1785             // my vars (dec)
1786
1787             // set gobject values
1788             var child_0 = new Xcls_Button56( _this );
1789             child_0.ref();
1790
1791             // init method 
1792
1793             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1794         }
1795
1796         // user defined functions 
1797     }
1798     public class Xcls_Button56 : Object 
1799     {
1800         public Gtk.Button el;
1801         private Xcls_MainWindow  _this;
1802
1803
1804             // my vars (def)
1805
1806         // ctor 
1807         public Xcls_Button56(Xcls_MainWindow _owner )
1808         {
1809             _this = _owner;
1810             this.el = new Gtk.Button();
1811
1812             // my vars (dec)
1813
1814             // set gobject values
1815             this.el.width_request = 50;
1816             this.el.height_request = 50;
1817             this.el.tooltip_text = "New\nProj.";
1818             var child_0 = new Xcls_Image57( _this );
1819             child_0.ref();
1820             this.el.set_image (  child_0.el  );
1821
1822             // listeners 
1823             this.el.clicked.connect( ( ) => {
1824               
1825                 // create a new file in project..
1826                 //Xcls_DialogNewComponent.singleton().show(
1827                var  pe =     Xcls_EditProject.singleton();
1828                 pe.el.set_transient_for(_this.el);
1829                 pe.el.set_modal(true);   
1830                
1831                 var p  = pe.show();
1832             
1833                 if (p == null) {
1834                     return;
1835                 }
1836                 
1837                 
1838                 _this.windowstate.left_projects.is_loaded = false;    
1839                 _this.windowstate.left_projects.load();
1840                 _this.windowstate.left_projects.selectProject(p);
1841                 return  ;    
1842             
1843             
1844             });
1845         }
1846
1847         // user defined functions 
1848     }
1849     public class Xcls_Image57 : Object 
1850     {
1851         public Gtk.Image el;
1852         private Xcls_MainWindow  _this;
1853
1854
1855             // my vars (def)
1856
1857         // ctor 
1858         public Xcls_Image57(Xcls_MainWindow _owner )
1859         {
1860             _this = _owner;
1861             this.el = new Gtk.Image();
1862
1863             // my vars (dec)
1864
1865             // set gobject values
1866             this.el.icon_name = "folder-new";
1867         }
1868
1869         // user defined functions 
1870     }
1871     public class Xcls_addfilebutton : Object 
1872     {
1873         public Clutter.Actor el;
1874         private Xcls_MainWindow  _this;
1875
1876
1877             // my vars (def)
1878
1879         // ctor 
1880         public Xcls_addfilebutton(Xcls_MainWindow _owner )
1881         {
1882             _this = _owner;
1883             _this.addfilebutton = this;
1884             this.el = new Clutter.Actor();
1885
1886             // my vars (dec)
1887
1888             // set gobject values
1889             var child_0 = new Xcls_Actor59( _this );
1890             child_0.ref();
1891             this.el.add_child (  child_0.el  );
1892
1893             // init method 
1894
1895             this.el.set_size(50.0f,50.0f);
1896         }
1897
1898         // user defined functions 
1899     }
1900     public class Xcls_Actor59 : Object 
1901     {
1902         public GtkClutter.Actor el;
1903         private Xcls_MainWindow  _this;
1904
1905
1906             // my vars (def)
1907
1908         // ctor 
1909         public Xcls_Actor59(Xcls_MainWindow _owner )
1910         {
1911             _this = _owner;
1912             this.el = new GtkClutter.Actor();
1913
1914             // my vars (dec)
1915
1916             // set gobject values
1917             var child_0 = new Xcls_Button60( _this );
1918             child_0.ref();
1919
1920             // init method 
1921
1922             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1923         }
1924
1925         // user defined functions 
1926     }
1927     public class Xcls_Button60 : Object 
1928     {
1929         public Gtk.Button el;
1930         private Xcls_MainWindow  _this;
1931
1932
1933             // my vars (def)
1934
1935         // ctor 
1936         public Xcls_Button60(Xcls_MainWindow _owner )
1937         {
1938             _this = _owner;
1939             this.el = new Gtk.Button();
1940
1941             // my vars (dec)
1942
1943             // set gobject values
1944             this.el.width_request = 50;
1945             this.el.height_request = 50;
1946             this.el.tooltip_text = "Add File";
1947             var child_0 = new Xcls_Image61( _this );
1948             child_0.ref();
1949             this.el.set_image (  child_0.el  );
1950
1951             // listeners 
1952             this.el.clicked.connect( () => {
1953                 // create a new file in project..
1954                 
1955                 // what's the currently selected project...
1956                 var proj = _this.windowstate.left_projects.getSelectedProject();
1957                 
1958                 if (proj == null) {
1959                     return  ;
1960                 }
1961                 
1962                 
1963                 
1964                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
1965                 _this.project = proj;
1966                 
1967                  _this.windowstate.file_details.show(
1968                    f, this.el
1969                 );
1970                 
1971                 
1972                 return  ;    
1973             });
1974         }
1975
1976         // user defined functions 
1977     }
1978     public class Xcls_Image61 : Object 
1979     {
1980         public Gtk.Image el;
1981         private Xcls_MainWindow  _this;
1982
1983
1984             // my vars (def)
1985
1986         // ctor 
1987         public Xcls_Image61(Xcls_MainWindow _owner )
1988         {
1989             _this = _owner;
1990             this.el = new Gtk.Image();
1991
1992             // my vars (dec)
1993
1994             // set gobject values
1995             this.el.icon_name = "document-new";
1996         }
1997
1998         // user defined functions 
1999     }
2000     public class Xcls_delprojectbutton : Object 
2001     {
2002         public Clutter.Actor el;
2003         private Xcls_MainWindow  _this;
2004
2005
2006             // my vars (def)
2007
2008         // ctor 
2009         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2010         {
2011             _this = _owner;
2012             _this.delprojectbutton = this;
2013             this.el = new Clutter.Actor();
2014
2015             // my vars (dec)
2016
2017             // set gobject values
2018             var child_0 = new Xcls_Actor63( _this );
2019             child_0.ref();
2020             this.el.add_child (  child_0.el  );
2021
2022             // init method 
2023
2024             this.el.set_size(50,50);
2025         }
2026
2027         // user defined functions 
2028     }
2029     public class Xcls_Actor63 : Object 
2030     {
2031         public GtkClutter.Actor el;
2032         private Xcls_MainWindow  _this;
2033
2034
2035             // my vars (def)
2036
2037         // ctor 
2038         public Xcls_Actor63(Xcls_MainWindow _owner )
2039         {
2040             _this = _owner;
2041             this.el = new GtkClutter.Actor();
2042
2043             // my vars (dec)
2044
2045             // set gobject values
2046             var child_0 = new Xcls_Button64( _this );
2047             child_0.ref();
2048
2049             // init method 
2050
2051             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2052         }
2053
2054         // user defined functions 
2055     }
2056     public class Xcls_Button64 : Object 
2057     {
2058         public Gtk.Button el;
2059         private Xcls_MainWindow  _this;
2060
2061
2062             // my vars (def)
2063
2064         // ctor 
2065         public Xcls_Button64(Xcls_MainWindow _owner )
2066         {
2067             _this = _owner;
2068             this.el = new Gtk.Button();
2069
2070             // my vars (dec)
2071
2072             // set gobject values
2073             this.el.width_request = 50;
2074             this.el.height_request = 50;
2075             this.el.tooltip_text = "Delete Project";
2076             var child_0 = new Xcls_Image65( _this );
2077             child_0.ref();
2078             this.el.set_image (  child_0.el  );
2079
2080             // listeners 
2081             this.el.clicked.connect( ( ) => {
2082                  
2083                  var cd = DialogConfirm.singleton();
2084                  cd.el.set_transient_for(_this.el);
2085                 cd.el.set_modal(true);
2086             
2087                  var project =   _this.windowstate.left_projects.getSelectedProject();
2088                 if (project == null) {
2089                     print("SKIP - no project\n");
2090                     return;
2091                 }
2092                 
2093                     
2094                  if (Gtk.ResponseType.YES != cd.show("Confirm", 
2095                     "Are you sure you want to delete project %s".printf(project.name))) {
2096                     return;
2097                 }
2098                  
2099             
2100                 // confirm?
2101                 Project.Project.remove(project);
2102                 _this.project = null;
2103                 
2104                 _this.windowstate.left_projects.is_loaded =  false;
2105                 _this.windowstate.left_projects.load();
2106                 _this.windowstate.clutterfiles.clearFiles();
2107             
2108             });
2109         }
2110
2111         // user defined functions 
2112     }
2113     public class Xcls_Image65 : Object 
2114     {
2115         public Gtk.Image el;
2116         private Xcls_MainWindow  _this;
2117
2118
2119             // my vars (def)
2120
2121         // ctor 
2122         public Xcls_Image65(Xcls_MainWindow _owner )
2123         {
2124             _this = _owner;
2125             this.el = new Gtk.Image();
2126
2127             // my vars (dec)
2128
2129             // set gobject values
2130             this.el.icon_name = "user-trash";
2131         }
2132
2133         // user defined functions 
2134     }
2135     public class Xcls_HBox66 : Object 
2136     {
2137         public Gtk.HBox el;
2138         private Xcls_MainWindow  _this;
2139
2140
2141             // my vars (def)
2142
2143         // ctor 
2144         public Xcls_HBox66(Xcls_MainWindow _owner )
2145         {
2146             _this = _owner;
2147             this.el = new Gtk.HBox( false, 0 );
2148
2149             // my vars (dec)
2150
2151             // set gobject values
2152             var child_0 = new Xcls_Label67( _this );
2153             child_0.ref();
2154             this.el.pack_start (  child_0.el , true,true,0 );
2155             var child_1 = new Xcls_statusbar( _this );
2156             child_1.ref();
2157             this.el.pack_start (  child_1.el , true,true,0 );
2158             var child_2 = new Xcls_MenuBar69( _this );
2159             child_2.ref();
2160             this.el.pack_end (  child_2.el , false,true,0 );
2161         }
2162
2163         // user defined functions 
2164     }
2165     public class Xcls_Label67 : Object 
2166     {
2167         public Gtk.Label el;
2168         private Xcls_MainWindow  _this;
2169
2170
2171             // my vars (def)
2172
2173         // ctor 
2174         public Xcls_Label67(Xcls_MainWindow _owner )
2175         {
2176             _this = _owner;
2177             this.el = new Gtk.Label( "   " );
2178
2179             // my vars (dec)
2180
2181             // set gobject values
2182         }
2183
2184         // user defined functions 
2185     }
2186     public class Xcls_statusbar : Object 
2187     {
2188         public Gtk.ProgressBar el;
2189         private Xcls_MainWindow  _this;
2190
2191
2192             // my vars (def)
2193         public ulong handler_id;
2194
2195         // ctor 
2196         public Xcls_statusbar(Xcls_MainWindow _owner )
2197         {
2198             _this = _owner;
2199             _this.statusbar = this;
2200             this.el = new Gtk.ProgressBar();
2201
2202             // my vars (dec)
2203             this.handler_id = -1;
2204
2205             // set gobject values
2206             this.el.show_text = true;
2207
2208             // init method 
2209
2210             {
2211                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2212                     if (pos < 1) {
2213                         this.el.hide();
2214                         _this.mainpane.el.set_sensitive(true);
2215                         
2216                         return;
2217                     }
2218                      _this.mainpane.el.set_sensitive(false);
2219                      this.el.show();
2220                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2221                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2222                    
2223                  });
2224             }
2225         }
2226
2227         // user defined functions 
2228     }
2229     public class Xcls_MenuBar69 : Object 
2230     {
2231         public Gtk.MenuBar el;
2232         private Xcls_MainWindow  _this;
2233
2234
2235             // my vars (def)
2236
2237         // ctor 
2238         public Xcls_MenuBar69(Xcls_MainWindow _owner )
2239         {
2240             _this = _owner;
2241             this.el = new Gtk.MenuBar();
2242
2243             // my vars (dec)
2244
2245             // set gobject values
2246             var child_0 = new Xcls_statusbar_errors( _this );
2247             child_0.ref();
2248             this.el.add (  child_0.el  );
2249             var child_1 = new Xcls_statusbar_warnings( _this );
2250             child_1.ref();
2251             this.el.add (  child_1.el  );
2252             var child_2 = new Xcls_statusbar_depricated( _this );
2253             child_2.ref();
2254             this.el.add (  child_2.el  );
2255         }
2256
2257         // user defined functions 
2258     }
2259     public class Xcls_statusbar_errors : Object 
2260     {
2261         public Gtk.ImageMenuItem el;
2262         private Xcls_MainWindow  _this;
2263
2264
2265             // my vars (def)
2266         public Xcls_ValaCompileErrors popup;
2267         public Json.Object notices;
2268
2269         // ctor 
2270         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2271         {
2272             _this = _owner;
2273             _this.statusbar_errors = this;
2274             this.el = new Gtk.ImageMenuItem();
2275
2276             // my vars (dec)
2277             this.notices = new Json.Object() ;
2278
2279             // set gobject values
2280             this.el.always_show_image = true;
2281             this.el.label = "Errors";
2282             var child_0 = new Xcls_Image71( _this );
2283             child_0.ref();
2284             this.el.set_image (  child_0.el  );
2285
2286             // listeners 
2287             this.el.button_press_event.connect( () => {
2288                 if (this.popup == null) {
2289                     this.popup = new Xcls_ValaCompileErrors();
2290                     this.popup.window = _this;
2291                 }
2292                 this.popup.show(this.notices, this.el);
2293             });
2294         }
2295
2296         // user defined functions 
2297     }
2298     public class Xcls_Image71 : Object 
2299     {
2300         public Gtk.Image el;
2301         private Xcls_MainWindow  _this;
2302
2303
2304             // my vars (def)
2305
2306         // ctor 
2307         public Xcls_Image71(Xcls_MainWindow _owner )
2308         {
2309             _this = _owner;
2310             this.el = new Gtk.Image();
2311
2312             // my vars (dec)
2313
2314             // set gobject values
2315             this.el.icon_name = "dialog-error";
2316         }
2317
2318         // user defined functions 
2319     }
2320     public class Xcls_statusbar_warnings : Object 
2321     {
2322         public Gtk.ImageMenuItem el;
2323         private Xcls_MainWindow  _this;
2324
2325
2326             // my vars (def)
2327         public Xcls_ValaCompileErrors popup;
2328         public Json.Object notices;
2329
2330         // ctor 
2331         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2332         {
2333             _this = _owner;
2334             _this.statusbar_warnings = this;
2335             this.el = new Gtk.ImageMenuItem();
2336
2337             // my vars (dec)
2338             this.notices = new Json.Object();
2339
2340             // set gobject values
2341             this.el.always_show_image = true;
2342             this.el.label = "Warnings";
2343             var child_0 = new Xcls_Image73( _this );
2344             child_0.ref();
2345             this.el.set_image (  child_0.el  );
2346
2347             // listeners 
2348             this.el.button_press_event.connect( () => {
2349                 if (this.popup == null) {
2350                     this.popup = new Xcls_ValaCompileErrors();
2351                     this.popup.window = _this;
2352                 }
2353                 this.popup.show(this.notices, this.el);
2354             });
2355         }
2356
2357         // user defined functions 
2358     }
2359     public class Xcls_Image73 : Object 
2360     {
2361         public Gtk.Image el;
2362         private Xcls_MainWindow  _this;
2363
2364
2365             // my vars (def)
2366
2367         // ctor 
2368         public Xcls_Image73(Xcls_MainWindow _owner )
2369         {
2370             _this = _owner;
2371             this.el = new Gtk.Image();
2372
2373             // my vars (dec)
2374
2375             // set gobject values
2376             this.el.icon_name = "dialog-warning";
2377         }
2378
2379         // user defined functions 
2380     }
2381     public class Xcls_statusbar_depricated : Object 
2382     {
2383         public Gtk.ImageMenuItem el;
2384         private Xcls_MainWindow  _this;
2385
2386
2387             // my vars (def)
2388         public Xcls_ValaCompileErrors popup;
2389         public Json.Object notices;
2390
2391         // ctor 
2392         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2393         {
2394             _this = _owner;
2395             _this.statusbar_depricated = this;
2396             this.el = new Gtk.ImageMenuItem();
2397
2398             // my vars (dec)
2399             this.notices = new Json.Object();
2400
2401             // set gobject values
2402             this.el.always_show_image = true;
2403             this.el.label = "Depricated";
2404             var child_0 = new Xcls_Image75( _this );
2405             child_0.ref();
2406             this.el.set_image (  child_0.el  );
2407
2408             // listeners 
2409             this.el.button_press_event.connect( () => {
2410                 if (this.popup == null) {
2411                     this.popup = new Xcls_ValaCompileErrors();
2412                     this.popup.window = _this;
2413                 }
2414                 this.popup.show(this.notices, this.el);
2415             });
2416         }
2417
2418         // user defined functions 
2419     }
2420     public class Xcls_Image75 : Object 
2421     {
2422         public Gtk.Image el;
2423         private Xcls_MainWindow  _this;
2424
2425
2426             // my vars (def)
2427
2428         // ctor 
2429         public Xcls_Image75(Xcls_MainWindow _owner )
2430         {
2431             _this = _owner;
2432             this.el = new Gtk.Image();
2433
2434             // my vars (dec)
2435
2436             // set gobject values
2437             this.el.icon_name = "dialog-information";
2438         }
2439
2440         // user defined functions 
2441     }
2442 }