9bb9f22cc8a328d24b2adb90605287525d020b2c
[roobuilder] / 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_windownew windownew;
17     public Xcls_open_projects_btn open_projects_btn;
18     public Xcls_vbox vbox;
19     public Xcls_mainpane mainpane;
20     public Xcls_leftpane leftpane;
21     public Xcls_editpane editpane;
22     public Xcls_tree tree;
23     public Xcls_props props;
24     public Xcls_clutterembed clutterembed;
25     public Xcls_rooview rooview;
26     public Xcls_objectview objectview;
27     public Xcls_codeeditview codeeditview;
28     public Xcls_addpropsview addpropsview;
29     public Xcls_buttonlayout buttonlayout;
30     public Xcls_backbutton backbutton;
31     public Xcls_objectshowbutton objectshowbutton;
32     public Xcls_addpropbutton addpropbutton;
33     public Xcls_addlistenerbutton addlistenerbutton;
34     public Xcls_topbarmenu topbarmenu;
35     public Xcls_statusbar statusbar;
36     public Xcls_search_entry search_entry;
37     public Xcls_search_results search_results;
38     public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
39     public Xcls_statusbar_errors statusbar_errors;
40     public Xcls_statusbar_warnings statusbar_warnings;
41     public Xcls_statusbar_depricated statusbar_depricated;
42     public Xcls_statusbar_run statusbar_run;
43     public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
44
45         // my vars (def)
46     public Project.Project project;
47     public string title;
48     public int no_windows;
49     public WindowState windowstate;
50
51     // ctor
52     public Xcls_MainWindow()
53     {
54         _this = this;
55         this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
56
57         // my vars (dec)
58         this.project = null;
59         this.title = "Roo Application Builder";
60         this.no_windows = 1;
61         this.windowstate = null;
62
63         // set gobject values
64         this.el.border_width = 0;
65         this.el.default_height = 750;
66         this.el.default_width = 1200;
67         var child_0 = new Xcls_headerbar( _this );
68         child_0.ref();
69         this.el.set_titlebar (  child_0.el  );
70         var child_1 = new Xcls_vbox( _this );
71         child_1.ref();
72         this.el.add (  child_1.el  );
73
74         // init method
75
76         //this.el.show_all();
77             //try {
78                  this.el.set_icon_name("roobuilder");
79                 //} catch (Exception e) {
80                 //      print("no icon found");
81         //      }
82
83         //listeners
84         this.el.delete_event.connect( (   event) => {
85             return false;
86         });
87         this.el.destroy.connect( () =>  {
88          Xcls_MainWindow.singleton().no_windows--;
89          
90          Resources.singleton().disconnect(_this.statusbar.handler_id);
91          
92          
93          if (Xcls_MainWindow.singleton().no_windows < 1) {
94         
95              Gtk.main_quit();
96          }
97         });
98         this.el.show.connect( ( ) => {
99             // hide the file editing..
100            
101             //this.hideViewEditing();
102             _this.statusbar.el.hide();
103              _this.statusbar_errors.el.hide();
104             _this.statusbar_warnings.el.hide();
105             _this.statusbar_depricated.el.hide();
106             _this.statusbar_compile_spinner.el.hide();
107           
108             Resources.singleton().checkResources();
109         
110         });
111         this.el.key_release_event.connect( (event) => {
112             
113             if (this.search_entry.el.is_visible()) {
114                         if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
115                             print("SAVE: ctrl-f  pressed");
116                                 this.search_entry.el.grab_focus();
117                             return false;
118                         }
119                         
120                         if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
121                             print("SAVE: ctrl-g  pressed");
122                                 this.search_entry.forwardSearch(true);
123                             return false;
124                         }
125                         
126                 }    
127                 
128                 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
129                         print("SAVE: ctrl-n  pressed");
130                         this.openNewWindow();
131                         return false;
132                 }
133                 
134            // print(event.key.keyval)
135             
136             return false;
137         
138         });
139     }
140
141     // user defined functions
142     public void openNewWindow () {
143         Xcls_MainWindow.singleton().no_windows++;
144             var w = new Xcls_MainWindow();
145             w.ref();
146     
147             w.el.show_all();
148             w.initChildren();
149             w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project);
150             // should open the file dialog...
151             //w.windowstate.switchState(WindowState.State.FILES);
152     }
153     public        void initChildren () {
154         // this needs putting in a better place..
155         this.windowstate = new WindowState(this);
156          
157     
158         //w.el.show_all();
159         var tl = new Clutter.Timeline(6000);
160         tl.set_repeat_count(-1);
161         tl.start();
162         tl.ref();
163     
164         
165     
166     
167     
168     }
169     public             void show () {
170        
171         this.el.show_all();
172     
173     }
174     public             void setTitle (string str) {
175         this.headerbar.el.set_title(this.title + " - " + str);
176     }
177     public class Xcls_headerbar : Object
178     {
179         public Gtk.HeaderBar el;
180         private Xcls_MainWindow  _this;
181
182
183             // my vars (def)
184
185         // ctor
186         public Xcls_headerbar(Xcls_MainWindow _owner )
187         {
188             _this = _owner;
189             _this.headerbar = this;
190             this.el = new Gtk.HeaderBar();
191
192             // my vars (dec)
193
194             // set gobject values
195             this.el.title = "Application Builder";
196             this.el.show_close_button = true;
197             var child_0 = new Xcls_Box3( _this );
198             child_0.ref();
199             this.el.pack_start (  child_0.el  );
200         }
201
202         // user defined functions
203     }
204     public class Xcls_Box3 : Object
205     {
206         public Gtk.Box el;
207         private Xcls_MainWindow  _this;
208
209
210             // my vars (def)
211
212         // ctor
213         public Xcls_Box3(Xcls_MainWindow _owner )
214         {
215             _this = _owner;
216             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
217
218             // my vars (dec)
219
220             // set gobject values
221             var child_0 = new Xcls_windownew( _this );
222             child_0.ref();
223             this.el.add (  child_0.el  );
224             var child_1 = new Xcls_open_projects_btn( _this );
225             child_1.ref();
226             this.el.add (  child_1.el  );
227         }
228
229         // user defined functions
230     }
231     public class Xcls_windownew : Object
232     {
233         public Gtk.Button el;
234         private Xcls_MainWindow  _this;
235
236
237             // my vars (def)
238
239         // ctor
240         public Xcls_windownew(Xcls_MainWindow _owner )
241         {
242             _this = _owner;
243             _this.windownew = this;
244             this.el = new Gtk.Button();
245
246             // my vars (dec)
247
248             // set gobject values
249             this.el.always_show_image = true;
250             this.el.label = "New Window";
251             var child_0 = new Xcls_Image5( _this );
252             child_0.ref();
253             this.el.set_image (  child_0.el  );
254
255             //listeners
256             this.el.clicked.connect( ( ) => {
257                  _this.openNewWindow();
258                   
259             
260             });
261         }
262
263         // user defined functions
264     }
265     public class Xcls_Image5 : Object
266     {
267         public Gtk.Image el;
268         private Xcls_MainWindow  _this;
269
270
271             // my vars (def)
272
273         // ctor
274         public Xcls_Image5(Xcls_MainWindow _owner )
275         {
276             _this = _owner;
277             this.el = new Gtk.Image();
278
279             // my vars (dec)
280
281             // set gobject values
282             this.el.icon_name = "window-new";
283         }
284
285         // user defined functions
286     }
287
288
289     public class Xcls_open_projects_btn : Object
290     {
291         public Gtk.Button el;
292         private Xcls_MainWindow  _this;
293
294
295             // my vars (def)
296
297         // ctor
298         public Xcls_open_projects_btn(Xcls_MainWindow _owner )
299         {
300             _this = _owner;
301             _this.open_projects_btn = this;
302             this.el = new Gtk.Button();
303
304             // my vars (dec)
305
306             // set gobject values
307             this.el.always_show_image = true;
308             this.el.label = "Files / Projects";
309             var child_0 = new Xcls_Image7( _this );
310             child_0.ref();
311             this.el.set_image (  child_0.el  );
312
313             //listeners
314             this.el.clicked.connect( ( ) => {
315                 _this.windowstate.showPopoverFiles(this.el, _this.project);
316             
317             });
318         }
319
320         // user defined functions
321     }
322     public class Xcls_Image7 : Object
323     {
324         public Gtk.Image el;
325         private Xcls_MainWindow  _this;
326
327
328             // my vars (def)
329
330         // ctor
331         public Xcls_Image7(Xcls_MainWindow _owner )
332         {
333             _this = _owner;
334             this.el = new Gtk.Image();
335
336             // my vars (dec)
337
338             // set gobject values
339             this.el.icon_name = "system-file-manager";
340         }
341
342         // user defined functions
343     }
344
345
346
347
348     public class Xcls_vbox : Object
349     {
350         public Gtk.Box el;
351         private Xcls_MainWindow  _this;
352
353
354             // my vars (def)
355
356         // ctor
357         public Xcls_vbox(Xcls_MainWindow _owner )
358         {
359             _this = _owner;
360             _this.vbox = this;
361             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
362
363             // my vars (dec)
364
365             // set gobject values
366             this.el.homogeneous = false;
367             var child_0 = new Xcls_mainpane( _this );
368             child_0.ref();
369             this.el.pack_start (  child_0.el , true,true,0 );
370             var child_1 = new Xcls_Box38( _this );
371             child_1.ref();
372             this.el.pack_end (  child_1.el , false,true,0 );
373         }
374
375         // user defined functions
376     }
377     public class Xcls_mainpane : Object
378     {
379         public Gtk.Paned el;
380         private Xcls_MainWindow  _this;
381
382
383             // my vars (def)
384         public int lastWidth;
385
386         // ctor
387         public Xcls_mainpane(Xcls_MainWindow _owner )
388         {
389             _this = _owner;
390             _this.mainpane = this;
391             this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
392
393             // my vars (dec)
394             this.lastWidth = 0;
395
396             // set gobject values
397             this.el.position = 400;
398             var child_0 = new Xcls_leftpane( _this );
399             child_0.ref();
400             this.el.add1 (  child_0.el  );
401             var child_1 = new Xcls_Box14( _this );
402             child_1.ref();
403             this.el.add2 (  child_1.el  );
404         }
405
406         // user defined functions
407     }
408     public class Xcls_leftpane : Object
409     {
410         public Gtk.Box el;
411         private Xcls_MainWindow  _this;
412
413
414             // my vars (def)
415
416         // ctor
417         public Xcls_leftpane(Xcls_MainWindow _owner )
418         {
419             _this = _owner;
420             _this.leftpane = this;
421             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
422
423             // my vars (dec)
424
425             // set gobject values
426             var child_0 = new Xcls_editpane( _this );
427             child_0.ref();
428             this.el.pack_start (  child_0.el , true,true,0 );
429         }
430
431         // user defined functions
432     }
433     public class Xcls_editpane : Object
434     {
435         public Gtk.Paned el;
436         private Xcls_MainWindow  _this;
437
438
439             // my vars (def)
440
441         // ctor
442         public Xcls_editpane(Xcls_MainWindow _owner )
443         {
444             _this = _owner;
445             _this.editpane = this;
446             this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
447
448             // my vars (dec)
449
450             // set gobject values
451             var child_0 = new Xcls_tree( _this );
452             child_0.ref();
453             this.el.add1 (  child_0.el  );
454             var child_1 = new Xcls_props( _this );
455             child_1.ref();
456             this.el.add2 (  child_1.el  );
457         }
458
459         // user defined functions
460     }
461     public class Xcls_tree : Object
462     {
463         public Gtk.Box el;
464         private Xcls_MainWindow  _this;
465
466
467             // my vars (def)
468
469         // ctor
470         public Xcls_tree(Xcls_MainWindow _owner )
471         {
472             _this = _owner;
473             _this.tree = this;
474             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
475
476             // my vars (dec)
477
478             // set gobject values
479         }
480
481         // user defined functions
482     }
483
484     public class Xcls_props : Object
485     {
486         public Gtk.Box el;
487         private Xcls_MainWindow  _this;
488
489
490             // my vars (def)
491
492         // ctor
493         public Xcls_props(Xcls_MainWindow _owner )
494         {
495             _this = _owner;
496             _this.props = this;
497             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
498
499             // my vars (dec)
500
501             // set gobject values
502         }
503
504         // user defined functions
505     }
506
507
508
509     public class Xcls_Box14 : Object
510     {
511         public Gtk.Box el;
512         private Xcls_MainWindow  _this;
513
514
515             // my vars (def)
516
517         // ctor
518         public Xcls_Box14(Xcls_MainWindow _owner )
519         {
520             _this = _owner;
521             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
522
523             // my vars (dec)
524
525             // set gobject values
526             var child_0 = new Xcls_clutterembed( _this );
527             child_0.ref();
528             this.el.pack_start (  child_0.el , true,true,0 );
529         }
530
531         // user defined functions
532     }
533     public class Xcls_clutterembed : Object
534     {
535         public GtkClutter.Embed el;
536         private Xcls_MainWindow  _this;
537
538
539             // my vars (def)
540
541         // ctor
542         public Xcls_clutterembed(Xcls_MainWindow _owner )
543         {
544             _this = _owner;
545             _this.clutterembed = this;
546             this.el = new GtkClutter.Embed();
547
548             // my vars (dec)
549
550             // set gobject values
551             var child_0 = new Xcls_rooview( _this );
552             child_0.ref();
553             this.el.get_stage().add_child (  child_0.el  );
554             var child_1 = new Xcls_objectview( _this );
555             child_1.ref();
556             this.el.get_stage().add_child (  child_1.el  );
557             var child_2 = new Xcls_codeeditview( _this );
558             child_2.ref();
559             this.el.get_stage().add_child (  child_2.el  );
560             var child_3 = new Xcls_addpropsview( _this );
561             child_3.ref();
562             this.el.get_stage().add_child (  child_3.el  );
563             var child_4 = new Xcls_buttonlayout( _this );
564             child_4.ref();
565             this.el.get_stage().add_child (  child_4.el  );
566
567             // init method
568
569             var stage = this.el.get_stage();
570                 stage.set_background_color(  Clutter.Color.from_string("#000"));
571
572             //listeners
573             this.el.size_allocate.connect( (  alloc) => {
574                 if (_this.windowstate == null) {
575                     return;
576                 }
577                 _this.windowstate.resizeCanvas(); 
578                     
579             });
580         }
581
582         // user defined functions
583     }
584     public class Xcls_rooview : Object
585     {
586         public GtkClutter.Actor el;
587         private Xcls_MainWindow  _this;
588
589
590             // my vars (def)
591
592         // ctor
593         public Xcls_rooview(Xcls_MainWindow _owner )
594         {
595             _this = _owner;
596             _this.rooview = this;
597             this.el = new GtkClutter.Actor();
598
599             // my vars (dec)
600
601             // set gobject values
602
603             // init method
604
605             {
606                
607                
608                 this.el.add_constraint(
609                     new Clutter.AlignConstraint(
610                         _this.clutterembed.el.get_stage(), 
611                         Clutter.AlignAxis.X_AXIS,
612                         1.0f
613                     )
614                 );
615                     
616                 //this.el.set_position(100,100);
617                 this.el.set_pivot_point(1.0f,1.0f);
618                 
619                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
620                         _this.clutterembed.el.get_stage().height);
621                         
622             }
623         }
624
625         // user defined functions
626     }
627
628     public class Xcls_objectview : Object
629     {
630         public GtkClutter.Actor el;
631         private Xcls_MainWindow  _this;
632
633
634             // my vars (def)
635
636         // ctor
637         public Xcls_objectview(Xcls_MainWindow _owner )
638         {
639             _this = _owner;
640             _this.objectview = this;
641             this.el = new GtkClutter.Actor();
642
643             // my vars (dec)
644
645             // set gobject values
646
647             // init method
648
649             {
650                
651                /*
652                 this.el.add_constraint(
653                     new Clutter.AlignConstraint(
654                         _this.clutterembed.el.get_stage(), 
655                         Clutter.AlignAxis.X_AXIS,
656                         0.0f
657                     )
658                 );
659                 */
660                 this.el.fixed_x = 50.0f;
661                 this.el.fixed_y = 0.0f;
662                 //this.el.set_position(100,100);
663                 this.el.set_pivot_point(0.0f,0.0f);
664                 this.el.set_scale(0.0f,1.0f);
665                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
666                         _this.clutterembed.el.get_stage().height);
667                         
668             }
669         }
670
671         // user defined functions
672     }
673
674     public class Xcls_codeeditview : Object
675     {
676         public GtkClutter.Actor el;
677         private Xcls_MainWindow  _this;
678
679
680             // my vars (def)
681
682         // ctor
683         public Xcls_codeeditview(Xcls_MainWindow _owner )
684         {
685             _this = _owner;
686             _this.codeeditview = this;
687             this.el = new GtkClutter.Actor();
688
689             // my vars (dec)
690
691             // set gobject values
692
693             // init method
694
695             {
696                
697                /*
698                 this.el.add_constraint(
699                     new Clutter.AlignConstraint(
700                         _this.clutterembed.el.get_stage(), 
701                         Clutter.AlignAxis.X_AXIS,
702                         0.0f
703                     )
704                 );
705                 */
706                 this.el.fixed_x = 50.0f;
707                 this.el.fixed_y = 0.0f;
708                 //this.el.set_position(100,100);
709                 this.el.set_pivot_point(0.0f,0.0f);
710                 this.el.set_scale(0.0f,1.0f);
711                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
712                         _this.clutterembed.el.get_stage().height);
713                         
714             }
715         }
716
717         // user defined functions
718     }
719
720     public class Xcls_addpropsview : Object
721     {
722         public GtkClutter.Actor el;
723         private Xcls_MainWindow  _this;
724
725
726             // my vars (def)
727
728         // ctor
729         public Xcls_addpropsview(Xcls_MainWindow _owner )
730         {
731             _this = _owner;
732             _this.addpropsview = this;
733             this.el = new GtkClutter.Actor();
734
735             // my vars (dec)
736
737             // set gobject values
738
739             // init method
740
741             {
742                
743                /*
744                 this.el.add_constraint(
745                     new Clutter.AlignConstraint(
746                         _this.clutterembed.el.get_stage(), 
747                         Clutter.AlignAxis.X_AXIS,
748                         0.0f
749                     )
750                 );
751                 */
752                 this.el.fixed_x = 50.0f;
753                 this.el.fixed_y = 0.0f;
754                 //this.el.set_position(100,100);
755                 this.el.set_pivot_point(0.0f,0.0f);
756                 this.el.set_scale(0.0f,1.0f);
757                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
758                         _this.clutterembed.el.get_stage().height);
759                         
760             }
761         }
762
763         // user defined functions
764     }
765
766     public class Xcls_buttonlayout : Object
767     {
768         public Clutter.Actor el;
769         private Xcls_MainWindow  _this;
770
771
772             // my vars (def)
773
774         // ctor
775         public Xcls_buttonlayout(Xcls_MainWindow _owner )
776         {
777             _this = _owner;
778             _this.buttonlayout = this;
779             this.el = new Clutter.Actor();
780
781             // my vars (dec)
782
783             // set gobject values
784             var child_0 = new Xcls_BoxLayout21( _this );
785             child_0.ref();
786             this.el.layout_manager = child_0.el;
787             var child_1 = new Xcls_backbutton( _this );
788             child_1.ref();
789             this.el.add_child (  child_1.el  );
790             var child_2 = new Xcls_objectshowbutton( _this );
791             child_2.ref();
792             this.el.add_child (  child_2.el  );
793             var child_3 = new Xcls_addpropbutton( _this );
794             child_3.ref();
795             this.el.add_child (  child_3.el  );
796             var child_4 = new Xcls_addlistenerbutton( _this );
797             child_4.ref();
798             this.el.add_child (  child_4.el  );
799
800             // init method
801
802             {
803                 
804                 this.el.add_constraint(
805                     new Clutter.AlignConstraint(
806                         _this.clutterembed.el.get_stage(), 
807                         Clutter.AlignAxis.X_AXIS,
808                         0.0f
809                     )
810                 );
811                  
812                 
813                 //this.el.set_position(100,100);
814                 this.el.set_pivot_point(0.5f,0.5f);
815                  this.el.set_size(50,
816                        _this.clutterembed.el.get_stage().height);
817                  
818             }
819         }
820
821         // user defined functions
822     }
823     public class Xcls_BoxLayout21 : Object
824     {
825         public Clutter.BoxLayout el;
826         private Xcls_MainWindow  _this;
827
828
829             // my vars (def)
830
831         // ctor
832         public Xcls_BoxLayout21(Xcls_MainWindow _owner )
833         {
834             _this = _owner;
835             this.el = new Clutter.BoxLayout();
836
837             // my vars (dec)
838
839             // set gobject values
840             this.el.orientation = Clutter.Orientation.VERTICAL;
841         }
842
843         // user defined functions
844     }
845
846     public class Xcls_backbutton : Object
847     {
848         public Clutter.Actor el;
849         private Xcls_MainWindow  _this;
850
851
852             // my vars (def)
853
854         // ctor
855         public Xcls_backbutton(Xcls_MainWindow _owner )
856         {
857             _this = _owner;
858             _this.backbutton = this;
859             this.el = new Clutter.Actor();
860
861             // my vars (dec)
862
863             // set gobject values
864             var child_0 = new Xcls_Actor23( _this );
865             child_0.ref();
866             this.el.add_child (  child_0.el  );
867
868             // init method
869
870             this.el.set_size(50,50);
871         }
872
873         // user defined functions
874     }
875     public class Xcls_Actor23 : Object
876     {
877         public GtkClutter.Actor el;
878         private Xcls_MainWindow  _this;
879
880
881             // my vars (def)
882
883         // ctor
884         public Xcls_Actor23(Xcls_MainWindow _owner )
885         {
886             _this = _owner;
887             this.el = new GtkClutter.Actor();
888
889             // my vars (dec)
890
891             // set gobject values
892             var child_0 = new Xcls_Button24( _this );
893             child_0.ref();
894
895             // init method
896
897             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
898         }
899
900         // user defined functions
901     }
902     public class Xcls_Button24 : Object
903     {
904         public Gtk.Button el;
905         private Xcls_MainWindow  _this;
906
907
908             // my vars (def)
909
910         // ctor
911         public Xcls_Button24(Xcls_MainWindow _owner )
912         {
913             _this = _owner;
914             this.el = new Gtk.Button();
915
916             // my vars (dec)
917
918             // set gobject values
919             this.el.width_request = 50;
920             this.el.height_request = 50;
921             this.el.tooltip_text = "Back";
922             var child_0 = new Xcls_Image25( _this );
923             child_0.ref();
924             this.el.set_image (  child_0.el  );
925
926             //listeners
927             this.el.clicked.connect( ( ) => {
928              //  if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
929                 
930             //       _this.windowstate.switchState(WindowState.State.FILES);
931               //   } else { 
932                     _this.windowstate.switchState(WindowState.State.PREVIEW);
933               //  }
934                 
935             
936             });
937         }
938
939         // user defined functions
940     }
941     public class Xcls_Image25 : Object
942     {
943         public Gtk.Image el;
944         private Xcls_MainWindow  _this;
945
946
947             // my vars (def)
948
949         // ctor
950         public Xcls_Image25(Xcls_MainWindow _owner )
951         {
952             _this = _owner;
953             this.el = new Gtk.Image();
954
955             // my vars (dec)
956
957             // set gobject values
958             this.el.icon_name = "go-previous";
959         }
960
961         // user defined functions
962     }
963
964
965
966
967     public class Xcls_objectshowbutton : Object
968     {
969         public Clutter.Actor el;
970         private Xcls_MainWindow  _this;
971
972
973             // my vars (def)
974
975         // ctor
976         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
977         {
978             _this = _owner;
979             _this.objectshowbutton = this;
980             this.el = new Clutter.Actor();
981
982             // my vars (dec)
983
984             // set gobject values
985             var child_0 = new Xcls_Actor27( _this );
986             child_0.ref();
987             this.el.add_child (  child_0.el  );
988
989             // init method
990
991             this.el.set_size(50,50);
992
993             //listeners
994             this.el.enter_event.connect( (  event)  => {
995                 this.el.background_color =   Clutter.Color.from_string("#333");
996                     return false;
997             });
998             this.el.leave_event.connect( (  event)  => {
999                 this.el.background_color =   Clutter.Color.from_string("#000");
1000                 return false;
1001             });
1002         }
1003
1004         // user defined functions
1005     }
1006     public class Xcls_Actor27 : Object
1007     {
1008         public GtkClutter.Actor el;
1009         private Xcls_MainWindow  _this;
1010
1011
1012             // my vars (def)
1013
1014         // ctor
1015         public Xcls_Actor27(Xcls_MainWindow _owner )
1016         {
1017             _this = _owner;
1018             this.el = new GtkClutter.Actor();
1019
1020             // my vars (dec)
1021
1022             // set gobject values
1023             var child_0 = new Xcls_Button28( _this );
1024             child_0.ref();
1025
1026             // init method
1027
1028             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1029         }
1030
1031         // user defined functions
1032     }
1033     public class Xcls_Button28 : Object
1034     {
1035         public Gtk.Button el;
1036         private Xcls_MainWindow  _this;
1037
1038
1039             // my vars (def)
1040
1041         // ctor
1042         public Xcls_Button28(Xcls_MainWindow _owner )
1043         {
1044             _this = _owner;
1045             this.el = new Gtk.Button();
1046
1047             // my vars (dec)
1048
1049             // set gobject values
1050             this.el.width_request = 50;
1051             this.el.height_request = 50;
1052             this.el.tooltip_text = "Add Child Element";
1053             var child_0 = new Xcls_Image29( _this );
1054             child_0.ref();
1055             this.el.set_image (  child_0.el  );
1056
1057             //listeners
1058             this.el.clicked.connect( ( ) => {
1059                 
1060             
1061                 _this.windowstate.showAddObject(this.el);
1062              
1063             });
1064         }
1065
1066         // user defined functions
1067     }
1068     public class Xcls_Image29 : Object
1069     {
1070         public Gtk.Image el;
1071         private Xcls_MainWindow  _this;
1072
1073
1074             // my vars (def)
1075
1076         // ctor
1077         public Xcls_Image29(Xcls_MainWindow _owner )
1078         {
1079             _this = _owner;
1080             this.el = new Gtk.Image();
1081
1082             // my vars (dec)
1083
1084             // set gobject values
1085             this.el.icon_name = "list-add";
1086         }
1087
1088         // user defined functions
1089     }
1090
1091
1092
1093
1094     public class Xcls_addpropbutton : Object
1095     {
1096         public Clutter.Actor el;
1097         private Xcls_MainWindow  _this;
1098
1099
1100             // my vars (def)
1101
1102         // ctor
1103         public Xcls_addpropbutton(Xcls_MainWindow _owner )
1104         {
1105             _this = _owner;
1106             _this.addpropbutton = this;
1107             this.el = new Clutter.Actor();
1108
1109             // my vars (dec)
1110
1111             // set gobject values
1112             var child_0 = new Xcls_Actor31( _this );
1113             child_0.ref();
1114             this.el.add_child (  child_0.el  );
1115
1116             // init method
1117
1118             this.el.set_size(50,50);
1119         }
1120
1121         // user defined functions
1122     }
1123     public class Xcls_Actor31 : Object
1124     {
1125         public GtkClutter.Actor el;
1126         private Xcls_MainWindow  _this;
1127
1128
1129             // my vars (def)
1130
1131         // ctor
1132         public Xcls_Actor31(Xcls_MainWindow _owner )
1133         {
1134             _this = _owner;
1135             this.el = new GtkClutter.Actor();
1136
1137             // my vars (dec)
1138
1139             // set gobject values
1140             var child_0 = new Xcls_Button32( _this );
1141             child_0.ref();
1142
1143             // init method
1144
1145             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1146         }
1147
1148         // user defined functions
1149     }
1150     public class Xcls_Button32 : Object
1151     {
1152         public Gtk.Button el;
1153         private Xcls_MainWindow  _this;
1154
1155
1156             // my vars (def)
1157
1158         // ctor
1159         public Xcls_Button32(Xcls_MainWindow _owner )
1160         {
1161             _this = _owner;
1162             this.el = new Gtk.Button();
1163
1164             // my vars (dec)
1165
1166             // set gobject values
1167             this.el.width_request = 50;
1168             this.el.height_request = 50;
1169             this.el.tooltip_text = "Add Property";
1170             var child_0 = new Xcls_Image33( _this );
1171             child_0.ref();
1172             this.el.set_image (  child_0.el  );
1173
1174             //listeners
1175             this.el.clicked.connect( ( ) => {
1176                 
1177                  _this.windowstate.showProps(this.el, "props");
1178              
1179             
1180             });
1181         }
1182
1183         // user defined functions
1184     }
1185     public class Xcls_Image33 : Object
1186     {
1187         public Gtk.Image el;
1188         private Xcls_MainWindow  _this;
1189
1190
1191             // my vars (def)
1192
1193         // ctor
1194         public Xcls_Image33(Xcls_MainWindow _owner )
1195         {
1196             _this = _owner;
1197             this.el = new Gtk.Image();
1198
1199             // my vars (dec)
1200
1201             // set gobject values
1202             this.el.icon_name = "format-justify-left";
1203         }
1204
1205         // user defined functions
1206     }
1207
1208
1209
1210
1211     public class Xcls_addlistenerbutton : Object
1212     {
1213         public Clutter.Actor el;
1214         private Xcls_MainWindow  _this;
1215
1216
1217             // my vars (def)
1218
1219         // ctor
1220         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1221         {
1222             _this = _owner;
1223             _this.addlistenerbutton = this;
1224             this.el = new Clutter.Actor();
1225
1226             // my vars (dec)
1227
1228             // set gobject values
1229             var child_0 = new Xcls_Actor35( _this );
1230             child_0.ref();
1231             this.el.add_child (  child_0.el  );
1232
1233             // init method
1234
1235             this.el.set_size(50,50);
1236         }
1237
1238         // user defined functions
1239     }
1240     public class Xcls_Actor35 : Object
1241     {
1242         public GtkClutter.Actor el;
1243         private Xcls_MainWindow  _this;
1244
1245
1246             // my vars (def)
1247
1248         // ctor
1249         public Xcls_Actor35(Xcls_MainWindow _owner )
1250         {
1251             _this = _owner;
1252             this.el = new GtkClutter.Actor();
1253
1254             // my vars (dec)
1255
1256             // set gobject values
1257             var child_0 = new Xcls_Button36( _this );
1258             child_0.ref();
1259
1260             // init method
1261
1262             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1263         }
1264
1265         // user defined functions
1266     }
1267     public class Xcls_Button36 : Object
1268     {
1269         public Gtk.Button el;
1270         private Xcls_MainWindow  _this;
1271
1272
1273             // my vars (def)
1274
1275         // ctor
1276         public Xcls_Button36(Xcls_MainWindow _owner )
1277         {
1278             _this = _owner;
1279             this.el = new Gtk.Button();
1280
1281             // my vars (dec)
1282
1283             // set gobject values
1284             this.el.width_request = 50;
1285             this.el.height_request = 50;
1286             this.el.tooltip_text = "Add Event Code";
1287             var child_0 = new Xcls_Image37( _this );
1288             child_0.ref();
1289             this.el.set_image (  child_0.el  );
1290
1291             //listeners
1292             this.el.clicked.connect( ( ) => {
1293                 
1294              
1295                _this.windowstate.showProps(this.el, "signals");
1296             
1297             
1298             });
1299         }
1300
1301         // user defined functions
1302     }
1303     public class Xcls_Image37 : Object
1304     {
1305         public Gtk.Image el;
1306         private Xcls_MainWindow  _this;
1307
1308
1309             // my vars (def)
1310
1311         // ctor
1312         public Xcls_Image37(Xcls_MainWindow _owner )
1313         {
1314             _this = _owner;
1315             this.el = new Gtk.Image();
1316
1317             // my vars (dec)
1318
1319             // set gobject values
1320             this.el.icon_name = "appointment-new";
1321         }
1322
1323         // user defined functions
1324     }
1325
1326
1327
1328
1329
1330
1331
1332
1333     public class Xcls_Box38 : Object
1334     {
1335         public Gtk.Box el;
1336         private Xcls_MainWindow  _this;
1337
1338
1339             // my vars (def)
1340
1341         // ctor
1342         public Xcls_Box38(Xcls_MainWindow _owner )
1343         {
1344             _this = _owner;
1345             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
1346
1347             // my vars (dec)
1348
1349             // set gobject values
1350             this.el.homogeneous = false;
1351             var child_0 = new Xcls_Button39( _this );
1352             child_0.ref();
1353             this.el.add (  child_0.el  );
1354             var child_1 = new Xcls_Button41( _this );
1355             child_1.ref();
1356             this.el.add (  child_1.el  );
1357             var child_2 = new Xcls_MenuButton43( _this );
1358             child_2.ref();
1359             this.el.add (  child_2.el  );
1360             var child_3 = new Xcls_Label48( _this );
1361             child_3.ref();
1362             this.el.pack_start (  child_3.el , true,true,0 );
1363             var child_4 = new Xcls_statusbar( _this );
1364             child_4.ref();
1365             this.el.pack_start (  child_4.el , true,true,0 );
1366             var child_5 = new Xcls_search_entry( _this );
1367             child_5.ref();
1368             this.el.pack_start (  child_5.el , false,true,0 );
1369             var child_6 = new Xcls_MenuBar51( _this );
1370             child_6.ref();
1371             this.el.add (  child_6.el  );
1372             var child_7 = new Xcls_statusbar_compile_spinner( _this );
1373             child_7.ref();
1374             this.el.add (  child_7.el  );
1375         }
1376
1377         // user defined functions
1378     }
1379     public class Xcls_Button39 : Object
1380     {
1381         public Gtk.Button el;
1382         private Xcls_MainWindow  _this;
1383
1384
1385             // my vars (def)
1386
1387         // ctor
1388         public Xcls_Button39(Xcls_MainWindow _owner )
1389         {
1390             _this = _owner;
1391             this.el = new Gtk.Button();
1392
1393             // my vars (dec)
1394
1395             // set gobject values
1396             this.el.width_request = 50;
1397             this.el.height_request = 50;
1398             this.el.always_show_image = true;
1399             this.el.tooltip_text = "Project Details";
1400             this.el.label = "Edit Project Settings";
1401             var child_0 = new Xcls_Image40( _this );
1402             child_0.ref();
1403             this.el.set_image (  child_0.el  );
1404
1405             //listeners
1406             this.el.clicked.connect( ( ) => {
1407                  
1408                  _this.windowstate.projectPopoverShow(this.el, _this.project);
1409                
1410              
1411             });
1412         }
1413
1414         // user defined functions
1415     }
1416     public class Xcls_Image40 : Object
1417     {
1418         public Gtk.Image el;
1419         private Xcls_MainWindow  _this;
1420
1421
1422             // my vars (def)
1423
1424         // ctor
1425         public Xcls_Image40(Xcls_MainWindow _owner )
1426         {
1427             _this = _owner;
1428             this.el = new Gtk.Image();
1429
1430             // my vars (dec)
1431
1432             // set gobject values
1433             this.el.icon_name = "emblem-system";
1434         }
1435
1436         // user defined functions
1437     }
1438
1439
1440     public class Xcls_Button41 : Object
1441     {
1442         public Gtk.Button el;
1443         private Xcls_MainWindow  _this;
1444
1445
1446             // my vars (def)
1447
1448         // ctor
1449         public Xcls_Button41(Xcls_MainWindow _owner )
1450         {
1451             _this = _owner;
1452             this.el = new Gtk.Button();
1453
1454             // my vars (dec)
1455
1456             // set gobject values
1457             this.el.width_request = 50;
1458             this.el.height_request = 50;
1459             this.el.always_show_image = true;
1460             this.el.tooltip_text = "File Details";
1461             this.el.label = "Edit File Properties";
1462             var child_0 = new Xcls_Image42( _this );
1463             child_0.ref();
1464             this.el.set_image (  child_0.el  );
1465
1466             //listeners
1467             this.el.clicked.connect( ( ) => {
1468               
1469                 // create a new file in project..
1470                 if (_this.project == null || _this.windowstate.file == null) {
1471                     return  ;
1472                 }
1473                  _this.windowstate.file_details.show(
1474                     _this.windowstate.file, this.el
1475                 );
1476                  
1477                 return  ;    
1478             
1479             
1480             });
1481         }
1482
1483         // user defined functions
1484     }
1485     public class Xcls_Image42 : Object
1486     {
1487         public Gtk.Image el;
1488         private Xcls_MainWindow  _this;
1489
1490
1491             // my vars (def)
1492
1493         // ctor
1494         public Xcls_Image42(Xcls_MainWindow _owner )
1495         {
1496             _this = _owner;
1497             this.el = new Gtk.Image();
1498
1499             // my vars (dec)
1500
1501             // set gobject values
1502             this.el.icon_name = "document-properties";
1503         }
1504
1505         // user defined functions
1506     }
1507
1508
1509     public class Xcls_MenuButton43 : Object
1510     {
1511         public Gtk.MenuButton el;
1512         private Xcls_MainWindow  _this;
1513
1514
1515             // my vars (def)
1516
1517         // ctor
1518         public Xcls_MenuButton43(Xcls_MainWindow _owner )
1519         {
1520             _this = _owner;
1521             this.el = new Gtk.MenuButton();
1522
1523             // my vars (dec)
1524
1525             // set gobject values
1526             this.el.always_show_image = true;
1527             this.el.label = "About";
1528             var child_0 = new Xcls_topbarmenu( _this );
1529             child_0.ref();
1530             this.el.set_popup (  child_0.el  );
1531             var child_1 = new Xcls_Image47( _this );
1532             child_1.ref();
1533             this.el.set_image (  child_1.el  );
1534         }
1535
1536         // user defined functions
1537     }
1538     public class Xcls_topbarmenu : Object
1539     {
1540         public Gtk.Menu el;
1541         private Xcls_MainWindow  _this;
1542
1543
1544             // my vars (def)
1545
1546         // ctor
1547         public Xcls_topbarmenu(Xcls_MainWindow _owner )
1548         {
1549             _this = _owner;
1550             _this.topbarmenu = this;
1551             this.el = new Gtk.Menu();
1552
1553             // my vars (dec)
1554
1555             // set gobject values
1556             var child_0 = new Xcls_MenuItem45( _this );
1557             child_0.ref();
1558             this.el.append (  child_0.el  );
1559             var child_1 = new Xcls_MenuItem46( _this );
1560             child_1.ref();
1561             this.el.append (  child_1.el  );
1562
1563             // init method
1564
1565             {
1566                 this.el.show_all();
1567             }
1568         }
1569
1570         // user defined functions
1571     }
1572     public class Xcls_MenuItem45 : Object
1573     {
1574         public Gtk.MenuItem el;
1575         private Xcls_MainWindow  _this;
1576
1577
1578             // my vars (def)
1579
1580         // ctor
1581         public Xcls_MenuItem45(Xcls_MainWindow _owner )
1582         {
1583             _this = _owner;
1584             this.el = new Gtk.MenuItem();
1585
1586             // my vars (dec)
1587
1588             // set gobject values
1589             this.el.label = "Download updated Resources";
1590
1591             //listeners
1592             this.el.activate.connect( ( ) => {
1593                      Resources.singleton().fetchStart();
1594             });
1595         }
1596
1597         // user defined functions
1598     }
1599
1600     public class Xcls_MenuItem46 : Object
1601     {
1602         public Gtk.MenuItem el;
1603         private Xcls_MainWindow  _this;
1604
1605
1606             // my vars (def)
1607
1608         // ctor
1609         public Xcls_MenuItem46(Xcls_MainWindow _owner )
1610         {
1611             _this = _owner;
1612             this.el = new Gtk.MenuItem();
1613
1614             // my vars (dec)
1615
1616             // set gobject values
1617             this.el.label = "About the Builder";
1618
1619             //listeners
1620             this.el.activate.connect( () => {
1621                 About.singleton().el.show();
1622                 });
1623         }
1624
1625         // user defined functions
1626     }
1627
1628
1629     public class Xcls_Image47 : Object
1630     {
1631         public Gtk.Image el;
1632         private Xcls_MainWindow  _this;
1633
1634
1635             // my vars (def)
1636
1637         // ctor
1638         public Xcls_Image47(Xcls_MainWindow _owner )
1639         {
1640             _this = _owner;
1641             this.el = new Gtk.Image();
1642
1643             // my vars (dec)
1644
1645             // set gobject values
1646             this.el.icon_name = "dialog-information";
1647         }
1648
1649         // user defined functions
1650     }
1651
1652
1653     public class Xcls_Label48 : Object
1654     {
1655         public Gtk.Label el;
1656         private Xcls_MainWindow  _this;
1657
1658
1659             // my vars (def)
1660
1661         // ctor
1662         public Xcls_Label48(Xcls_MainWindow _owner )
1663         {
1664             _this = _owner;
1665             this.el = new Gtk.Label( "   " );
1666
1667             // my vars (dec)
1668
1669             // set gobject values
1670         }
1671
1672         // user defined functions
1673     }
1674
1675     public class Xcls_statusbar : Object
1676     {
1677         public Gtk.ProgressBar el;
1678         private Xcls_MainWindow  _this;
1679
1680
1681             // my vars (def)
1682         public ulong handler_id;
1683
1684         // ctor
1685         public Xcls_statusbar(Xcls_MainWindow _owner )
1686         {
1687             _this = _owner;
1688             _this.statusbar = this;
1689             this.el = new Gtk.ProgressBar();
1690
1691             // my vars (dec)
1692             this.handler_id = -1;
1693
1694             // set gobject values
1695             this.el.show_text = true;
1696
1697             // init method
1698
1699             {
1700                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
1701                     if (pos < 1) {
1702                         this.el.hide();
1703                         _this.mainpane.el.set_sensitive(true);
1704                         
1705                         return;
1706                     }
1707                      _this.mainpane.el.set_sensitive(false);
1708                      this.el.show();
1709                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
1710                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
1711                    
1712                  });
1713             }
1714         }
1715
1716         // user defined functions
1717     }
1718
1719     public class Xcls_search_entry : Object
1720     {
1721         public Gtk.SearchEntry el;
1722         private Xcls_MainWindow  _this;
1723
1724
1725             // my vars (def)
1726
1727         // ctor
1728         public Xcls_search_entry(Xcls_MainWindow _owner )
1729         {
1730             _this = _owner;
1731             _this.search_entry = this;
1732             this.el = new Gtk.SearchEntry();
1733
1734             // my vars (dec)
1735
1736             // set gobject values
1737
1738             // init method
1739
1740             var description =   Pango.FontDescription.from_string("monospace");
1741                 description.set_size(8000);
1742                  this.el.override_font(description);
1743
1744             //listeners
1745             this.el.key_press_event.connect( (event) => {
1746                 
1747                 if (event.keyval == Gdk.Key.Return) {
1748                         this.forwardSearch(false);
1749                     return true;
1750             
1751                 }    
1752                // print(event.key.keyval)
1753                 
1754                 return false;
1755             
1756             });
1757             this.el.changed.connect( () => {
1758                 if (this.el.text == "") {
1759                         _this.search_results.el.hide();
1760                         return;
1761                 }
1762                 var res = 0;
1763                 switch(_this.windowstate.state) {
1764                         case WindowState.State.CODEONLY:
1765                         ///case WindowState.State.CODE:
1766                                 // search the code being edited..
1767                                 res = _this.windowstate.code_editor_tab.search(this.el.text);
1768                                 
1769                                 break;
1770                         case WindowState.State.PREVIEW:
1771                                 if (_this.windowstate.file.xtype == "Gtk") {
1772                                          res = _this.windowstate.window_gladeview.search(this.el.text);
1773                                 } else { 
1774                                          res = _this.windowstate.window_rooview.search(this.el.text);                   
1775                                 }
1776                         
1777                         
1778                                 break;
1779                 }
1780                 _this.search_results.el.show();
1781                 if (res > 0) {
1782                         _this.search_results.el.label = "%d Matches".printf(res);
1783                 } else {
1784                         _this.search_results.el.label = "No Matches";
1785                 }
1786                         
1787                 
1788                 
1789             });
1790         }
1791
1792         // user defined functions
1793         public void forwardSearch (bool change_focus) {
1794                 switch(_this.windowstate.state) {
1795                         case WindowState.State.CODEONLY:
1796                         //case WindowState.State.CODE:
1797                                 // search the code being edited..
1798                                 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
1799                                  
1800                                 break;
1801                         case WindowState.State.PREVIEW:
1802                                 if (_this.windowstate.file.xtype == "Gtk") {
1803                                         _this.windowstate.window_gladeview.forwardSearch(change_focus);
1804                                 } else { 
1805                                          _this.windowstate.window_rooview.forwardSearch(change_focus);
1806                                 }
1807                         
1808                                 break;
1809                 }
1810                 
1811         }
1812     }
1813
1814     public class Xcls_MenuBar51 : Object
1815     {
1816         public Gtk.MenuBar el;
1817         private Xcls_MainWindow  _this;
1818
1819
1820             // my vars (def)
1821
1822         // ctor
1823         public Xcls_MenuBar51(Xcls_MainWindow _owner )
1824         {
1825             _this = _owner;
1826             this.el = new Gtk.MenuBar();
1827
1828             // my vars (dec)
1829
1830             // set gobject values
1831             this.el.tooltip_text = "Update Resources / About Roobuilder";
1832             var child_0 = new Xcls_search_results( _this );
1833             child_0.ref();
1834             this.el.add (  child_0.el  );
1835             var child_1 = new Xcls_statusbar_compilestatus_label( _this );
1836             child_1.ref();
1837             this.el.add (  child_1.el  );
1838             var child_2 = new Xcls_statusbar_errors( _this );
1839             child_2.ref();
1840             this.el.add (  child_2.el  );
1841             var child_3 = new Xcls_statusbar_warnings( _this );
1842             child_3.ref();
1843             this.el.add (  child_3.el  );
1844             var child_4 = new Xcls_statusbar_depricated( _this );
1845             child_4.ref();
1846             this.el.add (  child_4.el  );
1847             var child_5 = new Xcls_statusbar_run( _this );
1848             child_5.ref();
1849             this.el.add (  child_5.el  );
1850         }
1851
1852         // user defined functions
1853     }
1854     public class Xcls_search_results : Object
1855     {
1856         public Gtk.ImageMenuItem el;
1857         private Xcls_MainWindow  _this;
1858
1859
1860             // my vars (def)
1861         public Xcls_ValaCompileErrors popup;
1862
1863         // ctor
1864         public Xcls_search_results(Xcls_MainWindow _owner )
1865         {
1866             _this = _owner;
1867             _this.search_results = this;
1868             this.el = new Gtk.ImageMenuItem();
1869
1870             // my vars (dec)
1871
1872             // set gobject values
1873             this.el.always_show_image = true;
1874             this.el.label = "Matches";
1875             var child_0 = new Xcls_Image53( _this );
1876             child_0.ref();
1877             this.el.set_image (  child_0.el  );
1878
1879             //listeners
1880             this.el.button_press_event.connect( () => {
1881             /*
1882                 if (this.popup == null) {
1883                     this.popup = new Xcls_ValaCompileErrors();
1884                     this.popup.window = _this;
1885                 }
1886                
1887                 
1888                 this.popup.show(this.notices, this.el);
1889                 */
1890                 return true;
1891             });
1892         }
1893
1894         // user defined functions
1895     }
1896     public class Xcls_Image53 : Object
1897     {
1898         public Gtk.Image el;
1899         private Xcls_MainWindow  _this;
1900
1901
1902             // my vars (def)
1903
1904         // ctor
1905         public Xcls_Image53(Xcls_MainWindow _owner )
1906         {
1907             _this = _owner;
1908             this.el = new Gtk.Image();
1909
1910             // my vars (dec)
1911
1912             // set gobject values
1913             this.el.icon_name = "system-search";
1914             this.el.sensitive = false;
1915         }
1916
1917         // user defined functions
1918     }
1919
1920
1921     public class Xcls_statusbar_compilestatus_label : Object
1922     {
1923         public Gtk.MenuItem el;
1924         private Xcls_MainWindow  _this;
1925
1926
1927             // my vars (def)
1928
1929         // ctor
1930         public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
1931         {
1932             _this = _owner;
1933             _this.statusbar_compilestatus_label = this;
1934             this.el = new Gtk.MenuItem();
1935
1936             // my vars (dec)
1937
1938             // set gobject values
1939             this.el.label = "Compile Status:";
1940         }
1941
1942         // user defined functions
1943     }
1944
1945     public class Xcls_statusbar_errors : Object
1946     {
1947         public Gtk.ImageMenuItem el;
1948         private Xcls_MainWindow  _this;
1949
1950
1951             // my vars (def)
1952         public Xcls_ValaCompileErrors popup;
1953         public Json.Object notices;
1954
1955         // ctor
1956         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
1957         {
1958             _this = _owner;
1959             _this.statusbar_errors = this;
1960             this.el = new Gtk.ImageMenuItem();
1961
1962             // my vars (dec)
1963             this.notices = new Json.Object() ;
1964
1965             // set gobject values
1966             this.el.always_show_image = true;
1967             this.el.label = "Errors";
1968             var child_0 = new Xcls_Image56( _this );
1969             child_0.ref();
1970             this.el.set_image (  child_0.el  );
1971
1972             //listeners
1973             this.el.button_press_event.connect( () => {
1974                 if (this.popup == null) {
1975                     this.popup = new Xcls_ValaCompileErrors();
1976                     this.popup.window = _this;
1977                 }
1978                
1979                 
1980                 this.popup.show(this.notices, this.el);
1981                 return true;
1982             });
1983         }
1984
1985         // user defined functions
1986         public void setNotices (Json.Object nots, int qty) {
1987             this.el.show();
1988             this.el.label = qty.to_string() + " Errors";
1989             this.notices = nots;
1990         
1991         }
1992     }
1993     public class Xcls_Image56 : Object
1994     {
1995         public Gtk.Image el;
1996         private Xcls_MainWindow  _this;
1997
1998
1999             // my vars (def)
2000
2001         // ctor
2002         public Xcls_Image56(Xcls_MainWindow _owner )
2003         {
2004             _this = _owner;
2005             this.el = new Gtk.Image();
2006
2007             // my vars (dec)
2008
2009             // set gobject values
2010             this.el.icon_name = "dialog-error";
2011         }
2012
2013         // user defined functions
2014     }
2015
2016
2017     public class Xcls_statusbar_warnings : Object
2018     {
2019         public Gtk.ImageMenuItem el;
2020         private Xcls_MainWindow  _this;
2021
2022
2023             // my vars (def)
2024         public Xcls_ValaCompileErrors popup;
2025         public Json.Object notices;
2026
2027         // ctor
2028         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2029         {
2030             _this = _owner;
2031             _this.statusbar_warnings = this;
2032             this.el = new Gtk.ImageMenuItem();
2033
2034             // my vars (dec)
2035             this.notices = new Json.Object();
2036
2037             // set gobject values
2038             this.el.always_show_image = true;
2039             this.el.label = "Warnings";
2040             var child_0 = new Xcls_Image58( _this );
2041             child_0.ref();
2042             this.el.set_image (  child_0.el  );
2043
2044             //listeners
2045             this.el.button_press_event.connect( () => {
2046                 if (this.popup == null) {
2047                     this.popup = new Xcls_ValaCompileErrors();
2048                     this.popup.window = _this;
2049                 }
2050                 
2051                 this.popup.show(this.notices, this.el);
2052                 return true;
2053             });
2054         }
2055
2056         // user defined functions
2057         public void setNotices (Json.Object nots, int qty) {
2058             this.el.show();
2059             this.el.label = qty.to_string() + " Warnings";
2060             this.notices = nots;
2061         
2062         }
2063     }
2064     public class Xcls_Image58 : Object
2065     {
2066         public Gtk.Image el;
2067         private Xcls_MainWindow  _this;
2068
2069
2070             // my vars (def)
2071
2072         // ctor
2073         public Xcls_Image58(Xcls_MainWindow _owner )
2074         {
2075             _this = _owner;
2076             this.el = new Gtk.Image();
2077
2078             // my vars (dec)
2079
2080             // set gobject values
2081             this.el.icon_name = "dialog-warning";
2082         }
2083
2084         // user defined functions
2085     }
2086
2087
2088     public class Xcls_statusbar_depricated : Object
2089     {
2090         public Gtk.ImageMenuItem el;
2091         private Xcls_MainWindow  _this;
2092
2093
2094             // my vars (def)
2095         public Xcls_ValaCompileErrors popup;
2096         public Json.Object notices;
2097
2098         // ctor
2099         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2100         {
2101             _this = _owner;
2102             _this.statusbar_depricated = this;
2103             this.el = new Gtk.ImageMenuItem();
2104
2105             // my vars (dec)
2106             this.notices = new Json.Object();
2107
2108             // set gobject values
2109             this.el.always_show_image = true;
2110             this.el.label = "Depricated";
2111             var child_0 = new Xcls_Image60( _this );
2112             child_0.ref();
2113             this.el.set_image (  child_0.el  );
2114
2115             //listeners
2116             this.el.button_press_event.connect( () => {
2117                 if (this.popup == null) {
2118                     this.popup = new Xcls_ValaCompileErrors();
2119                     this.popup.window = _this;
2120                 }
2121                 
2122                 
2123                 this.popup.show(this.notices, this.el);
2124                 return true;
2125             });
2126         }
2127
2128         // user defined functions
2129         public void setNotices (Json.Object nots, int qty) {
2130             this.el.show();
2131             this.el.label = qty.to_string() + " Depricated";
2132             this.notices = nots;
2133         
2134         }
2135     }
2136     public class Xcls_Image60 : Object
2137     {
2138         public Gtk.Image el;
2139         private Xcls_MainWindow  _this;
2140
2141
2142             // my vars (def)
2143
2144         // ctor
2145         public Xcls_Image60(Xcls_MainWindow _owner )
2146         {
2147             _this = _owner;
2148             this.el = new Gtk.Image();
2149
2150             // my vars (dec)
2151
2152             // set gobject values
2153             this.el.icon_name = "dialog-information";
2154         }
2155
2156         // user defined functions
2157     }
2158
2159
2160     public class Xcls_statusbar_run : Object
2161     {
2162         public Gtk.ImageMenuItem el;
2163         private Xcls_MainWindow  _this;
2164
2165
2166             // my vars (def)
2167         public Xcls_ValaCompileErrors popup;
2168
2169         // ctor
2170         public Xcls_statusbar_run(Xcls_MainWindow _owner )
2171         {
2172             _this = _owner;
2173             _this.statusbar_run = this;
2174             this.el = new Gtk.ImageMenuItem();
2175
2176             // my vars (dec)
2177
2178             // set gobject values
2179             this.el.always_show_image = true;
2180             this.el.label = "Run";
2181             var child_0 = new Xcls_Image62( _this );
2182             child_0.ref();
2183             this.el.set_image (  child_0.el  );
2184
2185             //listeners
2186             this.el.button_press_event.connect( () => {
2187                 if (_this.windowstate.file == null) {
2188                         return true;
2189                 }
2190                 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2191                 
2192                 _this.windowstate.compile_results.show(this.el,true);
2193                 
2194                 return true;
2195             });
2196         }
2197
2198         // user defined functions
2199     }
2200     public class Xcls_Image62 : Object
2201     {
2202         public Gtk.Image el;
2203         private Xcls_MainWindow  _this;
2204
2205
2206             // my vars (def)
2207
2208         // ctor
2209         public Xcls_Image62(Xcls_MainWindow _owner )
2210         {
2211             _this = _owner;
2212             this.el = new Gtk.Image();
2213
2214             // my vars (dec)
2215
2216             // set gobject values
2217             this.el.icon_name = "media-playback-start";
2218         }
2219
2220         // user defined functions
2221     }
2222
2223
2224
2225     public class Xcls_statusbar_compile_spinner : Object
2226     {
2227         public Gtk.Spinner el;
2228         private Xcls_MainWindow  _this;
2229
2230
2231             // my vars (def)
2232
2233         // ctor
2234         public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
2235         {
2236             _this = _owner;
2237             _this.statusbar_compile_spinner = this;
2238             this.el = new Gtk.Spinner();
2239
2240             // my vars (dec)
2241
2242             // set gobject values
2243             this.el.tooltip_text = "Compiling";
2244         }
2245
2246         // user defined functions
2247         public void stop () {
2248          this.el.stop();
2249           this.el.hide();
2250         }
2251         public void start () {
2252           this.el.show();
2253           this.el.start();  
2254         }
2255     }
2256
2257
2258
2259 }