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