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