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