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