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