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