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