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( Gtk.Orientation.VERTICAL, 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.Box 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.Box( Gtk.Orientation.VERTICAL, 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             this.el.orientation = Gtk.Orientation.VERTICAL;
570             var child_0 = new Xcls_clutterembed( _this );
571             child_0.ref();
572             this.el.pack_start (  child_0.el , true,true,0 );
573         }
574
575         // user defined functions
576     }
577     public class Xcls_clutterembed : Object
578     {
579         public GtkClutter.Embed el;
580         private Xcls_MainWindow  _this;
581
582
583             // my vars (def)
584
585         // ctor
586         public Xcls_clutterembed(Xcls_MainWindow _owner )
587         {
588             _this = _owner;
589             _this.clutterembed = this;
590             this.el = new GtkClutter.Embed();
591
592             // my vars (dec)
593
594             // set gobject values
595             var child_0 = new Xcls_rooview( _this );
596             child_0.ref();
597             this.el.get_stage().add_child (  child_0.el  );
598             var child_1 = new Xcls_objectview( _this );
599             child_1.ref();
600             this.el.get_stage().add_child (  child_1.el  );
601             var child_2 = new Xcls_codeeditview( _this );
602             child_2.ref();
603             this.el.get_stage().add_child (  child_2.el  );
604             var child_3 = new Xcls_addpropsview( _this );
605             child_3.ref();
606             this.el.get_stage().add_child (  child_3.el  );
607             var child_4 = new Xcls_projecteditview( _this );
608             child_4.ref();
609             this.el.get_stage().add_child (  child_4.el  );
610             var child_5 = new Xcls_buttonlayout( _this );
611             child_5.ref();
612             this.el.get_stage().add_child (  child_5.el  );
613
614             // init method
615
616             var stage = this.el.get_stage();
617                 stage.set_background_color(  Clutter.Color.from_string("#000"));
618
619             //listeners
620             this.el.size_allocate.connect( (  alloc) => {
621                 if (_this.windowstate == null) {
622                     return;
623                 }
624                 _this.windowstate.resizeCanvas(); 
625                     
626             });
627         }
628
629         // user defined functions
630     }
631     public class Xcls_rooview : Object
632     {
633         public GtkClutter.Actor el;
634         private Xcls_MainWindow  _this;
635
636
637             // my vars (def)
638
639         // ctor
640         public Xcls_rooview(Xcls_MainWindow _owner )
641         {
642             _this = _owner;
643             _this.rooview = this;
644             this.el = new GtkClutter.Actor();
645
646             // my vars (dec)
647
648             // set gobject values
649
650             // init method
651
652             {
653                
654                
655                 this.el.add_constraint(
656                     new Clutter.AlignConstraint(
657                         _this.clutterembed.el.get_stage(), 
658                         Clutter.AlignAxis.X_AXIS,
659                         1.0f
660                     )
661                 );
662                     
663                 //this.el.set_position(100,100);
664                 this.el.set_pivot_point(1.0f,1.0f);
665                 
666                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
667                         _this.clutterembed.el.get_stage().height);
668                         
669             }
670         }
671
672         // user defined functions
673     }
674
675     public class Xcls_objectview : Object
676     {
677         public GtkClutter.Actor el;
678         private Xcls_MainWindow  _this;
679
680
681             // my vars (def)
682
683         // ctor
684         public Xcls_objectview(Xcls_MainWindow _owner )
685         {
686             _this = _owner;
687             _this.objectview = this;
688             this.el = new GtkClutter.Actor();
689
690             // my vars (dec)
691
692             // set gobject values
693
694             // init method
695
696             {
697                
698                /*
699                 this.el.add_constraint(
700                     new Clutter.AlignConstraint(
701                         _this.clutterembed.el.get_stage(), 
702                         Clutter.AlignAxis.X_AXIS,
703                         0.0f
704                     )
705                 );
706                 */
707                 this.el.fixed_x = 50.0f;
708                 this.el.fixed_y = 0.0f;
709                 //this.el.set_position(100,100);
710                 this.el.set_pivot_point(0.0f,0.0f);
711                 this.el.set_scale(0.0f,1.0f);
712                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
713                         _this.clutterembed.el.get_stage().height);
714                         
715             }
716         }
717
718         // user defined functions
719     }
720
721     public class Xcls_codeeditview : Object
722     {
723         public GtkClutter.Actor el;
724         private Xcls_MainWindow  _this;
725
726
727             // my vars (def)
728
729         // ctor
730         public Xcls_codeeditview(Xcls_MainWindow _owner )
731         {
732             _this = _owner;
733             _this.codeeditview = this;
734             this.el = new GtkClutter.Actor();
735
736             // my vars (dec)
737
738             // set gobject values
739
740             // init method
741
742             {
743                
744                /*
745                 this.el.add_constraint(
746                     new Clutter.AlignConstraint(
747                         _this.clutterembed.el.get_stage(), 
748                         Clutter.AlignAxis.X_AXIS,
749                         0.0f
750                     )
751                 );
752                 */
753                 this.el.fixed_x = 50.0f;
754                 this.el.fixed_y = 0.0f;
755                 //this.el.set_position(100,100);
756                 this.el.set_pivot_point(0.0f,0.0f);
757                 this.el.set_scale(0.0f,1.0f);
758                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
759                         _this.clutterembed.el.get_stage().height);
760                         
761             }
762         }
763
764         // user defined functions
765     }
766
767     public class Xcls_addpropsview : Object
768     {
769         public GtkClutter.Actor el;
770         private Xcls_MainWindow  _this;
771
772
773             // my vars (def)
774
775         // ctor
776         public Xcls_addpropsview(Xcls_MainWindow _owner )
777         {
778             _this = _owner;
779             _this.addpropsview = this;
780             this.el = new GtkClutter.Actor();
781
782             // my vars (dec)
783
784             // set gobject values
785
786             // init method
787
788             {
789                
790                /*
791                 this.el.add_constraint(
792                     new Clutter.AlignConstraint(
793                         _this.clutterembed.el.get_stage(), 
794                         Clutter.AlignAxis.X_AXIS,
795                         0.0f
796                     )
797                 );
798                 */
799                 this.el.fixed_x = 50.0f;
800                 this.el.fixed_y = 0.0f;
801                 //this.el.set_position(100,100);
802                 this.el.set_pivot_point(0.0f,0.0f);
803                 this.el.set_scale(0.0f,1.0f);
804                 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
805                         _this.clutterembed.el.get_stage().height);
806                         
807             }
808         }
809
810         // user defined functions
811     }
812
813     public class Xcls_projecteditview : Object
814     {
815         public GtkClutter.Actor el;
816         private Xcls_MainWindow  _this;
817
818
819             // my vars (def)
820
821         // ctor
822         public Xcls_projecteditview(Xcls_MainWindow _owner )
823         {
824             _this = _owner;
825             _this.projecteditview = this;
826             this.el = new GtkClutter.Actor();
827
828             // my vars (dec)
829
830             // set gobject values
831
832             // init method
833
834             {
835                
836                
837                 this.el.add_constraint(
838                     new Clutter.AlignConstraint(
839                         _this.clutterembed.el.get_stage(), 
840                         Clutter.AlignAxis.X_AXIS,
841                         1.0f
842                     )
843                 );
844                     
845                 //this.el.set_position(100,100);
846                 this.el.set_pivot_point(0.0f,0.0f);
847                 this.el.set_scale(1.0f,0.0f);
848                 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
849                         _this.clutterembed.el.get_stage().height /2);
850                         
851             }
852         }
853
854         // user defined functions
855     }
856
857     public class Xcls_buttonlayout : Object
858     {
859         public Clutter.Actor el;
860         private Xcls_MainWindow  _this;
861
862
863             // my vars (def)
864
865         // ctor
866         public Xcls_buttonlayout(Xcls_MainWindow _owner )
867         {
868             _this = _owner;
869             _this.buttonlayout = this;
870             this.el = new Clutter.Actor();
871
872             // my vars (dec)
873
874             // set gobject values
875             var child_0 = new Xcls_BoxLayout25( _this );
876             child_0.ref();
877             this.el.layout_manager = child_0.el;
878             var child_1 = new Xcls_backbutton( _this );
879             child_1.ref();
880             this.el.add_child (  child_1.el  );
881             var child_2 = new Xcls_projectbutton( _this );
882             child_2.ref();
883             this.el.add_child (  child_2.el  );
884             var child_3 = new Xcls_editfilebutton( _this );
885             child_3.ref();
886             this.el.add_child (  child_3.el  );
887             var child_4 = new Xcls_projecteditbutton( _this );
888             child_4.ref();
889             this.el.add_child (  child_4.el  );
890             var child_5 = new Xcls_objectshowbutton( _this );
891             child_5.ref();
892             this.el.add_child (  child_5.el  );
893             var child_6 = new Xcls_addpropbutton( _this );
894             child_6.ref();
895             this.el.add_child (  child_6.el  );
896             var child_7 = new Xcls_addlistenerbutton( _this );
897             child_7.ref();
898             this.el.add_child (  child_7.el  );
899             var child_8 = new Xcls_addprojectbutton( _this );
900             child_8.ref();
901             this.el.add_child (  child_8.el  );
902             var child_9 = new Xcls_addfilebutton( _this );
903             child_9.ref();
904             this.el.add_child (  child_9.el  );
905             var child_10 = new Xcls_delprojectbutton( _this );
906             child_10.ref();
907             this.el.add_child (  child_10.el  );
908
909             // init method
910
911             {
912                 
913                 this.el.add_constraint(
914                     new Clutter.AlignConstraint(
915                         _this.clutterembed.el.get_stage(), 
916                         Clutter.AlignAxis.X_AXIS,
917                         0.0f
918                     )
919                 );
920                  
921                 
922                 //this.el.set_position(100,100);
923                 this.el.set_pivot_point(0.5f,0.5f);
924                  this.el.set_size(50,
925                        _this.clutterembed.el.get_stage().height);
926                  
927             }
928         }
929
930         // user defined functions
931     }
932     public class Xcls_BoxLayout25 : Object
933     {
934         public Clutter.BoxLayout el;
935         private Xcls_MainWindow  _this;
936
937
938             // my vars (def)
939
940         // ctor
941         public Xcls_BoxLayout25(Xcls_MainWindow _owner )
942         {
943             _this = _owner;
944             this.el = new Clutter.BoxLayout();
945
946             // my vars (dec)
947
948             // set gobject values
949             this.el.orientation = Clutter.Orientation.VERTICAL;
950         }
951
952         // user defined functions
953     }
954
955     public class Xcls_backbutton : Object
956     {
957         public Clutter.Actor el;
958         private Xcls_MainWindow  _this;
959
960
961             // my vars (def)
962
963         // ctor
964         public Xcls_backbutton(Xcls_MainWindow _owner )
965         {
966             _this = _owner;
967             _this.backbutton = this;
968             this.el = new Clutter.Actor();
969
970             // my vars (dec)
971
972             // set gobject values
973             var child_0 = new Xcls_Actor27( _this );
974             child_0.ref();
975             this.el.add_child (  child_0.el  );
976
977             // init method
978
979             this.el.set_size(50,50);
980         }
981
982         // user defined functions
983     }
984     public class Xcls_Actor27 : Object
985     {
986         public GtkClutter.Actor el;
987         private Xcls_MainWindow  _this;
988
989
990             // my vars (def)
991
992         // ctor
993         public Xcls_Actor27(Xcls_MainWindow _owner )
994         {
995             _this = _owner;
996             this.el = new GtkClutter.Actor();
997
998             // my vars (dec)
999
1000             // set gobject values
1001             var child_0 = new Xcls_Button28( _this );
1002             child_0.ref();
1003
1004             // init method
1005
1006             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1007         }
1008
1009         // user defined functions
1010     }
1011     public class Xcls_Button28 : Object
1012     {
1013         public Gtk.Button el;
1014         private Xcls_MainWindow  _this;
1015
1016
1017             // my vars (def)
1018
1019         // ctor
1020         public Xcls_Button28(Xcls_MainWindow _owner )
1021         {
1022             _this = _owner;
1023             this.el = new Gtk.Button();
1024
1025             // my vars (dec)
1026
1027             // set gobject values
1028             this.el.width_request = 50;
1029             this.el.height_request = 50;
1030             this.el.tooltip_text = "Back";
1031             var child_0 = new Xcls_Image29( _this );
1032             child_0.ref();
1033             this.el.set_image (  child_0.el  );
1034
1035             //listeners
1036             this.el.clicked.connect( ( ) => {
1037               
1038                 _this.windowstate.switchState(WindowState.State.PREVIEW);
1039                 
1040             
1041             });
1042         }
1043
1044         // user defined functions
1045     }
1046     public class Xcls_Image29 : Object
1047     {
1048         public Gtk.Image el;
1049         private Xcls_MainWindow  _this;
1050
1051
1052             // my vars (def)
1053
1054         // ctor
1055         public Xcls_Image29(Xcls_MainWindow _owner )
1056         {
1057             _this = _owner;
1058             this.el = new Gtk.Image();
1059
1060             // my vars (dec)
1061
1062             // set gobject values
1063             this.el.icon_name = "go-previous";
1064         }
1065
1066         // user defined functions
1067     }
1068
1069
1070
1071
1072     public class Xcls_projectbutton : Object
1073     {
1074         public Clutter.Actor el;
1075         private Xcls_MainWindow  _this;
1076
1077
1078             // my vars (def)
1079
1080         // ctor
1081         public Xcls_projectbutton(Xcls_MainWindow _owner )
1082         {
1083             _this = _owner;
1084             _this.projectbutton = this;
1085             this.el = new Clutter.Actor();
1086
1087             // my vars (dec)
1088
1089             // set gobject values
1090             var child_0 = new Xcls_Actor31( _this );
1091             child_0.ref();
1092             this.el.add_child (  child_0.el  );
1093
1094             // init method
1095
1096             this.el.set_size(50,50);
1097         }
1098
1099         // user defined functions
1100     }
1101     public class Xcls_Actor31 : Object
1102     {
1103         public GtkClutter.Actor el;
1104         private Xcls_MainWindow  _this;
1105
1106
1107             // my vars (def)
1108
1109         // ctor
1110         public Xcls_Actor31(Xcls_MainWindow _owner )
1111         {
1112             _this = _owner;
1113             this.el = new GtkClutter.Actor();
1114
1115             // my vars (dec)
1116
1117             // set gobject values
1118             var child_0 = new Xcls_Button32( _this );
1119             child_0.ref();
1120
1121             // init method
1122
1123             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1124         }
1125
1126         // user defined functions
1127     }
1128     public class Xcls_Button32 : Object
1129     {
1130         public Gtk.Button el;
1131         private Xcls_MainWindow  _this;
1132
1133
1134             // my vars (def)
1135
1136         // ctor
1137         public Xcls_Button32(Xcls_MainWindow _owner )
1138         {
1139             _this = _owner;
1140             this.el = new Gtk.Button();
1141
1142             // my vars (dec)
1143
1144             // set gobject values
1145             this.el.width_request = 50;
1146             this.el.height_request = 50;
1147             var child_0 = new Xcls_Image33( _this );
1148             child_0.ref();
1149             this.el.set_image (  child_0.el  );
1150
1151             //listeners
1152             this.el.clicked.connect( ( ) => {
1153                _this.windowstate.switchState(WindowState.State.FILES);
1154                   
1155             
1156             });
1157         }
1158
1159         // user defined functions
1160     }
1161     public class Xcls_Image33 : Object
1162     {
1163         public Gtk.Image el;
1164         private Xcls_MainWindow  _this;
1165
1166
1167             // my vars (def)
1168
1169         // ctor
1170         public Xcls_Image33(Xcls_MainWindow _owner )
1171         {
1172             _this = _owner;
1173             this.el = new Gtk.Image();
1174
1175             // my vars (dec)
1176
1177             // set gobject values
1178             this.el.icon_name = "document-open";
1179         }
1180
1181         // user defined functions
1182     }
1183
1184
1185
1186
1187     public class Xcls_editfilebutton : Object
1188     {
1189         public Clutter.Actor el;
1190         private Xcls_MainWindow  _this;
1191
1192
1193             // my vars (def)
1194
1195         // ctor
1196         public Xcls_editfilebutton(Xcls_MainWindow _owner )
1197         {
1198             _this = _owner;
1199             _this.editfilebutton = this;
1200             this.el = new Clutter.Actor();
1201
1202             // my vars (dec)
1203
1204             // set gobject values
1205             var child_0 = new Xcls_Actor35( _this );
1206             child_0.ref();
1207             this.el.add_child (  child_0.el  );
1208
1209             // init method
1210
1211             this.el.set_size(50.0f,50.0f);
1212         }
1213
1214         // user defined functions
1215     }
1216     public class Xcls_Actor35 : Object
1217     {
1218         public GtkClutter.Actor el;
1219         private Xcls_MainWindow  _this;
1220
1221
1222             // my vars (def)
1223
1224         // ctor
1225         public Xcls_Actor35(Xcls_MainWindow _owner )
1226         {
1227             _this = _owner;
1228             this.el = new GtkClutter.Actor();
1229
1230             // my vars (dec)
1231
1232             // set gobject values
1233             var child_0 = new Xcls_Button36( _this );
1234             child_0.ref();
1235
1236             // init method
1237
1238             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1239         }
1240
1241         // user defined functions
1242     }
1243     public class Xcls_Button36 : Object
1244     {
1245         public Gtk.Button el;
1246         private Xcls_MainWindow  _this;
1247
1248
1249             // my vars (def)
1250
1251         // ctor
1252         public Xcls_Button36(Xcls_MainWindow _owner )
1253         {
1254             _this = _owner;
1255             this.el = new Gtk.Button();
1256
1257             // my vars (dec)
1258
1259             // set gobject values
1260             this.el.width_request = 50;
1261             this.el.height_request = 50;
1262             this.el.tooltip_text = "File Details";
1263             var child_0 = new Xcls_Image37( _this );
1264             child_0.ref();
1265             this.el.set_image (  child_0.el  );
1266
1267             //listeners
1268             this.el.clicked.connect( ( ) => {
1269               
1270                 // create a new file in project..
1271                 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1272                     return  ;
1273                 }
1274                  _this.windowstate.file_details.show(
1275                     _this.windowstate.left_tree.model.file, this.el
1276                 );
1277                  
1278                 return  ;    
1279             
1280             
1281             });
1282         }
1283
1284         // user defined functions
1285     }
1286     public class Xcls_Image37 : Object
1287     {
1288         public Gtk.Image el;
1289         private Xcls_MainWindow  _this;
1290
1291
1292             // my vars (def)
1293
1294         // ctor
1295         public Xcls_Image37(Xcls_MainWindow _owner )
1296         {
1297             _this = _owner;
1298             this.el = new Gtk.Image();
1299
1300             // my vars (dec)
1301
1302             // set gobject values
1303             this.el.icon_name = "document-properties";
1304         }
1305
1306         // user defined functions
1307     }
1308
1309
1310
1311
1312     public class Xcls_projecteditbutton : Object
1313     {
1314         public Clutter.Actor el;
1315         private Xcls_MainWindow  _this;
1316
1317
1318             // my vars (def)
1319
1320         // ctor
1321         public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1322         {
1323             _this = _owner;
1324             _this.projecteditbutton = this;
1325             this.el = new Clutter.Actor();
1326
1327             // my vars (dec)
1328
1329             // set gobject values
1330             var child_0 = new Xcls_Actor39( _this );
1331             child_0.ref();
1332             this.el.add_child (  child_0.el  );
1333
1334             // init method
1335
1336             this.el.set_size(50,50);
1337         }
1338
1339         // user defined functions
1340     }
1341     public class Xcls_Actor39 : Object
1342     {
1343         public GtkClutter.Actor el;
1344         private Xcls_MainWindow  _this;
1345
1346
1347             // my vars (def)
1348
1349         // ctor
1350         public Xcls_Actor39(Xcls_MainWindow _owner )
1351         {
1352             _this = _owner;
1353             this.el = new GtkClutter.Actor();
1354
1355             // my vars (dec)
1356
1357             // set gobject values
1358             var child_0 = new Xcls_Button40( _this );
1359             child_0.ref();
1360
1361             // init method
1362
1363             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1364         }
1365
1366         // user defined functions
1367     }
1368     public class Xcls_Button40 : Object
1369     {
1370         public Gtk.Button el;
1371         private Xcls_MainWindow  _this;
1372
1373
1374             // my vars (def)
1375
1376         // ctor
1377         public Xcls_Button40(Xcls_MainWindow _owner )
1378         {
1379             _this = _owner;
1380             this.el = new Gtk.Button();
1381
1382             // my vars (dec)
1383
1384             // set gobject values
1385             this.el.width_request = 50;
1386             this.el.height_request = 50;
1387             this.el.tooltip_text = "Project Details";
1388             var child_0 = new Xcls_Image41( _this );
1389             child_0.ref();
1390             this.el.set_image (  child_0.el  );
1391
1392             //listeners
1393             this.el.clicked.connect( ( ) => {
1394                  _this.windowstate.switchState(WindowState.State.PROJECT);
1395                
1396             
1397             
1398             });
1399         }
1400
1401         // user defined functions
1402     }
1403     public class Xcls_Image41 : Object
1404     {
1405         public Gtk.Image el;
1406         private Xcls_MainWindow  _this;
1407
1408
1409             // my vars (def)
1410
1411         // ctor
1412         public Xcls_Image41(Xcls_MainWindow _owner )
1413         {
1414             _this = _owner;
1415             this.el = new Gtk.Image();
1416
1417             // my vars (dec)
1418
1419             // set gobject values
1420             this.el.icon_name = "emblem-system";
1421         }
1422
1423         // user defined functions
1424     }
1425
1426
1427
1428
1429     public class Xcls_objectshowbutton : Object
1430     {
1431         public Clutter.Actor el;
1432         private Xcls_MainWindow  _this;
1433
1434
1435             // my vars (def)
1436
1437         // ctor
1438         public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1439         {
1440             _this = _owner;
1441             _this.objectshowbutton = this;
1442             this.el = new Clutter.Actor();
1443
1444             // my vars (dec)
1445
1446             // set gobject values
1447             var child_0 = new Xcls_Actor43( _this );
1448             child_0.ref();
1449             this.el.add_child (  child_0.el  );
1450
1451             // init method
1452
1453             this.el.set_size(50,50);
1454
1455             //listeners
1456             this.el.enter_event.connect( (  event)  => {
1457                 this.el.background_color = new Clutter.Color.from_string("#333");
1458                     return false;
1459             });
1460             this.el.leave_event.connect( (  event)  => {
1461                 this.el.background_color = new Clutter.Color.from_string("#000");
1462                 return false;
1463             });
1464         }
1465
1466         // user defined functions
1467     }
1468     public class Xcls_Actor43 : Object
1469     {
1470         public GtkClutter.Actor el;
1471         private Xcls_MainWindow  _this;
1472
1473
1474             // my vars (def)
1475
1476         // ctor
1477         public Xcls_Actor43(Xcls_MainWindow _owner )
1478         {
1479             _this = _owner;
1480             this.el = new GtkClutter.Actor();
1481
1482             // my vars (dec)
1483
1484             // set gobject values
1485             var child_0 = new Xcls_Button44( _this );
1486             child_0.ref();
1487
1488             // init method
1489
1490             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1491         }
1492
1493         // user defined functions
1494     }
1495     public class Xcls_Button44 : Object
1496     {
1497         public Gtk.Button el;
1498         private Xcls_MainWindow  _this;
1499
1500
1501             // my vars (def)
1502
1503         // ctor
1504         public Xcls_Button44(Xcls_MainWindow _owner )
1505         {
1506             _this = _owner;
1507             this.el = new Gtk.Button();
1508
1509             // my vars (dec)
1510
1511             // set gobject values
1512             this.el.width_request = 50;
1513             this.el.height_request = 50;
1514             this.el.tooltip_text = "Add Child Element";
1515             var child_0 = new Xcls_Image45( _this );
1516             child_0.ref();
1517             this.el.set_image (  child_0.el  );
1518
1519             //listeners
1520             this.el.clicked.connect( ( ) => {
1521                 
1522                  _this.windowstate.switchState(WindowState.State.OBJECT);
1523               
1524              
1525             });
1526         }
1527
1528         // user defined functions
1529     }
1530     public class Xcls_Image45 : Object
1531     {
1532         public Gtk.Image el;
1533         private Xcls_MainWindow  _this;
1534
1535
1536             // my vars (def)
1537
1538         // ctor
1539         public Xcls_Image45(Xcls_MainWindow _owner )
1540         {
1541             _this = _owner;
1542             this.el = new Gtk.Image();
1543
1544             // my vars (dec)
1545
1546             // set gobject values
1547             this.el.icon_name = "list-add";
1548         }
1549
1550         // user defined functions
1551     }
1552
1553
1554
1555
1556     public class Xcls_addpropbutton : Object
1557     {
1558         public Clutter.Actor el;
1559         private Xcls_MainWindow  _this;
1560
1561
1562             // my vars (def)
1563
1564         // ctor
1565         public Xcls_addpropbutton(Xcls_MainWindow _owner )
1566         {
1567             _this = _owner;
1568             _this.addpropbutton = this;
1569             this.el = new Clutter.Actor();
1570
1571             // my vars (dec)
1572
1573             // set gobject values
1574             var child_0 = new Xcls_Actor47( _this );
1575             child_0.ref();
1576             this.el.add_child (  child_0.el  );
1577
1578             // init method
1579
1580             this.el.set_size(50,50);
1581         }
1582
1583         // user defined functions
1584     }
1585     public class Xcls_Actor47 : Object
1586     {
1587         public GtkClutter.Actor el;
1588         private Xcls_MainWindow  _this;
1589
1590
1591             // my vars (def)
1592
1593         // ctor
1594         public Xcls_Actor47(Xcls_MainWindow _owner )
1595         {
1596             _this = _owner;
1597             this.el = new GtkClutter.Actor();
1598
1599             // my vars (dec)
1600
1601             // set gobject values
1602             var child_0 = new Xcls_Button48( _this );
1603             child_0.ref();
1604
1605             // init method
1606
1607             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1608         }
1609
1610         // user defined functions
1611     }
1612     public class Xcls_Button48 : Object
1613     {
1614         public Gtk.Button el;
1615         private Xcls_MainWindow  _this;
1616
1617
1618             // my vars (def)
1619
1620         // ctor
1621         public Xcls_Button48(Xcls_MainWindow _owner )
1622         {
1623             _this = _owner;
1624             this.el = new Gtk.Button();
1625
1626             // my vars (dec)
1627
1628             // set gobject values
1629             this.el.width_request = 50;
1630             this.el.height_request = 50;
1631             this.el.tooltip_text = "Add Property";
1632             var child_0 = new Xcls_Image49( _this );
1633             child_0.ref();
1634             this.el.set_image (  child_0.el  );
1635
1636             //listeners
1637             this.el.clicked.connect( ( ) => {
1638                 
1639                  _this.windowstate.switchState(WindowState.State.PROP);
1640              
1641             
1642             });
1643         }
1644
1645         // user defined functions
1646     }
1647     public class Xcls_Image49 : Object
1648     {
1649         public Gtk.Image el;
1650         private Xcls_MainWindow  _this;
1651
1652
1653             // my vars (def)
1654
1655         // ctor
1656         public Xcls_Image49(Xcls_MainWindow _owner )
1657         {
1658             _this = _owner;
1659             this.el = new Gtk.Image();
1660
1661             // my vars (dec)
1662
1663             // set gobject values
1664             this.el.icon_name = "format-justify-left";
1665         }
1666
1667         // user defined functions
1668     }
1669
1670
1671
1672
1673     public class Xcls_addlistenerbutton : Object
1674     {
1675         public Clutter.Actor el;
1676         private Xcls_MainWindow  _this;
1677
1678
1679             // my vars (def)
1680
1681         // ctor
1682         public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1683         {
1684             _this = _owner;
1685             _this.addlistenerbutton = this;
1686             this.el = new Clutter.Actor();
1687
1688             // my vars (dec)
1689
1690             // set gobject values
1691             var child_0 = new Xcls_Actor51( _this );
1692             child_0.ref();
1693             this.el.add_child (  child_0.el  );
1694
1695             // init method
1696
1697             this.el.set_size(50,50);
1698         }
1699
1700         // user defined functions
1701     }
1702     public class Xcls_Actor51 : Object
1703     {
1704         public GtkClutter.Actor el;
1705         private Xcls_MainWindow  _this;
1706
1707
1708             // my vars (def)
1709
1710         // ctor
1711         public Xcls_Actor51(Xcls_MainWindow _owner )
1712         {
1713             _this = _owner;
1714             this.el = new GtkClutter.Actor();
1715
1716             // my vars (dec)
1717
1718             // set gobject values
1719             var child_0 = new Xcls_Button52( _this );
1720             child_0.ref();
1721
1722             // init method
1723
1724             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1725         }
1726
1727         // user defined functions
1728     }
1729     public class Xcls_Button52 : Object
1730     {
1731         public Gtk.Button el;
1732         private Xcls_MainWindow  _this;
1733
1734
1735             // my vars (def)
1736
1737         // ctor
1738         public Xcls_Button52(Xcls_MainWindow _owner )
1739         {
1740             _this = _owner;
1741             this.el = new Gtk.Button();
1742
1743             // my vars (dec)
1744
1745             // set gobject values
1746             this.el.width_request = 50;
1747             this.el.height_request = 50;
1748             this.el.tooltip_text = "Add Event Code";
1749             var child_0 = new Xcls_Image53( _this );
1750             child_0.ref();
1751             this.el.set_image (  child_0.el  );
1752
1753             //listeners
1754             this.el.clicked.connect( ( ) => {
1755                 
1756                 _this.windowstate.switchState(WindowState.State.LISTENER);
1757               
1758             
1759             
1760             });
1761         }
1762
1763         // user defined functions
1764     }
1765     public class Xcls_Image53 : Object
1766     {
1767         public Gtk.Image el;
1768         private Xcls_MainWindow  _this;
1769
1770
1771             // my vars (def)
1772
1773         // ctor
1774         public Xcls_Image53(Xcls_MainWindow _owner )
1775         {
1776             _this = _owner;
1777             this.el = new Gtk.Image();
1778
1779             // my vars (dec)
1780
1781             // set gobject values
1782             this.el.icon_name = "appointment-new";
1783         }
1784
1785         // user defined functions
1786     }
1787
1788
1789
1790
1791     public class Xcls_addprojectbutton : Object
1792     {
1793         public Clutter.Actor el;
1794         private Xcls_MainWindow  _this;
1795
1796
1797             // my vars (def)
1798
1799         // ctor
1800         public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1801         {
1802             _this = _owner;
1803             _this.addprojectbutton = this;
1804             this.el = new Clutter.Actor();
1805
1806             // my vars (dec)
1807
1808             // set gobject values
1809             var child_0 = new Xcls_Actor55( _this );
1810             child_0.ref();
1811             this.el.add_child (  child_0.el  );
1812
1813             // init method
1814
1815             this.el.set_size(50.0f,50.0f);
1816         }
1817
1818         // user defined functions
1819     }
1820     public class Xcls_Actor55 : Object
1821     {
1822         public GtkClutter.Actor el;
1823         private Xcls_MainWindow  _this;
1824
1825
1826             // my vars (def)
1827
1828         // ctor
1829         public Xcls_Actor55(Xcls_MainWindow _owner )
1830         {
1831             _this = _owner;
1832             this.el = new GtkClutter.Actor();
1833
1834             // my vars (dec)
1835
1836             // set gobject values
1837             var child_0 = new Xcls_Button56( _this );
1838             child_0.ref();
1839
1840             // init method
1841
1842             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1843         }
1844
1845         // user defined functions
1846     }
1847     public class Xcls_Button56 : Object
1848     {
1849         public Gtk.Button el;
1850         private Xcls_MainWindow  _this;
1851
1852
1853             // my vars (def)
1854
1855         // ctor
1856         public Xcls_Button56(Xcls_MainWindow _owner )
1857         {
1858             _this = _owner;
1859             this.el = new Gtk.Button();
1860
1861             // my vars (dec)
1862
1863             // set gobject values
1864             this.el.width_request = 50;
1865             this.el.height_request = 50;
1866             this.el.tooltip_text = "New\nProj.";
1867             var child_0 = new Xcls_Image57( _this );
1868             child_0.ref();
1869             this.el.set_image (  child_0.el  );
1870
1871             //listeners
1872             this.el.clicked.connect( ( ) => {
1873               
1874                 // create a new file in project..
1875                 //Xcls_DialogNewComponent.singleton().show(
1876                var  pe =      EditProject.singleton();
1877                 pe.el.set_transient_for(_this.el);
1878                 pe.el.set_modal(true);   
1879                
1880                 var p  = pe.show();
1881             
1882                 if (p == null) {
1883                     return;
1884                 }
1885                 
1886                 
1887                 _this.windowstate.left_projects.is_loaded = false;    
1888                 _this.windowstate.left_projects.load();
1889                 _this.windowstate.left_projects.selectProject(p);
1890                 return  ;    
1891             
1892             
1893             });
1894         }
1895
1896         // user defined functions
1897     }
1898     public class Xcls_Image57 : Object
1899     {
1900         public Gtk.Image el;
1901         private Xcls_MainWindow  _this;
1902
1903
1904             // my vars (def)
1905
1906         // ctor
1907         public Xcls_Image57(Xcls_MainWindow _owner )
1908         {
1909             _this = _owner;
1910             this.el = new Gtk.Image();
1911
1912             // my vars (dec)
1913
1914             // set gobject values
1915             this.el.icon_name = "folder-new";
1916         }
1917
1918         // user defined functions
1919     }
1920
1921
1922
1923
1924     public class Xcls_addfilebutton : Object
1925     {
1926         public Clutter.Actor el;
1927         private Xcls_MainWindow  _this;
1928
1929
1930             // my vars (def)
1931
1932         // ctor
1933         public Xcls_addfilebutton(Xcls_MainWindow _owner )
1934         {
1935             _this = _owner;
1936             _this.addfilebutton = this;
1937             this.el = new Clutter.Actor();
1938
1939             // my vars (dec)
1940
1941             // set gobject values
1942             var child_0 = new Xcls_Actor59( _this );
1943             child_0.ref();
1944             this.el.add_child (  child_0.el  );
1945
1946             // init method
1947
1948             this.el.set_size(50.0f,50.0f);
1949         }
1950
1951         // user defined functions
1952     }
1953     public class Xcls_Actor59 : Object
1954     {
1955         public GtkClutter.Actor el;
1956         private Xcls_MainWindow  _this;
1957
1958
1959             // my vars (def)
1960
1961         // ctor
1962         public Xcls_Actor59(Xcls_MainWindow _owner )
1963         {
1964             _this = _owner;
1965             this.el = new GtkClutter.Actor();
1966
1967             // my vars (dec)
1968
1969             // set gobject values
1970             var child_0 = new Xcls_Button60( _this );
1971             child_0.ref();
1972
1973             // init method
1974
1975             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1976         }
1977
1978         // user defined functions
1979     }
1980     public class Xcls_Button60 : Object
1981     {
1982         public Gtk.Button el;
1983         private Xcls_MainWindow  _this;
1984
1985
1986             // my vars (def)
1987
1988         // ctor
1989         public Xcls_Button60(Xcls_MainWindow _owner )
1990         {
1991             _this = _owner;
1992             this.el = new Gtk.Button();
1993
1994             // my vars (dec)
1995
1996             // set gobject values
1997             this.el.width_request = 50;
1998             this.el.height_request = 50;
1999             this.el.tooltip_text = "Add File";
2000             var child_0 = new Xcls_Image61( _this );
2001             child_0.ref();
2002             this.el.set_image (  child_0.el  );
2003
2004             //listeners
2005             this.el.clicked.connect( () => {
2006                 // create a new file in project..
2007                 
2008                 // what's the currently selected project...
2009                 var proj = _this.windowstate.left_projects.getSelectedProject();
2010                 
2011                 if (proj == null) {
2012                     return  ;
2013                 }
2014                 
2015                 
2016                 
2017                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
2018                 _this.project = proj;
2019                 
2020                  _this.windowstate.file_details.show(
2021                    f, this.el
2022                 );
2023                 
2024                 
2025                 return  ;    
2026             });
2027         }
2028
2029         // user defined functions
2030     }
2031     public class Xcls_Image61 : Object
2032     {
2033         public Gtk.Image el;
2034         private Xcls_MainWindow  _this;
2035
2036
2037             // my vars (def)
2038
2039         // ctor
2040         public Xcls_Image61(Xcls_MainWindow _owner )
2041         {
2042             _this = _owner;
2043             this.el = new Gtk.Image();
2044
2045             // my vars (dec)
2046
2047             // set gobject values
2048             this.el.icon_name = "document-new";
2049         }
2050
2051         // user defined functions
2052     }
2053
2054
2055
2056
2057     public class Xcls_delprojectbutton : Object
2058     {
2059         public Clutter.Actor el;
2060         private Xcls_MainWindow  _this;
2061
2062
2063             // my vars (def)
2064
2065         // ctor
2066         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2067         {
2068             _this = _owner;
2069             _this.delprojectbutton = this;
2070             this.el = new Clutter.Actor();
2071
2072             // my vars (dec)
2073
2074             // set gobject values
2075             var child_0 = new Xcls_Actor63( _this );
2076             child_0.ref();
2077             this.el.add_child (  child_0.el  );
2078
2079             // init method
2080
2081             this.el.set_size(50,50);
2082         }
2083
2084         // user defined functions
2085     }
2086     public class Xcls_Actor63 : Object
2087     {
2088         public GtkClutter.Actor el;
2089         private Xcls_MainWindow  _this;
2090
2091
2092             // my vars (def)
2093
2094         // ctor
2095         public Xcls_Actor63(Xcls_MainWindow _owner )
2096         {
2097             _this = _owner;
2098             this.el = new GtkClutter.Actor();
2099
2100             // my vars (dec)
2101
2102             // set gobject values
2103             var child_0 = new Xcls_Button64( _this );
2104             child_0.ref();
2105
2106             // init method
2107
2108             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2109         }
2110
2111         // user defined functions
2112     }
2113     public class Xcls_Button64 : Object
2114     {
2115         public Gtk.Button el;
2116         private Xcls_MainWindow  _this;
2117
2118
2119             // my vars (def)
2120
2121         // ctor
2122         public Xcls_Button64(Xcls_MainWindow _owner )
2123         {
2124             _this = _owner;
2125             this.el = new Gtk.Button();
2126
2127             // my vars (dec)
2128
2129             // set gobject values
2130             this.el.width_request = 50;
2131             this.el.height_request = 50;
2132             this.el.tooltip_text = "Delete Project";
2133             var child_0 = new Xcls_Image65( _this );
2134             child_0.ref();
2135             this.el.set_image (  child_0.el  );
2136
2137             //listeners
2138             this.el.clicked.connect( ( ) => {
2139                  
2140                  var cd = DialogConfirm.singleton();
2141                  cd.el.set_transient_for(_this.el);
2142                 cd.el.set_modal(true);
2143             
2144                  var project =   _this.windowstate.left_projects.getSelectedProject();
2145                 if (project == null) {
2146                     print("SKIP - no project\n");
2147                     return;
2148                 }
2149                 
2150                     
2151                  if (Gtk.ResponseType.YES != cd.show("Confirm", 
2152                     "Are you sure you want to delete project %s".printf(project.name))) {
2153                     return;
2154                 }
2155                  
2156             
2157                 // confirm?
2158                 Project.Project.remove(project);
2159                 _this.project = null;
2160                 
2161                 _this.windowstate.left_projects.is_loaded =  false;
2162                 _this.windowstate.left_projects.load();
2163                 _this.windowstate.clutterfiles.clearFiles();
2164             
2165             });
2166         }
2167
2168         // user defined functions
2169     }
2170     public class Xcls_Image65 : Object
2171     {
2172         public Gtk.Image el;
2173         private Xcls_MainWindow  _this;
2174
2175
2176             // my vars (def)
2177
2178         // ctor
2179         public Xcls_Image65(Xcls_MainWindow _owner )
2180         {
2181             _this = _owner;
2182             this.el = new Gtk.Image();
2183
2184             // my vars (dec)
2185
2186             // set gobject values
2187             this.el.icon_name = "user-trash";
2188         }
2189
2190         // user defined functions
2191     }
2192
2193
2194
2195
2196
2197
2198
2199
2200     public class Xcls_HBox66 : Object
2201     {
2202         public Gtk.HBox el;
2203         private Xcls_MainWindow  _this;
2204
2205
2206             // my vars (def)
2207
2208         // ctor
2209         public Xcls_HBox66(Xcls_MainWindow _owner )
2210         {
2211             _this = _owner;
2212             this.el = new Gtk.HBox( false, 0 );
2213
2214             // my vars (dec)
2215
2216             // set gobject values
2217             var child_0 = new Xcls_Label67( _this );
2218             child_0.ref();
2219             this.el.pack_start (  child_0.el , true,true,0 );
2220             var child_1 = new Xcls_statusbar( _this );
2221             child_1.ref();
2222             this.el.pack_start (  child_1.el , true,true,0 );
2223             var child_2 = new Xcls_MenuBar69( _this );
2224             child_2.ref();
2225             this.el.pack_end (  child_2.el , false,true,0 );
2226         }
2227
2228         // user defined functions
2229     }
2230     public class Xcls_Label67 : Object
2231     {
2232         public Gtk.Label el;
2233         private Xcls_MainWindow  _this;
2234
2235
2236             // my vars (def)
2237
2238         // ctor
2239         public Xcls_Label67(Xcls_MainWindow _owner )
2240         {
2241             _this = _owner;
2242             this.el = new Gtk.Label( "   " );
2243
2244             // my vars (dec)
2245
2246             // set gobject values
2247         }
2248
2249         // user defined functions
2250     }
2251
2252     public class Xcls_statusbar : Object
2253     {
2254         public Gtk.ProgressBar el;
2255         private Xcls_MainWindow  _this;
2256
2257
2258             // my vars (def)
2259         public ulong handler_id;
2260
2261         // ctor
2262         public Xcls_statusbar(Xcls_MainWindow _owner )
2263         {
2264             _this = _owner;
2265             _this.statusbar = this;
2266             this.el = new Gtk.ProgressBar();
2267
2268             // my vars (dec)
2269             this.handler_id = -1;
2270
2271             // set gobject values
2272             this.el.show_text = true;
2273
2274             // init method
2275
2276             {
2277                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2278                     if (pos < 1) {
2279                         this.el.hide();
2280                         _this.mainpane.el.set_sensitive(true);
2281                         
2282                         return;
2283                     }
2284                      _this.mainpane.el.set_sensitive(false);
2285                      this.el.show();
2286                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2287                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2288                    
2289                  });
2290             }
2291         }
2292
2293         // user defined functions
2294     }
2295
2296     public class Xcls_MenuBar69 : Object
2297     {
2298         public Gtk.MenuBar el;
2299         private Xcls_MainWindow  _this;
2300
2301
2302             // my vars (def)
2303
2304         // ctor
2305         public Xcls_MenuBar69(Xcls_MainWindow _owner )
2306         {
2307             _this = _owner;
2308             this.el = new Gtk.MenuBar();
2309
2310             // my vars (dec)
2311
2312             // set gobject values
2313             var child_0 = new Xcls_MenuItem70( _this );
2314             child_0.ref();
2315             this.el.add (  child_0.el  );
2316             var child_1 = new Xcls_statusbar_errors( _this );
2317             child_1.ref();
2318             this.el.add (  child_1.el  );
2319             var child_2 = new Xcls_statusbar_warnings( _this );
2320             child_2.ref();
2321             this.el.add (  child_2.el  );
2322             var child_3 = new Xcls_statusbar_depricated( _this );
2323             child_3.ref();
2324             this.el.add (  child_3.el  );
2325         }
2326
2327         // user defined functions
2328     }
2329     public class Xcls_MenuItem70 : Object
2330     {
2331         public Gtk.MenuItem el;
2332         private Xcls_MainWindow  _this;
2333
2334
2335             // my vars (def)
2336
2337         // ctor
2338         public Xcls_MenuItem70(Xcls_MainWindow _owner )
2339         {
2340             _this = _owner;
2341             this.el = new Gtk.MenuItem();
2342
2343             // my vars (dec)
2344
2345             // set gobject values
2346             this.el.label = "Compile Status:";
2347         }
2348
2349         // user defined functions
2350     }
2351
2352     public class Xcls_statusbar_errors : Object
2353     {
2354         public Gtk.ImageMenuItem el;
2355         private Xcls_MainWindow  _this;
2356
2357
2358             // my vars (def)
2359         public Xcls_ValaCompileErrors popup;
2360         public Json.Object notices;
2361
2362         // ctor
2363         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2364         {
2365             _this = _owner;
2366             _this.statusbar_errors = this;
2367             this.el = new Gtk.ImageMenuItem();
2368
2369             // my vars (dec)
2370             this.notices = new Json.Object() ;
2371
2372             // set gobject values
2373             this.el.always_show_image = true;
2374             this.el.label = "Errors";
2375             var child_0 = new Xcls_Image72( _this );
2376             child_0.ref();
2377             this.el.set_image (  child_0.el  );
2378
2379             //listeners
2380             this.el.button_press_event.connect( () => {
2381                 if (this.popup == null) {
2382                     this.popup = new Xcls_ValaCompileErrors();
2383                     this.popup.window = _this;
2384                 }
2385                
2386                 
2387                 this.popup.show(this.notices, this.el);
2388                 return true;
2389             });
2390         }
2391
2392         // user defined functions
2393         public void setNotices (Json.Object nots, int qty) {
2394             this.el.show();
2395             this.el.label = qty.to_string() + " Errors";
2396             this.notices = nots;
2397         
2398         }
2399     }
2400     public class Xcls_Image72 : Object
2401     {
2402         public Gtk.Image el;
2403         private Xcls_MainWindow  _this;
2404
2405
2406             // my vars (def)
2407
2408         // ctor
2409         public Xcls_Image72(Xcls_MainWindow _owner )
2410         {
2411             _this = _owner;
2412             this.el = new Gtk.Image();
2413
2414             // my vars (dec)
2415
2416             // set gobject values
2417             this.el.icon_name = "dialog-error";
2418         }
2419
2420         // user defined functions
2421     }
2422
2423
2424     public class Xcls_statusbar_warnings : Object
2425     {
2426         public Gtk.ImageMenuItem el;
2427         private Xcls_MainWindow  _this;
2428
2429
2430             // my vars (def)
2431         public Xcls_ValaCompileErrors popup;
2432         public Json.Object notices;
2433
2434         // ctor
2435         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2436         {
2437             _this = _owner;
2438             _this.statusbar_warnings = this;
2439             this.el = new Gtk.ImageMenuItem();
2440
2441             // my vars (dec)
2442             this.notices = new Json.Object();
2443
2444             // set gobject values
2445             this.el.always_show_image = true;
2446             this.el.label = "Warnings";
2447             var child_0 = new Xcls_Image74( _this );
2448             child_0.ref();
2449             this.el.set_image (  child_0.el  );
2450
2451             //listeners
2452             this.el.button_press_event.connect( () => {
2453                 if (this.popup == null) {
2454                     this.popup = new Xcls_ValaCompileErrors();
2455                     this.popup.window = _this;
2456                 }
2457                 
2458                 this.popup.show(this.notices, this.el);
2459                 return true;
2460             });
2461         }
2462
2463         // user defined functions
2464         public void setNotices (Json.Object nots, int qty) {
2465             this.el.show();
2466             this.el.label = qty.to_string() + " Warnings";
2467             this.notices = nots;
2468         
2469         }
2470     }
2471     public class Xcls_Image74 : Object
2472     {
2473         public Gtk.Image el;
2474         private Xcls_MainWindow  _this;
2475
2476
2477             // my vars (def)
2478
2479         // ctor
2480         public Xcls_Image74(Xcls_MainWindow _owner )
2481         {
2482             _this = _owner;
2483             this.el = new Gtk.Image();
2484
2485             // my vars (dec)
2486
2487             // set gobject values
2488             this.el.icon_name = "dialog-warning";
2489         }
2490
2491         // user defined functions
2492     }
2493
2494
2495     public class Xcls_statusbar_depricated : Object
2496     {
2497         public Gtk.ImageMenuItem el;
2498         private Xcls_MainWindow  _this;
2499
2500
2501             // my vars (def)
2502         public Xcls_ValaCompileErrors popup;
2503         public Json.Object notices;
2504
2505         // ctor
2506         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2507         {
2508             _this = _owner;
2509             _this.statusbar_depricated = this;
2510             this.el = new Gtk.ImageMenuItem();
2511
2512             // my vars (dec)
2513             this.notices = new Json.Object();
2514
2515             // set gobject values
2516             this.el.always_show_image = true;
2517             this.el.label = "Depricated";
2518             var child_0 = new Xcls_Image76( _this );
2519             child_0.ref();
2520             this.el.set_image (  child_0.el  );
2521
2522             //listeners
2523             this.el.button_press_event.connect( () => {
2524                 if (this.popup == null) {
2525                     this.popup = new Xcls_ValaCompileErrors();
2526                     this.popup.window = _this;
2527                 }
2528                 
2529                 
2530                 this.popup.show(this.notices, this.el);
2531                 return true;
2532             });
2533         }
2534
2535         // user defined functions
2536         public void setNotices (Json.Object nots, int qty) {
2537             this.el.show();
2538             this.el.label = qty.to_string() + " Depricated";
2539             this.notices = nots;
2540         
2541         }
2542     }
2543     public class Xcls_Image76 : Object
2544     {
2545         public Gtk.Image el;
2546         private Xcls_MainWindow  _this;
2547
2548
2549             // my vars (def)
2550
2551         // ctor
2552         public Xcls_Image76(Xcls_MainWindow _owner )
2553         {
2554             _this = _owner;
2555             this.el = new Gtk.Image();
2556
2557             // my vars (dec)
2558
2559             // set gobject values
2560             this.el.icon_name = "dialog-information";
2561         }
2562
2563         // user defined functions
2564     }
2565
2566
2567
2568
2569
2570 }