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