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_windownew windownew;
17 public Xcls_open_projects_btn open_projects_btn;
18 public Xcls_vbox vbox;
19 public Xcls_mainpane mainpane;
20 public Xcls_leftpane leftpane;
21 public Xcls_editpane editpane;
22 public Xcls_tree tree;
23 public Xcls_props props;
24 public Xcls_rooviewbox rooviewbox;
25 public Xcls_codeeditviewbox codeeditviewbox;
26 public Xcls_topbarmenu topbarmenu;
27 public Xcls_statusbar statusbar;
28 public Xcls_search_entry search_entry;
29 public Xcls_search_results search_results;
30 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
31 public Xcls_statusbar_errors statusbar_errors;
32 public Xcls_statusbar_warnings statusbar_warnings;
33 public Xcls_statusbar_depricated statusbar_depricated;
34 public Xcls_statusbar_run statusbar_run;
35 public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
38 public Project.Project project;
40 public int no_windows;
41 public WindowState windowstate;
44 public Xcls_MainWindow()
47 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
51 this.title = "Roo Application Builder";
53 this.windowstate = null;
56 this.el.border_width = 0;
57 this.el.default_height = 850;
58 this.el.default_width = 1200;
59 var child_0 = new Xcls_headerbar( _this );
61 this.el.set_titlebar ( child_0.el );
62 var child_1 = new Xcls_vbox( _this );
64 this.el.add ( child_1.el );
70 this.el.set_icon_name("roobuilder");
71 //} catch (Exception e) {
72 // print("no icon found");
76 this.el.delete_event.connect( ( event) => {
79 this.el.destroy.connect( () => {
80 Xcls_MainWindow.singleton().no_windows--;
82 Resources.singleton().disconnect(_this.statusbar.handler_id);
85 if (Xcls_MainWindow.singleton().no_windows < 1) {
90 this.el.show.connect( ( ) => {
91 // hide the file editing..
93 //this.hideViewEditing();
94 _this.statusbar.el.hide();
95 _this.statusbar_errors.el.hide();
96 _this.statusbar_warnings.el.hide();
97 _this.statusbar_depricated.el.hide();
98 _this.statusbar_compile_spinner.el.hide();
100 Resources.singleton().checkResources();
103 this.el.key_release_event.connect( (event) => {
105 if (this.search_entry.el.is_visible()) {
106 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
107 print("SAVE: ctrl-f pressed");
108 this.search_entry.el.grab_focus();
112 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
113 print("SAVE: ctrl-g pressed");
114 this.search_entry.forwardSearch(true);
120 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
121 print("SAVE: ctrl-n pressed");
122 this.openNewWindow();
126 // print(event.key.keyval)
133 // user defined functions
134 public void openNewWindow () {
135 Xcls_MainWindow.singleton().no_windows++;
136 var w = new Xcls_MainWindow();
141 w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project);
142 // should open the file dialog...
143 //w.windowstate.switchState(WindowState.State.FILES);
145 public void initChildren () {
146 // this needs putting in a better place..
147 this.windowstate = new WindowState(this);
157 public void show () {
162 public void setTitle (string str) {
163 this.headerbar.el.set_title(this.title + " - " + str);
165 public class Xcls_headerbar : Object
167 public Gtk.HeaderBar el;
168 private Xcls_MainWindow _this;
174 public Xcls_headerbar(Xcls_MainWindow _owner )
177 _this.headerbar = this;
178 this.el = new Gtk.HeaderBar();
182 // set gobject values
183 this.el.title = "Application Builder";
184 this.el.show_close_button = true;
185 var child_0 = new Xcls_Box3( _this );
187 this.el.pack_start ( child_0.el );
190 // user defined functions
192 public class Xcls_Box3 : Object
195 private Xcls_MainWindow _this;
201 public Xcls_Box3(Xcls_MainWindow _owner )
204 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
208 // set gobject values
209 var child_0 = new Xcls_windownew( _this );
211 this.el.add ( child_0.el );
212 var child_1 = new Xcls_open_projects_btn( _this );
214 this.el.add ( child_1.el );
217 // user defined functions
219 public class Xcls_windownew : Object
221 public Gtk.Button el;
222 private Xcls_MainWindow _this;
228 public Xcls_windownew(Xcls_MainWindow _owner )
231 _this.windownew = this;
232 this.el = new Gtk.Button();
236 // set gobject values
237 this.el.always_show_image = true;
238 this.el.label = "New Window";
239 var child_0 = new Xcls_Image5( _this );
241 this.el.set_image ( child_0.el );
244 this.el.clicked.connect( ( ) => {
245 _this.openNewWindow();
251 // user defined functions
253 public class Xcls_Image5 : Object
256 private Xcls_MainWindow _this;
262 public Xcls_Image5(Xcls_MainWindow _owner )
265 this.el = new Gtk.Image();
269 // set gobject values
270 this.el.icon_name = "window-new";
273 // user defined functions
277 public class Xcls_open_projects_btn : Object
279 public Gtk.Button el;
280 private Xcls_MainWindow _this;
286 public Xcls_open_projects_btn(Xcls_MainWindow _owner )
289 _this.open_projects_btn = this;
290 this.el = new Gtk.Button();
294 // set gobject values
295 this.el.always_show_image = true;
296 this.el.label = "Files / Projects";
297 var child_0 = new Xcls_Image7( _this );
299 this.el.set_image ( child_0.el );
302 this.el.clicked.connect( ( ) => {
303 _this.windowstate.showPopoverFiles(this.el, _this.project);
308 // user defined functions
310 public class Xcls_Image7 : Object
313 private Xcls_MainWindow _this;
319 public Xcls_Image7(Xcls_MainWindow _owner )
322 this.el = new Gtk.Image();
326 // set gobject values
327 this.el.icon_name = "system-file-manager";
330 // user defined functions
336 public class Xcls_vbox : Object
339 private Xcls_MainWindow _this;
345 public Xcls_vbox(Xcls_MainWindow _owner )
349 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
353 // set gobject values
354 this.el.homogeneous = false;
355 var child_0 = new Xcls_mainpane( _this );
357 this.el.pack_start ( child_0.el , true,true,0 );
358 var child_1 = new Xcls_Box17( _this );
360 this.el.pack_end ( child_1.el , false,true,0 );
363 // user defined functions
365 public class Xcls_mainpane : Object
368 private Xcls_MainWindow _this;
372 public int lastWidth;
375 public Xcls_mainpane(Xcls_MainWindow _owner )
378 _this.mainpane = this;
379 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
384 // set gobject values
385 this.el.position = 400;
386 var child_0 = new Xcls_leftpane( _this );
388 this.el.add ( child_0.el );
389 var child_1 = new Xcls_Box14( _this );
391 this.el.add2 ( child_1.el );
394 // user defined functions
396 public class Xcls_leftpane : Object
399 private Xcls_MainWindow _this;
405 public Xcls_leftpane(Xcls_MainWindow _owner )
408 _this.leftpane = this;
409 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
413 // set gobject values
414 var child_0 = new Xcls_editpane( _this );
416 this.el.pack_start ( child_0.el , true,true,0 );
419 // user defined functions
421 public class Xcls_editpane : Object
424 private Xcls_MainWindow _this;
430 public Xcls_editpane(Xcls_MainWindow _owner )
433 _this.editpane = this;
434 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
438 // set gobject values
439 var child_0 = new Xcls_tree( _this );
441 this.el.add1 ( child_0.el );
442 var child_1 = new Xcls_props( _this );
444 this.el.add2 ( child_1.el );
447 this.el.accept_position.connect( () => {
448 GLib.debug("Accept postion");
451 this.el.move_handle.connect( (scroll) => {
452 GLib.debug("Move handle");
457 // user defined functions
459 public class Xcls_tree : Object
462 private Xcls_MainWindow _this;
468 public Xcls_tree(Xcls_MainWindow _owner )
472 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
476 // set gobject values
479 // user defined functions
482 public class Xcls_props : Object
485 private Xcls_MainWindow _this;
491 public Xcls_props(Xcls_MainWindow _owner )
495 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
499 // set gobject values
502 // user defined functions
507 public class Xcls_Box14 : Object
510 private Xcls_MainWindow _this;
516 public Xcls_Box14(Xcls_MainWindow _owner )
519 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
523 // set gobject values
524 var child_0 = new Xcls_rooviewbox( _this );
526 this.el.add ( child_0.el );
527 var child_1 = new Xcls_codeeditviewbox( _this );
529 this.el.add ( child_1.el );
532 // user defined functions
534 public class Xcls_rooviewbox : Object
537 private Xcls_MainWindow _this;
543 public Xcls_rooviewbox(Xcls_MainWindow _owner )
546 _this.rooviewbox = this;
547 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
551 // set gobject values
552 this.el.vexpand = true;
555 // user defined functions
558 public class Xcls_codeeditviewbox : Object
561 private Xcls_MainWindow _this;
567 public Xcls_codeeditviewbox(Xcls_MainWindow _owner )
570 _this.codeeditviewbox = this;
571 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
575 // set gobject values
576 this.el.vexpand = true;
579 // user defined functions
584 public class Xcls_Box17 : Object
587 private Xcls_MainWindow _this;
593 public Xcls_Box17(Xcls_MainWindow _owner )
596 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
600 // set gobject values
601 this.el.homogeneous = false;
602 var child_0 = new Xcls_Button18( _this );
604 this.el.add ( child_0.el );
605 var child_1 = new Xcls_Button20( _this );
607 this.el.add ( child_1.el );
608 var child_2 = new Xcls_MenuButton22( _this );
610 this.el.add ( child_2.el );
611 var child_3 = new Xcls_Label27( _this );
613 this.el.pack_start ( child_3.el , true,true,0 );
614 var child_4 = new Xcls_statusbar( _this );
616 this.el.pack_start ( child_4.el , true,true,0 );
617 var child_5 = new Xcls_search_entry( _this );
619 this.el.pack_start ( child_5.el , false,true,0 );
620 var child_6 = new Xcls_MenuBar30( _this );
622 this.el.add ( child_6.el );
623 var child_7 = new Xcls_statusbar_compile_spinner( _this );
625 this.el.add ( child_7.el );
628 // user defined functions
630 public class Xcls_Button18 : Object
632 public Gtk.Button el;
633 private Xcls_MainWindow _this;
639 public Xcls_Button18(Xcls_MainWindow _owner )
642 this.el = new Gtk.Button();
646 // set gobject values
647 this.el.always_show_image = true;
648 this.el.tooltip_text = "Project Details";
649 this.el.label = "Edit Project Settings";
650 var child_0 = new Xcls_Image19( _this );
652 this.el.set_image ( child_0.el );
655 this.el.clicked.connect( ( ) => {
657 _this.windowstate.projectPopoverShow(this.el, _this.project);
663 // user defined functions
665 public class Xcls_Image19 : Object
668 private Xcls_MainWindow _this;
674 public Xcls_Image19(Xcls_MainWindow _owner )
677 this.el = new Gtk.Image();
681 // set gobject values
682 this.el.icon_name = "emblem-system";
685 // user defined functions
689 public class Xcls_Button20 : Object
691 public Gtk.Button el;
692 private Xcls_MainWindow _this;
698 public Xcls_Button20(Xcls_MainWindow _owner )
701 this.el = new Gtk.Button();
705 // set gobject values
706 this.el.always_show_image = true;
707 this.el.tooltip_text = "File Details";
708 this.el.label = "Edit File Properties";
709 var child_0 = new Xcls_Image21( _this );
711 this.el.set_image ( child_0.el );
714 this.el.clicked.connect( ( ) => {
716 // create a new file in project..
717 if (_this.project == null || _this.windowstate.file == null) {
720 _this.windowstate.file_details.show(
721 _this.windowstate.file, this.el
730 // user defined functions
732 public class Xcls_Image21 : Object
735 private Xcls_MainWindow _this;
741 public Xcls_Image21(Xcls_MainWindow _owner )
744 this.el = new Gtk.Image();
748 // set gobject values
749 this.el.icon_name = "document-properties";
752 // user defined functions
756 public class Xcls_MenuButton22 : Object
758 public Gtk.MenuButton el;
759 private Xcls_MainWindow _this;
765 public Xcls_MenuButton22(Xcls_MainWindow _owner )
768 this.el = new Gtk.MenuButton();
772 // set gobject values
773 this.el.always_show_image = true;
774 this.el.label = "About";
775 var child_0 = new Xcls_topbarmenu( _this );
777 this.el.set_popup ( child_0.el );
778 var child_1 = new Xcls_Image26( _this );
780 this.el.set_image ( child_1.el );
783 // user defined functions
785 public class Xcls_topbarmenu : Object
788 private Xcls_MainWindow _this;
794 public Xcls_topbarmenu(Xcls_MainWindow _owner )
797 _this.topbarmenu = this;
798 this.el = new Gtk.Menu();
802 // set gobject values
803 var child_0 = new Xcls_MenuItem24( _this );
805 this.el.append ( child_0.el );
806 var child_1 = new Xcls_MenuItem25( _this );
808 this.el.append ( child_1.el );
817 // user defined functions
819 public class Xcls_MenuItem24 : Object
821 public Gtk.MenuItem el;
822 private Xcls_MainWindow _this;
828 public Xcls_MenuItem24(Xcls_MainWindow _owner )
831 this.el = new Gtk.MenuItem();
835 // set gobject values
836 this.el.label = "Download updated Resources";
839 this.el.activate.connect( ( ) => {
840 Resources.singleton().fetchStart();
844 // user defined functions
847 public class Xcls_MenuItem25 : Object
849 public Gtk.MenuItem el;
850 private Xcls_MainWindow _this;
856 public Xcls_MenuItem25(Xcls_MainWindow _owner )
859 this.el = new Gtk.MenuItem();
863 // set gobject values
864 this.el.label = "About the Builder";
867 this.el.activate.connect( () => {
868 About.singleton().el.show();
872 // user defined functions
876 public class Xcls_Image26 : Object
879 private Xcls_MainWindow _this;
885 public Xcls_Image26(Xcls_MainWindow _owner )
888 this.el = new Gtk.Image();
892 // set gobject values
893 this.el.icon_name = "dialog-information";
896 // user defined functions
900 public class Xcls_Label27 : Object
903 private Xcls_MainWindow _this;
909 public Xcls_Label27(Xcls_MainWindow _owner )
912 this.el = new Gtk.Label( " " );
916 // set gobject values
919 // user defined functions
922 public class Xcls_statusbar : Object
924 public Gtk.ProgressBar el;
925 private Xcls_MainWindow _this;
929 public ulong handler_id;
932 public Xcls_statusbar(Xcls_MainWindow _owner )
935 _this.statusbar = this;
936 this.el = new Gtk.ProgressBar();
939 this.handler_id = -1;
941 // set gobject values
942 this.el.show_text = true;
947 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
950 _this.mainpane.el.set_sensitive(true);
954 _this.mainpane.el.set_sensitive(false);
956 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
957 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
963 // user defined functions
966 public class Xcls_search_entry : Object
968 public Gtk.SearchEntry el;
969 private Xcls_MainWindow _this;
975 public Xcls_search_entry(Xcls_MainWindow _owner )
978 _this.search_entry = this;
979 this.el = new Gtk.SearchEntry();
983 // set gobject values
984 this.el.width_request = 300;
988 var description = Pango.FontDescription.from_string("monospace");
989 description.set_size(8000);
990 this.el.override_font(description);
993 this.el.key_press_event.connect( (event) => {
995 if (event.keyval == Gdk.Key.Return) {
996 this.forwardSearch(false);
1000 // print(event.key.keyval)
1005 this.el.changed.connect( () => {
1006 if (this.el.text == "") {
1007 _this.search_results.el.hide();
1011 switch(_this.windowstate.state) {
1012 case WindowState.State.CODEONLY:
1013 ///case WindowState.State.CODE:
1014 // search the code being edited..
1015 res = _this.windowstate.code_editor_tab.search(this.el.text);
1018 case WindowState.State.PREVIEW:
1019 if (_this.windowstate.file.xtype == "Gtk") {
1020 res = _this.windowstate.window_gladeview.search(this.el.text);
1022 res = _this.windowstate.window_rooview.search(this.el.text);
1028 _this.search_results.el.show();
1030 _this.search_results.el.label = "%d Matches".printf(res);
1032 _this.search_results.el.label = "No Matches";
1040 // user defined functions
1041 public void forwardSearch (bool change_focus) {
1042 switch(_this.windowstate.state) {
1043 case WindowState.State.CODEONLY:
1044 //case WindowState.State.CODE:
1045 // search the code being edited..
1046 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
1049 case WindowState.State.PREVIEW:
1050 if (_this.windowstate.file.xtype == "Gtk") {
1051 _this.windowstate.window_gladeview.forwardSearch(change_focus);
1053 _this.windowstate.window_rooview.forwardSearch(change_focus);
1062 public class Xcls_MenuBar30 : Object
1064 public Gtk.MenuBar el;
1065 private Xcls_MainWindow _this;
1071 public Xcls_MenuBar30(Xcls_MainWindow _owner )
1074 this.el = new Gtk.MenuBar();
1078 // set gobject values
1079 this.el.tooltip_text = "Update Resources / About Roobuilder";
1080 var child_0 = new Xcls_search_results( _this );
1082 this.el.add ( child_0.el );
1083 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
1085 this.el.add ( child_1.el );
1086 var child_2 = new Xcls_statusbar_errors( _this );
1088 this.el.add ( child_2.el );
1089 var child_3 = new Xcls_statusbar_warnings( _this );
1091 this.el.add ( child_3.el );
1092 var child_4 = new Xcls_statusbar_depricated( _this );
1094 this.el.add ( child_4.el );
1095 var child_5 = new Xcls_statusbar_run( _this );
1097 this.el.add ( child_5.el );
1100 // user defined functions
1102 public class Xcls_search_results : Object
1104 public Gtk.ImageMenuItem el;
1105 private Xcls_MainWindow _this;
1109 public Xcls_ValaCompileErrors popup;
1112 public Xcls_search_results(Xcls_MainWindow _owner )
1115 _this.search_results = this;
1116 this.el = new Gtk.ImageMenuItem();
1120 // set gobject values
1121 this.el.always_show_image = true;
1122 this.el.label = "Matches";
1123 var child_0 = new Xcls_Image32( _this );
1125 this.el.set_image ( child_0.el );
1128 this.el.button_press_event.connect( () => {
1130 if (this.popup == null) {
1131 this.popup = new Xcls_ValaCompileErrors();
1132 this.popup.window = _this;
1136 this.popup.show(this.notices, this.el);
1142 // user defined functions
1144 public class Xcls_Image32 : Object
1146 public Gtk.Image el;
1147 private Xcls_MainWindow _this;
1153 public Xcls_Image32(Xcls_MainWindow _owner )
1156 this.el = new Gtk.Image();
1160 // set gobject values
1161 this.el.icon_name = "system-search";
1162 this.el.sensitive = false;
1165 // user defined functions
1169 public class Xcls_statusbar_compilestatus_label : Object
1171 public Gtk.MenuItem el;
1172 private Xcls_MainWindow _this;
1178 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
1181 _this.statusbar_compilestatus_label = this;
1182 this.el = new Gtk.MenuItem();
1186 // set gobject values
1187 this.el.label = "Compile Status:";
1190 // user defined functions
1193 public class Xcls_statusbar_errors : Object
1195 public Gtk.ImageMenuItem el;
1196 private Xcls_MainWindow _this;
1200 public Xcls_ValaCompileErrors popup;
1201 public Json.Object notices;
1204 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
1207 _this.statusbar_errors = this;
1208 this.el = new Gtk.ImageMenuItem();
1211 this.notices = new Json.Object() ;
1213 // set gobject values
1214 this.el.always_show_image = true;
1215 this.el.label = "Errors";
1216 var child_0 = new Xcls_Image35( _this );
1218 this.el.set_image ( child_0.el );
1221 this.el.button_press_event.connect( () => {
1222 if (this.popup == null) {
1223 this.popup = new Xcls_ValaCompileErrors();
1224 this.popup.window = _this;
1228 this.popup.show(this.notices, this.el);
1233 // user defined functions
1234 public void setNotices (Json.Object nots, int qty) {
1236 this.el.label = qty.to_string() + " Errors";
1237 this.notices = nots;
1241 public class Xcls_Image35 : Object
1243 public Gtk.Image el;
1244 private Xcls_MainWindow _this;
1250 public Xcls_Image35(Xcls_MainWindow _owner )
1253 this.el = new Gtk.Image();
1257 // set gobject values
1258 this.el.icon_name = "dialog-error";
1261 // user defined functions
1265 public class Xcls_statusbar_warnings : Object
1267 public Gtk.ImageMenuItem el;
1268 private Xcls_MainWindow _this;
1272 public Xcls_ValaCompileErrors popup;
1273 public Json.Object notices;
1276 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
1279 _this.statusbar_warnings = this;
1280 this.el = new Gtk.ImageMenuItem();
1283 this.notices = new Json.Object();
1285 // set gobject values
1286 this.el.always_show_image = true;
1287 this.el.label = "Warnings";
1288 var child_0 = new Xcls_Image37( _this );
1290 this.el.set_image ( child_0.el );
1293 this.el.button_press_event.connect( () => {
1294 if (this.popup == null) {
1295 this.popup = new Xcls_ValaCompileErrors();
1296 this.popup.window = _this;
1299 this.popup.show(this.notices, this.el);
1304 // user defined functions
1305 public void setNotices (Json.Object nots, int qty) {
1307 this.el.label = qty.to_string() + " Warnings";
1308 this.notices = nots;
1312 public class Xcls_Image37 : Object
1314 public Gtk.Image el;
1315 private Xcls_MainWindow _this;
1321 public Xcls_Image37(Xcls_MainWindow _owner )
1324 this.el = new Gtk.Image();
1328 // set gobject values
1329 this.el.icon_name = "dialog-warning";
1332 // user defined functions
1336 public class Xcls_statusbar_depricated : Object
1338 public Gtk.ImageMenuItem el;
1339 private Xcls_MainWindow _this;
1343 public Xcls_ValaCompileErrors popup;
1344 public Json.Object notices;
1347 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
1350 _this.statusbar_depricated = this;
1351 this.el = new Gtk.ImageMenuItem();
1354 this.notices = new Json.Object();
1356 // set gobject values
1357 this.el.always_show_image = true;
1358 this.el.label = "Depricated";
1359 var child_0 = new Xcls_Image39( _this );
1361 this.el.set_image ( child_0.el );
1364 this.el.button_press_event.connect( () => {
1365 if (this.popup == null) {
1366 this.popup = new Xcls_ValaCompileErrors();
1367 this.popup.window = _this;
1371 this.popup.show(this.notices, this.el);
1376 // user defined functions
1377 public void setNotices (Json.Object nots, int qty) {
1379 this.el.label = qty.to_string() + " Depricated";
1380 this.notices = nots;
1384 public class Xcls_Image39 : Object
1386 public Gtk.Image el;
1387 private Xcls_MainWindow _this;
1393 public Xcls_Image39(Xcls_MainWindow _owner )
1396 this.el = new Gtk.Image();
1400 // set gobject values
1401 this.el.icon_name = "dialog-information";
1404 // user defined functions
1408 public class Xcls_statusbar_run : Object
1410 public Gtk.ImageMenuItem el;
1411 private Xcls_MainWindow _this;
1415 public Xcls_ValaCompileErrors popup;
1418 public Xcls_statusbar_run(Xcls_MainWindow _owner )
1421 _this.statusbar_run = this;
1422 this.el = new Gtk.ImageMenuItem();
1426 // set gobject values
1427 this.el.always_show_image = true;
1428 this.el.label = "Run";
1429 var child_0 = new Xcls_Image41( _this );
1431 this.el.set_image ( child_0.el );
1434 this.el.button_press_event.connect( () => {
1435 if (_this.windowstate.file == null) {
1438 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
1440 _this.windowstate.compile_results.show(this.el,true);
1446 // user defined functions
1448 public class Xcls_Image41 : Object
1450 public Gtk.Image el;
1451 private Xcls_MainWindow _this;
1457 public Xcls_Image41(Xcls_MainWindow _owner )
1460 this.el = new Gtk.Image();
1464 // set gobject values
1465 this.el.icon_name = "media-playback-start";
1468 // user defined functions
1473 public class Xcls_statusbar_compile_spinner : Object
1475 public Gtk.Spinner el;
1476 private Xcls_MainWindow _this;
1482 public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
1485 _this.statusbar_compile_spinner = this;
1486 this.el = new Gtk.Spinner();
1490 // set gobject values
1491 this.el.tooltip_text = "Compiling";
1494 // user defined functions
1495 public void stop () {
1499 public void start () {