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