resources/RooUsage.txt
[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_headerbar headerbar;
16     public Xcls_topbarmenu topbarmenu;
17     public Xcls_openbtn openbtn;
18     public Xcls_openbackbtn openbackbtn;
19     public Xcls_vbox vbox;
20     public Xcls_mainpane mainpane;
21     public Xcls_leftpane leftpane;
22     public Xcls_editpane editpane;
23     public Xcls_tree tree;
24     public Xcls_props props;
25     public Xcls_clutterembed clutterembed;
26     public Xcls_rooview rooview;
27     public Xcls_objectview objectview;
28     public Xcls_codeeditview codeeditview;
29     public Xcls_addpropsview addpropsview;
30     public Xcls_projecteditview projecteditview;
31     public Xcls_buttonlayout buttonlayout;
32     public Xcls_backbutton backbutton;
33     public Xcls_editfilebutton editfilebutton;
34     public Xcls_projecteditbutton projecteditbutton;
35     public Xcls_objectshowbutton objectshowbutton;
36     public Xcls_addpropbutton addpropbutton;
37     public Xcls_addlistenerbutton addlistenerbutton;
38     public Xcls_addprojectbutton addprojectbutton;
39     public Xcls_addfilebutton addfilebutton;
40     public Xcls_delprojectbutton delprojectbutton;
41     public Xcls_statusbar statusbar;
42     public Xcls_search_entry search_entry;
43     public Xcls_search_results search_results;
44     public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
45     public Xcls_statusbar_errors statusbar_errors;
46     public Xcls_statusbar_warnings statusbar_warnings;
47     public Xcls_statusbar_depricated statusbar_depricated;
48     public Xcls_statusbar_run statusbar_run;
49
50         // my vars (def)
51     public Project.Project project;
52     public string title;
53     public int no_windows;
54     public WindowState windowstate;
55
56     // ctor
57     public Xcls_MainWindow()
58     {
59         _this = this;
60         this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
61
62         // my vars (dec)
63         this.project = null;
64         this.title = "Application Builder";
65         this.no_windows = 1;
66         this.windowstate = null;
67
68         // set gobject values
69         this.el.border_width = 0;
70         this.el.default_height = 500;
71         this.el.default_width = 800;
72         var child_0 = new Xcls_headerbar( _this );
73         child_0.ref();
74         this.el.set_titlebar (  child_0.el  );
75         var child_1 = new Xcls_vbox( _this );
76         child_1.ref();
77         this.el.add (  child_1.el  );
78
79         // init method
80
81         //this.el.show_all();
82             //try {
83                  this.el.set_icon_name("roobuilder");
84                 //} catch (Exception e) {
85                 //      print("no icon found");
86         //      }
87
88         //listeners
89         this.el.delete_event.connect( (   event) => {
90             return false;
91         });
92         this.el.destroy.connect( () =>  {
93          Xcls_MainWindow.singleton().no_windows--;
94          
95          Resources.singleton().disconnect(_this.statusbar.handler_id);
96          
97          
98          if (Xcls_MainWindow.singleton().no_windows < 1) {
99         
100              Gtk.main_quit();
101          }
102         });
103         this.el.show.connect( ( ) => {
104             // hide the file editing..
105            
106             //this.hideViewEditing();
107             _this.statusbar.el.hide();
108              _this.statusbar_errors.el.hide();
109             _this.statusbar_warnings.el.hide();
110             _this.statusbar_depricated.el.hide();
111             
112           
113             Resources.singleton().checkResources();
114         
115         });
116         this.el.key_release_event.connect( (event) => {
117             
118             if (this.search_entry.el.is_visible()) {
119                         if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120                             print("SAVE: ctrl-f  pressed");
121                                 this.search_entry.el.grab_focus();
122                             return false;
123                         }
124                         
125                         if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
126                             print("SAVE: ctrl-g  pressed");
127                                 this.search_entry.forwardSearch(true);
128                             return false;
129                         }
130                         
131                 }    
132                 
133                 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
134                         print("SAVE: ctrl-n  pressed");
135                         this.openNewWindow();
136                         return false;
137                 }
138                 
139            // print(event.key.keyval)
140             
141             return false;
142         
143         });
144     }
145
146     // user defined functions
147     public void openNewWindow () {
148         Xcls_MainWindow.singleton().no_windows++;
149             var w = new Xcls_MainWindow();
150             w.ref();
151     
152             w.el.show_all();
153             w.initChildren();
154             w.windowstate.switchState(WindowState.State.FILES);
155     }
156     public        void initChildren () {
157         // this needs putting in a better place..
158         this.windowstate = new WindowState(this);
159          
160     
161         //w.el.show_all();
162         var tl = new Clutter.Timeline(6000);
163         tl.set_repeat_count(-1);
164         tl.start();
165         tl.ref();
166     
167         
168     
169     
170     
171     }
172     public             void show () {
173        
174         this.el.show_all();
175     
176     }
177     public             void setTitle (string str) {
178         this.headerbar.el.set_title(this.title + " - " + str);
179     }
180     public class Xcls_headerbar : Object
181     {
182         public Gtk.HeaderBar el;
183         private Xcls_MainWindow  _this;
184
185
186             // my vars (def)
187
188         // ctor
189         public Xcls_headerbar(Xcls_MainWindow _owner )
190         {
191             _this = _owner;
192             _this.headerbar = this;
193             this.el = new Gtk.HeaderBar();
194
195             // my vars (dec)
196
197             // set gobject values
198             this.el.title = "Application Builder";
199             this.el.show_close_button = true;
200             var child_0 = new Xcls_Box3( _this );
201             child_0.ref();
202             this.el.pack_start (  child_0.el  );
203         }
204
205         // user defined functions
206     }
207     public class Xcls_Box3 : Object
208     {
209         public Gtk.Box el;
210         private Xcls_MainWindow  _this;
211
212
213             // my vars (def)
214
215         // ctor
216         public Xcls_Box3(Xcls_MainWindow _owner )
217         {
218             _this = _owner;
219             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
220
221             // my vars (dec)
222
223             // set gobject values
224             var child_0 = new Xcls_MenuButton4( _this );
225             child_0.ref();
226             this.el.add (  child_0.el  );
227             var child_1 = new Xcls_openbtn( _this );
228             child_1.ref();
229             this.el.add (  child_1.el  );
230             var child_2 = new Xcls_openbackbtn( _this );
231             child_2.ref();
232             this.el.add (  child_2.el  );
233         }
234
235         // user defined functions
236     }
237     public class Xcls_MenuButton4 : Object
238     {
239         public Gtk.MenuButton el;
240         private Xcls_MainWindow  _this;
241
242
243             // my vars (def)
244
245         // ctor
246         public Xcls_MenuButton4(Xcls_MainWindow _owner )
247         {
248             _this = _owner;
249             this.el = new Gtk.MenuButton();
250
251             // my vars (dec)
252
253             // set gobject values
254             this.el.use_popover = false;
255             var child_0 = new Xcls_topbarmenu( _this );
256             child_0.ref();
257             this.el.set_popup (  child_0.el  );
258             var child_1 = new Xcls_Image10( _this );
259             child_1.ref();
260             this.el.set_image (  child_1.el  );
261         }
262
263         // user defined functions
264     }
265     public class Xcls_topbarmenu : Object
266     {
267         public Gtk.Menu el;
268         private Xcls_MainWindow  _this;
269
270
271             // my vars (def)
272
273         // ctor
274         public Xcls_topbarmenu(Xcls_MainWindow _owner )
275         {
276             _this = _owner;
277             _this.topbarmenu = this;
278             this.el = new Gtk.Menu();
279
280             // my vars (dec)
281
282             // set gobject values
283             var child_0 = new Xcls_MenuItem6( _this );
284             child_0.ref();
285             this.el.append (  child_0.el  );
286             var child_1 = new Xcls_SeparatorMenuItem7( _this );
287             child_1.ref();
288             this.el.append (  child_1.el  );
289             var child_2 = new Xcls_MenuItem8( _this );
290             child_2.ref();
291             this.el.append (  child_2.el  );
292             var child_3 = new Xcls_MenuItem9( _this );
293             child_3.ref();
294             this.el.append (  child_3.el  );
295
296             // init method
297
298             {
299                 this.el.show_all();
300             }
301         }
302
303         // user defined functions
304     }
305     public class Xcls_MenuItem6 : Object
306     {
307         public Gtk.MenuItem el;
308         private Xcls_MainWindow  _this;
309
310
311             // my vars (def)
312
313         // ctor
314         public Xcls_MenuItem6(Xcls_MainWindow _owner )
315         {
316             _this = _owner;
317             this.el = new Gtk.MenuItem();
318
319             // my vars (dec)
320
321             // set gobject values
322             this.el.label = "Open a new Window";
323
324             //listeners
325             this.el.activate.connect( ( ) => {
326                    _this.openNewWindow();
327             });
328         }
329
330         // user defined functions
331     }
332
333     public class Xcls_SeparatorMenuItem7 : Object
334     {
335         public Gtk.SeparatorMenuItem el;
336         private Xcls_MainWindow  _this;
337
338
339             // my vars (def)
340
341         // ctor
342         public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
343         {
344             _this = _owner;
345             this.el = new Gtk.SeparatorMenuItem();
346
347             // my vars (dec)
348
349             // set gobject values
350         }
351
352         // user defined functions
353     }
354
355     public class Xcls_MenuItem8 : Object
356     {
357         public Gtk.MenuItem el;
358         private Xcls_MainWindow  _this;
359
360
361             // my vars (def)
362
363         // ctor
364         public Xcls_MenuItem8(Xcls_MainWindow _owner )
365         {
366             _this = _owner;
367             this.el = new Gtk.MenuItem();
368
369             // my vars (dec)
370
371             // set gobject values
372             this.el.label = "Download updated Resources";
373
374             //listeners
375             this.el.activate.connect( ( ) => {
376                      Resources.singleton().fetchStart();
377             });
378         }
379
380         // user defined functions
381     }
382
383     public class Xcls_MenuItem9 : Object
384     {
385         public Gtk.MenuItem el;
386         private Xcls_MainWindow  _this;
387
388
389             // my vars (def)
390
391         // ctor
392         public Xcls_MenuItem9(Xcls_MainWindow _owner )
393         {
394             _this = _owner;
395             this.el = new Gtk.MenuItem();
396
397             // my vars (dec)
398
399             // set gobject values
400             this.el.label = "About the Builder";
401
402             //listeners
403             this.el.activate.connect( () => {
404                 About.singleton().el.show();
405                 });
406         }
407
408         // user defined functions
409     }
410
411
412     public class Xcls_Image10 : Object
413     {
414         public Gtk.Image el;
415         private Xcls_MainWindow  _this;
416
417
418             // my vars (def)
419
420         // ctor
421         public Xcls_Image10(Xcls_MainWindow _owner )
422         {
423             _this = _owner;
424             this.el = new Gtk.Image();
425
426             // my vars (dec)
427
428             // set gobject values
429             this.el.icon_name = "help-about";
430         }
431
432         // user defined functions
433     }
434
435
436     public class Xcls_openbtn : Object
437     {
438         public Gtk.Button el;
439         private Xcls_MainWindow  _this;
440
441
442             // my vars (def)
443
444         // ctor
445         public Xcls_openbtn(Xcls_MainWindow _owner )
446         {
447             _this = _owner;
448             _this.openbtn = this;
449             this.el = new Gtk.Button();
450
451             // my vars (dec)
452
453             // set gobject values
454             var child_0 = new Xcls_Image12( _this );
455             child_0.ref();
456             this.el.set_image (  child_0.el  );
457
458             //listeners
459             this.el.clicked.connect( ( ) => {
460                _this.windowstate.switchState(WindowState.State.FILES);
461                   
462             
463             });
464         }
465
466         // user defined functions
467     }
468     public class Xcls_Image12 : Object
469     {
470         public Gtk.Image el;
471         private Xcls_MainWindow  _this;
472
473
474             // my vars (def)
475
476         // ctor
477         public Xcls_Image12(Xcls_MainWindow _owner )
478         {
479             _this = _owner;
480             this.el = new Gtk.Image();
481
482             // my vars (dec)
483
484             // set gobject values
485             this.el.icon_name = "document-open";
486         }
487
488         // user defined functions
489     }
490
491
492     public class Xcls_openbackbtn : Object
493     {
494         public Gtk.Button el;
495         private Xcls_MainWindow  _this;
496
497
498             // my vars (def)
499
500         // ctor
501         public Xcls_openbackbtn(Xcls_MainWindow _owner )
502         {
503             _this = _owner;
504             _this.openbackbtn = this;
505             this.el = new Gtk.Button();
506
507             // my vars (dec)
508
509             // set gobject values
510             this.el.tooltip_text = "Back";
511             this.el.visible = false;
512             var child_0 = new Xcls_Image14( _this );
513             child_0.ref();
514             this.el.set_image (  child_0.el  );
515
516             //listeners
517             this.el.clicked.connect( ( ) => {
518               
519                 _this.windowstate.switchState(WindowState.State.PREVIEW);
520                 
521             
522             });
523         }
524
525         // user defined functions
526     }
527     public class Xcls_Image14 : Object
528     {
529         public Gtk.Image el;
530         private Xcls_MainWindow  _this;
531
532
533             // my vars (def)
534
535         // ctor
536         public Xcls_Image14(Xcls_MainWindow _owner )
537         {
538             _this = _owner;
539             this.el = new Gtk.Image();
540
541             // my vars (dec)
542
543             // set gobject values
544             this.el.icon_name = "go-previous";
545         }
546
547         // user defined functions
548     }
549
550
551
552
553     public class Xcls_vbox : Object
554     {
555         public Gtk.Box el;
556         private Xcls_MainWindow  _this;
557
558
559             // my vars (def)
560
561         // ctor
562         public Xcls_vbox(Xcls_MainWindow _owner )
563         {
564             _this = _owner;
565             _this.vbox = this;
566             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
567
568             // my vars (dec)
569
570             // set gobject values
571             this.el.homogeneous = false;
572             var child_0 = new Xcls_mainpane( _this );
573             child_0.ref();
574             this.el.pack_start (  child_0.el , true,true,0 );
575             var child_1 = new Xcls_Box66( _this );
576             child_1.ref();
577             this.el.pack_end (  child_1.el , false,true,0 );
578         }
579
580         // user defined functions
581     }
582     public class Xcls_mainpane : Object
583     {
584         public Gtk.Paned el;
585         private Xcls_MainWindow  _this;
586
587
588             // my vars (def)
589         public int lastWidth;
590
591         // ctor
592         public Xcls_mainpane(Xcls_MainWindow _owner )
593         {
594             _this = _owner;
595             _this.mainpane = this;
596             this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
597
598             // my vars (dec)
599             this.lastWidth = 0;
600
601             // set gobject values
602             this.el.position = 400;
603             var child_0 = new Xcls_leftpane( _this );
604             child_0.ref();
605             this.el.add1 (  child_0.el  );
606             var child_1 = new Xcls_Box21( _this );
607             child_1.ref();
608             this.el.add2 (  child_1.el  );
609         }
610
611         // user defined functions
612     }
613     public class Xcls_leftpane : Object
614     {
615         public Gtk.Box el;
616         private Xcls_MainWindow  _this;
617
618
619             // my vars (def)
620
621         // ctor
622         public Xcls_leftpane(Xcls_MainWindow _owner )
623         {
624             _this = _owner;
625             _this.leftpane = this;
626             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
627
628             // my vars (dec)
629
630             // set gobject values
631             var child_0 = new Xcls_editpane( _this );
632             child_0.ref();
633             this.el.pack_start (  child_0.el , true,true,0 );
634         }
635
636         // user defined functions
637     }
638     public class Xcls_editpane : Object
639     {
640         public Gtk.Paned el;
641         private Xcls_MainWindow  _this;
642
643
644             // my vars (def)
645
646         // ctor
647         public Xcls_editpane(Xcls_MainWindow _owner )
648         {
649             _this = _owner;
650             _this.editpane = this;
651             this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
652
653             // my vars (dec)
654
655             // set gobject values
656             var child_0 = new Xcls_tree( _this );
657             child_0.ref();
658             this.el.add1 (  child_0.el  );
659             var child_1 = new Xcls_props( _this );
660             child_1.ref();
661             this.el.add2 (  child_1.el  );
662         }
663
664         // user defined functions
665     }
666     public class Xcls_tree : Object
667     {
668         public Gtk.Box el;
669         private Xcls_MainWindow  _this;
670
671
672             // my vars (def)
673
674         // ctor
675         public Xcls_tree(Xcls_MainWindow _owner )
676         {
677             _this = _owner;
678             _this.tree = this;
679             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
680
681             // my vars (dec)
682
683             // set gobject values
684         }
685
686         // user defined functions
687     }
688
689     public class Xcls_props : Object
690     {
691         public Gtk.Box el;
692         private Xcls_MainWindow  _this;
693
694
695             // my vars (def)
696
697         // ctor
698         public Xcls_props(Xcls_MainWindow _owner )
699         {
700             _this = _owner;
701             _this.props = this;
702             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
703
704             // my vars (dec)
705
706             // set gobject values
707         }
708
709         // user defined functions
710     }
711
712
713
714     public class Xcls_Box21 : Object
715     {
716         public Gtk.Box el;
717         private Xcls_MainWindow  _this;
718
719
720             // my vars (def)
721
722         // ctor
723         public Xcls_Box21(Xcls_MainWindow _owner )
724         {
725             _this = _owner;
726             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
727
728             // my vars (dec)
729
730             // set gobject values
731             var child_0 = new Xcls_clutterembed( _this );
732             child_0.ref();
733             this.el.pack_start (  child_0.el , true,true,0 );
734         }
735
736         // user defined functions
737     }
738     public class Xcls_clutterembed : Object
739     {
740         public GtkClutter.Embed el;
741         private Xcls_MainWindow  _this;
742
743
744             // my vars (def)
745
746         // ctor
747         public Xcls_clutterembed(Xcls_MainWindow _owner )
748         {
749             _this = _owner;
750             _this.clutterembed = this;
751             this.el = new GtkClutter.Embed();
752
753             // my vars (dec)
754
755             // set gobject values
756             var child_0 = new Xcls_rooview( _this );
757             child_0.ref();
758             this.el.get_stage().add_child (  child_0.el  );
759             var child_1 = new Xcls_objectview( _this );
760             child_1.ref();
761             this.el.get_stage().add_child (  child_1.el  );
762             var child_2 = new Xcls_codeeditview( _this );
763             child_2.ref();
764             this.el.get_stage().add_child (  child_2.el  );
765             var child_3 = new Xcls_addpropsview( _this );
766             child_3.ref();
767             this.el.get_stage().add_child (  child_3.el  );
768             var child_4 = new Xcls_projecteditview( _this );
769             child_4.ref();
770             this.el.get_stage().add_child (  child_4.el  );
771             var child_5 = new Xcls_buttonlayout( _this );
772             child_5.ref();
773             this.el.get_stage().add_child (  child_5.el  );
774
775             // init method
776
777             var stage = this.el.get_stage();
778                 stage.set_background_color(  Clutter.Color.from_string("#000"));
779
780             //listeners
781             this.el.size_allocate.connect( (  alloc) => {
782                 if (_this.windowstate == null) {
783                     return;
784                 }
785                 _this.windowstate.resizeCanvas(); 
786                     
787             });
788         }
789
790         // user defined functions
791     }
792     public class Xcls_rooview : Object
793     {
794         public GtkClutter.Actor el;
795         private Xcls_MainWindow  _this;
796
797
798             // my vars (def)
799
800         // ctor
801         public Xcls_rooview(Xcls_MainWindow _owner )
802         {
803             _this = _owner;
804             _this.rooview = this;
805             this.el = new GtkClutter.Actor();
806
807             // my vars (dec)
808
809             // set gobject values
810
811             // init method
812
813             {
814                
815                
816                 this.el.add_constraint(
817                     new Clutter.AlignConstraint(
818                         _this.clutterembed.el.get_stage(), 
819                         Clutter.AlignAxis.X_AXIS,
820                         1.0f
821                     )
822                 );
823                     
824                 //this.el.set_position(100,100);
825                 this.el.set_pivot_point(1.0f,1.0f);
826                 
827                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
828                         _this.clutterembed.el.get_stage().height);
829                         
830             }
831         }
832
833         // user defined functions
834     }
835
836     public class Xcls_objectview : Object
837     {
838         public GtkClutter.Actor el;
839         private Xcls_MainWindow  _this;
840
841
842             // my vars (def)
843
844         // ctor
845         public Xcls_objectview(Xcls_MainWindow _owner )
846         {
847             _this = _owner;
848             _this.objectview = this;
849             this.el = new GtkClutter.Actor();
850
851             // my vars (dec)
852
853             // set gobject values
854
855             // init method
856
857             {
858                
859                /*
860                 this.el.add_constraint(
861                     new Clutter.AlignConstraint(
862                         _this.clutterembed.el.get_stage(), 
863                         Clutter.AlignAxis.X_AXIS,
864                         0.0f
865                     )
866                 );
867                 */
868                 this.el.fixed_x = 50.0f;
869                 this.el.fixed_y = 0.0f;
870                 //this.el.set_position(100,100);
871                 this.el.set_pivot_point(0.0f,0.0f);
872                 this.el.set_scale(0.0f,1.0f);
873                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
874                         _this.clutterembed.el.get_stage().height);
875                         
876             }
877         }
878
879         // user defined functions
880     }
881
882     public class Xcls_codeeditview : Object
883     {
884         public GtkClutter.Actor el;
885         private Xcls_MainWindow  _this;
886
887
888             // my vars (def)
889
890         // ctor
891         public Xcls_codeeditview(Xcls_MainWindow _owner )
892         {
893             _this = _owner;
894             _this.codeeditview = this;
895             this.el = new GtkClutter.Actor();
896
897             // my vars (dec)
898
899             // set gobject values
900
901             // init method
902
903             {
904                
905                /*
906                 this.el.add_constraint(
907                     new Clutter.AlignConstraint(
908                         _this.clutterembed.el.get_stage(), 
909                         Clutter.AlignAxis.X_AXIS,
910                         0.0f
911                     )
912                 );
913                 */
914                 this.el.fixed_x = 50.0f;
915                 this.el.fixed_y = 0.0f;
916                 //this.el.set_position(100,100);
917                 this.el.set_pivot_point(0.0f,0.0f);
918                 this.el.set_scale(0.0f,1.0f);
919                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
920                         _this.clutterembed.el.get_stage().height);
921                         
922             }
923         }
924
925         // user defined functions
926     }
927
928     public class Xcls_addpropsview : Object
929     {
930         public GtkClutter.Actor el;
931         private Xcls_MainWindow  _this;
932
933
934             // my vars (def)
935
936         // ctor
937         public Xcls_addpropsview(Xcls_MainWindow _owner )
938         {
939             _this = _owner;
940             _this.addpropsview = this;
941             this.el = new GtkClutter.Actor();
942
943             // my vars (dec)
944
945             // set gobject values
946
947             // init method
948
949             {
950                
951                /*
952                 this.el.add_constraint(
953                     new Clutter.AlignConstraint(
954                         _this.clutterembed.el.get_stage(), 
955                         Clutter.AlignAxis.X_AXIS,
956                         0.0f
957                     )
958                 );
959                 */
960                 this.el.fixed_x = 50.0f;
961                 this.el.fixed_y = 0.0f;
962                 //this.el.set_position(100,100);
963                 this.el.set_pivot_point(0.0f,0.0f);
964                 this.el.set_scale(0.0f,1.0f);
965                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
966                         _this.clutterembed.el.get_stage().height);
967                         
968             }
969         }
970
971         // user defined functions
972     }
973
974     public class Xcls_projecteditview : Object
975     {
976         public GtkClutter.Actor el;
977         private Xcls_MainWindow  _this;
978
979
980             // my vars (def)
981
982         // ctor
983         public Xcls_projecteditview(Xcls_MainWindow _owner )
984         {
985             _this = _owner;
986             _this.projecteditview = this;
987             this.el = new GtkClutter.Actor();
988
989             // my vars (dec)
990
991             // set gobject values
992
993             // init method
994
995             {
996                
997                
998                 this.el.add_constraint(
999                     new Clutter.AlignConstraint(
1000                         _this.clutterembed.el.get_stage(), 
1001                         Clutter.AlignAxis.X_AXIS,
1002                         1.0f
1003                     )
1004                 );
1005                     
1006                 //this.el.set_position(100,100);
1007                 this.el.set_pivot_point(0.0f,0.0f);
1008                 this.el.set_scale(1.0f,0.0f);
1009                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1010                         _this.clutterembed.el.get_stage().height /2);
1011                         
1012             }
1013         }
1014
1015         // user defined functions
1016     }
1017
1018     public class Xcls_buttonlayout : Object
1019     {
1020         public Clutter.Actor el;
1021         private Xcls_MainWindow  _this;
1022
1023
1024             // my vars (def)
1025
1026         // ctor
1027         public Xcls_buttonlayout(Xcls_MainWindow _owner )
1028         {
1029             _this = _owner;
1030             _this.buttonlayout = this;
1031             this.el = new Clutter.Actor();
1032
1033             // my vars (dec)
1034
1035             // set gobject values
1036             var child_0 = new Xcls_BoxLayout29( _this );
1037             child_0.ref();
1038             this.el.layout_manager = child_0.el;
1039             var child_1 = new Xcls_backbutton( _this );
1040             child_1.ref();
1041             this.el.add_child (  child_1.el  );
1042             var child_2 = new Xcls_editfilebutton( _this );
1043             child_2.ref();
1044             this.el.add_child (  child_2.el  );
1045             var child_3 = new Xcls_projecteditbutton( _this );
1046             child_3.ref();
1047             this.el.add_child (  child_3.el  );
1048             var child_4 = new Xcls_objectshowbutton( _this );
1049             child_4.ref();
1050             this.el.add_child (  child_4.el  );
1051             var child_5 = new Xcls_addpropbutton( _this );
1052             child_5.ref();
1053             this.el.add_child (  child_5.el  );
1054             var child_6 = new Xcls_addlistenerbutton( _this );
1055             child_6.ref();
1056             this.el.add_child (  child_6.el  );
1057             var child_7 = new Xcls_addprojectbutton( _this );
1058             child_7.ref();
1059             this.el.add_child (  child_7.el  );
1060             var child_8 = new Xcls_addfilebutton( _this );
1061             child_8.ref();
1062             this.el.add_child (  child_8.el  );
1063             var child_9 = new Xcls_delprojectbutton( _this );
1064             child_9.ref();
1065             this.el.add_child (  child_9.el  );
1066
1067             // init method
1068
1069             {
1070                 
1071                 this.el.add_constraint(
1072                     new Clutter.AlignConstraint(
1073                         _this.clutterembed.el.get_stage(), 
1074                         Clutter.AlignAxis.X_AXIS,
1075                         0.0f
1076                     )
1077                 );
1078                  
1079                 
1080                 //this.el.set_position(100,100);
1081                 this.el.set_pivot_point(0.5f,0.5f);
1082                  this.el.set_size(50,
1083                        _this.clutterembed.el.get_stage().height);
1084                  
1085             }
1086         }
1087
1088         // user defined functions
1089     }
1090     public class Xcls_BoxLayout29 : Object
1091     {
1092         public Clutter.BoxLayout el;
1093         private Xcls_MainWindow  _this;
1094
1095
1096             // my vars (def)
1097
1098         // ctor
1099         public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1100         {
1101             _this = _owner;
1102             this.el = new Clutter.BoxLayout();
1103
1104             // my vars (dec)
1105
1106             // set gobject values
1107             this.el.orientation = Clutter.Orientation.VERTICAL;
1108         }
1109
1110         // user defined functions
1111     }
1112
1113     public class Xcls_backbutton : Object
1114     {
1115         public Clutter.Actor el;
1116         private Xcls_MainWindow  _this;
1117
1118
1119             // my vars (def)
1120
1121         // ctor
1122         public Xcls_backbutton(Xcls_MainWindow _owner )
1123         {
1124             _this = _owner;
1125             _this.backbutton = this;
1126             this.el = new Clutter.Actor();
1127
1128             // my vars (dec)
1129
1130             // set gobject values
1131             var child_0 = new Xcls_Actor31( _this );
1132             child_0.ref();
1133             this.el.add_child (  child_0.el  );
1134
1135             // init method
1136
1137             this.el.set_size(50,50);
1138         }
1139
1140         // user defined functions
1141     }
1142     public class Xcls_Actor31 : Object
1143     {
1144         public GtkClutter.Actor el;
1145         private Xcls_MainWindow  _this;
1146
1147
1148             // my vars (def)
1149
1150         // ctor
1151         public Xcls_Actor31(Xcls_MainWindow _owner )
1152         {
1153             _this = _owner;
1154             this.el = new GtkClutter.Actor();
1155
1156             // my vars (dec)
1157
1158             // set gobject values
1159             var child_0 = new Xcls_Button32( _this );
1160             child_0.ref();
1161
1162             // init method
1163
1164             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1165         }
1166
1167         // user defined functions
1168     }
1169     public class Xcls_Button32 : Object
1170     {
1171         public Gtk.Button el;
1172         private Xcls_MainWindow  _this;
1173
1174
1175             // my vars (def)
1176
1177         // ctor
1178         public Xcls_Button32(Xcls_MainWindow _owner )
1179         {
1180             _this = _owner;
1181             this.el = new Gtk.Button();
1182
1183             // my vars (dec)
1184
1185             // set gobject values
1186             this.el.width_request = 50;
1187             this.el.height_request = 50;
1188             this.el.tooltip_text = "Back";
1189             var child_0 = new Xcls_Image33( _this );
1190             child_0.ref();
1191             this.el.set_image (  child_0.el  );
1192
1193             //listeners
1194             this.el.clicked.connect( ( ) => {
1195                if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
1196                 
1197                      _this.windowstate.switchState(WindowState.State.FILES);
1198                  } else { 
1199                     _this.windowstate.switchState(WindowState.State.PREVIEW);
1200                 }
1201                 
1202             
1203             });
1204         }
1205
1206         // user defined functions
1207     }
1208     public class Xcls_Image33 : Object
1209     {
1210         public Gtk.Image el;
1211         private Xcls_MainWindow  _this;
1212
1213
1214             // my vars (def)
1215
1216         // ctor
1217         public Xcls_Image33(Xcls_MainWindow _owner )
1218         {
1219             _this = _owner;
1220             this.el = new Gtk.Image();
1221
1222             // my vars (dec)
1223
1224             // set gobject values
1225             this.el.icon_name = "go-previous";
1226         }
1227
1228         // user defined functions
1229     }
1230
1231
1232
1233
1234     public class Xcls_editfilebutton : Object
1235     {
1236         public Clutter.Actor el;
1237         private Xcls_MainWindow  _this;
1238
1239
1240             // my vars (def)
1241
1242         // ctor
1243         public Xcls_editfilebutton(Xcls_MainWindow _owner )
1244         {
1245             _this = _owner;
1246             _this.editfilebutton = this;
1247             this.el = new Clutter.Actor();
1248
1249             // my vars (dec)
1250
1251             // set gobject values
1252             var child_0 = new Xcls_Actor35( _this );
1253             child_0.ref();
1254             this.el.add_child (  child_0.el  );
1255
1256             // init method
1257
1258             this.el.set_size(50.0f,50.0f);
1259         }
1260
1261         // user defined functions
1262     }
1263     public class Xcls_Actor35 : Object
1264     {
1265         public GtkClutter.Actor el;
1266         private Xcls_MainWindow  _this;
1267
1268
1269             // my vars (def)
1270
1271         // ctor
1272         public Xcls_Actor35(Xcls_MainWindow _owner )
1273         {
1274             _this = _owner;
1275             this.el = new GtkClutter.Actor();
1276
1277             // my vars (dec)
1278
1279             // set gobject values
1280             var child_0 = new Xcls_Button36( _this );
1281             child_0.ref();
1282
1283             // init method
1284
1285             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1286         }
1287
1288         // user defined functions
1289     }
1290     public class Xcls_Button36 : Object
1291     {
1292         public Gtk.Button el;
1293         private Xcls_MainWindow  _this;
1294
1295
1296             // my vars (def)
1297
1298         // ctor
1299         public Xcls_Button36(Xcls_MainWindow _owner )
1300         {
1301             _this = _owner;
1302             this.el = new Gtk.Button();
1303
1304             // my vars (dec)
1305
1306             // set gobject values
1307             this.el.width_request = 50;
1308             this.el.height_request = 50;
1309             this.el.tooltip_text = "File Details";
1310             var child_0 = new Xcls_Image37( _this );
1311             child_0.ref();
1312             this.el.set_image (  child_0.el  );
1313
1314             //listeners
1315             this.el.clicked.connect( ( ) => {
1316               
1317                 // create a new file in project..
1318                 if (_this.project == null || _this.windowstate.file == null) {
1319                     return  ;
1320                 }
1321                  _this.windowstate.file_details.show(
1322                     _this.windowstate.file, this.el
1323                 );
1324                  
1325                 return  ;    
1326             
1327             
1328             });
1329         }
1330
1331         // user defined functions
1332     }
1333     public class Xcls_Image37 : Object
1334     {
1335         public Gtk.Image el;
1336         private Xcls_MainWindow  _this;
1337
1338
1339             // my vars (def)
1340
1341         // ctor
1342         public Xcls_Image37(Xcls_MainWindow _owner )
1343         {
1344             _this = _owner;
1345             this.el = new Gtk.Image();
1346
1347             // my vars (dec)
1348
1349             // set gobject values
1350             this.el.icon_name = "document-properties";
1351         }
1352
1353         // user defined functions
1354     }
1355
1356
1357
1358
1359     public class Xcls_projecteditbutton : Object
1360     {
1361         public Clutter.Actor el;
1362         private Xcls_MainWindow  _this;
1363
1364
1365             // my vars (def)
1366
1367         // ctor
1368         public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1369         {
1370             _this = _owner;
1371             _this.projecteditbutton = this;
1372             this.el = new Clutter.Actor();
1373
1374             // my vars (dec)
1375
1376             // set gobject values
1377             var child_0 = new Xcls_Actor39( _this );
1378             child_0.ref();
1379             this.el.add_child (  child_0.el  );
1380
1381             // init method
1382
1383             this.el.set_size(50,50);
1384         }
1385
1386         // user defined functions
1387     }
1388     public class Xcls_Actor39 : Object
1389     {
1390         public GtkClutter.Actor el;
1391         private Xcls_MainWindow  _this;
1392
1393
1394             // my vars (def)
1395
1396         // ctor
1397         public Xcls_Actor39(Xcls_MainWindow _owner )
1398         {
1399             _this = _owner;
1400             this.el = new GtkClutter.Actor();
1401
1402             // my vars (dec)
1403
1404             // set gobject values
1405             var child_0 = new Xcls_Button40( _this );
1406             child_0.ref();
1407
1408             // init method
1409
1410             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1411         }
1412
1413         // user defined functions
1414     }
1415     public class Xcls_Button40 : Object
1416     {
1417         public Gtk.Button el;
1418         private Xcls_MainWindow  _this;
1419
1420
1421             // my vars (def)
1422
1423         // ctor
1424         public Xcls_Button40(Xcls_MainWindow _owner )
1425         {
1426             _this = _owner;
1427             this.el = new Gtk.Button();
1428
1429             // my vars (dec)
1430
1431             // set gobject values
1432             this.el.width_request = 50;
1433             this.el.height_request = 50;
1434             this.el.tooltip_text = "Project Details";
1435             var child_0 = new Xcls_Image41( _this );
1436             child_0.ref();
1437             this.el.set_image (  child_0.el  );
1438
1439             //listeners
1440             this.el.clicked.connect( ( ) => {
1441                  
1442                  if (_this.windowstate.state == WindowState.State.FILES) {
1443                  
1444                      _this.windowstate.switchState(WindowState.State.FILEPROJECT);
1445                  } else {
1446                      _this.windowstate.switchState(WindowState.State.PROJECT);
1447                  }     
1448                
1449             
1450             
1451             });
1452         }
1453
1454         // user defined functions
1455     }
1456     public class Xcls_Image41 : Object
1457     {
1458         public Gtk.Image el;
1459         private Xcls_MainWindow  _this;
1460
1461
1462             // my vars (def)
1463
1464         // ctor
1465         public Xcls_Image41(Xcls_MainWindow _owner )
1466         {
1467             _this = _owner;
1468             this.el = new Gtk.Image();
1469
1470             // my vars (dec)
1471
1472             // set gobject values
1473             this.el.icon_name = "emblem-system";
1474         }
1475
1476         // user defined functions
1477     }
1478
1479
1480
1481
1482     public class Xcls_objectshowbutton : Object
1483     {
1484         public Clutter.Actor el;
1485         private Xcls_MainWindow  _this;
1486
1487
1488             // my vars (def)
1489
1490         // ctor
1491         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1492         {
1493             _this = _owner;
1494             _this.objectshowbutton = this;
1495             this.el = new Clutter.Actor();
1496
1497             // my vars (dec)
1498
1499             // set gobject values
1500             var child_0 = new Xcls_Actor43( _this );
1501             child_0.ref();
1502             this.el.add_child (  child_0.el  );
1503
1504             // init method
1505
1506             this.el.set_size(50,50);
1507
1508             //listeners
1509             this.el.enter_event.connect( (  event)  => {
1510                 this.el.background_color =   Clutter.Color.from_string("#333");
1511                     return false;
1512             });
1513             this.el.leave_event.connect( (  event)  => {
1514                 this.el.background_color =   Clutter.Color.from_string("#000");
1515                 return false;
1516             });
1517         }
1518
1519         // user defined functions
1520     }
1521     public class Xcls_Actor43 : Object
1522     {
1523         public GtkClutter.Actor el;
1524         private Xcls_MainWindow  _this;
1525
1526
1527             // my vars (def)
1528
1529         // ctor
1530         public Xcls_Actor43(Xcls_MainWindow _owner )
1531         {
1532             _this = _owner;
1533             this.el = new GtkClutter.Actor();
1534
1535             // my vars (dec)
1536
1537             // set gobject values
1538             var child_0 = new Xcls_Button44( _this );
1539             child_0.ref();
1540
1541             // init method
1542
1543             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1544         }
1545
1546         // user defined functions
1547     }
1548     public class Xcls_Button44 : Object
1549     {
1550         public Gtk.Button el;
1551         private Xcls_MainWindow  _this;
1552
1553
1554             // my vars (def)
1555
1556         // ctor
1557         public Xcls_Button44(Xcls_MainWindow _owner )
1558         {
1559             _this = _owner;
1560             this.el = new Gtk.Button();
1561
1562             // my vars (dec)
1563
1564             // set gobject values
1565             this.el.width_request = 50;
1566             this.el.height_request = 50;
1567             this.el.tooltip_text = "Add Child Element";
1568             var child_0 = new Xcls_Image45( _this );
1569             child_0.ref();
1570             this.el.set_image (  child_0.el  );
1571
1572             //listeners
1573             this.el.clicked.connect( ( ) => {
1574                 
1575                  _this.windowstate.switchState(WindowState.State.OBJECT);
1576               
1577              
1578             });
1579         }
1580
1581         // user defined functions
1582     }
1583     public class Xcls_Image45 : Object
1584     {
1585         public Gtk.Image el;
1586         private Xcls_MainWindow  _this;
1587
1588
1589             // my vars (def)
1590
1591         // ctor
1592         public Xcls_Image45(Xcls_MainWindow _owner )
1593         {
1594             _this = _owner;
1595             this.el = new Gtk.Image();
1596
1597             // my vars (dec)
1598
1599             // set gobject values
1600             this.el.icon_name = "list-add";
1601         }
1602
1603         // user defined functions
1604     }
1605
1606
1607
1608
1609     public class Xcls_addpropbutton : Object
1610     {
1611         public Clutter.Actor el;
1612         private Xcls_MainWindow  _this;
1613
1614
1615             // my vars (def)
1616
1617         // ctor
1618         public Xcls_addpropbutton(Xcls_MainWindow _owner )
1619         {
1620             _this = _owner;
1621             _this.addpropbutton = this;
1622             this.el = new Clutter.Actor();
1623
1624             // my vars (dec)
1625
1626             // set gobject values
1627             var child_0 = new Xcls_Actor47( _this );
1628             child_0.ref();
1629             this.el.add_child (  child_0.el  );
1630
1631             // init method
1632
1633             this.el.set_size(50,50);
1634         }
1635
1636         // user defined functions
1637     }
1638     public class Xcls_Actor47 : Object
1639     {
1640         public GtkClutter.Actor el;
1641         private Xcls_MainWindow  _this;
1642
1643
1644             // my vars (def)
1645
1646         // ctor
1647         public Xcls_Actor47(Xcls_MainWindow _owner )
1648         {
1649             _this = _owner;
1650             this.el = new GtkClutter.Actor();
1651
1652             // my vars (dec)
1653
1654             // set gobject values
1655             var child_0 = new Xcls_Button48( _this );
1656             child_0.ref();
1657
1658             // init method
1659
1660             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1661         }
1662
1663         // user defined functions
1664     }
1665     public class Xcls_Button48 : Object
1666     {
1667         public Gtk.Button el;
1668         private Xcls_MainWindow  _this;
1669
1670
1671             // my vars (def)
1672
1673         // ctor
1674         public Xcls_Button48(Xcls_MainWindow _owner )
1675         {
1676             _this = _owner;
1677             this.el = new Gtk.Button();
1678
1679             // my vars (dec)
1680
1681             // set gobject values
1682             this.el.width_request = 50;
1683             this.el.height_request = 50;
1684             this.el.tooltip_text = "Add Property";
1685             var child_0 = new Xcls_Image49( _this );
1686             child_0.ref();
1687             this.el.set_image (  child_0.el  );
1688
1689             //listeners
1690             this.el.clicked.connect( ( ) => {
1691                 
1692                  _this.windowstate.switchState(WindowState.State.PROP);
1693              
1694             
1695             });
1696         }
1697
1698         // user defined functions
1699     }
1700     public class Xcls_Image49 : Object
1701     {
1702         public Gtk.Image el;
1703         private Xcls_MainWindow  _this;
1704
1705
1706             // my vars (def)
1707
1708         // ctor
1709         public Xcls_Image49(Xcls_MainWindow _owner )
1710         {
1711             _this = _owner;
1712             this.el = new Gtk.Image();
1713
1714             // my vars (dec)
1715
1716             // set gobject values
1717             this.el.icon_name = "format-justify-left";
1718         }
1719
1720         // user defined functions
1721     }
1722
1723
1724
1725
1726     public class Xcls_addlistenerbutton : Object
1727     {
1728         public Clutter.Actor el;
1729         private Xcls_MainWindow  _this;
1730
1731
1732             // my vars (def)
1733
1734         // ctor
1735         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1736         {
1737             _this = _owner;
1738             _this.addlistenerbutton = this;
1739             this.el = new Clutter.Actor();
1740
1741             // my vars (dec)
1742
1743             // set gobject values
1744             var child_0 = new Xcls_Actor51( _this );
1745             child_0.ref();
1746             this.el.add_child (  child_0.el  );
1747
1748             // init method
1749
1750             this.el.set_size(50,50);
1751         }
1752
1753         // user defined functions
1754     }
1755     public class Xcls_Actor51 : Object
1756     {
1757         public GtkClutter.Actor el;
1758         private Xcls_MainWindow  _this;
1759
1760
1761             // my vars (def)
1762
1763         // ctor
1764         public Xcls_Actor51(Xcls_MainWindow _owner )
1765         {
1766             _this = _owner;
1767             this.el = new GtkClutter.Actor();
1768
1769             // my vars (dec)
1770
1771             // set gobject values
1772             var child_0 = new Xcls_Button52( _this );
1773             child_0.ref();
1774
1775             // init method
1776
1777             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1778         }
1779
1780         // user defined functions
1781     }
1782     public class Xcls_Button52 : Object
1783     {
1784         public Gtk.Button el;
1785         private Xcls_MainWindow  _this;
1786
1787
1788             // my vars (def)
1789
1790         // ctor
1791         public Xcls_Button52(Xcls_MainWindow _owner )
1792         {
1793             _this = _owner;
1794             this.el = new Gtk.Button();
1795
1796             // my vars (dec)
1797
1798             // set gobject values
1799             this.el.width_request = 50;
1800             this.el.height_request = 50;
1801             this.el.tooltip_text = "Add Event Code";
1802             var child_0 = new Xcls_Image53( _this );
1803             child_0.ref();
1804             this.el.set_image (  child_0.el  );
1805
1806             //listeners
1807             this.el.clicked.connect( ( ) => {
1808                 
1809                 _this.windowstate.switchState(WindowState.State.LISTENER);
1810               
1811             
1812             
1813             });
1814         }
1815
1816         // user defined functions
1817     }
1818     public class Xcls_Image53 : Object
1819     {
1820         public Gtk.Image el;
1821         private Xcls_MainWindow  _this;
1822
1823
1824             // my vars (def)
1825
1826         // ctor
1827         public Xcls_Image53(Xcls_MainWindow _owner )
1828         {
1829             _this = _owner;
1830             this.el = new Gtk.Image();
1831
1832             // my vars (dec)
1833
1834             // set gobject values
1835             this.el.icon_name = "appointment-new";
1836         }
1837
1838         // user defined functions
1839     }
1840
1841
1842
1843
1844     public class Xcls_addprojectbutton : Object
1845     {
1846         public Clutter.Actor el;
1847         private Xcls_MainWindow  _this;
1848
1849
1850             // my vars (def)
1851
1852         // ctor
1853         public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1854         {
1855             _this = _owner;
1856             _this.addprojectbutton = this;
1857             this.el = new Clutter.Actor();
1858
1859             // my vars (dec)
1860
1861             // set gobject values
1862             var child_0 = new Xcls_Actor55( _this );
1863             child_0.ref();
1864             this.el.add_child (  child_0.el  );
1865
1866             // init method
1867
1868             this.el.set_size(50.0f,50.0f);
1869         }
1870
1871         // user defined functions
1872     }
1873     public class Xcls_Actor55 : Object
1874     {
1875         public GtkClutter.Actor el;
1876         private Xcls_MainWindow  _this;
1877
1878
1879             // my vars (def)
1880
1881         // ctor
1882         public Xcls_Actor55(Xcls_MainWindow _owner )
1883         {
1884             _this = _owner;
1885             this.el = new GtkClutter.Actor();
1886
1887             // my vars (dec)
1888
1889             // set gobject values
1890             var child_0 = new Xcls_Button56( _this );
1891             child_0.ref();
1892
1893             // init method
1894
1895             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1896         }
1897
1898         // user defined functions
1899     }
1900     public class Xcls_Button56 : Object
1901     {
1902         public Gtk.Button el;
1903         private Xcls_MainWindow  _this;
1904
1905
1906             // my vars (def)
1907
1908         // ctor
1909         public Xcls_Button56(Xcls_MainWindow _owner )
1910         {
1911             _this = _owner;
1912             this.el = new Gtk.Button();
1913
1914             // my vars (dec)
1915
1916             // set gobject values
1917             this.el.width_request = 50;
1918             this.el.height_request = 50;
1919             this.el.tooltip_text = "New\nProj.";
1920             var child_0 = new Xcls_Image57( _this );
1921             child_0.ref();
1922             this.el.set_image (  child_0.el  );
1923
1924             //listeners
1925             this.el.clicked.connect( ( ) => {
1926               
1927                 // create a new file in project..
1928                 //Xcls_DialogNewComponent.singleton().show(
1929                var  pe =      EditProject.singleton();
1930                 pe.el.set_transient_for(_this.el);
1931                 pe.el.set_modal(true);   
1932                
1933                 var p  = pe.show();
1934             
1935                 if (p == null) {
1936                     return;
1937                 }
1938                 
1939                 
1940                 _this.windowstate.left_projects.is_loaded = false;    
1941                 _this.windowstate.left_projects.load();
1942                 _this.windowstate.left_projects.selectProject(p);
1943                 return  ;    
1944             
1945             
1946             });
1947         }
1948
1949         // user defined functions
1950     }
1951     public class Xcls_Image57 : Object
1952     {
1953         public Gtk.Image el;
1954         private Xcls_MainWindow  _this;
1955
1956
1957             // my vars (def)
1958
1959         // ctor
1960         public Xcls_Image57(Xcls_MainWindow _owner )
1961         {
1962             _this = _owner;
1963             this.el = new Gtk.Image();
1964
1965             // my vars (dec)
1966
1967             // set gobject values
1968             this.el.icon_name = "folder-new";
1969         }
1970
1971         // user defined functions
1972     }
1973
1974
1975
1976
1977     public class Xcls_addfilebutton : Object
1978     {
1979         public Clutter.Actor el;
1980         private Xcls_MainWindow  _this;
1981
1982
1983             // my vars (def)
1984
1985         // ctor
1986         public Xcls_addfilebutton(Xcls_MainWindow _owner )
1987         {
1988             _this = _owner;
1989             _this.addfilebutton = this;
1990             this.el = new Clutter.Actor();
1991
1992             // my vars (dec)
1993
1994             // set gobject values
1995             var child_0 = new Xcls_Actor59( _this );
1996             child_0.ref();
1997             this.el.add_child (  child_0.el  );
1998
1999             // init method
2000
2001             this.el.set_size(50.0f,50.0f);
2002         }
2003
2004         // user defined functions
2005     }
2006     public class Xcls_Actor59 : Object
2007     {
2008         public GtkClutter.Actor el;
2009         private Xcls_MainWindow  _this;
2010
2011
2012             // my vars (def)
2013
2014         // ctor
2015         public Xcls_Actor59(Xcls_MainWindow _owner )
2016         {
2017             _this = _owner;
2018             this.el = new GtkClutter.Actor();
2019
2020             // my vars (dec)
2021
2022             // set gobject values
2023             var child_0 = new Xcls_Button60( _this );
2024             child_0.ref();
2025
2026             // init method
2027
2028             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2029         }
2030
2031         // user defined functions
2032     }
2033     public class Xcls_Button60 : Object
2034     {
2035         public Gtk.Button el;
2036         private Xcls_MainWindow  _this;
2037
2038
2039             // my vars (def)
2040
2041         // ctor
2042         public Xcls_Button60(Xcls_MainWindow _owner )
2043         {
2044             _this = _owner;
2045             this.el = new Gtk.Button();
2046
2047             // my vars (dec)
2048
2049             // set gobject values
2050             this.el.width_request = 50;
2051             this.el.height_request = 50;
2052             this.el.tooltip_text = "Add File";
2053             var child_0 = new Xcls_Image61( _this );
2054             child_0.ref();
2055             this.el.set_image (  child_0.el  );
2056
2057             //listeners
2058             this.el.clicked.connect( () => {
2059                 // create a new file in project..
2060                 print("add file selected\n");
2061                 // what's the currently selected project...
2062                 var proj = _this.windowstate.left_projects.getSelectedProject();
2063                 
2064                 if (proj == null) {
2065                         print("no project selected?\n");
2066                     return  ;
2067                 }
2068                 
2069                 print("creating file?");
2070                 
2071                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
2072                 _this.project = proj;
2073                     print("showing popup?");
2074                  _this.windowstate.file_details.show(
2075                    f, this.el
2076                 );
2077                 
2078                 
2079                 return  ;    
2080             });
2081         }
2082
2083         // user defined functions
2084     }
2085     public class Xcls_Image61 : Object
2086     {
2087         public Gtk.Image el;
2088         private Xcls_MainWindow  _this;
2089
2090
2091             // my vars (def)
2092
2093         // ctor
2094         public Xcls_Image61(Xcls_MainWindow _owner )
2095         {
2096             _this = _owner;
2097             this.el = new Gtk.Image();
2098
2099             // my vars (dec)
2100
2101             // set gobject values
2102             this.el.icon_name = "document-new";
2103         }
2104
2105         // user defined functions
2106     }
2107
2108
2109
2110
2111     public class Xcls_delprojectbutton : Object
2112     {
2113         public Clutter.Actor el;
2114         private Xcls_MainWindow  _this;
2115
2116
2117             // my vars (def)
2118
2119         // ctor
2120         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2121         {
2122             _this = _owner;
2123             _this.delprojectbutton = this;
2124             this.el = new Clutter.Actor();
2125
2126             // my vars (dec)
2127
2128             // set gobject values
2129             var child_0 = new Xcls_Actor63( _this );
2130             child_0.ref();
2131             this.el.add_child (  child_0.el  );
2132
2133             // init method
2134
2135             this.el.set_size(50,50);
2136         }
2137
2138         // user defined functions
2139     }
2140     public class Xcls_Actor63 : Object
2141     {
2142         public GtkClutter.Actor el;
2143         private Xcls_MainWindow  _this;
2144
2145
2146             // my vars (def)
2147
2148         // ctor
2149         public Xcls_Actor63(Xcls_MainWindow _owner )
2150         {
2151             _this = _owner;
2152             this.el = new GtkClutter.Actor();
2153
2154             // my vars (dec)
2155
2156             // set gobject values
2157             var child_0 = new Xcls_Button64( _this );
2158             child_0.ref();
2159
2160             // init method
2161
2162             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2163         }
2164
2165         // user defined functions
2166     }
2167     public class Xcls_Button64 : Object
2168     {
2169         public Gtk.Button el;
2170         private Xcls_MainWindow  _this;
2171
2172
2173             // my vars (def)
2174
2175         // ctor
2176         public Xcls_Button64(Xcls_MainWindow _owner )
2177         {
2178             _this = _owner;
2179             this.el = new Gtk.Button();
2180
2181             // my vars (dec)
2182
2183             // set gobject values
2184             this.el.width_request = 50;
2185             this.el.height_request = 50;
2186             this.el.tooltip_text = "Delete Project";
2187             var child_0 = new Xcls_Image65( _this );
2188             child_0.ref();
2189             this.el.set_image (  child_0.el  );
2190
2191             //listeners
2192             this.el.clicked.connect( ( ) => {
2193                  
2194                  var cd = DialogConfirm.singleton();
2195                  cd.el.set_transient_for(_this.el);
2196                 cd.el.set_modal(true);
2197             
2198                  var project =   _this.windowstate.left_projects.getSelectedProject();
2199                 if (project == null) {
2200                     print("SKIP - no project\n");
2201                     return;
2202                 }
2203                 
2204                     
2205                  if (Gtk.ResponseType.YES != cd.show("Confirm", 
2206                     "Are you sure you want to delete project %s".printf(project.name))) {
2207                     return;
2208                 }
2209                  
2210             
2211                 // confirm?
2212                 Project.Project.remove(project);
2213                 _this.project = null;
2214                 
2215                 _this.windowstate.left_projects.is_loaded =  false;
2216                 _this.windowstate.left_projects.load();
2217                 _this.windowstate.clutterfiles.clearFiles();
2218             
2219             });
2220         }
2221
2222         // user defined functions
2223     }
2224     public class Xcls_Image65 : Object
2225     {
2226         public Gtk.Image el;
2227         private Xcls_MainWindow  _this;
2228
2229
2230             // my vars (def)
2231
2232         // ctor
2233         public Xcls_Image65(Xcls_MainWindow _owner )
2234         {
2235             _this = _owner;
2236             this.el = new Gtk.Image();
2237
2238             // my vars (dec)
2239
2240             // set gobject values
2241             this.el.icon_name = "user-trash";
2242         }
2243
2244         // user defined functions
2245     }
2246
2247
2248
2249
2250
2251
2252
2253
2254     public class Xcls_Box66 : Object
2255     {
2256         public Gtk.Box el;
2257         private Xcls_MainWindow  _this;
2258
2259
2260             // my vars (def)
2261
2262         // ctor
2263         public Xcls_Box66(Xcls_MainWindow _owner )
2264         {
2265             _this = _owner;
2266             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2267
2268             // my vars (dec)
2269
2270             // set gobject values
2271             this.el.homogeneous = false;
2272             var child_0 = new Xcls_Label67( _this );
2273             child_0.ref();
2274             this.el.pack_start (  child_0.el , true,true,0 );
2275             var child_1 = new Xcls_statusbar( _this );
2276             child_1.ref();
2277             this.el.pack_start (  child_1.el , true,true,0 );
2278             var child_2 = new Xcls_search_entry( _this );
2279             child_2.ref();
2280             this.el.pack_start (  child_2.el , false,true,0 );
2281             var child_3 = new Xcls_MenuBar70( _this );
2282             child_3.ref();
2283             this.el.pack_end (  child_3.el , false,true,0 );
2284         }
2285
2286         // user defined functions
2287     }
2288     public class Xcls_Label67 : Object
2289     {
2290         public Gtk.Label el;
2291         private Xcls_MainWindow  _this;
2292
2293
2294             // my vars (def)
2295
2296         // ctor
2297         public Xcls_Label67(Xcls_MainWindow _owner )
2298         {
2299             _this = _owner;
2300             this.el = new Gtk.Label( "   " );
2301
2302             // my vars (dec)
2303
2304             // set gobject values
2305         }
2306
2307         // user defined functions
2308     }
2309
2310     public class Xcls_statusbar : Object
2311     {
2312         public Gtk.ProgressBar el;
2313         private Xcls_MainWindow  _this;
2314
2315
2316             // my vars (def)
2317         public ulong handler_id;
2318
2319         // ctor
2320         public Xcls_statusbar(Xcls_MainWindow _owner )
2321         {
2322             _this = _owner;
2323             _this.statusbar = this;
2324             this.el = new Gtk.ProgressBar();
2325
2326             // my vars (dec)
2327             this.handler_id = -1;
2328
2329             // set gobject values
2330             this.el.show_text = true;
2331
2332             // init method
2333
2334             {
2335                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2336                     if (pos < 1) {
2337                         this.el.hide();
2338                         _this.mainpane.el.set_sensitive(true);
2339                         
2340                         return;
2341                     }
2342                      _this.mainpane.el.set_sensitive(false);
2343                      this.el.show();
2344                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2345                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2346                    
2347                  });
2348             }
2349         }
2350
2351         // user defined functions
2352     }
2353
2354     public class Xcls_search_entry : Object
2355     {
2356         public Gtk.SearchEntry el;
2357         private Xcls_MainWindow  _this;
2358
2359
2360             // my vars (def)
2361
2362         // ctor
2363         public Xcls_search_entry(Xcls_MainWindow _owner )
2364         {
2365             _this = _owner;
2366             _this.search_entry = this;
2367             this.el = new Gtk.SearchEntry();
2368
2369             // my vars (dec)
2370
2371             // set gobject values
2372
2373             // init method
2374
2375             var description =   Pango.FontDescription.from_string("monospace");
2376                 description.set_size(8000);
2377                  this.el.override_font(description);
2378
2379             //listeners
2380             this.el.key_press_event.connect( (event) => {
2381                 
2382                 if (event.keyval == Gdk.Key.Return) {
2383                         this.forwardSearch(false);
2384                     return true;
2385             
2386                 }    
2387                // print(event.key.keyval)
2388                 
2389                 return false;
2390             
2391             });
2392             this.el.changed.connect( () => {
2393                 if (this.el.text == "") {
2394                         _this.search_results.el.hide();
2395                         return;
2396                 }
2397                 var res = 0;
2398                 switch(_this.windowstate.state) {
2399                         case WindowState.State.CODEONLY:
2400                         case WindowState.State.CODE:
2401                                 // search the code being edited..
2402                                 res = _this.windowstate.code_editor.search(this.el.text);
2403                                 
2404                                 break;
2405                         case WindowState.State.PREVIEW:
2406                                 if (_this.windowstate.file.xtype == "Gtk") {
2407                                          res = _this.windowstate.window_gladeview.search(this.el.text);
2408                                 } else { 
2409                                          res = _this.windowstate.window_rooview.search(this.el.text);                   
2410                                 }
2411                         
2412                         
2413                                 break;
2414                 }
2415                 _this.search_results.el.show();
2416                 if (res > 0) {
2417                         _this.search_results.el.label = "%d Matches".printf(res);
2418                 } else {
2419                         _this.search_results.el.label = "No Matches";
2420                 }
2421                         
2422                 
2423                 
2424             });
2425         }
2426
2427         // user defined functions
2428         public void forwardSearch (bool change_focus) {
2429                 switch(_this.windowstate.state) {
2430                         case WindowState.State.CODEONLY:
2431                         case WindowState.State.CODE:
2432                                 // search the code being edited..
2433                                 _this.windowstate.code_editor.forwardSearch(change_focus);
2434                                 
2435                                 break;
2436                         case WindowState.State.PREVIEW:
2437                                 if (_this.windowstate.file.xtype == "Gtk") {
2438                                         _this.windowstate.window_gladeview.forwardSearch(change_focus);
2439                                 } else { 
2440                                          _this.windowstate.window_rooview.forwardSearch(change_focus);
2441                                 }
2442                         
2443                                 break;
2444                 }
2445                 
2446         }
2447     }
2448
2449     public class Xcls_MenuBar70 : Object
2450     {
2451         public Gtk.MenuBar el;
2452         private Xcls_MainWindow  _this;
2453
2454
2455             // my vars (def)
2456
2457         // ctor
2458         public Xcls_MenuBar70(Xcls_MainWindow _owner )
2459         {
2460             _this = _owner;
2461             this.el = new Gtk.MenuBar();
2462
2463             // my vars (dec)
2464
2465             // set gobject values
2466             var child_0 = new Xcls_search_results( _this );
2467             child_0.ref();
2468             this.el.add (  child_0.el  );
2469             var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2470             child_1.ref();
2471             this.el.add (  child_1.el  );
2472             var child_2 = new Xcls_statusbar_errors( _this );
2473             child_2.ref();
2474             this.el.add (  child_2.el  );
2475             var child_3 = new Xcls_statusbar_warnings( _this );
2476             child_3.ref();
2477             this.el.add (  child_3.el  );
2478             var child_4 = new Xcls_statusbar_depricated( _this );
2479             child_4.ref();
2480             this.el.add (  child_4.el  );
2481             var child_5 = new Xcls_statusbar_run( _this );
2482             child_5.ref();
2483             this.el.add (  child_5.el  );
2484         }
2485
2486         // user defined functions
2487     }
2488     public class Xcls_search_results : Object
2489     {
2490         public Gtk.ImageMenuItem el;
2491         private Xcls_MainWindow  _this;
2492
2493
2494             // my vars (def)
2495         public Xcls_ValaCompileErrors popup;
2496
2497         // ctor
2498         public Xcls_search_results(Xcls_MainWindow _owner )
2499         {
2500             _this = _owner;
2501             _this.search_results = this;
2502             this.el = new Gtk.ImageMenuItem();
2503
2504             // my vars (dec)
2505
2506             // set gobject values
2507             this.el.always_show_image = true;
2508             this.el.label = "Matches";
2509             var child_0 = new Xcls_Image72( _this );
2510             child_0.ref();
2511             this.el.set_image (  child_0.el  );
2512
2513             //listeners
2514             this.el.button_press_event.connect( () => {
2515             /*
2516                 if (this.popup == null) {
2517                     this.popup = new Xcls_ValaCompileErrors();
2518                     this.popup.window = _this;
2519                 }
2520                
2521                 
2522                 this.popup.show(this.notices, this.el);
2523                 */
2524                 return true;
2525             });
2526         }
2527
2528         // user defined functions
2529     }
2530     public class Xcls_Image72 : Object
2531     {
2532         public Gtk.Image el;
2533         private Xcls_MainWindow  _this;
2534
2535
2536             // my vars (def)
2537
2538         // ctor
2539         public Xcls_Image72(Xcls_MainWindow _owner )
2540         {
2541             _this = _owner;
2542             this.el = new Gtk.Image();
2543
2544             // my vars (dec)
2545
2546             // set gobject values
2547             this.el.icon_name = "system-search";
2548             this.el.sensitive = false;
2549         }
2550
2551         // user defined functions
2552     }
2553
2554
2555     public class Xcls_statusbar_compilestatus_label : Object
2556     {
2557         public Gtk.MenuItem el;
2558         private Xcls_MainWindow  _this;
2559
2560
2561             // my vars (def)
2562
2563         // ctor
2564         public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2565         {
2566             _this = _owner;
2567             _this.statusbar_compilestatus_label = this;
2568             this.el = new Gtk.MenuItem();
2569
2570             // my vars (dec)
2571
2572             // set gobject values
2573             this.el.label = "Compile Status:";
2574         }
2575
2576         // user defined functions
2577     }
2578
2579     public class Xcls_statusbar_errors : Object
2580     {
2581         public Gtk.ImageMenuItem el;
2582         private Xcls_MainWindow  _this;
2583
2584
2585             // my vars (def)
2586         public Xcls_ValaCompileErrors popup;
2587         public Json.Object notices;
2588
2589         // ctor
2590         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2591         {
2592             _this = _owner;
2593             _this.statusbar_errors = this;
2594             this.el = new Gtk.ImageMenuItem();
2595
2596             // my vars (dec)
2597             this.notices = new Json.Object() ;
2598
2599             // set gobject values
2600             this.el.always_show_image = true;
2601             this.el.label = "Errors";
2602             var child_0 = new Xcls_Image75( _this );
2603             child_0.ref();
2604             this.el.set_image (  child_0.el  );
2605
2606             //listeners
2607             this.el.button_press_event.connect( () => {
2608                 if (this.popup == null) {
2609                     this.popup = new Xcls_ValaCompileErrors();
2610                     this.popup.window = _this;
2611                 }
2612                
2613                 
2614                 this.popup.show(this.notices, this.el);
2615                 return true;
2616             });
2617         }
2618
2619         // user defined functions
2620         public void setNotices (Json.Object nots, int qty) {
2621             this.el.show();
2622             this.el.label = qty.to_string() + " Errors";
2623             this.notices = nots;
2624         
2625         }
2626     }
2627     public class Xcls_Image75 : Object
2628     {
2629         public Gtk.Image el;
2630         private Xcls_MainWindow  _this;
2631
2632
2633             // my vars (def)
2634
2635         // ctor
2636         public Xcls_Image75(Xcls_MainWindow _owner )
2637         {
2638             _this = _owner;
2639             this.el = new Gtk.Image();
2640
2641             // my vars (dec)
2642
2643             // set gobject values
2644             this.el.icon_name = "dialog-error";
2645         }
2646
2647         // user defined functions
2648     }
2649
2650
2651     public class Xcls_statusbar_warnings : Object
2652     {
2653         public Gtk.ImageMenuItem el;
2654         private Xcls_MainWindow  _this;
2655
2656
2657             // my vars (def)
2658         public Xcls_ValaCompileErrors popup;
2659         public Json.Object notices;
2660
2661         // ctor
2662         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2663         {
2664             _this = _owner;
2665             _this.statusbar_warnings = this;
2666             this.el = new Gtk.ImageMenuItem();
2667
2668             // my vars (dec)
2669             this.notices = new Json.Object();
2670
2671             // set gobject values
2672             this.el.always_show_image = true;
2673             this.el.label = "Warnings";
2674             var child_0 = new Xcls_Image77( _this );
2675             child_0.ref();
2676             this.el.set_image (  child_0.el  );
2677
2678             //listeners
2679             this.el.button_press_event.connect( () => {
2680                 if (this.popup == null) {
2681                     this.popup = new Xcls_ValaCompileErrors();
2682                     this.popup.window = _this;
2683                 }
2684                 
2685                 this.popup.show(this.notices, this.el);
2686                 return true;
2687             });
2688         }
2689
2690         // user defined functions
2691         public void setNotices (Json.Object nots, int qty) {
2692             this.el.show();
2693             this.el.label = qty.to_string() + " Warnings";
2694             this.notices = nots;
2695         
2696         }
2697     }
2698     public class Xcls_Image77 : Object
2699     {
2700         public Gtk.Image el;
2701         private Xcls_MainWindow  _this;
2702
2703
2704             // my vars (def)
2705
2706         // ctor
2707         public Xcls_Image77(Xcls_MainWindow _owner )
2708         {
2709             _this = _owner;
2710             this.el = new Gtk.Image();
2711
2712             // my vars (dec)
2713
2714             // set gobject values
2715             this.el.icon_name = "dialog-warning";
2716         }
2717
2718         // user defined functions
2719     }
2720
2721
2722     public class Xcls_statusbar_depricated : Object
2723     {
2724         public Gtk.ImageMenuItem el;
2725         private Xcls_MainWindow  _this;
2726
2727
2728             // my vars (def)
2729         public Xcls_ValaCompileErrors popup;
2730         public Json.Object notices;
2731
2732         // ctor
2733         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2734         {
2735             _this = _owner;
2736             _this.statusbar_depricated = this;
2737             this.el = new Gtk.ImageMenuItem();
2738
2739             // my vars (dec)
2740             this.notices = new Json.Object();
2741
2742             // set gobject values
2743             this.el.always_show_image = true;
2744             this.el.label = "Depricated";
2745             var child_0 = new Xcls_Image79( _this );
2746             child_0.ref();
2747             this.el.set_image (  child_0.el  );
2748
2749             //listeners
2750             this.el.button_press_event.connect( () => {
2751                 if (this.popup == null) {
2752                     this.popup = new Xcls_ValaCompileErrors();
2753                     this.popup.window = _this;
2754                 }
2755                 
2756                 
2757                 this.popup.show(this.notices, this.el);
2758                 return true;
2759             });
2760         }
2761
2762         // user defined functions
2763         public void setNotices (Json.Object nots, int qty) {
2764             this.el.show();
2765             this.el.label = qty.to_string() + " Depricated";
2766             this.notices = nots;
2767         
2768         }
2769     }
2770     public class Xcls_Image79 : Object
2771     {
2772         public Gtk.Image el;
2773         private Xcls_MainWindow  _this;
2774
2775
2776             // my vars (def)
2777
2778         // ctor
2779         public Xcls_Image79(Xcls_MainWindow _owner )
2780         {
2781             _this = _owner;
2782             this.el = new Gtk.Image();
2783
2784             // my vars (dec)
2785
2786             // set gobject values
2787             this.el.icon_name = "dialog-information";
2788         }
2789
2790         // user defined functions
2791     }
2792
2793
2794     public class Xcls_statusbar_run : Object
2795     {
2796         public Gtk.ImageMenuItem el;
2797         private Xcls_MainWindow  _this;
2798
2799
2800             // my vars (def)
2801         public Xcls_ValaCompileErrors popup;
2802
2803         // ctor
2804         public Xcls_statusbar_run(Xcls_MainWindow _owner )
2805         {
2806             _this = _owner;
2807             _this.statusbar_run = this;
2808             this.el = new Gtk.ImageMenuItem();
2809
2810             // my vars (dec)
2811
2812             // set gobject values
2813             this.el.always_show_image = true;
2814             this.el.label = "Run";
2815             var child_0 = new Xcls_Image81( _this );
2816             child_0.ref();
2817             this.el.set_image (  child_0.el  );
2818
2819             //listeners
2820             this.el.button_press_event.connect( () => {
2821                 if (_this.windowstate.file == null) {
2822                         return true;
2823                 }
2824                 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2825                 
2826                 _this.windowstate.compile_results.show(this.el,true);
2827                 
2828                 return true;
2829             });
2830         }
2831
2832         // user defined functions
2833     }
2834     public class Xcls_Image81 : Object
2835     {
2836         public Gtk.Image el;
2837         private Xcls_MainWindow  _this;
2838
2839
2840             // my vars (def)
2841
2842         // ctor
2843         public Xcls_Image81(Xcls_MainWindow _owner )
2844         {
2845             _this = _owner;
2846             this.el = new Gtk.Image();
2847
2848             // my vars (dec)
2849
2850             // set gobject values
2851             this.el.icon_name = "media-playback-start";
2852         }
2853
2854         // user defined functions
2855     }
2856
2857
2858
2859
2860
2861 }