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_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_compilestatus_label statusbar_compilestatus_label;
44 public Xcls_statusbar_errors statusbar_errors;
45 public Xcls_statusbar_warnings statusbar_warnings;
46 public Xcls_statusbar_depricated statusbar_depricated;
47 public Xcls_statusbar_run statusbar_run;
50 public Project.Project project;
52 public int no_windows;
53 public WindowState windowstate;
56 public Xcls_MainWindow()
59 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
63 this.title = "Application Builder";
65 this.windowstate = null;
68 this.el.border_width = 0;
69 this.el.default_height = 500;
70 this.el.default_width = 800;
71 var child_0 = new Xcls_headerbar( _this );
73 this.el.set_titlebar ( child_0.el );
74 var child_1 = new Xcls_vbox( _this );
76 this.el.add ( child_1.el );
83 this.el.delete_event.connect( ( event) => {
86 this.el.destroy.connect( () => {
87 Xcls_MainWindow.singleton().no_windows--;
89 Resources.singleton().disconnect(_this.statusbar.handler_id);
92 if (Xcls_MainWindow.singleton().no_windows < 1) {
97 this.el.show.connect( ( ) => {
98 // hide the file editing..
100 //this.hideViewEditing();
101 _this.statusbar.el.hide();
102 _this.statusbar_errors.el.hide();
103 _this.statusbar_warnings.el.hide();
104 _this.statusbar_depricated.el.hide();
107 Resources.singleton().checkResources();
110 this.el.key_release_event.connect( (event) => {
112 if (this.search_entry.el.is_visible()) {
113 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
114 print("SAVE: ctrl-f pressed");
115 this.search_entry.el.grab_focus();
119 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120 print("SAVE: ctrl-g pressed");
121 this.search_entry.forwardSearch(true);
127 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
128 print("SAVE: ctrl-n pressed");
129 this.openNewWindow();
133 // print(event.key.keyval)
140 // user defined functions
141 public void openNewWindow () {
142 Xcls_MainWindow.singleton().no_windows++;
143 var w = new Xcls_MainWindow();
148 w.windowstate.switchState(WindowState.State.FILES);
150 public void initChildren () {
151 // this needs putting in a better place..
152 this.windowstate = new WindowState(this);
156 var tl = new Clutter.Timeline(6000);
157 tl.set_repeat_count(-1);
166 public void show () {
171 public void setTitle (string str) {
172 this.headerbar.el.set_title(this.title + " - " + str);
174 public class Xcls_headerbar : Object
176 public Gtk.HeaderBar el;
177 private Xcls_MainWindow _this;
183 public Xcls_headerbar(Xcls_MainWindow _owner )
186 _this.headerbar = this;
187 this.el = new Gtk.HeaderBar();
191 // set gobject values
192 this.el.title = "Application Builder";
193 this.el.show_close_button = true;
194 var child_0 = new Xcls_Box3( _this );
196 this.el.pack_start ( child_0.el );
199 // user defined functions
201 public class Xcls_Box3 : Object
204 private Xcls_MainWindow _this;
210 public Xcls_Box3(Xcls_MainWindow _owner )
213 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
217 // set gobject values
218 var child_0 = new Xcls_MenuButton4( _this );
220 this.el.add ( child_0.el );
221 var child_1 = new Xcls_Button11( _this );
223 var child_2 = new Xcls_Button13( _this );
227 // user defined functions
229 public class Xcls_MenuButton4 : Object
231 public Gtk.MenuButton el;
232 private Xcls_MainWindow _this;
238 public Xcls_MenuButton4(Xcls_MainWindow _owner )
241 this.el = new Gtk.MenuButton();
245 // set gobject values
246 this.el.use_popover = false;
247 var child_0 = new Xcls_topbarmenu( _this );
249 this.el.set_popup ( child_0.el );
250 var child_1 = new Xcls_Image10( _this );
252 this.el.set_image ( child_1.el );
255 // user defined functions
257 public class Xcls_topbarmenu : Object
260 private Xcls_MainWindow _this;
266 public Xcls_topbarmenu(Xcls_MainWindow _owner )
269 _this.topbarmenu = this;
270 this.el = new Gtk.Menu();
274 // set gobject values
275 var child_0 = new Xcls_MenuItem6( _this );
277 this.el.append ( child_0.el );
278 var child_1 = new Xcls_SeparatorMenuItem7( _this );
280 this.el.append ( child_1.el );
281 var child_2 = new Xcls_MenuItem8( _this );
283 this.el.append ( child_2.el );
284 var child_3 = new Xcls_MenuItem9( _this );
286 this.el.append ( child_3.el );
295 // user defined functions
297 public class Xcls_MenuItem6 : Object
299 public Gtk.MenuItem el;
300 private Xcls_MainWindow _this;
306 public Xcls_MenuItem6(Xcls_MainWindow _owner )
309 this.el = new Gtk.MenuItem();
313 // set gobject values
314 this.el.label = "Open a new Window";
317 this.el.activate.connect( ( ) => {
318 _this.openNewWindow();
322 // user defined functions
325 public class Xcls_SeparatorMenuItem7 : Object
327 public Gtk.SeparatorMenuItem el;
328 private Xcls_MainWindow _this;
334 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
337 this.el = new Gtk.SeparatorMenuItem();
341 // set gobject values
344 // user defined functions
347 public class Xcls_MenuItem8 : Object
349 public Gtk.MenuItem el;
350 private Xcls_MainWindow _this;
356 public Xcls_MenuItem8(Xcls_MainWindow _owner )
359 this.el = new Gtk.MenuItem();
363 // set gobject values
364 this.el.label = "Download updated Resources";
367 this.el.activate.connect( ( ) => {
368 Resources.singleton().fetchStart();
372 // user defined functions
375 public class Xcls_MenuItem9 : Object
377 public Gtk.MenuItem el;
378 private Xcls_MainWindow _this;
384 public Xcls_MenuItem9(Xcls_MainWindow _owner )
387 this.el = new Gtk.MenuItem();
391 // set gobject values
392 this.el.label = "About the Builder";
395 this.el.activate.connect( () => {
396 About.singleton().el.show();
400 // user defined functions
404 public class Xcls_Image10 : Object
407 private Xcls_MainWindow _this;
413 public Xcls_Image10(Xcls_MainWindow _owner )
416 this.el = new Gtk.Image();
420 // set gobject values
421 this.el.icon_name = "help-about";
424 // user defined functions
428 public class Xcls_Button11 : Object
430 public Gtk.Button el;
431 private Xcls_MainWindow _this;
437 public Xcls_Button11(Xcls_MainWindow _owner )
440 this.el = new Gtk.Button();
444 // set gobject values
445 this.el.width_request = 50;
446 this.el.height_request = 50;
447 var child_0 = new Xcls_Image12( _this );
449 this.el.set_image ( child_0.el );
452 this.el.clicked.connect( ( ) => {
453 _this.windowstate.switchState(WindowState.State.FILES);
459 // user defined functions
461 public class Xcls_Image12 : Object
464 private Xcls_MainWindow _this;
470 public Xcls_Image12(Xcls_MainWindow _owner )
473 this.el = new Gtk.Image();
477 // set gobject values
478 this.el.icon_name = "document-open";
481 // user defined functions
485 public class Xcls_Button13 : Object
487 public Gtk.Button el;
488 private Xcls_MainWindow _this;
494 public Xcls_Button13(Xcls_MainWindow _owner )
497 this.el = new Gtk.Button();
501 // set gobject values
502 this.el.width_request = 50;
503 this.el.height_request = 50;
504 this.el.tooltip_text = "Back";
505 var child_0 = new Xcls_Image14( _this );
507 this.el.set_image ( child_0.el );
510 this.el.clicked.connect( ( ) => {
512 _this.windowstate.switchState(WindowState.State.PREVIEW);
518 // user defined functions
520 public class Xcls_Image14 : Object
523 private Xcls_MainWindow _this;
529 public Xcls_Image14(Xcls_MainWindow _owner )
532 this.el = new Gtk.Image();
536 // set gobject values
537 this.el.icon_name = "go-previous";
540 // user defined functions
546 public class Xcls_vbox : Object
549 private Xcls_MainWindow _this;
555 public Xcls_vbox(Xcls_MainWindow _owner )
559 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
563 // set gobject values
564 this.el.homogeneous = false;
565 var child_0 = new Xcls_mainpane( _this );
567 this.el.pack_start ( child_0.el , true,true,0 );
568 var child_1 = new Xcls_Box70( _this );
570 this.el.pack_end ( child_1.el , false,true,0 );
573 // user defined functions
575 public class Xcls_mainpane : Object
578 private Xcls_MainWindow _this;
582 public int lastWidth;
585 public Xcls_mainpane(Xcls_MainWindow _owner )
588 _this.mainpane = this;
589 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
594 // set gobject values
595 this.el.position = 400;
596 var child_0 = new Xcls_leftpane( _this );
598 this.el.add1 ( child_0.el );
599 var child_1 = new Xcls_Box21( _this );
601 this.el.add2 ( child_1.el );
604 // user defined functions
606 public class Xcls_leftpane : Object
609 private Xcls_MainWindow _this;
615 public Xcls_leftpane(Xcls_MainWindow _owner )
618 _this.leftpane = this;
619 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
623 // set gobject values
624 var child_0 = new Xcls_editpane( _this );
626 this.el.pack_start ( child_0.el , true,true,0 );
629 // user defined functions
631 public class Xcls_editpane : Object
634 private Xcls_MainWindow _this;
640 public Xcls_editpane(Xcls_MainWindow _owner )
643 _this.editpane = this;
644 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
648 // set gobject values
649 var child_0 = new Xcls_tree( _this );
651 this.el.add1 ( child_0.el );
652 var child_1 = new Xcls_props( _this );
654 this.el.add2 ( child_1.el );
657 // user defined functions
659 public class Xcls_tree : Object
662 private Xcls_MainWindow _this;
668 public Xcls_tree(Xcls_MainWindow _owner )
672 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
676 // set gobject values
679 // user defined functions
682 public class Xcls_props : Object
685 private Xcls_MainWindow _this;
691 public Xcls_props(Xcls_MainWindow _owner )
695 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
699 // set gobject values
702 // user defined functions
707 public class Xcls_Box21 : Object
710 private Xcls_MainWindow _this;
716 public Xcls_Box21(Xcls_MainWindow _owner )
719 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
723 // set gobject values
724 var child_0 = new Xcls_clutterembed( _this );
726 this.el.pack_start ( child_0.el , true,true,0 );
729 // user defined functions
731 public class Xcls_clutterembed : Object
733 public GtkClutter.Embed el;
734 private Xcls_MainWindow _this;
740 public Xcls_clutterembed(Xcls_MainWindow _owner )
743 _this.clutterembed = this;
744 this.el = new GtkClutter.Embed();
748 // set gobject values
749 var child_0 = new Xcls_rooview( _this );
751 this.el.get_stage().add_child ( child_0.el );
752 var child_1 = new Xcls_objectview( _this );
754 this.el.get_stage().add_child ( child_1.el );
755 var child_2 = new Xcls_codeeditview( _this );
757 this.el.get_stage().add_child ( child_2.el );
758 var child_3 = new Xcls_addpropsview( _this );
760 this.el.get_stage().add_child ( child_3.el );
761 var child_4 = new Xcls_projecteditview( _this );
763 this.el.get_stage().add_child ( child_4.el );
764 var child_5 = new Xcls_buttonlayout( _this );
766 this.el.get_stage().add_child ( child_5.el );
770 var stage = this.el.get_stage();
771 stage.set_background_color( Clutter.Color.from_string("#000"));
774 this.el.size_allocate.connect( ( alloc) => {
775 if (_this.windowstate == null) {
778 _this.windowstate.resizeCanvas();
783 // user defined functions
785 public class Xcls_rooview : Object
787 public GtkClutter.Actor el;
788 private Xcls_MainWindow _this;
794 public Xcls_rooview(Xcls_MainWindow _owner )
797 _this.rooview = this;
798 this.el = new GtkClutter.Actor();
802 // set gobject values
809 this.el.add_constraint(
810 new Clutter.AlignConstraint(
811 _this.clutterembed.el.get_stage(),
812 Clutter.AlignAxis.X_AXIS,
817 //this.el.set_position(100,100);
818 this.el.set_pivot_point(1.0f,1.0f);
820 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
821 _this.clutterembed.el.get_stage().height);
826 // user defined functions
829 public class Xcls_objectview : Object
831 public GtkClutter.Actor el;
832 private Xcls_MainWindow _this;
838 public Xcls_objectview(Xcls_MainWindow _owner )
841 _this.objectview = this;
842 this.el = new GtkClutter.Actor();
846 // set gobject values
853 this.el.add_constraint(
854 new Clutter.AlignConstraint(
855 _this.clutterembed.el.get_stage(),
856 Clutter.AlignAxis.X_AXIS,
861 this.el.fixed_x = 50.0f;
862 this.el.fixed_y = 0.0f;
863 //this.el.set_position(100,100);
864 this.el.set_pivot_point(0.0f,0.0f);
865 this.el.set_scale(0.0f,1.0f);
866 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
867 _this.clutterembed.el.get_stage().height);
872 // user defined functions
875 public class Xcls_codeeditview : Object
877 public GtkClutter.Actor el;
878 private Xcls_MainWindow _this;
884 public Xcls_codeeditview(Xcls_MainWindow _owner )
887 _this.codeeditview = this;
888 this.el = new GtkClutter.Actor();
892 // set gobject values
899 this.el.add_constraint(
900 new Clutter.AlignConstraint(
901 _this.clutterembed.el.get_stage(),
902 Clutter.AlignAxis.X_AXIS,
907 this.el.fixed_x = 50.0f;
908 this.el.fixed_y = 0.0f;
909 //this.el.set_position(100,100);
910 this.el.set_pivot_point(0.0f,0.0f);
911 this.el.set_scale(0.0f,1.0f);
912 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
913 _this.clutterembed.el.get_stage().height);
918 // user defined functions
921 public class Xcls_addpropsview : Object
923 public GtkClutter.Actor el;
924 private Xcls_MainWindow _this;
930 public Xcls_addpropsview(Xcls_MainWindow _owner )
933 _this.addpropsview = this;
934 this.el = new GtkClutter.Actor();
938 // set gobject values
945 this.el.add_constraint(
946 new Clutter.AlignConstraint(
947 _this.clutterembed.el.get_stage(),
948 Clutter.AlignAxis.X_AXIS,
953 this.el.fixed_x = 50.0f;
954 this.el.fixed_y = 0.0f;
955 //this.el.set_position(100,100);
956 this.el.set_pivot_point(0.0f,0.0f);
957 this.el.set_scale(0.0f,1.0f);
958 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
959 _this.clutterembed.el.get_stage().height);
964 // user defined functions
967 public class Xcls_projecteditview : Object
969 public GtkClutter.Actor el;
970 private Xcls_MainWindow _this;
976 public Xcls_projecteditview(Xcls_MainWindow _owner )
979 _this.projecteditview = this;
980 this.el = new GtkClutter.Actor();
984 // set gobject values
991 this.el.add_constraint(
992 new Clutter.AlignConstraint(
993 _this.clutterembed.el.get_stage(),
994 Clutter.AlignAxis.X_AXIS,
999 //this.el.set_position(100,100);
1000 this.el.set_pivot_point(0.0f,0.0f);
1001 this.el.set_scale(1.0f,0.0f);
1002 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1003 _this.clutterembed.el.get_stage().height /2);
1008 // user defined functions
1011 public class Xcls_buttonlayout : Object
1013 public Clutter.Actor el;
1014 private Xcls_MainWindow _this;
1020 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1023 _this.buttonlayout = this;
1024 this.el = new Clutter.Actor();
1028 // set gobject values
1029 var child_0 = new Xcls_BoxLayout29( _this );
1031 this.el.layout_manager = child_0.el;
1032 var child_1 = new Xcls_backbutton( _this );
1034 this.el.add_child ( child_1.el );
1035 var child_2 = new Xcls_projectbutton( _this );
1037 this.el.add_child ( child_2.el );
1038 var child_3 = new Xcls_editfilebutton( _this );
1040 this.el.add_child ( child_3.el );
1041 var child_4 = new Xcls_projecteditbutton( _this );
1043 this.el.add_child ( child_4.el );
1044 var child_5 = new Xcls_objectshowbutton( _this );
1046 this.el.add_child ( child_5.el );
1047 var child_6 = new Xcls_addpropbutton( _this );
1049 this.el.add_child ( child_6.el );
1050 var child_7 = new Xcls_addlistenerbutton( _this );
1052 this.el.add_child ( child_7.el );
1053 var child_8 = new Xcls_addprojectbutton( _this );
1055 this.el.add_child ( child_8.el );
1056 var child_9 = new Xcls_addfilebutton( _this );
1058 this.el.add_child ( child_9.el );
1059 var child_10 = new Xcls_delprojectbutton( _this );
1061 this.el.add_child ( child_10.el );
1067 this.el.add_constraint(
1068 new Clutter.AlignConstraint(
1069 _this.clutterembed.el.get_stage(),
1070 Clutter.AlignAxis.X_AXIS,
1076 //this.el.set_position(100,100);
1077 this.el.set_pivot_point(0.5f,0.5f);
1078 this.el.set_size(50,
1079 _this.clutterembed.el.get_stage().height);
1084 // user defined functions
1086 public class Xcls_BoxLayout29 : Object
1088 public Clutter.BoxLayout el;
1089 private Xcls_MainWindow _this;
1095 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1098 this.el = new Clutter.BoxLayout();
1102 // set gobject values
1103 this.el.orientation = Clutter.Orientation.VERTICAL;
1106 // user defined functions
1109 public class Xcls_backbutton : Object
1111 public Clutter.Actor el;
1112 private Xcls_MainWindow _this;
1118 public Xcls_backbutton(Xcls_MainWindow _owner )
1121 _this.backbutton = this;
1122 this.el = new Clutter.Actor();
1126 // set gobject values
1127 var child_0 = new Xcls_Actor31( _this );
1129 this.el.add_child ( child_0.el );
1133 this.el.set_size(50,50);
1136 // user defined functions
1138 public class Xcls_Actor31 : Object
1140 public GtkClutter.Actor el;
1141 private Xcls_MainWindow _this;
1147 public Xcls_Actor31(Xcls_MainWindow _owner )
1150 this.el = new GtkClutter.Actor();
1154 // set gobject values
1155 var child_0 = new Xcls_Button32( _this );
1160 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1163 // user defined functions
1165 public class Xcls_Button32 : Object
1167 public Gtk.Button el;
1168 private Xcls_MainWindow _this;
1174 public Xcls_Button32(Xcls_MainWindow _owner )
1177 this.el = new Gtk.Button();
1181 // set gobject values
1182 this.el.width_request = 50;
1183 this.el.height_request = 50;
1184 this.el.tooltip_text = "Back";
1185 var child_0 = new Xcls_Image33( _this );
1187 this.el.set_image ( child_0.el );
1190 this.el.clicked.connect( ( ) => {
1192 _this.windowstate.switchState(WindowState.State.PREVIEW);
1198 // user defined functions
1200 public class Xcls_Image33 : Object
1202 public Gtk.Image el;
1203 private Xcls_MainWindow _this;
1209 public Xcls_Image33(Xcls_MainWindow _owner )
1212 this.el = new Gtk.Image();
1216 // set gobject values
1217 this.el.icon_name = "go-previous";
1220 // user defined functions
1226 public class Xcls_projectbutton : Object
1228 public Clutter.Actor el;
1229 private Xcls_MainWindow _this;
1235 public Xcls_projectbutton(Xcls_MainWindow _owner )
1238 _this.projectbutton = this;
1239 this.el = new Clutter.Actor();
1243 // set gobject values
1244 var child_0 = new Xcls_Actor35( _this );
1246 this.el.add_child ( child_0.el );
1250 this.el.set_size(50,50);
1253 // user defined functions
1255 public class Xcls_Actor35 : Object
1257 public GtkClutter.Actor el;
1258 private Xcls_MainWindow _this;
1264 public Xcls_Actor35(Xcls_MainWindow _owner )
1267 this.el = new GtkClutter.Actor();
1271 // set gobject values
1272 var child_0 = new Xcls_Button36( _this );
1277 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1280 // user defined functions
1282 public class Xcls_Button36 : Object
1284 public Gtk.Button el;
1285 private Xcls_MainWindow _this;
1291 public Xcls_Button36(Xcls_MainWindow _owner )
1294 this.el = new Gtk.Button();
1298 // set gobject values
1299 this.el.width_request = 50;
1300 this.el.height_request = 50;
1301 var child_0 = new Xcls_Image37( _this );
1303 this.el.set_image ( child_0.el );
1306 this.el.clicked.connect( ( ) => {
1307 _this.windowstate.switchState(WindowState.State.FILES);
1313 // user defined functions
1315 public class Xcls_Image37 : Object
1317 public Gtk.Image el;
1318 private Xcls_MainWindow _this;
1324 public Xcls_Image37(Xcls_MainWindow _owner )
1327 this.el = new Gtk.Image();
1331 // set gobject values
1332 this.el.icon_name = "document-open";
1335 // user defined functions
1341 public class Xcls_editfilebutton : Object
1343 public Clutter.Actor el;
1344 private Xcls_MainWindow _this;
1350 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1353 _this.editfilebutton = this;
1354 this.el = new Clutter.Actor();
1358 // set gobject values
1359 var child_0 = new Xcls_Actor39( _this );
1361 this.el.add_child ( child_0.el );
1365 this.el.set_size(50.0f,50.0f);
1368 // user defined functions
1370 public class Xcls_Actor39 : Object
1372 public GtkClutter.Actor el;
1373 private Xcls_MainWindow _this;
1379 public Xcls_Actor39(Xcls_MainWindow _owner )
1382 this.el = new GtkClutter.Actor();
1386 // set gobject values
1387 var child_0 = new Xcls_Button40( _this );
1392 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1395 // user defined functions
1397 public class Xcls_Button40 : Object
1399 public Gtk.Button el;
1400 private Xcls_MainWindow _this;
1406 public Xcls_Button40(Xcls_MainWindow _owner )
1409 this.el = new Gtk.Button();
1413 // set gobject values
1414 this.el.width_request = 50;
1415 this.el.height_request = 50;
1416 this.el.tooltip_text = "File Details";
1417 var child_0 = new Xcls_Image41( _this );
1419 this.el.set_image ( child_0.el );
1422 this.el.clicked.connect( ( ) => {
1424 // create a new file in project..
1425 if (_this.project == null || _this.windowstate.file == null) {
1428 _this.windowstate.file_details.show(
1429 _this.windowstate.file, this.el
1438 // user defined functions
1440 public class Xcls_Image41 : Object
1442 public Gtk.Image el;
1443 private Xcls_MainWindow _this;
1449 public Xcls_Image41(Xcls_MainWindow _owner )
1452 this.el = new Gtk.Image();
1456 // set gobject values
1457 this.el.icon_name = "document-properties";
1460 // user defined functions
1466 public class Xcls_projecteditbutton : Object
1468 public Clutter.Actor el;
1469 private Xcls_MainWindow _this;
1475 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1478 _this.projecteditbutton = this;
1479 this.el = new Clutter.Actor();
1483 // set gobject values
1484 var child_0 = new Xcls_Actor43( _this );
1486 this.el.add_child ( child_0.el );
1490 this.el.set_size(50,50);
1493 // user defined functions
1495 public class Xcls_Actor43 : Object
1497 public GtkClutter.Actor el;
1498 private Xcls_MainWindow _this;
1504 public Xcls_Actor43(Xcls_MainWindow _owner )
1507 this.el = new GtkClutter.Actor();
1511 // set gobject values
1512 var child_0 = new Xcls_Button44( _this );
1517 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1520 // user defined functions
1522 public class Xcls_Button44 : Object
1524 public Gtk.Button el;
1525 private Xcls_MainWindow _this;
1531 public Xcls_Button44(Xcls_MainWindow _owner )
1534 this.el = new Gtk.Button();
1538 // set gobject values
1539 this.el.width_request = 50;
1540 this.el.height_request = 50;
1541 this.el.tooltip_text = "Project Details";
1542 var child_0 = new Xcls_Image45( _this );
1544 this.el.set_image ( child_0.el );
1547 this.el.clicked.connect( ( ) => {
1548 _this.windowstate.switchState(WindowState.State.PROJECT);
1555 // user defined functions
1557 public class Xcls_Image45 : Object
1559 public Gtk.Image el;
1560 private Xcls_MainWindow _this;
1566 public Xcls_Image45(Xcls_MainWindow _owner )
1569 this.el = new Gtk.Image();
1573 // set gobject values
1574 this.el.icon_name = "emblem-system";
1577 // user defined functions
1583 public class Xcls_objectshowbutton : Object
1585 public Clutter.Actor el;
1586 private Xcls_MainWindow _this;
1592 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1595 _this.objectshowbutton = this;
1596 this.el = new Clutter.Actor();
1600 // set gobject values
1601 var child_0 = new Xcls_Actor47( _this );
1603 this.el.add_child ( child_0.el );
1607 this.el.set_size(50,50);
1610 this.el.enter_event.connect( ( event) => {
1611 this.el.background_color = Clutter.Color.from_string("#333");
1614 this.el.leave_event.connect( ( event) => {
1615 this.el.background_color = Clutter.Color.from_string("#000");
1620 // user defined functions
1622 public class Xcls_Actor47 : Object
1624 public GtkClutter.Actor el;
1625 private Xcls_MainWindow _this;
1631 public Xcls_Actor47(Xcls_MainWindow _owner )
1634 this.el = new GtkClutter.Actor();
1638 // set gobject values
1639 var child_0 = new Xcls_Button48( _this );
1644 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1647 // user defined functions
1649 public class Xcls_Button48 : Object
1651 public Gtk.Button el;
1652 private Xcls_MainWindow _this;
1658 public Xcls_Button48(Xcls_MainWindow _owner )
1661 this.el = new Gtk.Button();
1665 // set gobject values
1666 this.el.width_request = 50;
1667 this.el.height_request = 50;
1668 this.el.tooltip_text = "Add Child Element";
1669 var child_0 = new Xcls_Image49( _this );
1671 this.el.set_image ( child_0.el );
1674 this.el.clicked.connect( ( ) => {
1676 _this.windowstate.switchState(WindowState.State.OBJECT);
1682 // user defined functions
1684 public class Xcls_Image49 : Object
1686 public Gtk.Image el;
1687 private Xcls_MainWindow _this;
1693 public Xcls_Image49(Xcls_MainWindow _owner )
1696 this.el = new Gtk.Image();
1700 // set gobject values
1701 this.el.icon_name = "list-add";
1704 // user defined functions
1710 public class Xcls_addpropbutton : Object
1712 public Clutter.Actor el;
1713 private Xcls_MainWindow _this;
1719 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1722 _this.addpropbutton = this;
1723 this.el = new Clutter.Actor();
1727 // set gobject values
1728 var child_0 = new Xcls_Actor51( _this );
1730 this.el.add_child ( child_0.el );
1734 this.el.set_size(50,50);
1737 // user defined functions
1739 public class Xcls_Actor51 : Object
1741 public GtkClutter.Actor el;
1742 private Xcls_MainWindow _this;
1748 public Xcls_Actor51(Xcls_MainWindow _owner )
1751 this.el = new GtkClutter.Actor();
1755 // set gobject values
1756 var child_0 = new Xcls_Button52( _this );
1761 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1764 // user defined functions
1766 public class Xcls_Button52 : Object
1768 public Gtk.Button el;
1769 private Xcls_MainWindow _this;
1775 public Xcls_Button52(Xcls_MainWindow _owner )
1778 this.el = new Gtk.Button();
1782 // set gobject values
1783 this.el.width_request = 50;
1784 this.el.height_request = 50;
1785 this.el.tooltip_text = "Add Property";
1786 var child_0 = new Xcls_Image53( _this );
1788 this.el.set_image ( child_0.el );
1791 this.el.clicked.connect( ( ) => {
1793 _this.windowstate.switchState(WindowState.State.PROP);
1799 // user defined functions
1801 public class Xcls_Image53 : Object
1803 public Gtk.Image el;
1804 private Xcls_MainWindow _this;
1810 public Xcls_Image53(Xcls_MainWindow _owner )
1813 this.el = new Gtk.Image();
1817 // set gobject values
1818 this.el.icon_name = "format-justify-left";
1821 // user defined functions
1827 public class Xcls_addlistenerbutton : Object
1829 public Clutter.Actor el;
1830 private Xcls_MainWindow _this;
1836 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1839 _this.addlistenerbutton = this;
1840 this.el = new Clutter.Actor();
1844 // set gobject values
1845 var child_0 = new Xcls_Actor55( _this );
1847 this.el.add_child ( child_0.el );
1851 this.el.set_size(50,50);
1854 // user defined functions
1856 public class Xcls_Actor55 : Object
1858 public GtkClutter.Actor el;
1859 private Xcls_MainWindow _this;
1865 public Xcls_Actor55(Xcls_MainWindow _owner )
1868 this.el = new GtkClutter.Actor();
1872 // set gobject values
1873 var child_0 = new Xcls_Button56( _this );
1878 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1881 // user defined functions
1883 public class Xcls_Button56 : Object
1885 public Gtk.Button el;
1886 private Xcls_MainWindow _this;
1892 public Xcls_Button56(Xcls_MainWindow _owner )
1895 this.el = new Gtk.Button();
1899 // set gobject values
1900 this.el.width_request = 50;
1901 this.el.height_request = 50;
1902 this.el.tooltip_text = "Add Event Code";
1903 var child_0 = new Xcls_Image57( _this );
1905 this.el.set_image ( child_0.el );
1908 this.el.clicked.connect( ( ) => {
1910 _this.windowstate.switchState(WindowState.State.LISTENER);
1917 // user defined functions
1919 public class Xcls_Image57 : Object
1921 public Gtk.Image el;
1922 private Xcls_MainWindow _this;
1928 public Xcls_Image57(Xcls_MainWindow _owner )
1931 this.el = new Gtk.Image();
1935 // set gobject values
1936 this.el.icon_name = "appointment-new";
1939 // user defined functions
1945 public class Xcls_addprojectbutton : Object
1947 public Clutter.Actor el;
1948 private Xcls_MainWindow _this;
1954 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1957 _this.addprojectbutton = this;
1958 this.el = new Clutter.Actor();
1962 // set gobject values
1963 var child_0 = new Xcls_Actor59( _this );
1965 this.el.add_child ( child_0.el );
1969 this.el.set_size(50.0f,50.0f);
1972 // user defined functions
1974 public class Xcls_Actor59 : Object
1976 public GtkClutter.Actor el;
1977 private Xcls_MainWindow _this;
1983 public Xcls_Actor59(Xcls_MainWindow _owner )
1986 this.el = new GtkClutter.Actor();
1990 // set gobject values
1991 var child_0 = new Xcls_Button60( _this );
1996 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1999 // user defined functions
2001 public class Xcls_Button60 : Object
2003 public Gtk.Button el;
2004 private Xcls_MainWindow _this;
2010 public Xcls_Button60(Xcls_MainWindow _owner )
2013 this.el = new Gtk.Button();
2017 // set gobject values
2018 this.el.width_request = 50;
2019 this.el.height_request = 50;
2020 this.el.tooltip_text = "New\nProj.";
2021 var child_0 = new Xcls_Image61( _this );
2023 this.el.set_image ( child_0.el );
2026 this.el.clicked.connect( ( ) => {
2028 // create a new file in project..
2029 //Xcls_DialogNewComponent.singleton().show(
2030 var pe = EditProject.singleton();
2031 pe.el.set_transient_for(_this.el);
2032 pe.el.set_modal(true);
2041 _this.windowstate.left_projects.is_loaded = false;
2042 _this.windowstate.left_projects.load();
2043 _this.windowstate.left_projects.selectProject(p);
2050 // user defined functions
2052 public class Xcls_Image61 : Object
2054 public Gtk.Image el;
2055 private Xcls_MainWindow _this;
2061 public Xcls_Image61(Xcls_MainWindow _owner )
2064 this.el = new Gtk.Image();
2068 // set gobject values
2069 this.el.icon_name = "folder-new";
2072 // user defined functions
2078 public class Xcls_addfilebutton : Object
2080 public Clutter.Actor el;
2081 private Xcls_MainWindow _this;
2087 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2090 _this.addfilebutton = this;
2091 this.el = new Clutter.Actor();
2095 // set gobject values
2096 var child_0 = new Xcls_Actor63( _this );
2098 this.el.add_child ( child_0.el );
2102 this.el.set_size(50.0f,50.0f);
2105 // user defined functions
2107 public class Xcls_Actor63 : Object
2109 public GtkClutter.Actor el;
2110 private Xcls_MainWindow _this;
2116 public Xcls_Actor63(Xcls_MainWindow _owner )
2119 this.el = new GtkClutter.Actor();
2123 // set gobject values
2124 var child_0 = new Xcls_Button64( _this );
2129 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2132 // user defined functions
2134 public class Xcls_Button64 : Object
2136 public Gtk.Button el;
2137 private Xcls_MainWindow _this;
2143 public Xcls_Button64(Xcls_MainWindow _owner )
2146 this.el = new Gtk.Button();
2150 // set gobject values
2151 this.el.width_request = 50;
2152 this.el.height_request = 50;
2153 this.el.tooltip_text = "Add File";
2154 var child_0 = new Xcls_Image65( _this );
2156 this.el.set_image ( child_0.el );
2159 this.el.clicked.connect( () => {
2160 // create a new file in project..
2161 print("add file selected\n");
2162 // what's the currently selected project...
2163 var proj = _this.windowstate.left_projects.getSelectedProject();
2166 print("no project selected?\n");
2170 print("creating file?");
2172 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2173 _this.project = proj;
2174 print("showing popup?");
2175 _this.windowstate.file_details.show(
2184 // user defined functions
2186 public class Xcls_Image65 : Object
2188 public Gtk.Image el;
2189 private Xcls_MainWindow _this;
2195 public Xcls_Image65(Xcls_MainWindow _owner )
2198 this.el = new Gtk.Image();
2202 // set gobject values
2203 this.el.icon_name = "document-new";
2206 // user defined functions
2212 public class Xcls_delprojectbutton : Object
2214 public Clutter.Actor el;
2215 private Xcls_MainWindow _this;
2221 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2224 _this.delprojectbutton = this;
2225 this.el = new Clutter.Actor();
2229 // set gobject values
2230 var child_0 = new Xcls_Actor67( _this );
2232 this.el.add_child ( child_0.el );
2236 this.el.set_size(50,50);
2239 // user defined functions
2241 public class Xcls_Actor67 : Object
2243 public GtkClutter.Actor el;
2244 private Xcls_MainWindow _this;
2250 public Xcls_Actor67(Xcls_MainWindow _owner )
2253 this.el = new GtkClutter.Actor();
2257 // set gobject values
2258 var child_0 = new Xcls_Button68( _this );
2263 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2266 // user defined functions
2268 public class Xcls_Button68 : Object
2270 public Gtk.Button el;
2271 private Xcls_MainWindow _this;
2277 public Xcls_Button68(Xcls_MainWindow _owner )
2280 this.el = new Gtk.Button();
2284 // set gobject values
2285 this.el.width_request = 50;
2286 this.el.height_request = 50;
2287 this.el.tooltip_text = "Delete Project";
2288 var child_0 = new Xcls_Image69( _this );
2290 this.el.set_image ( child_0.el );
2293 this.el.clicked.connect( ( ) => {
2295 var cd = DialogConfirm.singleton();
2296 cd.el.set_transient_for(_this.el);
2297 cd.el.set_modal(true);
2299 var project = _this.windowstate.left_projects.getSelectedProject();
2300 if (project == null) {
2301 print("SKIP - no project\n");
2306 if (Gtk.ResponseType.YES != cd.show("Confirm",
2307 "Are you sure you want to delete project %s".printf(project.name))) {
2313 Project.Project.remove(project);
2314 _this.project = null;
2316 _this.windowstate.left_projects.is_loaded = false;
2317 _this.windowstate.left_projects.load();
2318 _this.windowstate.clutterfiles.clearFiles();
2323 // user defined functions
2325 public class Xcls_Image69 : Object
2327 public Gtk.Image el;
2328 private Xcls_MainWindow _this;
2334 public Xcls_Image69(Xcls_MainWindow _owner )
2337 this.el = new Gtk.Image();
2341 // set gobject values
2342 this.el.icon_name = "user-trash";
2345 // user defined functions
2355 public class Xcls_Box70 : Object
2358 private Xcls_MainWindow _this;
2364 public Xcls_Box70(Xcls_MainWindow _owner )
2367 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2371 // set gobject values
2372 this.el.homogeneous = false;
2373 var child_0 = new Xcls_Label71( _this );
2375 this.el.pack_start ( child_0.el , true,true,0 );
2376 var child_1 = new Xcls_statusbar( _this );
2378 this.el.pack_start ( child_1.el , true,true,0 );
2379 var child_2 = new Xcls_search_entry( _this );
2381 this.el.pack_start ( child_2.el , false,true,0 );
2382 var child_3 = new Xcls_MenuBar74( _this );
2384 this.el.pack_end ( child_3.el , false,true,0 );
2387 // user defined functions
2389 public class Xcls_Label71 : Object
2391 public Gtk.Label el;
2392 private Xcls_MainWindow _this;
2398 public Xcls_Label71(Xcls_MainWindow _owner )
2401 this.el = new Gtk.Label( " " );
2405 // set gobject values
2408 // user defined functions
2411 public class Xcls_statusbar : Object
2413 public Gtk.ProgressBar el;
2414 private Xcls_MainWindow _this;
2418 public ulong handler_id;
2421 public Xcls_statusbar(Xcls_MainWindow _owner )
2424 _this.statusbar = this;
2425 this.el = new Gtk.ProgressBar();
2428 this.handler_id = -1;
2430 // set gobject values
2431 this.el.show_text = true;
2436 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2439 _this.mainpane.el.set_sensitive(true);
2443 _this.mainpane.el.set_sensitive(false);
2445 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2446 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2452 // user defined functions
2455 public class Xcls_search_entry : Object
2457 public Gtk.SearchEntry el;
2458 private Xcls_MainWindow _this;
2464 public Xcls_search_entry(Xcls_MainWindow _owner )
2467 _this.search_entry = this;
2468 this.el = new Gtk.SearchEntry();
2472 // set gobject values
2476 var description = Pango.FontDescription.from_string("monospace");
2477 description.set_size(8000);
2478 this.el.override_font(description);
2481 this.el.key_press_event.connect( (event) => {
2483 if (event.keyval == Gdk.Key.Return) {
2484 this.forwardSearch(false);
2488 // print(event.key.keyval)
2493 this.el.changed.connect( () => {
2494 if (this.el.text == "") {
2495 _this.search_results.el.hide();
2499 switch(_this.windowstate.state) {
2500 case WindowState.State.CODEONLY:
2501 case WindowState.State.CODE:
2502 // search the code being edited..
2503 res = _this.windowstate.code_editor.search(this.el.text);
2506 case WindowState.State.PREVIEW:
2507 if (_this.windowstate.file.xtype == "Gtk") {
2508 res = _this.windowstate.window_gladeview.search(this.el.text);
2510 res = _this.windowstate.window_rooview.search(this.el.text);
2516 _this.search_results.el.show();
2518 _this.search_results.el.label = "%d Matches".printf(res);
2520 _this.search_results.el.label = "No Matches";
2528 // user defined functions
2529 public void forwardSearch (bool change_focus) {
2530 switch(_this.windowstate.state) {
2531 case WindowState.State.CODEONLY:
2532 case WindowState.State.CODE:
2533 // search the code being edited..
2534 _this.windowstate.code_editor.forwardSearch(change_focus);
2537 case WindowState.State.PREVIEW:
2538 if (_this.windowstate.file.xtype == "Gtk") {
2539 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2541 _this.windowstate.window_rooview.forwardSearch(change_focus);
2550 public class Xcls_MenuBar74 : Object
2552 public Gtk.MenuBar el;
2553 private Xcls_MainWindow _this;
2559 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2562 this.el = new Gtk.MenuBar();
2566 // set gobject values
2567 var child_0 = new Xcls_search_results( _this );
2569 this.el.add ( child_0.el );
2570 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2572 this.el.add ( child_1.el );
2573 var child_2 = new Xcls_statusbar_errors( _this );
2575 this.el.add ( child_2.el );
2576 var child_3 = new Xcls_statusbar_warnings( _this );
2578 this.el.add ( child_3.el );
2579 var child_4 = new Xcls_statusbar_depricated( _this );
2581 this.el.add ( child_4.el );
2582 var child_5 = new Xcls_statusbar_run( _this );
2584 this.el.add ( child_5.el );
2587 // user defined functions
2589 public class Xcls_search_results : Object
2591 public Gtk.ImageMenuItem el;
2592 private Xcls_MainWindow _this;
2596 public Xcls_ValaCompileErrors popup;
2599 public Xcls_search_results(Xcls_MainWindow _owner )
2602 _this.search_results = this;
2603 this.el = new Gtk.ImageMenuItem();
2607 // set gobject values
2608 this.el.always_show_image = true;
2609 this.el.label = "Matches";
2610 var child_0 = new Xcls_Image76( _this );
2612 this.el.set_image ( child_0.el );
2615 this.el.button_press_event.connect( () => {
2617 if (this.popup == null) {
2618 this.popup = new Xcls_ValaCompileErrors();
2619 this.popup.window = _this;
2623 this.popup.show(this.notices, this.el);
2629 // user defined functions
2631 public class Xcls_Image76 : Object
2633 public Gtk.Image el;
2634 private Xcls_MainWindow _this;
2640 public Xcls_Image76(Xcls_MainWindow _owner )
2643 this.el = new Gtk.Image();
2647 // set gobject values
2648 this.el.icon_name = "system-search";
2649 this.el.sensitive = false;
2652 // user defined functions
2656 public class Xcls_statusbar_compilestatus_label : Object
2658 public Gtk.MenuItem el;
2659 private Xcls_MainWindow _this;
2665 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2668 _this.statusbar_compilestatus_label = this;
2669 this.el = new Gtk.MenuItem();
2673 // set gobject values
2674 this.el.label = "Compile Status:";
2677 // user defined functions
2680 public class Xcls_statusbar_errors : Object
2682 public Gtk.ImageMenuItem el;
2683 private Xcls_MainWindow _this;
2687 public Xcls_ValaCompileErrors popup;
2688 public Json.Object notices;
2691 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2694 _this.statusbar_errors = this;
2695 this.el = new Gtk.ImageMenuItem();
2698 this.notices = new Json.Object() ;
2700 // set gobject values
2701 this.el.always_show_image = true;
2702 this.el.label = "Errors";
2703 var child_0 = new Xcls_Image79( _this );
2705 this.el.set_image ( child_0.el );
2708 this.el.button_press_event.connect( () => {
2709 if (this.popup == null) {
2710 this.popup = new Xcls_ValaCompileErrors();
2711 this.popup.window = _this;
2715 this.popup.show(this.notices, this.el);
2720 // user defined functions
2721 public void setNotices (Json.Object nots, int qty) {
2723 this.el.label = qty.to_string() + " Errors";
2724 this.notices = nots;
2728 public class Xcls_Image79 : Object
2730 public Gtk.Image el;
2731 private Xcls_MainWindow _this;
2737 public Xcls_Image79(Xcls_MainWindow _owner )
2740 this.el = new Gtk.Image();
2744 // set gobject values
2745 this.el.icon_name = "dialog-error";
2748 // user defined functions
2752 public class Xcls_statusbar_warnings : Object
2754 public Gtk.ImageMenuItem el;
2755 private Xcls_MainWindow _this;
2759 public Xcls_ValaCompileErrors popup;
2760 public Json.Object notices;
2763 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2766 _this.statusbar_warnings = this;
2767 this.el = new Gtk.ImageMenuItem();
2770 this.notices = new Json.Object();
2772 // set gobject values
2773 this.el.always_show_image = true;
2774 this.el.label = "Warnings";
2775 var child_0 = new Xcls_Image81( _this );
2777 this.el.set_image ( child_0.el );
2780 this.el.button_press_event.connect( () => {
2781 if (this.popup == null) {
2782 this.popup = new Xcls_ValaCompileErrors();
2783 this.popup.window = _this;
2786 this.popup.show(this.notices, this.el);
2791 // user defined functions
2792 public void setNotices (Json.Object nots, int qty) {
2794 this.el.label = qty.to_string() + " Warnings";
2795 this.notices = nots;
2799 public class Xcls_Image81 : Object
2801 public Gtk.Image el;
2802 private Xcls_MainWindow _this;
2808 public Xcls_Image81(Xcls_MainWindow _owner )
2811 this.el = new Gtk.Image();
2815 // set gobject values
2816 this.el.icon_name = "dialog-warning";
2819 // user defined functions
2823 public class Xcls_statusbar_depricated : Object
2825 public Gtk.ImageMenuItem el;
2826 private Xcls_MainWindow _this;
2830 public Xcls_ValaCompileErrors popup;
2831 public Json.Object notices;
2834 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2837 _this.statusbar_depricated = this;
2838 this.el = new Gtk.ImageMenuItem();
2841 this.notices = new Json.Object();
2843 // set gobject values
2844 this.el.always_show_image = true;
2845 this.el.label = "Depricated";
2846 var child_0 = new Xcls_Image83( _this );
2848 this.el.set_image ( child_0.el );
2851 this.el.button_press_event.connect( () => {
2852 if (this.popup == null) {
2853 this.popup = new Xcls_ValaCompileErrors();
2854 this.popup.window = _this;
2858 this.popup.show(this.notices, this.el);
2863 // user defined functions
2864 public void setNotices (Json.Object nots, int qty) {
2866 this.el.label = qty.to_string() + " Depricated";
2867 this.notices = nots;
2871 public class Xcls_Image83 : Object
2873 public Gtk.Image el;
2874 private Xcls_MainWindow _this;
2880 public Xcls_Image83(Xcls_MainWindow _owner )
2883 this.el = new Gtk.Image();
2887 // set gobject values
2888 this.el.icon_name = "dialog-information";
2891 // user defined functions
2895 public class Xcls_statusbar_run : Object
2897 public Gtk.ImageMenuItem el;
2898 private Xcls_MainWindow _this;
2902 public Xcls_ValaCompileErrors popup;
2905 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2908 _this.statusbar_run = this;
2909 this.el = new Gtk.ImageMenuItem();
2913 // set gobject values
2914 this.el.always_show_image = true;
2915 this.el.label = "Run";
2916 var child_0 = new Xcls_Image85( _this );
2918 this.el.set_image ( child_0.el );
2921 this.el.button_press_event.connect( () => {
2922 if (_this.windowstate.file == null) {
2925 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2927 _this.windowstate.compile_results.show(this.el,true);
2933 // user defined functions
2935 public class Xcls_Image85 : Object
2937 public Gtk.Image el;
2938 private Xcls_MainWindow _this;
2944 public Xcls_Image85(Xcls_MainWindow _owner )
2947 this.el = new Gtk.Image();
2951 // set gobject values
2952 this.el.icon_name = "media-playback-start";
2955 // user defined functions