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