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