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