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