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