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 );
68 this.el.set_icon_name("roobuilder");
71 this.el.delete_event.connect( ( event) => {
74 this.el.destroy.connect( () => {
75 Xcls_MainWindow.singleton().no_windows--;
77 Resources.singleton().disconnect(_this.statusbar.handler_id);
80 if (Xcls_MainWindow.singleton().no_windows < 1) {
85 this.el.show.connect( ( ) => {
86 // hide the file editing..
88 //this.hideViewEditing();
89 _this.statusbar.el.hide();
90 _this.statusbar_errors.el.hide();
91 _this.statusbar_warnings.el.hide();
92 _this.statusbar_depricated.el.hide();
93 _this.statusbar_compile_spinner.el.hide();
95 Resources.singleton().checkResources();
98 this.el.key_release_event.connect( (event) => {
100 if (this.search_entry.el.is_visible()) {
101 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
102 print("SAVE: ctrl-f pressed");
103 this.search_entry.el.grab_focus();
107 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
108 print("SAVE: ctrl-g pressed");
109 this.search_entry.forwardSearch(true);
115 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
116 print("SAVE: ctrl-n pressed");
117 this.openNewWindow();
121 // print(event.key.keyval)
128 // user defined functions
129 public void openNewWindow () {
130 Xcls_MainWindow.singleton().no_windows++;
131 var w = new Xcls_MainWindow();
136 w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project);
137 // should open the file dialog...
138 //w.windowstate.switchState(WindowState.State.FILES);
140 public void initChildren () {
141 // this needs putting in a better place..
142 this.windowstate = new WindowState(this);
152 public void show () {
157 public void setTitle (string str) {
158 this.headerbar.el.set_title(this.title + " - " + str);
160 public class Xcls_headerbar : Object
162 public Gtk.HeaderBar el;
163 private Xcls_MainWindow _this;
169 public Xcls_headerbar(Xcls_MainWindow _owner )
172 _this.headerbar = this;
173 this.el = new Gtk.HeaderBar();
177 // set gobject values
178 this.el.title = "Application Builder";
179 this.el.show_close_button = true;
180 var child_0 = new Xcls_Box3( _this );
182 this.el.pack_start ( child_0.el );
185 // user defined functions
187 public class Xcls_Box3 : Object
190 private Xcls_MainWindow _this;
196 public Xcls_Box3(Xcls_MainWindow _owner )
199 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
203 // set gobject values
204 var child_0 = new Xcls_windownew( _this );
206 this.el.add ( child_0.el );
207 var child_1 = new Xcls_open_projects_btn( _this );
209 this.el.add ( child_1.el );
212 // user defined functions
214 public class Xcls_windownew : Object
216 public Gtk.Button el;
217 private Xcls_MainWindow _this;
223 public Xcls_windownew(Xcls_MainWindow _owner )
226 _this.windownew = this;
227 this.el = new Gtk.Button();
231 // set gobject values
232 this.el.always_show_image = true;
233 this.el.label = "New Window";
234 var child_0 = new Xcls_Image5( _this );
236 this.el.set_image ( child_0.el );
239 this.el.clicked.connect( ( ) => {
240 _this.openNewWindow();
246 // user defined functions
248 public class Xcls_Image5 : Object
251 private Xcls_MainWindow _this;
257 public Xcls_Image5(Xcls_MainWindow _owner )
260 this.el = new Gtk.Image();
264 // set gobject values
265 this.el.icon_name = "window-new";
268 // user defined functions
272 public class Xcls_open_projects_btn : Object
274 public Gtk.Button el;
275 private Xcls_MainWindow _this;
281 public Xcls_open_projects_btn(Xcls_MainWindow _owner )
284 _this.open_projects_btn = this;
285 this.el = new Gtk.Button();
289 // set gobject values
290 this.el.always_show_image = true;
291 this.el.label = "Files / Projects";
292 var child_0 = new Xcls_Image7( _this );
294 this.el.set_image ( child_0.el );
297 this.el.clicked.connect( ( ) => {
298 _this.windowstate.showPopoverFiles(this.el, _this.project);
303 // user defined functions
305 public class Xcls_Image7 : Object
308 private Xcls_MainWindow _this;
314 public Xcls_Image7(Xcls_MainWindow _owner )
317 this.el = new Gtk.Image();
321 // set gobject values
322 this.el.icon_name = "system-file-manager";
325 // user defined functions
331 public class Xcls_vbox : Object
334 private Xcls_MainWindow _this;
340 public Xcls_vbox(Xcls_MainWindow _owner )
344 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
348 // set gobject values
349 this.el.homogeneous = false;
350 var child_0 = new Xcls_mainpane( _this );
352 this.el.pack_start ( child_0.el , true,true,0 );
353 var child_1 = new Xcls_Box17( _this );
355 this.el.pack_end ( child_1.el , false,true,0 );
358 // user defined functions
360 public class Xcls_mainpane : Object
363 private Xcls_MainWindow _this;
367 public int lastWidth;
370 public Xcls_mainpane(Xcls_MainWindow _owner )
373 _this.mainpane = this;
374 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
379 // set gobject values
380 this.el.position = 400;
381 var child_0 = new Xcls_leftpane( _this );
383 this.el.add ( child_0.el );
384 var child_1 = new Xcls_Box14( _this );
386 this.el.add2 ( child_1.el );
389 // user defined functions
391 public class Xcls_leftpane : Object
394 private Xcls_MainWindow _this;
400 public Xcls_leftpane(Xcls_MainWindow _owner )
403 _this.leftpane = this;
404 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
408 // set gobject values
409 var child_0 = new Xcls_editpane( _this );
411 this.el.pack_start ( child_0.el , true,true,0 );
414 // user defined functions
416 public class Xcls_editpane : Object
419 private Xcls_MainWindow _this;
425 public Xcls_editpane(Xcls_MainWindow _owner )
428 _this.editpane = this;
429 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
433 // set gobject values
434 var child_0 = new Xcls_tree( _this );
436 this.el.add1 ( child_0.el );
437 var child_1 = new Xcls_props( _this );
439 this.el.add2 ( child_1.el );
442 this.el.accept_position.connect( () => {
443 GLib.debug("Accept postion");
446 this.el.move_handle.connect( (scroll) => {
447 GLib.debug("Move handle");
452 // user defined functions
454 public class Xcls_tree : Object
457 private Xcls_MainWindow _this;
463 public Xcls_tree(Xcls_MainWindow _owner )
467 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
471 // set gobject values
474 // user defined functions
477 public class Xcls_props : Object
480 private Xcls_MainWindow _this;
486 public Xcls_props(Xcls_MainWindow _owner )
490 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
494 // set gobject values
497 // user defined functions
502 public class Xcls_Box14 : Object
505 private Xcls_MainWindow _this;
511 public Xcls_Box14(Xcls_MainWindow _owner )
514 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
518 // set gobject values
519 var child_0 = new Xcls_rooviewbox( _this );
521 this.el.add ( child_0.el );
522 var child_1 = new Xcls_codeeditviewbox( _this );
524 this.el.add ( child_1.el );
527 // user defined functions
529 public class Xcls_rooviewbox : Object
532 private Xcls_MainWindow _this;
538 public Xcls_rooviewbox(Xcls_MainWindow _owner )
541 _this.rooviewbox = this;
542 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
546 // set gobject values
547 this.el.vexpand = true;
550 // user defined functions
553 public class Xcls_codeeditviewbox : Object
556 private Xcls_MainWindow _this;
562 public Xcls_codeeditviewbox(Xcls_MainWindow _owner )
565 _this.codeeditviewbox = this;
566 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
570 // set gobject values
571 this.el.vexpand = true;
574 // user defined functions
579 public class Xcls_Box17 : Object
582 private Xcls_MainWindow _this;
588 public Xcls_Box17(Xcls_MainWindow _owner )
591 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
595 // set gobject values
596 this.el.homogeneous = false;
597 var child_0 = new Xcls_Button18( _this );
599 this.el.add ( child_0.el );
600 var child_1 = new Xcls_Button20( _this );
602 this.el.add ( child_1.el );
603 var child_2 = new Xcls_MenuButton22( _this );
605 this.el.add ( child_2.el );
606 var child_3 = new Xcls_Label27( _this );
608 this.el.pack_start ( child_3.el , true,true,0 );
609 var child_4 = new Xcls_statusbar( _this );
611 this.el.pack_start ( child_4.el , true,true,0 );
612 var child_5 = new Xcls_search_entry( _this );
614 this.el.pack_start ( child_5.el , false,true,0 );
615 var child_6 = new Xcls_MenuBar30( _this );
617 this.el.add ( child_6.el );
618 var child_7 = new Xcls_statusbar_compile_spinner( _this );
620 this.el.add ( child_7.el );
623 // user defined functions
625 public class Xcls_Button18 : Object
627 public Gtk.Button el;
628 private Xcls_MainWindow _this;
634 public Xcls_Button18(Xcls_MainWindow _owner )
637 this.el = new Gtk.Button();
641 // set gobject values
642 this.el.always_show_image = true;
643 this.el.tooltip_text = "Project Details";
644 this.el.label = "Edit Project Settings";
645 var child_0 = new Xcls_Image19( _this );
647 this.el.set_image ( child_0.el );
650 this.el.clicked.connect( ( ) => {
652 _this.windowstate.projectPopoverShow(this.el, _this.project);
658 // user defined functions
660 public class Xcls_Image19 : Object
663 private Xcls_MainWindow _this;
669 public Xcls_Image19(Xcls_MainWindow _owner )
672 this.el = new Gtk.Image();
676 // set gobject values
677 this.el.icon_name = "emblem-system";
680 // user defined functions
684 public class Xcls_Button20 : Object
686 public Gtk.Button el;
687 private Xcls_MainWindow _this;
693 public Xcls_Button20(Xcls_MainWindow _owner )
696 this.el = new Gtk.Button();
700 // set gobject values
701 this.el.always_show_image = true;
702 this.el.tooltip_text = "File Details";
703 this.el.label = "Edit File Properties";
704 var child_0 = new Xcls_Image21( _this );
706 this.el.set_image ( child_0.el );
709 this.el.clicked.connect( ( ) => {
711 // create a new file in project..
712 if (_this.project == null || _this.windowstate.file == null) {
715 _this.windowstate.file_details.show(
716 _this.windowstate.file, this.el
725 // user defined functions
727 public class Xcls_Image21 : Object
730 private Xcls_MainWindow _this;
736 public Xcls_Image21(Xcls_MainWindow _owner )
739 this.el = new Gtk.Image();
743 // set gobject values
744 this.el.icon_name = "document-properties";
747 // user defined functions
751 public class Xcls_MenuButton22 : Object
753 public Gtk.MenuButton el;
754 private Xcls_MainWindow _this;
760 public Xcls_MenuButton22(Xcls_MainWindow _owner )
763 this.el = new Gtk.MenuButton();
767 // set gobject values
768 this.el.always_show_image = true;
769 this.el.label = "About";
770 var child_0 = new Xcls_topbarmenu( _this );
772 this.el.set_popup ( child_0.el );
773 var child_1 = new Xcls_Image26( _this );
775 this.el.set_image ( child_1.el );
778 // user defined functions
780 public class Xcls_topbarmenu : Object
783 private Xcls_MainWindow _this;
789 public Xcls_topbarmenu(Xcls_MainWindow _owner )
792 _this.topbarmenu = this;
793 this.el = new Gtk.Menu();
797 // set gobject values
798 var child_0 = new Xcls_MenuItem24( _this );
800 this.el.append ( child_0.el );
801 var child_1 = new Xcls_MenuItem25( _this );
803 this.el.append ( child_1.el );
812 // user defined functions
814 public class Xcls_MenuItem24 : Object
816 public Gtk.MenuItem el;
817 private Xcls_MainWindow _this;
823 public Xcls_MenuItem24(Xcls_MainWindow _owner )
826 this.el = new Gtk.MenuItem();
830 // set gobject values
831 this.el.label = "Download updated Resources";
834 this.el.activate.connect( ( ) => {
835 Resources.singleton().fetchStart();
839 // user defined functions
842 public class Xcls_MenuItem25 : Object
844 public Gtk.MenuItem el;
845 private Xcls_MainWindow _this;
851 public Xcls_MenuItem25(Xcls_MainWindow _owner )
854 this.el = new Gtk.MenuItem();
858 // set gobject values
859 this.el.label = "About the Builder";
862 this.el.activate.connect( () => {
863 About.singleton().el.show();
867 // user defined functions
871 public class Xcls_Image26 : Object
874 private Xcls_MainWindow _this;
880 public Xcls_Image26(Xcls_MainWindow _owner )
883 this.el = new Gtk.Image();
887 // set gobject values
888 this.el.icon_name = "dialog-information";
891 // user defined functions
895 public class Xcls_Label27 : Object
898 private Xcls_MainWindow _this;
904 public Xcls_Label27(Xcls_MainWindow _owner )
907 this.el = new Gtk.Label( " " );
911 // set gobject values
914 // user defined functions
917 public class Xcls_statusbar : Object
919 public Gtk.ProgressBar el;
920 private Xcls_MainWindow _this;
924 public ulong handler_id;
927 public Xcls_statusbar(Xcls_MainWindow _owner )
930 _this.statusbar = this;
931 this.el = new Gtk.ProgressBar();
934 this.handler_id = -1;
936 // set gobject values
937 this.el.show_text = true;
942 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
945 _this.mainpane.el.set_sensitive(true);
949 _this.mainpane.el.set_sensitive(false);
951 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
952 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
958 // user defined functions
961 public class Xcls_search_entry : Object
963 public Gtk.SearchEntry el;
964 private Xcls_MainWindow _this;
970 public Xcls_search_entry(Xcls_MainWindow _owner )
973 _this.search_entry = this;
974 this.el = new Gtk.SearchEntry();
978 // set gobject values
979 this.el.width_request = 300;
983 var description = Pango.FontDescription.from_string("monospace");
984 description.set_size(8000);
985 this.el.override_font(description);
988 this.el.key_press_event.connect( (event) => {
990 if (event.keyval == Gdk.Key.Return) {
991 this.forwardSearch(false);
995 // print(event.key.keyval)
1000 this.el.changed.connect( () => {
1001 if (this.el.text == "") {
1002 _this.search_results.el.hide();
1006 switch(_this.windowstate.state) {
1007 case WindowState.State.CODEONLY:
1008 ///case WindowState.State.CODE:
1009 // search the code being edited..
1010 res = _this.windowstate.code_editor_tab.search(this.el.text);
1013 case WindowState.State.PREVIEW:
1014 if (_this.windowstate.file.xtype == "Gtk") {
1015 res = _this.windowstate.window_gladeview.search(this.el.text);
1017 res = _this.windowstate.window_rooview.search(this.el.text);
1023 _this.search_results.el.show();
1025 _this.search_results.el.label = "%d Matches".printf(res);
1027 _this.search_results.el.label = "No Matches";
1035 // user defined functions
1036 public void forwardSearch (bool change_focus) {
1037 switch(_this.windowstate.state) {
1038 case WindowState.State.CODEONLY:
1039 //case WindowState.State.CODE:
1040 // search the code being edited..
1041 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
1044 case WindowState.State.PREVIEW:
1045 if (_this.windowstate.file.xtype == "Gtk") {
1046 _this.windowstate.window_gladeview.forwardSearch(change_focus);
1048 _this.windowstate.window_rooview.forwardSearch(change_focus);
1057 public class Xcls_MenuBar30 : Object
1059 public Gtk.MenuBar el;
1060 private Xcls_MainWindow _this;
1066 public Xcls_MenuBar30(Xcls_MainWindow _owner )
1069 this.el = new Gtk.MenuBar();
1073 // set gobject values
1074 this.el.tooltip_text = "Update Resources / About Roobuilder";
1075 var child_0 = new Xcls_search_results( _this );
1077 this.el.add ( child_0.el );
1078 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
1080 this.el.add ( child_1.el );
1081 var child_2 = new Xcls_statusbar_errors( _this );
1083 this.el.add ( child_2.el );
1084 var child_3 = new Xcls_statusbar_warnings( _this );
1086 this.el.add ( child_3.el );
1087 var child_4 = new Xcls_statusbar_depricated( _this );
1089 this.el.add ( child_4.el );
1090 var child_5 = new Xcls_statusbar_run( _this );
1092 this.el.add ( child_5.el );
1095 // user defined functions
1097 public class Xcls_search_results : Object
1099 public Gtk.ImageMenuItem el;
1100 private Xcls_MainWindow _this;
1104 public Xcls_ValaCompileErrors popup;
1107 public Xcls_search_results(Xcls_MainWindow _owner )
1110 _this.search_results = this;
1111 this.el = new Gtk.ImageMenuItem();
1115 // set gobject values
1116 this.el.always_show_image = true;
1117 this.el.label = "Matches";
1118 var child_0 = new Xcls_Image32( _this );
1120 this.el.set_image ( child_0.el );
1123 this.el.button_press_event.connect( () => {
1125 if (this.popup == null) {
1126 this.popup = new Xcls_ValaCompileErrors();
1127 this.popup.window = _this;
1131 this.popup.show(this.notices, this.el);
1137 // user defined functions
1139 public class Xcls_Image32 : Object
1141 public Gtk.Image el;
1142 private Xcls_MainWindow _this;
1148 public Xcls_Image32(Xcls_MainWindow _owner )
1151 this.el = new Gtk.Image();
1155 // set gobject values
1156 this.el.icon_name = "system-search";
1157 this.el.sensitive = false;
1160 // user defined functions
1164 public class Xcls_statusbar_compilestatus_label : Object
1166 public Gtk.MenuItem el;
1167 private Xcls_MainWindow _this;
1173 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
1176 _this.statusbar_compilestatus_label = this;
1177 this.el = new Gtk.MenuItem();
1181 // set gobject values
1182 this.el.label = "Compile Status:";
1185 // user defined functions
1188 public class Xcls_statusbar_errors : Object
1190 public Gtk.ImageMenuItem el;
1191 private Xcls_MainWindow _this;
1195 public Xcls_ValaCompileErrors popup;
1196 public Json.Object notices;
1199 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
1202 _this.statusbar_errors = this;
1203 this.el = new Gtk.ImageMenuItem();
1206 this.notices = new Json.Object() ;
1208 // set gobject values
1209 this.el.always_show_image = true;
1210 this.el.label = "Errors";
1211 var child_0 = new Xcls_Image35( _this );
1213 this.el.set_image ( child_0.el );
1216 this.el.button_press_event.connect( () => {
1217 if (this.popup == null) {
1218 this.popup = new Xcls_ValaCompileErrors();
1219 this.popup.window = _this;
1223 this.popup.show(this.notices, this.el);
1228 // user defined functions
1229 public void setNotices (Json.Object nots, int qty) {
1231 this.el.label = qty.to_string() + " Errors";
1232 this.notices = nots;
1236 public class Xcls_Image35 : Object
1238 public Gtk.Image el;
1239 private Xcls_MainWindow _this;
1245 public Xcls_Image35(Xcls_MainWindow _owner )
1248 this.el = new Gtk.Image();
1252 // set gobject values
1253 this.el.icon_name = "dialog-error";
1256 // user defined functions
1260 public class Xcls_statusbar_warnings : Object
1262 public Gtk.ImageMenuItem el;
1263 private Xcls_MainWindow _this;
1267 public Xcls_ValaCompileErrors popup;
1268 public Json.Object notices;
1271 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
1274 _this.statusbar_warnings = this;
1275 this.el = new Gtk.ImageMenuItem();
1278 this.notices = new Json.Object();
1280 // set gobject values
1281 this.el.always_show_image = true;
1282 this.el.label = "Warnings";
1283 var child_0 = new Xcls_Image37( _this );
1285 this.el.set_image ( child_0.el );
1288 this.el.button_press_event.connect( () => {
1289 if (this.popup == null) {
1290 this.popup = new Xcls_ValaCompileErrors();
1291 this.popup.window = _this;
1294 this.popup.show(this.notices, this.el);
1299 // user defined functions
1300 public void setNotices (Json.Object nots, int qty) {
1302 this.el.label = qty.to_string() + " Warnings";
1303 this.notices = nots;
1307 public class Xcls_Image37 : Object
1309 public Gtk.Image el;
1310 private Xcls_MainWindow _this;
1316 public Xcls_Image37(Xcls_MainWindow _owner )
1319 this.el = new Gtk.Image();
1323 // set gobject values
1324 this.el.icon_name = "dialog-warning";
1327 // user defined functions
1331 public class Xcls_statusbar_depricated : Object
1333 public Gtk.ImageMenuItem el;
1334 private Xcls_MainWindow _this;
1338 public Xcls_ValaCompileErrors popup;
1339 public Json.Object notices;
1342 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
1345 _this.statusbar_depricated = this;
1346 this.el = new Gtk.ImageMenuItem();
1349 this.notices = new Json.Object();
1351 // set gobject values
1352 this.el.always_show_image = true;
1353 this.el.label = "Depricated";
1354 var child_0 = new Xcls_Image39( _this );
1356 this.el.set_image ( child_0.el );
1359 this.el.button_press_event.connect( () => {
1360 if (this.popup == null) {
1361 this.popup = new Xcls_ValaCompileErrors();
1362 this.popup.window = _this;
1366 this.popup.show(this.notices, this.el);
1371 // user defined functions
1372 public void setNotices (Json.Object nots, int qty) {
1374 this.el.label = qty.to_string() + " Depricated";
1375 this.notices = nots;
1379 public class Xcls_Image39 : Object
1381 public Gtk.Image el;
1382 private Xcls_MainWindow _this;
1388 public Xcls_Image39(Xcls_MainWindow _owner )
1391 this.el = new Gtk.Image();
1395 // set gobject values
1396 this.el.icon_name = "dialog-information";
1399 // user defined functions
1403 public class Xcls_statusbar_run : Object
1405 public Gtk.ImageMenuItem el;
1406 private Xcls_MainWindow _this;
1410 public Xcls_ValaCompileErrors popup;
1413 public Xcls_statusbar_run(Xcls_MainWindow _owner )
1416 _this.statusbar_run = this;
1417 this.el = new Gtk.ImageMenuItem();
1421 // set gobject values
1422 this.el.always_show_image = true;
1423 this.el.label = "Run";
1424 var child_0 = new Xcls_Image41( _this );
1426 this.el.set_image ( child_0.el );
1429 this.el.button_press_event.connect( () => {
1430 if (_this.windowstate.file == null) {
1433 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
1435 _this.windowstate.compile_results.show(this.el,true);
1441 // user defined functions
1443 public class Xcls_Image41 : Object
1445 public Gtk.Image el;
1446 private Xcls_MainWindow _this;
1452 public Xcls_Image41(Xcls_MainWindow _owner )
1455 this.el = new Gtk.Image();
1459 // set gobject values
1460 this.el.icon_name = "media-playback-start";
1463 // user defined functions
1468 public class Xcls_statusbar_compile_spinner : Object
1470 public Gtk.Spinner el;
1471 private Xcls_MainWindow _this;
1477 public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
1480 _this.statusbar_compile_spinner = this;
1481 this.el = new Gtk.Spinner();
1485 // set gobject values
1486 this.el.tooltip_text = "Compiling";
1489 // user defined functions
1490 public void stop () {
1494 public void start () {