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