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     public Xcls_statusbar_run statusbar_run;
45
46         // my vars (def)
47     public Project.Project project;
48     public string title;
49     public int no_windows;
50     public WindowState windowstate;
51
52     // ctor
53     public Xcls_MainWindow()
54     {
55         _this = this;
56         this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
57
58         // my vars (dec)
59         this.project = null;
60         this.title = "Application Builder";
61         this.no_windows = 1;
62         this.windowstate = null;
63
64         // set gobject values
65         this.el.border_width = 0;
66         this.el.default_height = 500;
67         this.el.default_width = 800;
68         var child_0 = new Xcls_headerbar( _this );
69         child_0.ref();
70         this.el.set_titlebar (  child_0.el  );
71         var child_1 = new Xcls_vbox( _this );
72         child_1.ref();
73         this.el.add (  child_1.el  );
74
75         // init method
76
77         //this.el.show_all();
78
79         //listeners
80         this.el.delete_event.connect( (   event) => {
81             return false;
82         });
83         this.el.destroy.connect( () =>  {
84          Xcls_MainWindow.singleton().no_windows--;
85          
86          Resources.singleton().disconnect(_this.statusbar.handler_id);
87          
88          
89          if (Xcls_MainWindow.singleton().no_windows < 1) {
90         
91              Gtk.main_quit();
92          }
93         });
94         this.el.show.connect( ( ) => {
95             // hide the file editing..
96            
97             //this.hideViewEditing();
98             _this.statusbar.el.hide();
99              _this.statusbar_errors.el.hide();
100             _this.statusbar_warnings.el.hide();
101             _this.statusbar_depricated.el.hide();
102             
103           
104             Resources.singleton().checkResources();
105         
106         });
107     }
108
109     // user defined functions
110     public        void initChildren () {
111         // this needs putting in a better place..
112         this.windowstate = new WindowState(this);
113          
114     
115         //w.el.show_all();
116         var tl = new Clutter.Timeline(6000);
117         tl.set_repeat_count(-1);
118         tl.start();
119         tl.ref();
120     
121         
122     
123     
124     
125     }
126     public             void show () {
127        
128         this.el.show_all();
129     
130     }
131     public             void setTitle (string str) {
132         this.headerbar.el.set_title(this.title + " - " + str);
133     }
134     public class Xcls_headerbar : Object
135     {
136         public Gtk.HeaderBar el;
137         private Xcls_MainWindow  _this;
138
139
140             // my vars (def)
141
142         // ctor
143         public Xcls_headerbar(Xcls_MainWindow _owner )
144         {
145             _this = _owner;
146             _this.headerbar = this;
147             this.el = new Gtk.HeaderBar();
148
149             // my vars (dec)
150
151             // set gobject values
152             this.el.title = "Application Builder";
153             this.el.show_close_button = true;
154             var child_0 = new Xcls_Box3( _this );
155             child_0.ref();
156             this.el.pack_start (  child_0.el  );
157         }
158
159         // user defined functions
160     }
161     public class Xcls_Box3 : Object
162     {
163         public Gtk.Box el;
164         private Xcls_MainWindow  _this;
165
166
167             // my vars (def)
168
169         // ctor
170         public Xcls_Box3(Xcls_MainWindow _owner )
171         {
172             _this = _owner;
173             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
174
175             // my vars (dec)
176
177             // set gobject values
178             var child_0 = new Xcls_MenuButton4( _this );
179             child_0.ref();
180             this.el.add (  child_0.el  );
181         }
182
183         // user defined functions
184     }
185     public class Xcls_MenuButton4 : Object
186     {
187         public Gtk.MenuButton el;
188         private Xcls_MainWindow  _this;
189
190
191             // my vars (def)
192
193         // ctor
194         public Xcls_MenuButton4(Xcls_MainWindow _owner )
195         {
196             _this = _owner;
197             this.el = new Gtk.MenuButton();
198
199             // my vars (dec)
200
201             // set gobject values
202             this.el.use_popover = false;
203             var child_0 = new Xcls_topbarmenu( _this );
204             child_0.ref();
205             this.el.set_popup (  child_0.el  );
206             var child_1 = new Xcls_Image10( _this );
207             child_1.ref();
208             this.el.set_image (  child_1.el  );
209         }
210
211         // user defined functions
212     }
213     public class Xcls_topbarmenu : Object
214     {
215         public Gtk.Menu el;
216         private Xcls_MainWindow  _this;
217
218
219             // my vars (def)
220
221         // ctor
222         public Xcls_topbarmenu(Xcls_MainWindow _owner )
223         {
224             _this = _owner;
225             _this.topbarmenu = this;
226             this.el = new Gtk.Menu();
227
228             // my vars (dec)
229
230             // set gobject values
231             var child_0 = new Xcls_MenuItem6( _this );
232             child_0.ref();
233             this.el.append (  child_0.el  );
234             var child_1 = new Xcls_SeparatorMenuItem7( _this );
235             child_1.ref();
236             this.el.append (  child_1.el  );
237             var child_2 = new Xcls_MenuItem8( _this );
238             child_2.ref();
239             this.el.append (  child_2.el  );
240             var child_3 = new Xcls_MenuItem9( _this );
241             child_3.ref();
242             this.el.append (  child_3.el  );
243
244             // init method
245
246             {
247                 this.el.show_all();
248             }
249         }
250
251         // user defined functions
252     }
253     public class Xcls_MenuItem6 : Object
254     {
255         public Gtk.MenuItem el;
256         private Xcls_MainWindow  _this;
257
258
259             // my vars (def)
260
261         // ctor
262         public Xcls_MenuItem6(Xcls_MainWindow _owner )
263         {
264             _this = _owner;
265             this.el = new Gtk.MenuItem();
266
267             // my vars (dec)
268
269             // set gobject values
270             this.el.label = "Open a new Window";
271
272             //listeners
273             this.el.activate.connect( ( ) => {
274                     Xcls_MainWindow.singleton().no_windows++;
275                     var w = new Xcls_MainWindow();
276                     w.ref();
277             
278                     w.el.show_all();
279                     w.initChildren();
280                     w.windowstate.switchState(WindowState.State.FILES);
281             });
282         }
283
284         // user defined functions
285     }
286
287     public class Xcls_SeparatorMenuItem7 : Object
288     {
289         public Gtk.SeparatorMenuItem el;
290         private Xcls_MainWindow  _this;
291
292
293             // my vars (def)
294
295         // ctor
296         public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
297         {
298             _this = _owner;
299             this.el = new Gtk.SeparatorMenuItem();
300
301             // my vars (dec)
302
303             // set gobject values
304         }
305
306         // user defined functions
307     }
308
309     public class Xcls_MenuItem8 : Object
310     {
311         public Gtk.MenuItem el;
312         private Xcls_MainWindow  _this;
313
314
315             // my vars (def)
316
317         // ctor
318         public Xcls_MenuItem8(Xcls_MainWindow _owner )
319         {
320             _this = _owner;
321             this.el = new Gtk.MenuItem();
322
323             // my vars (dec)
324
325             // set gobject values
326             this.el.label = "Download updated Resources";
327
328             //listeners
329             this.el.activate.connect( ( ) => {
330                      Resources.singleton().fetchStart();
331             });
332         }
333
334         // user defined functions
335     }
336
337     public class Xcls_MenuItem9 : Object
338     {
339         public Gtk.MenuItem el;
340         private Xcls_MainWindow  _this;
341
342
343             // my vars (def)
344
345         // ctor
346         public Xcls_MenuItem9(Xcls_MainWindow _owner )
347         {
348             _this = _owner;
349             this.el = new Gtk.MenuItem();
350
351             // my vars (dec)
352
353             // set gobject values
354             this.el.label = "About the Builder";
355
356             //listeners
357             this.el.activate.connect( () => {
358                 About.singleton().el.show();
359                 });
360         }
361
362         // user defined functions
363     }
364
365
366     public class Xcls_Image10 : Object
367     {
368         public Gtk.Image el;
369         private Xcls_MainWindow  _this;
370
371
372             // my vars (def)
373
374         // ctor
375         public Xcls_Image10(Xcls_MainWindow _owner )
376         {
377             _this = _owner;
378             this.el = new Gtk.Image();
379
380             // my vars (dec)
381
382             // set gobject values
383             this.el.icon_name = "help-about";
384         }
385
386         // user defined functions
387     }
388
389
390
391
392     public class Xcls_vbox : Object
393     {
394         public Gtk.Box el;
395         private Xcls_MainWindow  _this;
396
397
398             // my vars (def)
399
400         // ctor
401         public Xcls_vbox(Xcls_MainWindow _owner )
402         {
403             _this = _owner;
404             _this.vbox = this;
405             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
406
407             // my vars (dec)
408
409             // set gobject values
410             this.el.homogeneous = false;
411             var child_0 = new Xcls_mainpane( _this );
412             child_0.ref();
413             this.el.pack_start (  child_0.el , true,true,0 );
414             var child_1 = new Xcls_Box66( _this );
415             child_1.ref();
416             this.el.pack_end (  child_1.el , false,true,0 );
417         }
418
419         // user defined functions
420     }
421     public class Xcls_mainpane : Object
422     {
423         public Gtk.Paned el;
424         private Xcls_MainWindow  _this;
425
426
427             // my vars (def)
428         public int lastWidth;
429
430         // ctor
431         public Xcls_mainpane(Xcls_MainWindow _owner )
432         {
433             _this = _owner;
434             _this.mainpane = this;
435             this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
436
437             // my vars (dec)
438             this.lastWidth = 0;
439
440             // set gobject values
441             this.el.position = 400;
442             var child_0 = new Xcls_leftpane( _this );
443             child_0.ref();
444             this.el.add1 (  child_0.el  );
445             var child_1 = new Xcls_Box17( _this );
446             child_1.ref();
447             this.el.add2 (  child_1.el  );
448         }
449
450         // user defined functions
451     }
452     public class Xcls_leftpane : Object
453     {
454         public Gtk.Box el;
455         private Xcls_MainWindow  _this;
456
457
458             // my vars (def)
459
460         // ctor
461         public Xcls_leftpane(Xcls_MainWindow _owner )
462         {
463             _this = _owner;
464             _this.leftpane = this;
465             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
466
467             // my vars (dec)
468
469             // set gobject values
470             var child_0 = new Xcls_editpane( _this );
471             child_0.ref();
472             this.el.pack_start (  child_0.el , true,true,0 );
473         }
474
475         // user defined functions
476     }
477     public class Xcls_editpane : Object
478     {
479         public Gtk.Paned el;
480         private Xcls_MainWindow  _this;
481
482
483             // my vars (def)
484
485         // ctor
486         public Xcls_editpane(Xcls_MainWindow _owner )
487         {
488             _this = _owner;
489             _this.editpane = this;
490             this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
491
492             // my vars (dec)
493
494             // set gobject values
495             var child_0 = new Xcls_tree( _this );
496             child_0.ref();
497             this.el.add1 (  child_0.el  );
498             var child_1 = new Xcls_props( _this );
499             child_1.ref();
500             this.el.add2 (  child_1.el  );
501         }
502
503         // user defined functions
504     }
505     public class Xcls_tree : Object
506     {
507         public Gtk.Box el;
508         private Xcls_MainWindow  _this;
509
510
511             // my vars (def)
512
513         // ctor
514         public Xcls_tree(Xcls_MainWindow _owner )
515         {
516             _this = _owner;
517             _this.tree = this;
518             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
519
520             // my vars (dec)
521
522             // set gobject values
523         }
524
525         // user defined functions
526     }
527
528     public class Xcls_props : Object
529     {
530         public Gtk.Box el;
531         private Xcls_MainWindow  _this;
532
533
534             // my vars (def)
535
536         // ctor
537         public Xcls_props(Xcls_MainWindow _owner )
538         {
539             _this = _owner;
540             _this.props = this;
541             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
542
543             // my vars (dec)
544
545             // set gobject values
546         }
547
548         // user defined functions
549     }
550
551
552
553     public class Xcls_Box17 : Object
554     {
555         public Gtk.Box el;
556         private Xcls_MainWindow  _this;
557
558
559             // my vars (def)
560
561         // ctor
562         public Xcls_Box17(Xcls_MainWindow _owner )
563         {
564             _this = _owner;
565             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
566
567             // my vars (dec)
568
569             // set gobject values
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.file == null) {
1272                     return  ;
1273                 }
1274                  _this.windowstate.file_details.show(
1275                     _this.windowstate.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 =   Clutter.Color.from_string("#333");
1458                     return false;
1459             });
1460             this.el.leave_event.connect( (  event)  => {
1461                 this.el.background_color =   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                 print("add file selected\n");
2008                 // what's the currently selected project...
2009                 var proj = _this.windowstate.left_projects.getSelectedProject();
2010                 
2011                 if (proj == null) {
2012                         print("no project selected?\n");
2013                     return  ;
2014                 }
2015                 
2016                 print("creating file?");
2017                 
2018                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
2019                 _this.project = proj;
2020                     print("showing popup?");
2021                  _this.windowstate.file_details.show(
2022                    f, this.el
2023                 );
2024                 
2025                 
2026                 return  ;    
2027             });
2028         }
2029
2030         // user defined functions
2031     }
2032     public class Xcls_Image61 : Object
2033     {
2034         public Gtk.Image el;
2035         private Xcls_MainWindow  _this;
2036
2037
2038             // my vars (def)
2039
2040         // ctor
2041         public Xcls_Image61(Xcls_MainWindow _owner )
2042         {
2043             _this = _owner;
2044             this.el = new Gtk.Image();
2045
2046             // my vars (dec)
2047
2048             // set gobject values
2049             this.el.icon_name = "document-new";
2050         }
2051
2052         // user defined functions
2053     }
2054
2055
2056
2057
2058     public class Xcls_delprojectbutton : Object
2059     {
2060         public Clutter.Actor el;
2061         private Xcls_MainWindow  _this;
2062
2063
2064             // my vars (def)
2065
2066         // ctor
2067         public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2068         {
2069             _this = _owner;
2070             _this.delprojectbutton = this;
2071             this.el = new Clutter.Actor();
2072
2073             // my vars (dec)
2074
2075             // set gobject values
2076             var child_0 = new Xcls_Actor63( _this );
2077             child_0.ref();
2078             this.el.add_child (  child_0.el  );
2079
2080             // init method
2081
2082             this.el.set_size(50,50);
2083         }
2084
2085         // user defined functions
2086     }
2087     public class Xcls_Actor63 : Object
2088     {
2089         public GtkClutter.Actor el;
2090         private Xcls_MainWindow  _this;
2091
2092
2093             // my vars (def)
2094
2095         // ctor
2096         public Xcls_Actor63(Xcls_MainWindow _owner )
2097         {
2098             _this = _owner;
2099             this.el = new GtkClutter.Actor();
2100
2101             // my vars (dec)
2102
2103             // set gobject values
2104             var child_0 = new Xcls_Button64( _this );
2105             child_0.ref();
2106
2107             // init method
2108
2109             ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2110         }
2111
2112         // user defined functions
2113     }
2114     public class Xcls_Button64 : Object
2115     {
2116         public Gtk.Button el;
2117         private Xcls_MainWindow  _this;
2118
2119
2120             // my vars (def)
2121
2122         // ctor
2123         public Xcls_Button64(Xcls_MainWindow _owner )
2124         {
2125             _this = _owner;
2126             this.el = new Gtk.Button();
2127
2128             // my vars (dec)
2129
2130             // set gobject values
2131             this.el.width_request = 50;
2132             this.el.height_request = 50;
2133             this.el.tooltip_text = "Delete Project";
2134             var child_0 = new Xcls_Image65( _this );
2135             child_0.ref();
2136             this.el.set_image (  child_0.el  );
2137
2138             //listeners
2139             this.el.clicked.connect( ( ) => {
2140                  
2141                  var cd = DialogConfirm.singleton();
2142                  cd.el.set_transient_for(_this.el);
2143                 cd.el.set_modal(true);
2144             
2145                  var project =   _this.windowstate.left_projects.getSelectedProject();
2146                 if (project == null) {
2147                     print("SKIP - no project\n");
2148                     return;
2149                 }
2150                 
2151                     
2152                  if (Gtk.ResponseType.YES != cd.show("Confirm", 
2153                     "Are you sure you want to delete project %s".printf(project.name))) {
2154                     return;
2155                 }
2156                  
2157             
2158                 // confirm?
2159                 Project.Project.remove(project);
2160                 _this.project = null;
2161                 
2162                 _this.windowstate.left_projects.is_loaded =  false;
2163                 _this.windowstate.left_projects.load();
2164                 _this.windowstate.clutterfiles.clearFiles();
2165             
2166             });
2167         }
2168
2169         // user defined functions
2170     }
2171     public class Xcls_Image65 : Object
2172     {
2173         public Gtk.Image el;
2174         private Xcls_MainWindow  _this;
2175
2176
2177             // my vars (def)
2178
2179         // ctor
2180         public Xcls_Image65(Xcls_MainWindow _owner )
2181         {
2182             _this = _owner;
2183             this.el = new Gtk.Image();
2184
2185             // my vars (dec)
2186
2187             // set gobject values
2188             this.el.icon_name = "user-trash";
2189         }
2190
2191         // user defined functions
2192     }
2193
2194
2195
2196
2197
2198
2199
2200
2201     public class Xcls_Box66 : Object
2202     {
2203         public Gtk.Box el;
2204         private Xcls_MainWindow  _this;
2205
2206
2207             // my vars (def)
2208
2209         // ctor
2210         public Xcls_Box66(Xcls_MainWindow _owner )
2211         {
2212             _this = _owner;
2213             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2214
2215             // my vars (dec)
2216
2217             // set gobject values
2218             this.el.homogeneous = false;
2219             var child_0 = new Xcls_Label67( _this );
2220             child_0.ref();
2221             this.el.pack_start (  child_0.el , true,true,0 );
2222             var child_1 = new Xcls_statusbar( _this );
2223             child_1.ref();
2224             this.el.pack_start (  child_1.el , true,true,0 );
2225             var child_2 = new Xcls_Entry69( _this );
2226             child_2.ref();
2227             this.el.pack_start (  child_2.el , false,true,0 );
2228             var child_3 = new Xcls_MenuBar70( _this );
2229             child_3.ref();
2230             this.el.pack_end (  child_3.el , false,true,0 );
2231         }
2232
2233         // user defined functions
2234     }
2235     public class Xcls_Label67 : Object
2236     {
2237         public Gtk.Label el;
2238         private Xcls_MainWindow  _this;
2239
2240
2241             // my vars (def)
2242
2243         // ctor
2244         public Xcls_Label67(Xcls_MainWindow _owner )
2245         {
2246             _this = _owner;
2247             this.el = new Gtk.Label( "   " );
2248
2249             // my vars (dec)
2250
2251             // set gobject values
2252         }
2253
2254         // user defined functions
2255     }
2256
2257     public class Xcls_statusbar : Object
2258     {
2259         public Gtk.ProgressBar el;
2260         private Xcls_MainWindow  _this;
2261
2262
2263             // my vars (def)
2264         public ulong handler_id;
2265
2266         // ctor
2267         public Xcls_statusbar(Xcls_MainWindow _owner )
2268         {
2269             _this = _owner;
2270             _this.statusbar = this;
2271             this.el = new Gtk.ProgressBar();
2272
2273             // my vars (dec)
2274             this.handler_id = -1;
2275
2276             // set gobject values
2277             this.el.show_text = true;
2278
2279             // init method
2280
2281             {
2282                  this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2283                     if (pos < 1) {
2284                         this.el.hide();
2285                         _this.mainpane.el.set_sensitive(true);
2286                         
2287                         return;
2288                     }
2289                      _this.mainpane.el.set_sensitive(false);
2290                      this.el.show();
2291                      this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2292                      this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2293                    
2294                  });
2295             }
2296         }
2297
2298         // user defined functions
2299     }
2300
2301     public class Xcls_Entry69 : Object
2302     {
2303         public Gtk.Entry el;
2304         private Xcls_MainWindow  _this;
2305
2306
2307             // my vars (def)
2308
2309         // ctor
2310         public Xcls_Entry69(Xcls_MainWindow _owner )
2311         {
2312             _this = _owner;
2313             this.el = new Gtk.Entry();
2314
2315             // my vars (dec)
2316
2317             // set gobject values
2318         }
2319
2320         // user defined functions
2321     }
2322
2323     public class Xcls_MenuBar70 : Object
2324     {
2325         public Gtk.MenuBar el;
2326         private Xcls_MainWindow  _this;
2327
2328
2329             // my vars (def)
2330
2331         // ctor
2332         public Xcls_MenuBar70(Xcls_MainWindow _owner )
2333         {
2334             _this = _owner;
2335             this.el = new Gtk.MenuBar();
2336
2337             // my vars (dec)
2338
2339             // set gobject values
2340             var child_0 = new Xcls_MenuItem71( _this );
2341             child_0.ref();
2342             this.el.add (  child_0.el  );
2343             var child_1 = new Xcls_statusbar_errors( _this );
2344             child_1.ref();
2345             this.el.add (  child_1.el  );
2346             var child_2 = new Xcls_statusbar_warnings( _this );
2347             child_2.ref();
2348             this.el.add (  child_2.el  );
2349             var child_3 = new Xcls_statusbar_depricated( _this );
2350             child_3.ref();
2351             this.el.add (  child_3.el  );
2352             var child_4 = new Xcls_statusbar_run( _this );
2353             child_4.ref();
2354             this.el.add (  child_4.el  );
2355         }
2356
2357         // user defined functions
2358     }
2359     public class Xcls_MenuItem71 : Object
2360     {
2361         public Gtk.MenuItem el;
2362         private Xcls_MainWindow  _this;
2363
2364
2365             // my vars (def)
2366
2367         // ctor
2368         public Xcls_MenuItem71(Xcls_MainWindow _owner )
2369         {
2370             _this = _owner;
2371             this.el = new Gtk.MenuItem();
2372
2373             // my vars (dec)
2374
2375             // set gobject values
2376             this.el.label = "Compile Status:";
2377         }
2378
2379         // user defined functions
2380     }
2381
2382     public class Xcls_statusbar_errors : Object
2383     {
2384         public Gtk.ImageMenuItem el;
2385         private Xcls_MainWindow  _this;
2386
2387
2388             // my vars (def)
2389         public Xcls_ValaCompileErrors popup;
2390         public Json.Object notices;
2391
2392         // ctor
2393         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2394         {
2395             _this = _owner;
2396             _this.statusbar_errors = this;
2397             this.el = new Gtk.ImageMenuItem();
2398
2399             // my vars (dec)
2400             this.notices = new Json.Object() ;
2401
2402             // set gobject values
2403             this.el.always_show_image = true;
2404             this.el.label = "Errors";
2405             var child_0 = new Xcls_Image73( _this );
2406             child_0.ref();
2407             this.el.set_image (  child_0.el  );
2408
2409             //listeners
2410             this.el.button_press_event.connect( () => {
2411                 if (this.popup == null) {
2412                     this.popup = new Xcls_ValaCompileErrors();
2413                     this.popup.window = _this;
2414                 }
2415                
2416                 
2417                 this.popup.show(this.notices, this.el);
2418                 return true;
2419             });
2420         }
2421
2422         // user defined functions
2423         public void setNotices (Json.Object nots, int qty) {
2424             this.el.show();
2425             this.el.label = qty.to_string() + " Errors";
2426             this.notices = nots;
2427         
2428         }
2429     }
2430     public class Xcls_Image73 : Object
2431     {
2432         public Gtk.Image el;
2433         private Xcls_MainWindow  _this;
2434
2435
2436             // my vars (def)
2437
2438         // ctor
2439         public Xcls_Image73(Xcls_MainWindow _owner )
2440         {
2441             _this = _owner;
2442             this.el = new Gtk.Image();
2443
2444             // my vars (dec)
2445
2446             // set gobject values
2447             this.el.icon_name = "dialog-error";
2448         }
2449
2450         // user defined functions
2451     }
2452
2453
2454     public class Xcls_statusbar_warnings : Object
2455     {
2456         public Gtk.ImageMenuItem el;
2457         private Xcls_MainWindow  _this;
2458
2459
2460             // my vars (def)
2461         public Xcls_ValaCompileErrors popup;
2462         public Json.Object notices;
2463
2464         // ctor
2465         public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2466         {
2467             _this = _owner;
2468             _this.statusbar_warnings = this;
2469             this.el = new Gtk.ImageMenuItem();
2470
2471             // my vars (dec)
2472             this.notices = new Json.Object();
2473
2474             // set gobject values
2475             this.el.always_show_image = true;
2476             this.el.label = "Warnings";
2477             var child_0 = new Xcls_Image75( _this );
2478             child_0.ref();
2479             this.el.set_image (  child_0.el  );
2480
2481             //listeners
2482             this.el.button_press_event.connect( () => {
2483                 if (this.popup == null) {
2484                     this.popup = new Xcls_ValaCompileErrors();
2485                     this.popup.window = _this;
2486                 }
2487                 
2488                 this.popup.show(this.notices, this.el);
2489                 return true;
2490             });
2491         }
2492
2493         // user defined functions
2494         public void setNotices (Json.Object nots, int qty) {
2495             this.el.show();
2496             this.el.label = qty.to_string() + " Warnings";
2497             this.notices = nots;
2498         
2499         }
2500     }
2501     public class Xcls_Image75 : Object
2502     {
2503         public Gtk.Image el;
2504         private Xcls_MainWindow  _this;
2505
2506
2507             // my vars (def)
2508
2509         // ctor
2510         public Xcls_Image75(Xcls_MainWindow _owner )
2511         {
2512             _this = _owner;
2513             this.el = new Gtk.Image();
2514
2515             // my vars (dec)
2516
2517             // set gobject values
2518             this.el.icon_name = "dialog-warning";
2519         }
2520
2521         // user defined functions
2522     }
2523
2524
2525     public class Xcls_statusbar_depricated : Object
2526     {
2527         public Gtk.ImageMenuItem el;
2528         private Xcls_MainWindow  _this;
2529
2530
2531             // my vars (def)
2532         public Xcls_ValaCompileErrors popup;
2533         public Json.Object notices;
2534
2535         // ctor
2536         public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2537         {
2538             _this = _owner;
2539             _this.statusbar_depricated = this;
2540             this.el = new Gtk.ImageMenuItem();
2541
2542             // my vars (dec)
2543             this.notices = new Json.Object();
2544
2545             // set gobject values
2546             this.el.always_show_image = true;
2547             this.el.label = "Depricated";
2548             var child_0 = new Xcls_Image77( _this );
2549             child_0.ref();
2550             this.el.set_image (  child_0.el  );
2551
2552             //listeners
2553             this.el.button_press_event.connect( () => {
2554                 if (this.popup == null) {
2555                     this.popup = new Xcls_ValaCompileErrors();
2556                     this.popup.window = _this;
2557                 }
2558                 
2559                 
2560                 this.popup.show(this.notices, this.el);
2561                 return true;
2562             });
2563         }
2564
2565         // user defined functions
2566         public void setNotices (Json.Object nots, int qty) {
2567             this.el.show();
2568             this.el.label = qty.to_string() + " Depricated";
2569             this.notices = nots;
2570         
2571         }
2572     }
2573     public class Xcls_Image77 : Object
2574     {
2575         public Gtk.Image el;
2576         private Xcls_MainWindow  _this;
2577
2578
2579             // my vars (def)
2580
2581         // ctor
2582         public Xcls_Image77(Xcls_MainWindow _owner )
2583         {
2584             _this = _owner;
2585             this.el = new Gtk.Image();
2586
2587             // my vars (dec)
2588
2589             // set gobject values
2590             this.el.icon_name = "dialog-information";
2591         }
2592
2593         // user defined functions
2594     }
2595
2596
2597     public class Xcls_statusbar_run : Object
2598     {
2599         public Gtk.ImageMenuItem el;
2600         private Xcls_MainWindow  _this;
2601
2602
2603             // my vars (def)
2604         public Xcls_ValaCompileErrors popup;
2605
2606         // ctor
2607         public Xcls_statusbar_run(Xcls_MainWindow _owner )
2608         {
2609             _this = _owner;
2610             _this.statusbar_run = this;
2611             this.el = new Gtk.ImageMenuItem();
2612
2613             // my vars (dec)
2614
2615             // set gobject values
2616             this.el.always_show_image = true;
2617             this.el.label = "Run";
2618             var child_0 = new Xcls_Image79( _this );
2619             child_0.ref();
2620             this.el.set_image (  child_0.el  );
2621
2622             //listeners
2623             this.el.button_press_event.connect( () => {
2624                 if (_this.windowstate.file == null) {
2625                         return true;
2626                 }
2627                 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2628                 
2629                 _this.windowstate.compile_results.show(this.el,true);
2630                 
2631                 return true;
2632             });
2633         }
2634
2635         // user defined functions
2636     }
2637     public class Xcls_Image79 : Object
2638     {
2639         public Gtk.Image el;
2640         private Xcls_MainWindow  _this;
2641
2642
2643             // my vars (def)
2644
2645         // ctor
2646         public Xcls_Image79(Xcls_MainWindow _owner )
2647         {
2648             _this = _owner;
2649             this.el = new Gtk.Image();
2650
2651             // my vars (dec)
2652
2653             // set gobject values
2654             this.el.icon_name = "media-playback-start";
2655         }
2656
2657         // user defined functions
2658     }
2659
2660
2661
2662
2663
2664 }