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