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                                  break;
1198                          default: 
1199                                  _this.windowstate.switchState(WindowState.State.PREVIEW);
1200                                 break;
1201                 }
1202                 
1203             
1204             });
1205         }
1206
1207         // user defined functions
1208     }
1209     public class Xcls_Image33 : Object
1210     {
1211         public Gtk.Image el;
1212         private Xcls_MainWindow  _this;
1213
1214
1215             // my vars (def)
1216
1217         // ctor
1218         public Xcls_Image33(Xcls_MainWindow _owner )
1219         {
1220             _this = _owner;
1221             this.el = new Gtk.Image();
1222
1223             // my vars (dec)
1224
1225             // set gobject values
1226             this.el.icon_name = "go-previous";
1227         }
1228
1229         // user defined functions
1230     }
1231
1232
1233
1234
1235     public class Xcls_editfilebutton : Object
1236     {
1237         public Clutter.Actor el;
1238         private Xcls_MainWindow  _this;
1239
1240
1241             // my vars (def)
1242
1243         // ctor
1244         public Xcls_editfilebutton(Xcls_MainWindow _owner )
1245         {
1246             _this = _owner;
1247             _this.editfilebutton = this;
1248             this.el = new Clutter.Actor();
1249
1250             // my vars (dec)
1251
1252             // set gobject values
1253             var child_0 = new Xcls_Actor35( _this );
1254             child_0.ref();
1255             this.el.add_child (  child_0.el  );
1256
1257             // init method
1258
1259             this.el.set_size(50.0f,50.0f);
1260         }
1261
1262         // user defined functions
1263     }
1264     public class Xcls_Actor35 : Object
1265     {
1266         public GtkClutter.Actor el;
1267         private Xcls_MainWindow  _this;
1268
1269
1270             // my vars (def)
1271
1272         // ctor
1273         public Xcls_Actor35(Xcls_MainWindow _owner )
1274         {
1275             _this = _owner;
1276             this.el = new GtkClutter.Actor();
1277
1278             // my vars (dec)
1279
1280             // set gobject values
1281             var child_0 = new Xcls_Button36( _this );
1282             child_0.ref();
1283
1284             // init method
1285
1286             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1287         }
1288
1289         // user defined functions
1290     }
1291     public class Xcls_Button36 : Object
1292     {
1293         public Gtk.Button el;
1294         private Xcls_MainWindow  _this;
1295
1296
1297             // my vars (def)
1298
1299         // ctor
1300         public Xcls_Button36(Xcls_MainWindow _owner )
1301         {
1302             _this = _owner;
1303             this.el = new Gtk.Button();
1304
1305             // my vars (dec)
1306
1307             // set gobject values
1308             this.el.width_request = 50;
1309             this.el.height_request = 50;
1310             this.el.tooltip_text = "File Details";
1311             var child_0 = new Xcls_Image37( _this );
1312             child_0.ref();
1313             this.el.set_image (  child_0.el  );
1314
1315             //listeners
1316             this.el.clicked.connect( ( ) => {
1317               
1318                 // create a new file in project..
1319                 if (_this.project == null || _this.windowstate.file == null) {
1320                     return  ;
1321                 }
1322                  _this.windowstate.file_details.show(
1323                     _this.windowstate.file, this.el
1324                 );
1325                  
1326                 return  ;    
1327             
1328             
1329             });
1330         }
1331
1332         // user defined functions
1333     }
1334     public class Xcls_Image37 : Object
1335     {
1336         public Gtk.Image el;
1337         private Xcls_MainWindow  _this;
1338
1339
1340             // my vars (def)
1341
1342         // ctor
1343         public Xcls_Image37(Xcls_MainWindow _owner )
1344         {
1345             _this = _owner;
1346             this.el = new Gtk.Image();
1347
1348             // my vars (dec)
1349
1350             // set gobject values
1351             this.el.icon_name = "document-properties";
1352         }
1353
1354         // user defined functions
1355     }
1356
1357
1358
1359
1360     public class Xcls_projecteditbutton : Object
1361     {
1362         public Clutter.Actor el;
1363         private Xcls_MainWindow  _this;
1364
1365
1366             // my vars (def)
1367
1368         // ctor
1369         public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1370         {
1371             _this = _owner;
1372             _this.projecteditbutton = this;
1373             this.el = new Clutter.Actor();
1374
1375             // my vars (dec)
1376
1377             // set gobject values
1378             var child_0 = new Xcls_Actor39( _this );
1379             child_0.ref();
1380             this.el.add_child (  child_0.el  );
1381
1382             // init method
1383
1384             this.el.set_size(50,50);
1385         }
1386
1387         // user defined functions
1388     }
1389     public class Xcls_Actor39 : Object
1390     {
1391         public GtkClutter.Actor el;
1392         private Xcls_MainWindow  _this;
1393
1394
1395             // my vars (def)
1396
1397         // ctor
1398         public Xcls_Actor39(Xcls_MainWindow _owner )
1399         {
1400             _this = _owner;
1401             this.el = new GtkClutter.Actor();
1402
1403             // my vars (dec)
1404
1405             // set gobject values
1406             var child_0 = new Xcls_Button40( _this );
1407             child_0.ref();
1408
1409             // init method
1410
1411             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1412         }
1413
1414         // user defined functions
1415     }
1416     public class Xcls_Button40 : Object
1417     {
1418         public Gtk.Button el;
1419         private Xcls_MainWindow  _this;
1420
1421
1422             // my vars (def)
1423
1424         // ctor
1425         public Xcls_Button40(Xcls_MainWindow _owner )
1426         {
1427             _this = _owner;
1428             this.el = new Gtk.Button();
1429
1430             // my vars (dec)
1431
1432             // set gobject values
1433             this.el.width_request = 50;
1434             this.el.height_request = 50;
1435             this.el.tooltip_text = "Project Details";
1436             var child_0 = new Xcls_Image41( _this );
1437             child_0.ref();
1438             this.el.set_image (  child_0.el  );
1439
1440             //listeners
1441             this.el.clicked.connect( ( ) => {
1442                 
1443                  switch(_this.windowstate.state) {
1444                    case WindowState.State.FILES:
1445                            _this.windowstate.switchState(WindowState.State.FILEPROJECT);
1446                            break;
1447                    case WindowState.State.CODEONLY:
1448                            _this.windowstate.switchState(WindowState.State.PROJECTCODEONLY);
1449                            break;
1450                    default:
1451                      _this.windowstate.switchState(WindowState.State.PROJECT);
1452                      break;
1453                  }     
1454                 
1455             });
1456         }
1457
1458         // user defined functions
1459     }
1460     public class Xcls_Image41 : Object
1461     {
1462         public Gtk.Image el;
1463         private Xcls_MainWindow  _this;
1464
1465
1466             // my vars (def)
1467
1468         // ctor
1469         public Xcls_Image41(Xcls_MainWindow _owner )
1470         {
1471             _this = _owner;
1472             this.el = new Gtk.Image();
1473
1474             // my vars (dec)
1475
1476             // set gobject values
1477             this.el.icon_name = "emblem-system";
1478         }
1479
1480         // user defined functions
1481     }
1482
1483
1484
1485
1486     public class Xcls_objectshowbutton : Object
1487     {
1488         public Clutter.Actor el;
1489         private Xcls_MainWindow  _this;
1490
1491
1492             // my vars (def)
1493
1494         // ctor
1495         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1496         {
1497             _this = _owner;
1498             _this.objectshowbutton = this;
1499             this.el = new Clutter.Actor();
1500
1501             // my vars (dec)
1502
1503             // set gobject values
1504             var child_0 = new Xcls_Actor43( _this );
1505             child_0.ref();
1506             this.el.add_child (  child_0.el  );
1507
1508             // init method
1509
1510             this.el.set_size(50,50);
1511
1512             //listeners
1513             this.el.enter_event.connect( (  event)  => {
1514                 this.el.background_color =   Clutter.Color.from_string("#333");
1515                     return false;
1516             });
1517             this.el.leave_event.connect( (  event)  => {
1518                 this.el.background_color =   Clutter.Color.from_string("#000");
1519                 return false;
1520             });
1521         }
1522
1523         // user defined functions
1524     }
1525     public class Xcls_Actor43 : Object
1526     {
1527         public GtkClutter.Actor el;
1528         private Xcls_MainWindow  _this;
1529
1530
1531             // my vars (def)
1532
1533         // ctor
1534         public Xcls_Actor43(Xcls_MainWindow _owner )
1535         {
1536             _this = _owner;
1537             this.el = new GtkClutter.Actor();
1538
1539             // my vars (dec)
1540
1541             // set gobject values
1542             var child_0 = new Xcls_Button44( _this );
1543             child_0.ref();
1544
1545             // init method
1546
1547             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1548         }
1549
1550         // user defined functions
1551     }
1552     public class Xcls_Button44 : Object
1553     {
1554         public Gtk.Button el;
1555         private Xcls_MainWindow  _this;
1556
1557
1558             // my vars (def)
1559
1560         // ctor
1561         public Xcls_Button44(Xcls_MainWindow _owner )
1562         {
1563             _this = _owner;
1564             this.el = new Gtk.Button();
1565
1566             // my vars (dec)
1567
1568             // set gobject values
1569             this.el.width_request = 50;
1570             this.el.height_request = 50;
1571             this.el.tooltip_text = "Add Child Element";
1572             var child_0 = new Xcls_Image45( _this );
1573             child_0.ref();
1574             this.el.set_image (  child_0.el  );
1575
1576             //listeners
1577             this.el.clicked.connect( ( ) => {
1578                 
1579                  _this.windowstate.switchState(WindowState.State.OBJECT);
1580               
1581              
1582             });
1583         }
1584
1585         // user defined functions
1586     }
1587     public class Xcls_Image45 : Object
1588     {
1589         public Gtk.Image el;
1590         private Xcls_MainWindow  _this;
1591
1592
1593             // my vars (def)
1594
1595         // ctor
1596         public Xcls_Image45(Xcls_MainWindow _owner )
1597         {
1598             _this = _owner;
1599             this.el = new Gtk.Image();
1600
1601             // my vars (dec)
1602
1603             // set gobject values
1604             this.el.icon_name = "list-add";
1605         }
1606
1607         // user defined functions
1608     }
1609
1610
1611
1612
1613     public class Xcls_addpropbutton : Object
1614     {
1615         public Clutter.Actor el;
1616         private Xcls_MainWindow  _this;
1617
1618
1619             // my vars (def)
1620
1621         // ctor
1622         public Xcls_addpropbutton(Xcls_MainWindow _owner )
1623         {
1624             _this = _owner;
1625             _this.addpropbutton = this;
1626             this.el = new Clutter.Actor();
1627
1628             // my vars (dec)
1629
1630             // set gobject values
1631             var child_0 = new Xcls_Actor47( _this );
1632             child_0.ref();
1633             this.el.add_child (  child_0.el  );
1634
1635             // init method
1636
1637             this.el.set_size(50,50);
1638         }
1639
1640         // user defined functions
1641     }
1642     public class Xcls_Actor47 : Object
1643     {
1644         public GtkClutter.Actor el;
1645         private Xcls_MainWindow  _this;
1646
1647
1648             // my vars (def)
1649
1650         // ctor
1651         public Xcls_Actor47(Xcls_MainWindow _owner )
1652         {
1653             _this = _owner;
1654             this.el = new GtkClutter.Actor();
1655
1656             // my vars (dec)
1657
1658             // set gobject values
1659             var child_0 = new Xcls_Button48( _this );
1660             child_0.ref();
1661
1662             // init method
1663
1664             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1665         }
1666
1667         // user defined functions
1668     }
1669     public class Xcls_Button48 : Object
1670     {
1671         public Gtk.Button el;
1672         private Xcls_MainWindow  _this;
1673
1674
1675             // my vars (def)
1676
1677         // ctor
1678         public Xcls_Button48(Xcls_MainWindow _owner )
1679         {
1680             _this = _owner;
1681             this.el = new Gtk.Button();
1682
1683             // my vars (dec)
1684
1685             // set gobject values
1686             this.el.width_request = 50;
1687             this.el.height_request = 50;
1688             this.el.tooltip_text = "Add Property";
1689             var child_0 = new Xcls_Image49( _this );
1690             child_0.ref();
1691             this.el.set_image (  child_0.el  );
1692
1693             //listeners
1694             this.el.clicked.connect( ( ) => {
1695                 
1696                  _this.windowstate.switchState(WindowState.State.PROP);
1697              
1698             
1699             });
1700         }
1701
1702         // user defined functions
1703     }
1704     public class Xcls_Image49 : Object
1705     {
1706         public Gtk.Image el;
1707         private Xcls_MainWindow  _this;
1708
1709
1710             // my vars (def)
1711
1712         // ctor
1713         public Xcls_Image49(Xcls_MainWindow _owner )
1714         {
1715             _this = _owner;
1716             this.el = new Gtk.Image();
1717
1718             // my vars (dec)
1719
1720             // set gobject values
1721             this.el.icon_name = "format-justify-left";
1722         }
1723
1724         // user defined functions
1725     }
1726
1727
1728
1729
1730     public class Xcls_addlistenerbutton : Object
1731     {
1732         public Clutter.Actor el;
1733         private Xcls_MainWindow  _this;
1734
1735
1736             // my vars (def)
1737
1738         // ctor
1739         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1740         {
1741             _this = _owner;
1742             _this.addlistenerbutton = this;
1743             this.el = new Clutter.Actor();
1744
1745             // my vars (dec)
1746
1747             // set gobject values
1748             var child_0 = new Xcls_Actor51( _this );
1749             child_0.ref();
1750             this.el.add_child (  child_0.el  );
1751
1752             // init method
1753
1754             this.el.set_size(50,50);
1755         }
1756
1757         // user defined functions
1758     }
1759     public class Xcls_Actor51 : Object
1760     {
1761         public GtkClutter.Actor el;
1762         private Xcls_MainWindow  _this;
1763
1764
1765             // my vars (def)
1766
1767         // ctor
1768         public Xcls_Actor51(Xcls_MainWindow _owner )
1769         {
1770             _this = _owner;
1771             this.el = new GtkClutter.Actor();
1772
1773             // my vars (dec)
1774
1775             // set gobject values
1776             var child_0 = new Xcls_Button52( _this );
1777             child_0.ref();
1778
1779             // init method
1780
1781             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1782         }
1783
1784         // user defined functions
1785     }
1786     public class Xcls_Button52 : Object
1787     {
1788         public Gtk.Button el;
1789         private Xcls_MainWindow  _this;
1790
1791
1792             // my vars (def)
1793
1794         // ctor
1795         public Xcls_Button52(Xcls_MainWindow _owner )
1796         {
1797             _this = _owner;
1798             this.el = new Gtk.Button();
1799
1800             // my vars (dec)
1801
1802             // set gobject values
1803             this.el.width_request = 50;
1804             this.el.height_request = 50;
1805             this.el.tooltip_text = "Add Event Code";
1806             var child_0 = new Xcls_Image53( _this );
1807             child_0.ref();
1808             this.el.set_image (  child_0.el  );
1809
1810             //listeners
1811             this.el.clicked.connect( ( ) => {
1812                 
1813                 _this.windowstate.switchState(WindowState.State.LISTENER);
1814               
1815             
1816             
1817             });
1818         }
1819
1820         // user defined functions
1821     }
1822     public class Xcls_Image53 : Object
1823     {
1824         public Gtk.Image el;
1825         private Xcls_MainWindow  _this;
1826
1827
1828             // my vars (def)
1829
1830         // ctor
1831         public Xcls_Image53(Xcls_MainWindow _owner )
1832         {
1833             _this = _owner;
1834             this.el = new Gtk.Image();
1835
1836             // my vars (dec)
1837
1838             // set gobject values
1839             this.el.icon_name = "appointment-new";
1840         }
1841
1842         // user defined functions
1843     }
1844
1845
1846
1847
1848     public class Xcls_addprojectbutton : Object
1849     {
1850         public Clutter.Actor el;
1851         private Xcls_MainWindow  _this;
1852
1853
1854             // my vars (def)
1855
1856         // ctor
1857         public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1858         {
1859             _this = _owner;
1860             _this.addprojectbutton = this;
1861             this.el = new Clutter.Actor();
1862
1863             // my vars (dec)
1864
1865             // set gobject values
1866             var child_0 = new Xcls_Actor55( _this );
1867             child_0.ref();
1868             this.el.add_child (  child_0.el  );
1869
1870             // init method
1871
1872             this.el.set_size(50.0f,50.0f);
1873         }
1874
1875         // user defined functions
1876     }
1877     public class Xcls_Actor55 : Object
1878     {
1879         public GtkClutter.Actor el;
1880         private Xcls_MainWindow  _this;
1881
1882
1883             // my vars (def)
1884
1885         // ctor
1886         public Xcls_Actor55(Xcls_MainWindow _owner )
1887         {
1888             _this = _owner;
1889             this.el = new GtkClutter.Actor();
1890
1891             // my vars (dec)
1892
1893             // set gobject values
1894             var child_0 = new Xcls_Button56( _this );
1895             child_0.ref();
1896
1897             // init method
1898
1899             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1900         }
1901
1902         // user defined functions
1903     }
1904     public class Xcls_Button56 : Object
1905     {
1906         public Gtk.Button el;
1907         private Xcls_MainWindow  _this;
1908
1909
1910             // my vars (def)
1911
1912         // ctor
1913         public Xcls_Button56(Xcls_MainWindow _owner )
1914         {
1915             _this = _owner;
1916             this.el = new Gtk.Button();
1917
1918             // my vars (dec)
1919
1920             // set gobject values
1921             this.el.width_request = 50;
1922             this.el.height_request = 50;
1923             this.el.tooltip_text = "New\nProj.";
1924             var child_0 = new Xcls_Image57( _this );
1925             child_0.ref();
1926             this.el.set_image (  child_0.el  );
1927
1928             //listeners
1929             this.el.clicked.connect( ( ) => {
1930               
1931                 // create a new file in project..
1932                 //Xcls_DialogNewComponent.singleton().show(
1933                var  pe =      EditProject.singleton();
1934                 pe.el.set_transient_for(_this.el);
1935                 pe.el.set_modal(true);   
1936                
1937                 var p  = pe.show();
1938             
1939                 if (p == null) {
1940                     return;
1941                 }
1942                 
1943                 
1944                 _this.windowstate.left_projects.is_loaded = false;    
1945                 _this.windowstate.left_projects.load();
1946                 _this.windowstate.left_projects.selectProject(p);
1947                 return  ;    
1948             
1949             
1950             });
1951         }
1952
1953         // user defined functions
1954     }
1955     public class Xcls_Image57 : Object
1956     {
1957         public Gtk.Image el;
1958         private Xcls_MainWindow  _this;
1959
1960
1961             // my vars (def)
1962
1963         // ctor
1964         public Xcls_Image57(Xcls_MainWindow _owner )
1965         {
1966             _this = _owner;
1967             this.el = new Gtk.Image();
1968
1969             // my vars (dec)
1970
1971             // set gobject values
1972             this.el.icon_name = "folder-new";
1973         }
1974
1975         // user defined functions
1976     }
1977
1978
1979
1980
1981     public class Xcls_addfilebutton : Object
1982     {
1983         public Clutter.Actor el;
1984         private Xcls_MainWindow  _this;
1985
1986
1987             // my vars (def)
1988
1989         // ctor
1990         public Xcls_addfilebutton(Xcls_MainWindow _owner )
1991         {
1992             _this = _owner;
1993             _this.addfilebutton = this;
1994             this.el = new Clutter.Actor();
1995
1996             // my vars (dec)
1997
1998             // set gobject values
1999             var child_0 = new Xcls_Actor59( _this );
2000             child_0.ref();
2001             this.el.add_child (  child_0.el  );
2002
2003             // init method
2004
2005             this.el.set_size(50.0f,50.0f);
2006         }
2007
2008         // user defined functions
2009     }
2010     public class Xcls_Actor59 : Object
2011     {
2012         public GtkClutter.Actor el;
2013         private Xcls_MainWindow  _this;
2014
2015
2016             // my vars (def)
2017
2018         // ctor
2019         public Xcls_Actor59(Xcls_MainWindow _owner )
2020         {
2021             _this = _owner;
2022             this.el = new GtkClutter.Actor();
2023
2024             // my vars (dec)
2025
2026             // set gobject values
2027             var child_0 = new Xcls_Button60( _this );
2028             child_0.ref();
2029
2030             // init method
2031
2032             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2033         }
2034
2035         // user defined functions
2036     }
2037     public class Xcls_Button60 : Object
2038     {
2039         public Gtk.Button el;
2040         private Xcls_MainWindow  _this;
2041
2042
2043             // my vars (def)
2044
2045         // ctor
2046         public Xcls_Button60(Xcls_MainWindow _owner )
2047         {
2048             _this = _owner;
2049             this.el = new Gtk.Button();
2050
2051             // my vars (dec)
2052
2053             // set gobject values
2054             this.el.width_request = 50;
2055             this.el.height_request = 50;
2056             this.el.tooltip_text = "Add File";
2057             var child_0 = new Xcls_Image61( _this );
2058             child_0.ref();
2059             this.el.set_image (  child_0.el  );
2060
2061             //listeners
2062             this.el.clicked.connect( () => {
2063                 // create a new file in project..
2064                 print("add file selected\n");
2065                 // what's the currently selected project...
2066                 var proj = _this.windowstate.left_projects.getSelectedProject();
2067                 
2068                 if (proj == null) {
2069                         print("no project selected?\n");
2070                     return  ;
2071                 }
2072                 
2073                 print("creating file?");
2074                 
2075                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
2076                 _this.project = proj;
2077                     print("showing popup?");
2078                  _this.windowstate.file_details.show(
2079                    f, this.el
2080                 );
2081                 
2082                 
2083                 return  ;    
2084             });
2085         }
2086
2087         // user defined functions
2088     }
2089     public class Xcls_Image61 : Object
2090     {
2091         public Gtk.Image el;
2092         private Xcls_MainWindow  _this;
2093
2094
2095             // my vars (def)
2096
2097         // ctor
2098         public Xcls_Image61(Xcls_MainWindow _owner )
2099         {
2100             _this = _owner;
2101             this.el = new Gtk.Image();
2102
2103             // my vars (dec)
2104
2105             // set gobject values
2106             this.el.icon_name = "document-new";
2107         }
2108
2109         // user defined functions
2110     }
2111
2112
2113
2114
2115     public class Xcls_delprojectbutton : Object
2116     {
2117         public Clutter.Actor el;
2118         private Xcls_MainWindow  _this;
2119
2120
2121             // my vars (def)
2122
2123         // ctor
2124         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2125         {
2126             _this = _owner;
2127             _this.delprojectbutton = this;
2128             this.el = new Clutter.Actor();
2129
2130             // my vars (dec)
2131
2132             // set gobject values
2133             var child_0 = new Xcls_Actor63( _this );
2134             child_0.ref();
2135             this.el.add_child (  child_0.el  );
2136
2137             // init method
2138
2139             this.el.set_size(50,50);
2140         }
2141
2142         // user defined functions
2143     }
2144     public class Xcls_Actor63 : Object
2145     {
2146         public GtkClutter.Actor el;
2147         private Xcls_MainWindow  _this;
2148
2149
2150             // my vars (def)
2151
2152         // ctor
2153         public Xcls_Actor63(Xcls_MainWindow _owner )
2154         {
2155             _this = _owner;
2156             this.el = new GtkClutter.Actor();
2157
2158             // my vars (dec)
2159
2160             // set gobject values
2161             var child_0 = new Xcls_Button64( _this );
2162             child_0.ref();
2163
2164             // init method
2165
2166             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2167         }
2168
2169         // user defined functions
2170     }
2171     public class Xcls_Button64 : Object
2172     {
2173         public Gtk.Button el;
2174         private Xcls_MainWindow  _this;
2175
2176
2177             // my vars (def)
2178
2179         // ctor
2180         public Xcls_Button64(Xcls_MainWindow _owner )
2181         {
2182             _this = _owner;
2183             this.el = new Gtk.Button();
2184
2185             // my vars (dec)
2186
2187             // set gobject values
2188             this.el.width_request = 50;
2189             this.el.height_request = 50;
2190             this.el.tooltip_text = "Delete Project";
2191             var child_0 = new Xcls_Image65( _this );
2192             child_0.ref();
2193             this.el.set_image (  child_0.el  );
2194
2195             //listeners
2196             this.el.clicked.connect( ( ) => {
2197                  
2198                  var cd = DialogConfirm.singleton();
2199                  cd.el.set_transient_for(_this.el);
2200                 cd.el.set_modal(true);
2201             
2202                  var project =   _this.windowstate.left_projects.getSelectedProject();
2203                 if (project == null) {
2204                     print("SKIP - no project\n");
2205                     return;
2206                 }
2207                 
2208                     
2209                  if (Gtk.ResponseType.YES != cd.show("Confirm", 
2210                     "Are you sure you want to delete project %s".printf(project.name))) {
2211                     return;
2212                 }
2213                  
2214             
2215                 // confirm?
2216                 Project.Project.remove(project);
2217                 _this.project = null;
2218                 
2219                 _this.windowstate.left_projects.is_loaded =  false;
2220                 _this.windowstate.left_projects.load();
2221                 _this.windowstate.clutterfiles.clearFiles();
2222             
2223             });
2224         }
2225
2226         // user defined functions
2227     }
2228     public class Xcls_Image65 : Object
2229     {
2230         public Gtk.Image el;
2231         private Xcls_MainWindow  _this;
2232
2233
2234             // my vars (def)
2235
2236         // ctor
2237         public Xcls_Image65(Xcls_MainWindow _owner )
2238         {
2239             _this = _owner;
2240             this.el = new Gtk.Image();
2241
2242             // my vars (dec)
2243
2244             // set gobject values
2245             this.el.icon_name = "user-trash";
2246         }
2247
2248         // user defined functions
2249     }
2250
2251
2252
2253
2254
2255
2256
2257
2258     public class Xcls_Box66 : Object
2259     {
2260         public Gtk.Box el;
2261         private Xcls_MainWindow  _this;
2262
2263
2264             // my vars (def)
2265
2266         // ctor
2267         public Xcls_Box66(Xcls_MainWindow _owner )
2268         {
2269             _this = _owner;
2270             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2271
2272             // my vars (dec)
2273
2274             // set gobject values
2275             this.el.homogeneous = false;
2276             var child_0 = new Xcls_Label67( _this );
2277             child_0.ref();
2278             this.el.pack_start (  child_0.el , true,true,0 );
2279             var child_1 = new Xcls_statusbar( _this );
2280             child_1.ref();
2281             this.el.pack_start (  child_1.el , true,true,0 );
2282             var child_2 = new Xcls_search_entry( _this );
2283             child_2.ref();
2284             this.el.pack_start (  child_2.el , false,true,0 );
2285             var child_3 = new Xcls_MenuBar70( _this );
2286             child_3.ref();
2287             this.el.pack_end (  child_3.el , false,true,0 );
2288         }
2289
2290         // user defined functions
2291     }
2292     public class Xcls_Label67 : Object
2293     {
2294         public Gtk.Label el;
2295         private Xcls_MainWindow  _this;
2296
2297
2298             // my vars (def)
2299
2300         // ctor
2301         public Xcls_Label67(Xcls_MainWindow _owner )
2302         {
2303             _this = _owner;
2304             this.el = new Gtk.Label( "   " );
2305
2306             // my vars (dec)
2307
2308             // set gobject values
2309         }
2310
2311         // user defined functions
2312     }
2313
2314     public class Xcls_statusbar : Object
2315     {
2316         public Gtk.ProgressBar el;
2317         private Xcls_MainWindow  _this;
2318
2319
2320             // my vars (def)
2321         public ulong handler_id;
2322
2323         // ctor
2324         public Xcls_statusbar(Xcls_MainWindow _owner )
2325         {
2326             _this = _owner;
2327             _this.statusbar = this;
2328             this.el = new Gtk.ProgressBar();
2329
2330             // my vars (dec)
2331             this.handler_id = -1;
2332
2333             // set gobject values
2334             this.el.show_text = true;
2335
2336             // init method
2337
2338             {
2339                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2340                     if (pos < 1) {
2341                         this.el.hide();
2342                         _this.mainpane.el.set_sensitive(true);
2343                         
2344                         return;
2345                     }
2346                      _this.mainpane.el.set_sensitive(false);
2347                      this.el.show();
2348                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2349                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2350                    
2351                  });
2352             }
2353         }
2354
2355         // user defined functions
2356     }
2357
2358     public class Xcls_search_entry : Object
2359     {
2360         public Gtk.SearchEntry el;
2361         private Xcls_MainWindow  _this;
2362
2363
2364             // my vars (def)
2365
2366         // ctor
2367         public Xcls_search_entry(Xcls_MainWindow _owner )
2368         {
2369             _this = _owner;
2370             _this.search_entry = this;
2371             this.el = new Gtk.SearchEntry();
2372
2373             // my vars (dec)
2374
2375             // set gobject values
2376
2377             // init method
2378
2379             var description =   Pango.FontDescription.from_string("monospace");
2380                 description.set_size(8000);
2381                  this.el.override_font(description);
2382
2383             //listeners
2384             this.el.key_press_event.connect( (event) => {
2385                 
2386                 if (event.keyval == Gdk.Key.Return) {
2387                         this.forwardSearch(false);
2388                     return true;
2389             
2390                 }    
2391                // print(event.key.keyval)
2392                 
2393                 return false;
2394             
2395             });
2396             this.el.changed.connect( () => {
2397                 if (this.el.text == "") {
2398                         _this.search_results.el.hide();
2399                         return;
2400                 }
2401                 var res = 0;
2402                 switch(_this.windowstate.state) {
2403                         case WindowState.State.CODEONLY:
2404                         case WindowState.State.CODE:
2405                                 // search the code being edited..
2406                                 res = _this.windowstate.code_editor.search(this.el.text);
2407                                 
2408                                 break;
2409                         case WindowState.State.PREVIEW:
2410                                 if (_this.windowstate.file.xtype == "Gtk") {
2411                                          res = _this.windowstate.window_gladeview.search(this.el.text);
2412                                 } else { 
2413                                          res = _this.windowstate.window_rooview.search(this.el.text);                   
2414                                 }
2415                         
2416                         
2417                                 break;
2418                 }
2419                 _this.search_results.el.show();
2420                 if (res > 0) {
2421                         _this.search_results.el.label = "%d Matches".printf(res);
2422                 } else {
2423                         _this.search_results.el.label = "No Matches";
2424                 }
2425                         
2426                 
2427                 
2428             });
2429         }
2430
2431         // user defined functions
2432         public void forwardSearch (bool change_focus) {
2433                 switch(_this.windowstate.state) {
2434                         case WindowState.State.CODEONLY:
2435                         case WindowState.State.CODE:
2436                                 // search the code being edited..
2437                                 _this.windowstate.code_editor.forwardSearch(change_focus);
2438                                 
2439                                 break;
2440                         case WindowState.State.PREVIEW:
2441                                 if (_this.windowstate.file.xtype == "Gtk") {
2442                                         _this.windowstate.window_gladeview.forwardSearch(change_focus);
2443                                 } else { 
2444                                          _this.windowstate.window_rooview.forwardSearch(change_focus);
2445                                 }
2446                         
2447                                 break;
2448                 }
2449                 
2450         }
2451     }
2452
2453     public class Xcls_MenuBar70 : Object
2454     {
2455         public Gtk.MenuBar el;
2456         private Xcls_MainWindow  _this;
2457
2458
2459             // my vars (def)
2460
2461         // ctor
2462         public Xcls_MenuBar70(Xcls_MainWindow _owner )
2463         {
2464             _this = _owner;
2465             this.el = new Gtk.MenuBar();
2466
2467             // my vars (dec)
2468
2469             // set gobject values
2470             var child_0 = new Xcls_search_results( _this );
2471             child_0.ref();
2472             this.el.add (  child_0.el  );
2473             var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2474             child_1.ref();
2475             this.el.add (  child_1.el  );
2476             var child_2 = new Xcls_statusbar_errors( _this );
2477             child_2.ref();
2478             this.el.add (  child_2.el  );
2479             var child_3 = new Xcls_statusbar_warnings( _this );
2480             child_3.ref();
2481             this.el.add (  child_3.el  );
2482             var child_4 = new Xcls_statusbar_depricated( _this );
2483             child_4.ref();
2484             this.el.add (  child_4.el  );
2485             var child_5 = new Xcls_statusbar_run( _this );
2486             child_5.ref();
2487             this.el.add (  child_5.el  );
2488         }
2489
2490         // user defined functions
2491     }
2492     public class Xcls_search_results : Object
2493     {
2494         public Gtk.ImageMenuItem el;
2495         private Xcls_MainWindow  _this;
2496
2497
2498             // my vars (def)
2499         public Xcls_ValaCompileErrors popup;
2500
2501         // ctor
2502         public Xcls_search_results(Xcls_MainWindow _owner )
2503         {
2504             _this = _owner;
2505             _this.search_results = this;
2506             this.el = new Gtk.ImageMenuItem();
2507
2508             // my vars (dec)
2509
2510             // set gobject values
2511             this.el.always_show_image = true;
2512             this.el.label = "Matches";
2513             var child_0 = new Xcls_Image72( _this );
2514             child_0.ref();
2515             this.el.set_image (  child_0.el  );
2516
2517             //listeners
2518             this.el.button_press_event.connect( () => {
2519             /*
2520                 if (this.popup == null) {
2521                     this.popup = new Xcls_ValaCompileErrors();
2522                     this.popup.window = _this;
2523                 }
2524                
2525                 
2526                 this.popup.show(this.notices, this.el);
2527                 */
2528                 return true;
2529             });
2530         }
2531
2532         // user defined functions
2533     }
2534     public class Xcls_Image72 : Object
2535     {
2536         public Gtk.Image el;
2537         private Xcls_MainWindow  _this;
2538
2539
2540             // my vars (def)
2541
2542         // ctor
2543         public Xcls_Image72(Xcls_MainWindow _owner )
2544         {
2545             _this = _owner;
2546             this.el = new Gtk.Image();
2547
2548             // my vars (dec)
2549
2550             // set gobject values
2551             this.el.icon_name = "system-search";
2552             this.el.sensitive = false;
2553         }
2554
2555         // user defined functions
2556     }
2557
2558
2559     public class Xcls_statusbar_compilestatus_label : Object
2560     {
2561         public Gtk.MenuItem el;
2562         private Xcls_MainWindow  _this;
2563
2564
2565             // my vars (def)
2566
2567         // ctor
2568         public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2569         {
2570             _this = _owner;
2571             _this.statusbar_compilestatus_label = this;
2572             this.el = new Gtk.MenuItem();
2573
2574             // my vars (dec)
2575
2576             // set gobject values
2577             this.el.label = "Compile Status:";
2578         }
2579
2580         // user defined functions
2581     }
2582
2583     public class Xcls_statusbar_errors : Object
2584     {
2585         public Gtk.ImageMenuItem el;
2586         private Xcls_MainWindow  _this;
2587
2588
2589             // my vars (def)
2590         public Xcls_ValaCompileErrors popup;
2591         public Json.Object notices;
2592
2593         // ctor
2594         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2595         {
2596             _this = _owner;
2597             _this.statusbar_errors = this;
2598             this.el = new Gtk.ImageMenuItem();
2599
2600             // my vars (dec)
2601             this.notices = new Json.Object() ;
2602
2603             // set gobject values
2604             this.el.always_show_image = true;
2605             this.el.label = "Errors";
2606             var child_0 = new Xcls_Image75( _this );
2607             child_0.ref();
2608             this.el.set_image (  child_0.el  );
2609
2610             //listeners
2611             this.el.button_press_event.connect( () => {
2612                 if (this.popup == null) {
2613                     this.popup = new Xcls_ValaCompileErrors();
2614                     this.popup.window = _this;
2615                 }
2616                
2617                 
2618                 this.popup.show(this.notices, this.el);
2619                 return true;
2620             });
2621         }
2622
2623         // user defined functions
2624         public void setNotices (Json.Object nots, int qty) {
2625             this.el.show();
2626             this.el.label = qty.to_string() + " Errors";
2627             this.notices = nots;
2628         
2629         }
2630     }
2631     public class Xcls_Image75 : Object
2632     {
2633         public Gtk.Image el;
2634         private Xcls_MainWindow  _this;
2635
2636
2637             // my vars (def)
2638
2639         // ctor
2640         public Xcls_Image75(Xcls_MainWindow _owner )
2641         {
2642             _this = _owner;
2643             this.el = new Gtk.Image();
2644
2645             // my vars (dec)
2646
2647             // set gobject values
2648             this.el.icon_name = "dialog-error";
2649         }
2650
2651         // user defined functions
2652     }
2653
2654
2655     public class Xcls_statusbar_warnings : Object
2656     {
2657         public Gtk.ImageMenuItem el;
2658         private Xcls_MainWindow  _this;
2659
2660
2661             // my vars (def)
2662         public Xcls_ValaCompileErrors popup;
2663         public Json.Object notices;
2664
2665         // ctor
2666         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2667         {
2668             _this = _owner;
2669             _this.statusbar_warnings = this;
2670             this.el = new Gtk.ImageMenuItem();
2671
2672             // my vars (dec)
2673             this.notices = new Json.Object();
2674
2675             // set gobject values
2676             this.el.always_show_image = true;
2677             this.el.label = "Warnings";
2678             var child_0 = new Xcls_Image77( _this );
2679             child_0.ref();
2680             this.el.set_image (  child_0.el  );
2681
2682             //listeners
2683             this.el.button_press_event.connect( () => {
2684                 if (this.popup == null) {
2685                     this.popup = new Xcls_ValaCompileErrors();
2686                     this.popup.window = _this;
2687                 }
2688                 
2689                 this.popup.show(this.notices, this.el);
2690                 return true;
2691             });
2692         }
2693
2694         // user defined functions
2695         public void setNotices (Json.Object nots, int qty) {
2696             this.el.show();
2697             this.el.label = qty.to_string() + " Warnings";
2698             this.notices = nots;
2699         
2700         }
2701     }
2702     public class Xcls_Image77 : Object
2703     {
2704         public Gtk.Image el;
2705         private Xcls_MainWindow  _this;
2706
2707
2708             // my vars (def)
2709
2710         // ctor
2711         public Xcls_Image77(Xcls_MainWindow _owner )
2712         {
2713             _this = _owner;
2714             this.el = new Gtk.Image();
2715
2716             // my vars (dec)
2717
2718             // set gobject values
2719             this.el.icon_name = "dialog-warning";
2720         }
2721
2722         // user defined functions
2723     }
2724
2725
2726     public class Xcls_statusbar_depricated : Object
2727     {
2728         public Gtk.ImageMenuItem el;
2729         private Xcls_MainWindow  _this;
2730
2731
2732             // my vars (def)
2733         public Xcls_ValaCompileErrors popup;
2734         public Json.Object notices;
2735
2736         // ctor
2737         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2738         {
2739             _this = _owner;
2740             _this.statusbar_depricated = this;
2741             this.el = new Gtk.ImageMenuItem();
2742
2743             // my vars (dec)
2744             this.notices = new Json.Object();
2745
2746             // set gobject values
2747             this.el.always_show_image = true;
2748             this.el.label = "Depricated";
2749             var child_0 = new Xcls_Image79( _this );
2750             child_0.ref();
2751             this.el.set_image (  child_0.el  );
2752
2753             //listeners
2754             this.el.button_press_event.connect( () => {
2755                 if (this.popup == null) {
2756                     this.popup = new Xcls_ValaCompileErrors();
2757                     this.popup.window = _this;
2758                 }
2759                 
2760                 
2761                 this.popup.show(this.notices, this.el);
2762                 return true;
2763             });
2764         }
2765
2766         // user defined functions
2767         public void setNotices (Json.Object nots, int qty) {
2768             this.el.show();
2769             this.el.label = qty.to_string() + " Depricated";
2770             this.notices = nots;
2771         
2772         }
2773     }
2774     public class Xcls_Image79 : Object
2775     {
2776         public Gtk.Image el;
2777         private Xcls_MainWindow  _this;
2778
2779
2780             // my vars (def)
2781
2782         // ctor
2783         public Xcls_Image79(Xcls_MainWindow _owner )
2784         {
2785             _this = _owner;
2786             this.el = new Gtk.Image();
2787
2788             // my vars (dec)
2789
2790             // set gobject values
2791             this.el.icon_name = "dialog-information";
2792         }
2793
2794         // user defined functions
2795     }
2796
2797
2798     public class Xcls_statusbar_run : Object
2799     {
2800         public Gtk.ImageMenuItem el;
2801         private Xcls_MainWindow  _this;
2802
2803
2804             // my vars (def)
2805         public Xcls_ValaCompileErrors popup;
2806
2807         // ctor
2808         public Xcls_statusbar_run(Xcls_MainWindow _owner )
2809         {
2810             _this = _owner;
2811             _this.statusbar_run = this;
2812             this.el = new Gtk.ImageMenuItem();
2813
2814             // my vars (dec)
2815
2816             // set gobject values
2817             this.el.always_show_image = true;
2818             this.el.label = "Run";
2819             var child_0 = new Xcls_Image81( _this );
2820             child_0.ref();
2821             this.el.set_image (  child_0.el  );
2822
2823             //listeners
2824             this.el.button_press_event.connect( () => {
2825                 if (_this.windowstate.file == null) {
2826                         return true;
2827                 }
2828                 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2829                 
2830                 _this.windowstate.compile_results.show(this.el,true);
2831                 
2832                 return true;
2833             });
2834         }
2835
2836         // user defined functions
2837     }
2838     public class Xcls_Image81 : Object
2839     {
2840         public Gtk.Image el;
2841         private Xcls_MainWindow  _this;
2842
2843
2844             // my vars (def)
2845
2846         // ctor
2847         public Xcls_Image81(Xcls_MainWindow _owner )
2848         {
2849             _this = _owner;
2850             this.el = new Gtk.Image();
2851
2852             // my vars (dec)
2853
2854             // set gobject values
2855             this.el.icon_name = "media-playback-start";
2856         }
2857
2858         // user defined functions
2859     }
2860
2861
2862
2863
2864
2865 }