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