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