1 static Xcls_MainWindow _MainWindow;
3 public class Xcls_MainWindow : Object
6 private Xcls_MainWindow _this;
8 public static Xcls_MainWindow singleton()
10 if (_MainWindow == null) {
11 _MainWindow= new Xcls_MainWindow();
15 public Xcls_headerbar headerbar;
16 public Xcls_topbarmenu topbarmenu;
17 public Xcls_openbtn openbtn;
18 public Xcls_openbackbtn openbackbtn;
19 public Xcls_vbox vbox;
20 public Xcls_mainpane mainpane;
21 public Xcls_leftpane leftpane;
22 public Xcls_editpane editpane;
23 public Xcls_tree tree;
24 public Xcls_props props;
25 public Xcls_clutterembed clutterembed;
26 public Xcls_rooview rooview;
27 public Xcls_objectview objectview;
28 public Xcls_codeeditview codeeditview;
29 public Xcls_addpropsview addpropsview;
30 public Xcls_projecteditview projecteditview;
31 public Xcls_buttonlayout buttonlayout;
32 public Xcls_backbutton backbutton;
33 public Xcls_projectbutton projectbutton;
34 public Xcls_editfilebutton editfilebutton;
35 public Xcls_projecteditbutton projecteditbutton;
36 public Xcls_objectshowbutton objectshowbutton;
37 public Xcls_addpropbutton addpropbutton;
38 public Xcls_addlistenerbutton addlistenerbutton;
39 public Xcls_addprojectbutton addprojectbutton;
40 public Xcls_addfilebutton addfilebutton;
41 public Xcls_delprojectbutton delprojectbutton;
42 public Xcls_statusbar statusbar;
43 public Xcls_search_entry search_entry;
44 public Xcls_search_results search_results;
45 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
46 public Xcls_statusbar_errors statusbar_errors;
47 public Xcls_statusbar_warnings statusbar_warnings;
48 public Xcls_statusbar_depricated statusbar_depricated;
49 public Xcls_statusbar_run statusbar_run;
52 public Project.Project project;
54 public int no_windows;
55 public WindowState windowstate;
58 public Xcls_MainWindow()
61 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
65 this.title = "Application Builder";
67 this.windowstate = null;
70 this.el.border_width = 0;
71 this.el.default_height = 500;
72 this.el.default_width = 800;
73 var child_0 = new Xcls_headerbar( _this );
75 this.el.set_titlebar ( child_0.el );
76 var child_1 = new Xcls_vbox( _this );
78 this.el.add ( child_1.el );
85 this.el.delete_event.connect( ( event) => {
88 this.el.destroy.connect( () => {
89 Xcls_MainWindow.singleton().no_windows--;
91 Resources.singleton().disconnect(_this.statusbar.handler_id);
94 if (Xcls_MainWindow.singleton().no_windows < 1) {
99 this.el.show.connect( ( ) => {
100 // hide the file editing..
102 //this.hideViewEditing();
103 _this.statusbar.el.hide();
104 _this.statusbar_errors.el.hide();
105 _this.statusbar_warnings.el.hide();
106 _this.statusbar_depricated.el.hide();
109 Resources.singleton().checkResources();
112 this.el.key_release_event.connect( (event) => {
114 if (this.search_entry.el.is_visible()) {
115 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
116 print("SAVE: ctrl-f pressed");
117 this.search_entry.el.grab_focus();
121 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
122 print("SAVE: ctrl-g pressed");
123 this.search_entry.forwardSearch(true);
129 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
130 print("SAVE: ctrl-n pressed");
131 this.openNewWindow();
135 // print(event.key.keyval)
142 // user defined functions
143 public void openNewWindow () {
144 Xcls_MainWindow.singleton().no_windows++;
145 var w = new Xcls_MainWindow();
150 w.windowstate.switchState(WindowState.State.FILES);
152 public void initChildren () {
153 // this needs putting in a better place..
154 this.windowstate = new WindowState(this);
158 var tl = new Clutter.Timeline(6000);
159 tl.set_repeat_count(-1);
168 public void show () {
173 public void setTitle (string str) {
174 this.headerbar.el.set_title(this.title + " - " + str);
176 public class Xcls_headerbar : Object
178 public Gtk.HeaderBar el;
179 private Xcls_MainWindow _this;
185 public Xcls_headerbar(Xcls_MainWindow _owner )
188 _this.headerbar = this;
189 this.el = new Gtk.HeaderBar();
193 // set gobject values
194 this.el.title = "Application Builder";
195 this.el.show_close_button = true;
196 var child_0 = new Xcls_Box3( _this );
198 this.el.pack_start ( child_0.el );
201 // user defined functions
203 public class Xcls_Box3 : Object
206 private Xcls_MainWindow _this;
212 public Xcls_Box3(Xcls_MainWindow _owner )
215 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
219 // set gobject values
220 var child_0 = new Xcls_MenuButton4( _this );
222 this.el.add ( child_0.el );
223 var child_1 = new Xcls_openbtn( _this );
225 var child_2 = new Xcls_openbackbtn( _this );
229 // user defined functions
231 public class Xcls_MenuButton4 : Object
233 public Gtk.MenuButton el;
234 private Xcls_MainWindow _this;
240 public Xcls_MenuButton4(Xcls_MainWindow _owner )
243 this.el = new Gtk.MenuButton();
247 // set gobject values
248 this.el.use_popover = false;
249 var child_0 = new Xcls_topbarmenu( _this );
251 this.el.set_popup ( child_0.el );
252 var child_1 = new Xcls_Image10( _this );
254 this.el.set_image ( child_1.el );
257 // user defined functions
259 public class Xcls_topbarmenu : Object
262 private Xcls_MainWindow _this;
268 public Xcls_topbarmenu(Xcls_MainWindow _owner )
271 _this.topbarmenu = this;
272 this.el = new Gtk.Menu();
276 // set gobject values
277 var child_0 = new Xcls_MenuItem6( _this );
279 this.el.append ( child_0.el );
280 var child_1 = new Xcls_SeparatorMenuItem7( _this );
282 this.el.append ( child_1.el );
283 var child_2 = new Xcls_MenuItem8( _this );
285 this.el.append ( child_2.el );
286 var child_3 = new Xcls_MenuItem9( _this );
288 this.el.append ( child_3.el );
297 // user defined functions
299 public class Xcls_MenuItem6 : Object
301 public Gtk.MenuItem el;
302 private Xcls_MainWindow _this;
308 public Xcls_MenuItem6(Xcls_MainWindow _owner )
311 this.el = new Gtk.MenuItem();
315 // set gobject values
316 this.el.label = "Open a new Window";
319 this.el.activate.connect( ( ) => {
320 _this.openNewWindow();
324 // user defined functions
327 public class Xcls_SeparatorMenuItem7 : Object
329 public Gtk.SeparatorMenuItem el;
330 private Xcls_MainWindow _this;
336 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
339 this.el = new Gtk.SeparatorMenuItem();
343 // set gobject values
346 // user defined functions
349 public class Xcls_MenuItem8 : Object
351 public Gtk.MenuItem el;
352 private Xcls_MainWindow _this;
358 public Xcls_MenuItem8(Xcls_MainWindow _owner )
361 this.el = new Gtk.MenuItem();
365 // set gobject values
366 this.el.label = "Download updated Resources";
369 this.el.activate.connect( ( ) => {
370 Resources.singleton().fetchStart();
374 // user defined functions
377 public class Xcls_MenuItem9 : Object
379 public Gtk.MenuItem el;
380 private Xcls_MainWindow _this;
386 public Xcls_MenuItem9(Xcls_MainWindow _owner )
389 this.el = new Gtk.MenuItem();
393 // set gobject values
394 this.el.label = "About the Builder";
397 this.el.activate.connect( () => {
398 About.singleton().el.show();
402 // user defined functions
406 public class Xcls_Image10 : Object
409 private Xcls_MainWindow _this;
415 public Xcls_Image10(Xcls_MainWindow _owner )
418 this.el = new Gtk.Image();
422 // set gobject values
423 this.el.icon_name = "help-about";
426 // user defined functions
430 public class Xcls_openbtn : Object
432 public Gtk.Button el;
433 private Xcls_MainWindow _this;
439 public Xcls_openbtn(Xcls_MainWindow _owner )
442 _this.openbtn = this;
443 this.el = new Gtk.Button();
447 // set gobject values
448 this.el.width_request = 50;
449 this.el.height_request = 50;
450 var child_0 = new Xcls_Image12( _this );
452 this.el.set_image ( child_0.el );
455 this.el.clicked.connect( ( ) => {
456 _this.windowstate.switchState(WindowState.State.FILES);
462 // user defined functions
464 public class Xcls_Image12 : Object
467 private Xcls_MainWindow _this;
473 public Xcls_Image12(Xcls_MainWindow _owner )
476 this.el = new Gtk.Image();
480 // set gobject values
481 this.el.icon_name = "document-open";
484 // user defined functions
488 public class Xcls_openbackbtn : Object
490 public Gtk.Button el;
491 private Xcls_MainWindow _this;
497 public Xcls_openbackbtn(Xcls_MainWindow _owner )
500 _this.openbackbtn = this;
501 this.el = new Gtk.Button();
505 // set gobject values
506 this.el.width_request = 50;
507 this.el.height_request = 50;
508 this.el.tooltip_text = "Back";
509 this.el.visible = false;
510 var child_0 = new Xcls_Image14( _this );
512 this.el.set_image ( child_0.el );
515 this.el.clicked.connect( ( ) => {
517 _this.windowstate.switchState(WindowState.State.PREVIEW);
523 // user defined functions
525 public class Xcls_Image14 : Object
528 private Xcls_MainWindow _this;
534 public Xcls_Image14(Xcls_MainWindow _owner )
537 this.el = new Gtk.Image();
541 // set gobject values
542 this.el.icon_name = "go-previous";
545 // user defined functions
551 public class Xcls_vbox : Object
554 private Xcls_MainWindow _this;
560 public Xcls_vbox(Xcls_MainWindow _owner )
564 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
568 // set gobject values
569 this.el.homogeneous = false;
570 var child_0 = new Xcls_mainpane( _this );
572 this.el.pack_start ( child_0.el , true,true,0 );
573 var child_1 = new Xcls_Box70( _this );
575 this.el.pack_end ( child_1.el , false,true,0 );
578 // user defined functions
580 public class Xcls_mainpane : Object
583 private Xcls_MainWindow _this;
587 public int lastWidth;
590 public Xcls_mainpane(Xcls_MainWindow _owner )
593 _this.mainpane = this;
594 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
599 // set gobject values
600 this.el.position = 400;
601 var child_0 = new Xcls_leftpane( _this );
603 this.el.add1 ( child_0.el );
604 var child_1 = new Xcls_Box21( _this );
606 this.el.add2 ( child_1.el );
609 // user defined functions
611 public class Xcls_leftpane : Object
614 private Xcls_MainWindow _this;
620 public Xcls_leftpane(Xcls_MainWindow _owner )
623 _this.leftpane = this;
624 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
628 // set gobject values
629 var child_0 = new Xcls_editpane( _this );
631 this.el.pack_start ( child_0.el , true,true,0 );
634 // user defined functions
636 public class Xcls_editpane : Object
639 private Xcls_MainWindow _this;
645 public Xcls_editpane(Xcls_MainWindow _owner )
648 _this.editpane = this;
649 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
653 // set gobject values
654 var child_0 = new Xcls_tree( _this );
656 this.el.add1 ( child_0.el );
657 var child_1 = new Xcls_props( _this );
659 this.el.add2 ( child_1.el );
662 // user defined functions
664 public class Xcls_tree : Object
667 private Xcls_MainWindow _this;
673 public Xcls_tree(Xcls_MainWindow _owner )
677 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
681 // set gobject values
684 // user defined functions
687 public class Xcls_props : Object
690 private Xcls_MainWindow _this;
696 public Xcls_props(Xcls_MainWindow _owner )
700 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
704 // set gobject values
707 // user defined functions
712 public class Xcls_Box21 : Object
715 private Xcls_MainWindow _this;
721 public Xcls_Box21(Xcls_MainWindow _owner )
724 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
728 // set gobject values
729 var child_0 = new Xcls_clutterembed( _this );
731 this.el.pack_start ( child_0.el , true,true,0 );
734 // user defined functions
736 public class Xcls_clutterembed : Object
738 public GtkClutter.Embed el;
739 private Xcls_MainWindow _this;
745 public Xcls_clutterembed(Xcls_MainWindow _owner )
748 _this.clutterembed = this;
749 this.el = new GtkClutter.Embed();
753 // set gobject values
754 var child_0 = new Xcls_rooview( _this );
756 this.el.get_stage().add_child ( child_0.el );
757 var child_1 = new Xcls_objectview( _this );
759 this.el.get_stage().add_child ( child_1.el );
760 var child_2 = new Xcls_codeeditview( _this );
762 this.el.get_stage().add_child ( child_2.el );
763 var child_3 = new Xcls_addpropsview( _this );
765 this.el.get_stage().add_child ( child_3.el );
766 var child_4 = new Xcls_projecteditview( _this );
768 this.el.get_stage().add_child ( child_4.el );
769 var child_5 = new Xcls_buttonlayout( _this );
771 this.el.get_stage().add_child ( child_5.el );
775 var stage = this.el.get_stage();
776 stage.set_background_color( Clutter.Color.from_string("#000"));
779 this.el.size_allocate.connect( ( alloc) => {
780 if (_this.windowstate == null) {
783 _this.windowstate.resizeCanvas();
788 // user defined functions
790 public class Xcls_rooview : Object
792 public GtkClutter.Actor el;
793 private Xcls_MainWindow _this;
799 public Xcls_rooview(Xcls_MainWindow _owner )
802 _this.rooview = this;
803 this.el = new GtkClutter.Actor();
807 // set gobject values
814 this.el.add_constraint(
815 new Clutter.AlignConstraint(
816 _this.clutterembed.el.get_stage(),
817 Clutter.AlignAxis.X_AXIS,
822 //this.el.set_position(100,100);
823 this.el.set_pivot_point(1.0f,1.0f);
825 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
826 _this.clutterembed.el.get_stage().height);
831 // user defined functions
834 public class Xcls_objectview : Object
836 public GtkClutter.Actor el;
837 private Xcls_MainWindow _this;
843 public Xcls_objectview(Xcls_MainWindow _owner )
846 _this.objectview = this;
847 this.el = new GtkClutter.Actor();
851 // set gobject values
858 this.el.add_constraint(
859 new Clutter.AlignConstraint(
860 _this.clutterembed.el.get_stage(),
861 Clutter.AlignAxis.X_AXIS,
866 this.el.fixed_x = 50.0f;
867 this.el.fixed_y = 0.0f;
868 //this.el.set_position(100,100);
869 this.el.set_pivot_point(0.0f,0.0f);
870 this.el.set_scale(0.0f,1.0f);
871 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
872 _this.clutterembed.el.get_stage().height);
877 // user defined functions
880 public class Xcls_codeeditview : Object
882 public GtkClutter.Actor el;
883 private Xcls_MainWindow _this;
889 public Xcls_codeeditview(Xcls_MainWindow _owner )
892 _this.codeeditview = this;
893 this.el = new GtkClutter.Actor();
897 // set gobject values
904 this.el.add_constraint(
905 new Clutter.AlignConstraint(
906 _this.clutterembed.el.get_stage(),
907 Clutter.AlignAxis.X_AXIS,
912 this.el.fixed_x = 50.0f;
913 this.el.fixed_y = 0.0f;
914 //this.el.set_position(100,100);
915 this.el.set_pivot_point(0.0f,0.0f);
916 this.el.set_scale(0.0f,1.0f);
917 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
918 _this.clutterembed.el.get_stage().height);
923 // user defined functions
926 public class Xcls_addpropsview : Object
928 public GtkClutter.Actor el;
929 private Xcls_MainWindow _this;
935 public Xcls_addpropsview(Xcls_MainWindow _owner )
938 _this.addpropsview = this;
939 this.el = new GtkClutter.Actor();
943 // set gobject values
950 this.el.add_constraint(
951 new Clutter.AlignConstraint(
952 _this.clutterembed.el.get_stage(),
953 Clutter.AlignAxis.X_AXIS,
958 this.el.fixed_x = 50.0f;
959 this.el.fixed_y = 0.0f;
960 //this.el.set_position(100,100);
961 this.el.set_pivot_point(0.0f,0.0f);
962 this.el.set_scale(0.0f,1.0f);
963 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
964 _this.clutterembed.el.get_stage().height);
969 // user defined functions
972 public class Xcls_projecteditview : Object
974 public GtkClutter.Actor el;
975 private Xcls_MainWindow _this;
981 public Xcls_projecteditview(Xcls_MainWindow _owner )
984 _this.projecteditview = this;
985 this.el = new GtkClutter.Actor();
989 // set gobject values
996 this.el.add_constraint(
997 new Clutter.AlignConstraint(
998 _this.clutterembed.el.get_stage(),
999 Clutter.AlignAxis.X_AXIS,
1004 //this.el.set_position(100,100);
1005 this.el.set_pivot_point(0.0f,0.0f);
1006 this.el.set_scale(1.0f,0.0f);
1007 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1008 _this.clutterembed.el.get_stage().height /2);
1013 // user defined functions
1016 public class Xcls_buttonlayout : Object
1018 public Clutter.Actor el;
1019 private Xcls_MainWindow _this;
1025 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1028 _this.buttonlayout = this;
1029 this.el = new Clutter.Actor();
1033 // set gobject values
1034 var child_0 = new Xcls_BoxLayout29( _this );
1036 this.el.layout_manager = child_0.el;
1037 var child_1 = new Xcls_backbutton( _this );
1039 this.el.add_child ( child_1.el );
1040 var child_2 = new Xcls_projectbutton( _this );
1042 this.el.add_child ( child_2.el );
1043 var child_3 = new Xcls_editfilebutton( _this );
1045 this.el.add_child ( child_3.el );
1046 var child_4 = new Xcls_projecteditbutton( _this );
1048 this.el.add_child ( child_4.el );
1049 var child_5 = new Xcls_objectshowbutton( _this );
1051 this.el.add_child ( child_5.el );
1052 var child_6 = new Xcls_addpropbutton( _this );
1054 this.el.add_child ( child_6.el );
1055 var child_7 = new Xcls_addlistenerbutton( _this );
1057 this.el.add_child ( child_7.el );
1058 var child_8 = new Xcls_addprojectbutton( _this );
1060 this.el.add_child ( child_8.el );
1061 var child_9 = new Xcls_addfilebutton( _this );
1063 this.el.add_child ( child_9.el );
1064 var child_10 = new Xcls_delprojectbutton( _this );
1066 this.el.add_child ( child_10.el );
1072 this.el.add_constraint(
1073 new Clutter.AlignConstraint(
1074 _this.clutterembed.el.get_stage(),
1075 Clutter.AlignAxis.X_AXIS,
1081 //this.el.set_position(100,100);
1082 this.el.set_pivot_point(0.5f,0.5f);
1083 this.el.set_size(50,
1084 _this.clutterembed.el.get_stage().height);
1089 // user defined functions
1091 public class Xcls_BoxLayout29 : Object
1093 public Clutter.BoxLayout el;
1094 private Xcls_MainWindow _this;
1100 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1103 this.el = new Clutter.BoxLayout();
1107 // set gobject values
1108 this.el.orientation = Clutter.Orientation.VERTICAL;
1111 // user defined functions
1114 public class Xcls_backbutton : Object
1116 public Clutter.Actor el;
1117 private Xcls_MainWindow _this;
1123 public Xcls_backbutton(Xcls_MainWindow _owner )
1126 _this.backbutton = this;
1127 this.el = new Clutter.Actor();
1131 // set gobject values
1132 var child_0 = new Xcls_Actor31( _this );
1134 this.el.add_child ( child_0.el );
1138 this.el.set_size(50,50);
1141 // user defined functions
1143 public class Xcls_Actor31 : Object
1145 public GtkClutter.Actor el;
1146 private Xcls_MainWindow _this;
1152 public Xcls_Actor31(Xcls_MainWindow _owner )
1155 this.el = new GtkClutter.Actor();
1159 // set gobject values
1160 var child_0 = new Xcls_Button32( _this );
1165 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1168 // user defined functions
1170 public class Xcls_Button32 : Object
1172 public Gtk.Button el;
1173 private Xcls_MainWindow _this;
1179 public Xcls_Button32(Xcls_MainWindow _owner )
1182 this.el = new Gtk.Button();
1186 // set gobject values
1187 this.el.width_request = 50;
1188 this.el.height_request = 50;
1189 this.el.tooltip_text = "Back";
1190 var child_0 = new Xcls_Image33( _this );
1192 this.el.set_image ( child_0.el );
1195 this.el.clicked.connect( ( ) => {
1197 _this.windowstate.switchState(WindowState.State.PREVIEW);
1203 // user defined functions
1205 public class Xcls_Image33 : Object
1207 public Gtk.Image el;
1208 private Xcls_MainWindow _this;
1214 public Xcls_Image33(Xcls_MainWindow _owner )
1217 this.el = new Gtk.Image();
1221 // set gobject values
1222 this.el.icon_name = "go-previous";
1225 // user defined functions
1231 public class Xcls_projectbutton : Object
1233 public Clutter.Actor el;
1234 private Xcls_MainWindow _this;
1240 public Xcls_projectbutton(Xcls_MainWindow _owner )
1243 _this.projectbutton = this;
1244 this.el = new Clutter.Actor();
1248 // set gobject values
1249 var child_0 = new Xcls_Actor35( _this );
1251 this.el.add_child ( child_0.el );
1255 this.el.set_size(50,50);
1258 // user defined functions
1260 public class Xcls_Actor35 : Object
1262 public GtkClutter.Actor el;
1263 private Xcls_MainWindow _this;
1269 public Xcls_Actor35(Xcls_MainWindow _owner )
1272 this.el = new GtkClutter.Actor();
1276 // set gobject values
1277 var child_0 = new Xcls_Button36( _this );
1282 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1285 // user defined functions
1287 public class Xcls_Button36 : Object
1289 public Gtk.Button el;
1290 private Xcls_MainWindow _this;
1296 public Xcls_Button36(Xcls_MainWindow _owner )
1299 this.el = new Gtk.Button();
1303 // set gobject values
1304 this.el.width_request = 50;
1305 this.el.height_request = 50;
1306 var child_0 = new Xcls_Image37( _this );
1308 this.el.set_image ( child_0.el );
1311 this.el.clicked.connect( ( ) => {
1312 _this.windowstate.switchState(WindowState.State.FILES);
1318 // user defined functions
1320 public class Xcls_Image37 : Object
1322 public Gtk.Image el;
1323 private Xcls_MainWindow _this;
1329 public Xcls_Image37(Xcls_MainWindow _owner )
1332 this.el = new Gtk.Image();
1336 // set gobject values
1337 this.el.icon_name = "document-open";
1340 // user defined functions
1346 public class Xcls_editfilebutton : Object
1348 public Clutter.Actor el;
1349 private Xcls_MainWindow _this;
1355 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1358 _this.editfilebutton = this;
1359 this.el = new Clutter.Actor();
1363 // set gobject values
1364 var child_0 = new Xcls_Actor39( _this );
1366 this.el.add_child ( child_0.el );
1370 this.el.set_size(50.0f,50.0f);
1373 // user defined functions
1375 public class Xcls_Actor39 : Object
1377 public GtkClutter.Actor el;
1378 private Xcls_MainWindow _this;
1384 public Xcls_Actor39(Xcls_MainWindow _owner )
1387 this.el = new GtkClutter.Actor();
1391 // set gobject values
1392 var child_0 = new Xcls_Button40( _this );
1397 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1400 // user defined functions
1402 public class Xcls_Button40 : Object
1404 public Gtk.Button el;
1405 private Xcls_MainWindow _this;
1411 public Xcls_Button40(Xcls_MainWindow _owner )
1414 this.el = new Gtk.Button();
1418 // set gobject values
1419 this.el.width_request = 50;
1420 this.el.height_request = 50;
1421 this.el.tooltip_text = "File Details";
1422 var child_0 = new Xcls_Image41( _this );
1424 this.el.set_image ( child_0.el );
1427 this.el.clicked.connect( ( ) => {
1429 // create a new file in project..
1430 if (_this.project == null || _this.windowstate.file == null) {
1433 _this.windowstate.file_details.show(
1434 _this.windowstate.file, this.el
1443 // user defined functions
1445 public class Xcls_Image41 : Object
1447 public Gtk.Image el;
1448 private Xcls_MainWindow _this;
1454 public Xcls_Image41(Xcls_MainWindow _owner )
1457 this.el = new Gtk.Image();
1461 // set gobject values
1462 this.el.icon_name = "document-properties";
1465 // user defined functions
1471 public class Xcls_projecteditbutton : Object
1473 public Clutter.Actor el;
1474 private Xcls_MainWindow _this;
1480 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1483 _this.projecteditbutton = this;
1484 this.el = new Clutter.Actor();
1488 // set gobject values
1489 var child_0 = new Xcls_Actor43( _this );
1491 this.el.add_child ( child_0.el );
1495 this.el.set_size(50,50);
1498 // user defined functions
1500 public class Xcls_Actor43 : Object
1502 public GtkClutter.Actor el;
1503 private Xcls_MainWindow _this;
1509 public Xcls_Actor43(Xcls_MainWindow _owner )
1512 this.el = new GtkClutter.Actor();
1516 // set gobject values
1517 var child_0 = new Xcls_Button44( _this );
1522 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1525 // user defined functions
1527 public class Xcls_Button44 : Object
1529 public Gtk.Button el;
1530 private Xcls_MainWindow _this;
1536 public Xcls_Button44(Xcls_MainWindow _owner )
1539 this.el = new Gtk.Button();
1543 // set gobject values
1544 this.el.width_request = 50;
1545 this.el.height_request = 50;
1546 this.el.tooltip_text = "Project Details";
1547 var child_0 = new Xcls_Image45( _this );
1549 this.el.set_image ( child_0.el );
1552 this.el.clicked.connect( ( ) => {
1553 _this.windowstate.switchState(WindowState.State.PROJECT);
1560 // user defined functions
1562 public class Xcls_Image45 : Object
1564 public Gtk.Image el;
1565 private Xcls_MainWindow _this;
1571 public Xcls_Image45(Xcls_MainWindow _owner )
1574 this.el = new Gtk.Image();
1578 // set gobject values
1579 this.el.icon_name = "emblem-system";
1582 // user defined functions
1588 public class Xcls_objectshowbutton : Object
1590 public Clutter.Actor el;
1591 private Xcls_MainWindow _this;
1597 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1600 _this.objectshowbutton = this;
1601 this.el = new Clutter.Actor();
1605 // set gobject values
1606 var child_0 = new Xcls_Actor47( _this );
1608 this.el.add_child ( child_0.el );
1612 this.el.set_size(50,50);
1615 this.el.enter_event.connect( ( event) => {
1616 this.el.background_color = Clutter.Color.from_string("#333");
1619 this.el.leave_event.connect( ( event) => {
1620 this.el.background_color = Clutter.Color.from_string("#000");
1625 // user defined functions
1627 public class Xcls_Actor47 : Object
1629 public GtkClutter.Actor el;
1630 private Xcls_MainWindow _this;
1636 public Xcls_Actor47(Xcls_MainWindow _owner )
1639 this.el = new GtkClutter.Actor();
1643 // set gobject values
1644 var child_0 = new Xcls_Button48( _this );
1649 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1652 // user defined functions
1654 public class Xcls_Button48 : Object
1656 public Gtk.Button el;
1657 private Xcls_MainWindow _this;
1663 public Xcls_Button48(Xcls_MainWindow _owner )
1666 this.el = new Gtk.Button();
1670 // set gobject values
1671 this.el.width_request = 50;
1672 this.el.height_request = 50;
1673 this.el.tooltip_text = "Add Child Element";
1674 var child_0 = new Xcls_Image49( _this );
1676 this.el.set_image ( child_0.el );
1679 this.el.clicked.connect( ( ) => {
1681 _this.windowstate.switchState(WindowState.State.OBJECT);
1687 // user defined functions
1689 public class Xcls_Image49 : Object
1691 public Gtk.Image el;
1692 private Xcls_MainWindow _this;
1698 public Xcls_Image49(Xcls_MainWindow _owner )
1701 this.el = new Gtk.Image();
1705 // set gobject values
1706 this.el.icon_name = "list-add";
1709 // user defined functions
1715 public class Xcls_addpropbutton : Object
1717 public Clutter.Actor el;
1718 private Xcls_MainWindow _this;
1724 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1727 _this.addpropbutton = this;
1728 this.el = new Clutter.Actor();
1732 // set gobject values
1733 var child_0 = new Xcls_Actor51( _this );
1735 this.el.add_child ( child_0.el );
1739 this.el.set_size(50,50);
1742 // user defined functions
1744 public class Xcls_Actor51 : Object
1746 public GtkClutter.Actor el;
1747 private Xcls_MainWindow _this;
1753 public Xcls_Actor51(Xcls_MainWindow _owner )
1756 this.el = new GtkClutter.Actor();
1760 // set gobject values
1761 var child_0 = new Xcls_Button52( _this );
1766 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1769 // user defined functions
1771 public class Xcls_Button52 : Object
1773 public Gtk.Button el;
1774 private Xcls_MainWindow _this;
1780 public Xcls_Button52(Xcls_MainWindow _owner )
1783 this.el = new Gtk.Button();
1787 // set gobject values
1788 this.el.width_request = 50;
1789 this.el.height_request = 50;
1790 this.el.tooltip_text = "Add Property";
1791 var child_0 = new Xcls_Image53( _this );
1793 this.el.set_image ( child_0.el );
1796 this.el.clicked.connect( ( ) => {
1798 _this.windowstate.switchState(WindowState.State.PROP);
1804 // user defined functions
1806 public class Xcls_Image53 : Object
1808 public Gtk.Image el;
1809 private Xcls_MainWindow _this;
1815 public Xcls_Image53(Xcls_MainWindow _owner )
1818 this.el = new Gtk.Image();
1822 // set gobject values
1823 this.el.icon_name = "format-justify-left";
1826 // user defined functions
1832 public class Xcls_addlistenerbutton : Object
1834 public Clutter.Actor el;
1835 private Xcls_MainWindow _this;
1841 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1844 _this.addlistenerbutton = this;
1845 this.el = new Clutter.Actor();
1849 // set gobject values
1850 var child_0 = new Xcls_Actor55( _this );
1852 this.el.add_child ( child_0.el );
1856 this.el.set_size(50,50);
1859 // user defined functions
1861 public class Xcls_Actor55 : Object
1863 public GtkClutter.Actor el;
1864 private Xcls_MainWindow _this;
1870 public Xcls_Actor55(Xcls_MainWindow _owner )
1873 this.el = new GtkClutter.Actor();
1877 // set gobject values
1878 var child_0 = new Xcls_Button56( _this );
1883 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1886 // user defined functions
1888 public class Xcls_Button56 : Object
1890 public Gtk.Button el;
1891 private Xcls_MainWindow _this;
1897 public Xcls_Button56(Xcls_MainWindow _owner )
1900 this.el = new Gtk.Button();
1904 // set gobject values
1905 this.el.width_request = 50;
1906 this.el.height_request = 50;
1907 this.el.tooltip_text = "Add Event Code";
1908 var child_0 = new Xcls_Image57( _this );
1910 this.el.set_image ( child_0.el );
1913 this.el.clicked.connect( ( ) => {
1915 _this.windowstate.switchState(WindowState.State.LISTENER);
1922 // user defined functions
1924 public class Xcls_Image57 : Object
1926 public Gtk.Image el;
1927 private Xcls_MainWindow _this;
1933 public Xcls_Image57(Xcls_MainWindow _owner )
1936 this.el = new Gtk.Image();
1940 // set gobject values
1941 this.el.icon_name = "appointment-new";
1944 // user defined functions
1950 public class Xcls_addprojectbutton : Object
1952 public Clutter.Actor el;
1953 private Xcls_MainWindow _this;
1959 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1962 _this.addprojectbutton = this;
1963 this.el = new Clutter.Actor();
1967 // set gobject values
1968 var child_0 = new Xcls_Actor59( _this );
1970 this.el.add_child ( child_0.el );
1974 this.el.set_size(50.0f,50.0f);
1977 // user defined functions
1979 public class Xcls_Actor59 : Object
1981 public GtkClutter.Actor el;
1982 private Xcls_MainWindow _this;
1988 public Xcls_Actor59(Xcls_MainWindow _owner )
1991 this.el = new GtkClutter.Actor();
1995 // set gobject values
1996 var child_0 = new Xcls_Button60( _this );
2001 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2004 // user defined functions
2006 public class Xcls_Button60 : Object
2008 public Gtk.Button el;
2009 private Xcls_MainWindow _this;
2015 public Xcls_Button60(Xcls_MainWindow _owner )
2018 this.el = new Gtk.Button();
2022 // set gobject values
2023 this.el.width_request = 50;
2024 this.el.height_request = 50;
2025 this.el.tooltip_text = "New\nProj.";
2026 var child_0 = new Xcls_Image61( _this );
2028 this.el.set_image ( child_0.el );
2031 this.el.clicked.connect( ( ) => {
2033 // create a new file in project..
2034 //Xcls_DialogNewComponent.singleton().show(
2035 var pe = EditProject.singleton();
2036 pe.el.set_transient_for(_this.el);
2037 pe.el.set_modal(true);
2046 _this.windowstate.left_projects.is_loaded = false;
2047 _this.windowstate.left_projects.load();
2048 _this.windowstate.left_projects.selectProject(p);
2055 // user defined functions
2057 public class Xcls_Image61 : Object
2059 public Gtk.Image el;
2060 private Xcls_MainWindow _this;
2066 public Xcls_Image61(Xcls_MainWindow _owner )
2069 this.el = new Gtk.Image();
2073 // set gobject values
2074 this.el.icon_name = "folder-new";
2077 // user defined functions
2083 public class Xcls_addfilebutton : Object
2085 public Clutter.Actor el;
2086 private Xcls_MainWindow _this;
2092 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2095 _this.addfilebutton = this;
2096 this.el = new Clutter.Actor();
2100 // set gobject values
2101 var child_0 = new Xcls_Actor63( _this );
2103 this.el.add_child ( child_0.el );
2107 this.el.set_size(50.0f,50.0f);
2110 // user defined functions
2112 public class Xcls_Actor63 : Object
2114 public GtkClutter.Actor el;
2115 private Xcls_MainWindow _this;
2121 public Xcls_Actor63(Xcls_MainWindow _owner )
2124 this.el = new GtkClutter.Actor();
2128 // set gobject values
2129 var child_0 = new Xcls_Button64( _this );
2134 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2137 // user defined functions
2139 public class Xcls_Button64 : Object
2141 public Gtk.Button el;
2142 private Xcls_MainWindow _this;
2148 public Xcls_Button64(Xcls_MainWindow _owner )
2151 this.el = new Gtk.Button();
2155 // set gobject values
2156 this.el.width_request = 50;
2157 this.el.height_request = 50;
2158 this.el.tooltip_text = "Add File";
2159 var child_0 = new Xcls_Image65( _this );
2161 this.el.set_image ( child_0.el );
2164 this.el.clicked.connect( () => {
2165 // create a new file in project..
2166 print("add file selected\n");
2167 // what's the currently selected project...
2168 var proj = _this.windowstate.left_projects.getSelectedProject();
2171 print("no project selected?\n");
2175 print("creating file?");
2177 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2178 _this.project = proj;
2179 print("showing popup?");
2180 _this.windowstate.file_details.show(
2189 // user defined functions
2191 public class Xcls_Image65 : Object
2193 public Gtk.Image el;
2194 private Xcls_MainWindow _this;
2200 public Xcls_Image65(Xcls_MainWindow _owner )
2203 this.el = new Gtk.Image();
2207 // set gobject values
2208 this.el.icon_name = "document-new";
2211 // user defined functions
2217 public class Xcls_delprojectbutton : Object
2219 public Clutter.Actor el;
2220 private Xcls_MainWindow _this;
2226 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2229 _this.delprojectbutton = this;
2230 this.el = new Clutter.Actor();
2234 // set gobject values
2235 var child_0 = new Xcls_Actor67( _this );
2237 this.el.add_child ( child_0.el );
2241 this.el.set_size(50,50);
2244 // user defined functions
2246 public class Xcls_Actor67 : Object
2248 public GtkClutter.Actor el;
2249 private Xcls_MainWindow _this;
2255 public Xcls_Actor67(Xcls_MainWindow _owner )
2258 this.el = new GtkClutter.Actor();
2262 // set gobject values
2263 var child_0 = new Xcls_Button68( _this );
2268 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2271 // user defined functions
2273 public class Xcls_Button68 : Object
2275 public Gtk.Button el;
2276 private Xcls_MainWindow _this;
2282 public Xcls_Button68(Xcls_MainWindow _owner )
2285 this.el = new Gtk.Button();
2289 // set gobject values
2290 this.el.width_request = 50;
2291 this.el.height_request = 50;
2292 this.el.tooltip_text = "Delete Project";
2293 var child_0 = new Xcls_Image69( _this );
2295 this.el.set_image ( child_0.el );
2298 this.el.clicked.connect( ( ) => {
2300 var cd = DialogConfirm.singleton();
2301 cd.el.set_transient_for(_this.el);
2302 cd.el.set_modal(true);
2304 var project = _this.windowstate.left_projects.getSelectedProject();
2305 if (project == null) {
2306 print("SKIP - no project\n");
2311 if (Gtk.ResponseType.YES != cd.show("Confirm",
2312 "Are you sure you want to delete project %s".printf(project.name))) {
2318 Project.Project.remove(project);
2319 _this.project = null;
2321 _this.windowstate.left_projects.is_loaded = false;
2322 _this.windowstate.left_projects.load();
2323 _this.windowstate.clutterfiles.clearFiles();
2328 // user defined functions
2330 public class Xcls_Image69 : Object
2332 public Gtk.Image el;
2333 private Xcls_MainWindow _this;
2339 public Xcls_Image69(Xcls_MainWindow _owner )
2342 this.el = new Gtk.Image();
2346 // set gobject values
2347 this.el.icon_name = "user-trash";
2350 // user defined functions
2360 public class Xcls_Box70 : Object
2363 private Xcls_MainWindow _this;
2369 public Xcls_Box70(Xcls_MainWindow _owner )
2372 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2376 // set gobject values
2377 this.el.homogeneous = false;
2378 var child_0 = new Xcls_Label71( _this );
2380 this.el.pack_start ( child_0.el , true,true,0 );
2381 var child_1 = new Xcls_statusbar( _this );
2383 this.el.pack_start ( child_1.el , true,true,0 );
2384 var child_2 = new Xcls_search_entry( _this );
2386 this.el.pack_start ( child_2.el , false,true,0 );
2387 var child_3 = new Xcls_MenuBar74( _this );
2389 this.el.pack_end ( child_3.el , false,true,0 );
2392 // user defined functions
2394 public class Xcls_Label71 : Object
2396 public Gtk.Label el;
2397 private Xcls_MainWindow _this;
2403 public Xcls_Label71(Xcls_MainWindow _owner )
2406 this.el = new Gtk.Label( " " );
2410 // set gobject values
2413 // user defined functions
2416 public class Xcls_statusbar : Object
2418 public Gtk.ProgressBar el;
2419 private Xcls_MainWindow _this;
2423 public ulong handler_id;
2426 public Xcls_statusbar(Xcls_MainWindow _owner )
2429 _this.statusbar = this;
2430 this.el = new Gtk.ProgressBar();
2433 this.handler_id = -1;
2435 // set gobject values
2436 this.el.show_text = true;
2441 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2444 _this.mainpane.el.set_sensitive(true);
2448 _this.mainpane.el.set_sensitive(false);
2450 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2451 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2457 // user defined functions
2460 public class Xcls_search_entry : Object
2462 public Gtk.SearchEntry el;
2463 private Xcls_MainWindow _this;
2469 public Xcls_search_entry(Xcls_MainWindow _owner )
2472 _this.search_entry = this;
2473 this.el = new Gtk.SearchEntry();
2477 // set gobject values
2481 var description = Pango.FontDescription.from_string("monospace");
2482 description.set_size(8000);
2483 this.el.override_font(description);
2486 this.el.key_press_event.connect( (event) => {
2488 if (event.keyval == Gdk.Key.Return) {
2489 this.forwardSearch(false);
2493 // print(event.key.keyval)
2498 this.el.changed.connect( () => {
2499 if (this.el.text == "") {
2500 _this.search_results.el.hide();
2504 switch(_this.windowstate.state) {
2505 case WindowState.State.CODEONLY:
2506 case WindowState.State.CODE:
2507 // search the code being edited..
2508 res = _this.windowstate.code_editor.search(this.el.text);
2511 case WindowState.State.PREVIEW:
2512 if (_this.windowstate.file.xtype == "Gtk") {
2513 res = _this.windowstate.window_gladeview.search(this.el.text);
2515 res = _this.windowstate.window_rooview.search(this.el.text);
2521 _this.search_results.el.show();
2523 _this.search_results.el.label = "%d Matches".printf(res);
2525 _this.search_results.el.label = "No Matches";
2533 // user defined functions
2534 public void forwardSearch (bool change_focus) {
2535 switch(_this.windowstate.state) {
2536 case WindowState.State.CODEONLY:
2537 case WindowState.State.CODE:
2538 // search the code being edited..
2539 _this.windowstate.code_editor.forwardSearch(change_focus);
2542 case WindowState.State.PREVIEW:
2543 if (_this.windowstate.file.xtype == "Gtk") {
2544 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2546 _this.windowstate.window_rooview.forwardSearch(change_focus);
2555 public class Xcls_MenuBar74 : Object
2557 public Gtk.MenuBar el;
2558 private Xcls_MainWindow _this;
2564 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2567 this.el = new Gtk.MenuBar();
2571 // set gobject values
2572 var child_0 = new Xcls_search_results( _this );
2574 this.el.add ( child_0.el );
2575 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2577 this.el.add ( child_1.el );
2578 var child_2 = new Xcls_statusbar_errors( _this );
2580 this.el.add ( child_2.el );
2581 var child_3 = new Xcls_statusbar_warnings( _this );
2583 this.el.add ( child_3.el );
2584 var child_4 = new Xcls_statusbar_depricated( _this );
2586 this.el.add ( child_4.el );
2587 var child_5 = new Xcls_statusbar_run( _this );
2589 this.el.add ( child_5.el );
2592 // user defined functions
2594 public class Xcls_search_results : Object
2596 public Gtk.ImageMenuItem el;
2597 private Xcls_MainWindow _this;
2601 public Xcls_ValaCompileErrors popup;
2604 public Xcls_search_results(Xcls_MainWindow _owner )
2607 _this.search_results = this;
2608 this.el = new Gtk.ImageMenuItem();
2612 // set gobject values
2613 this.el.always_show_image = true;
2614 this.el.label = "Matches";
2615 var child_0 = new Xcls_Image76( _this );
2617 this.el.set_image ( child_0.el );
2620 this.el.button_press_event.connect( () => {
2622 if (this.popup == null) {
2623 this.popup = new Xcls_ValaCompileErrors();
2624 this.popup.window = _this;
2628 this.popup.show(this.notices, this.el);
2634 // user defined functions
2636 public class Xcls_Image76 : Object
2638 public Gtk.Image el;
2639 private Xcls_MainWindow _this;
2645 public Xcls_Image76(Xcls_MainWindow _owner )
2648 this.el = new Gtk.Image();
2652 // set gobject values
2653 this.el.icon_name = "system-search";
2654 this.el.sensitive = false;
2657 // user defined functions
2661 public class Xcls_statusbar_compilestatus_label : Object
2663 public Gtk.MenuItem el;
2664 private Xcls_MainWindow _this;
2670 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2673 _this.statusbar_compilestatus_label = this;
2674 this.el = new Gtk.MenuItem();
2678 // set gobject values
2679 this.el.label = "Compile Status:";
2682 // user defined functions
2685 public class Xcls_statusbar_errors : Object
2687 public Gtk.ImageMenuItem el;
2688 private Xcls_MainWindow _this;
2692 public Xcls_ValaCompileErrors popup;
2693 public Json.Object notices;
2696 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2699 _this.statusbar_errors = this;
2700 this.el = new Gtk.ImageMenuItem();
2703 this.notices = new Json.Object() ;
2705 // set gobject values
2706 this.el.always_show_image = true;
2707 this.el.label = "Errors";
2708 var child_0 = new Xcls_Image79( _this );
2710 this.el.set_image ( child_0.el );
2713 this.el.button_press_event.connect( () => {
2714 if (this.popup == null) {
2715 this.popup = new Xcls_ValaCompileErrors();
2716 this.popup.window = _this;
2720 this.popup.show(this.notices, this.el);
2725 // user defined functions
2726 public void setNotices (Json.Object nots, int qty) {
2728 this.el.label = qty.to_string() + " Errors";
2729 this.notices = nots;
2733 public class Xcls_Image79 : Object
2735 public Gtk.Image el;
2736 private Xcls_MainWindow _this;
2742 public Xcls_Image79(Xcls_MainWindow _owner )
2745 this.el = new Gtk.Image();
2749 // set gobject values
2750 this.el.icon_name = "dialog-error";
2753 // user defined functions
2757 public class Xcls_statusbar_warnings : Object
2759 public Gtk.ImageMenuItem el;
2760 private Xcls_MainWindow _this;
2764 public Xcls_ValaCompileErrors popup;
2765 public Json.Object notices;
2768 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2771 _this.statusbar_warnings = this;
2772 this.el = new Gtk.ImageMenuItem();
2775 this.notices = new Json.Object();
2777 // set gobject values
2778 this.el.always_show_image = true;
2779 this.el.label = "Warnings";
2780 var child_0 = new Xcls_Image81( _this );
2782 this.el.set_image ( child_0.el );
2785 this.el.button_press_event.connect( () => {
2786 if (this.popup == null) {
2787 this.popup = new Xcls_ValaCompileErrors();
2788 this.popup.window = _this;
2791 this.popup.show(this.notices, this.el);
2796 // user defined functions
2797 public void setNotices (Json.Object nots, int qty) {
2799 this.el.label = qty.to_string() + " Warnings";
2800 this.notices = nots;
2804 public class Xcls_Image81 : Object
2806 public Gtk.Image el;
2807 private Xcls_MainWindow _this;
2813 public Xcls_Image81(Xcls_MainWindow _owner )
2816 this.el = new Gtk.Image();
2820 // set gobject values
2821 this.el.icon_name = "dialog-warning";
2824 // user defined functions
2828 public class Xcls_statusbar_depricated : Object
2830 public Gtk.ImageMenuItem el;
2831 private Xcls_MainWindow _this;
2835 public Xcls_ValaCompileErrors popup;
2836 public Json.Object notices;
2839 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2842 _this.statusbar_depricated = this;
2843 this.el = new Gtk.ImageMenuItem();
2846 this.notices = new Json.Object();
2848 // set gobject values
2849 this.el.always_show_image = true;
2850 this.el.label = "Depricated";
2851 var child_0 = new Xcls_Image83( _this );
2853 this.el.set_image ( child_0.el );
2856 this.el.button_press_event.connect( () => {
2857 if (this.popup == null) {
2858 this.popup = new Xcls_ValaCompileErrors();
2859 this.popup.window = _this;
2863 this.popup.show(this.notices, this.el);
2868 // user defined functions
2869 public void setNotices (Json.Object nots, int qty) {
2871 this.el.label = qty.to_string() + " Depricated";
2872 this.notices = nots;
2876 public class Xcls_Image83 : Object
2878 public Gtk.Image el;
2879 private Xcls_MainWindow _this;
2885 public Xcls_Image83(Xcls_MainWindow _owner )
2888 this.el = new Gtk.Image();
2892 // set gobject values
2893 this.el.icon_name = "dialog-information";
2896 // user defined functions
2900 public class Xcls_statusbar_run : Object
2902 public Gtk.ImageMenuItem el;
2903 private Xcls_MainWindow _this;
2907 public Xcls_ValaCompileErrors popup;
2910 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2913 _this.statusbar_run = this;
2914 this.el = new Gtk.ImageMenuItem();
2918 // set gobject values
2919 this.el.always_show_image = true;
2920 this.el.label = "Run";
2921 var child_0 = new Xcls_Image85( _this );
2923 this.el.set_image ( child_0.el );
2926 this.el.button_press_event.connect( () => {
2927 if (_this.windowstate.file == null) {
2930 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2932 _this.windowstate.compile_results.show(this.el,true);
2938 // user defined functions
2940 public class Xcls_Image85 : Object
2942 public Gtk.Image el;
2943 private Xcls_MainWindow _this;
2949 public Xcls_Image85(Xcls_MainWindow _owner )
2952 this.el = new Gtk.Image();
2956 // set gobject values
2957 this.el.icon_name = "media-playback-start";
2960 // user defined functions