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