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