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