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