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