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