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