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