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