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