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