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_windowbtn windowbtn;
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;
39 public WindowState windowstate;
40 public Project.Project project;
43 public Xcls_MainWindow()
46 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
49 this.title = "Roo Application Builder";
53 this.el.border_width = 0;
54 this.el.default_height = 850;
55 this.el.default_width = 1200;
56 var child_0 = new Xcls_headerbar( _this );
58 this.el.set_titlebar ( child_0.el );
59 var child_1 = new Xcls_vbox( _this );
61 this.el.add ( child_1.el );
65 this.el.set_icon_name("roobuilder");
68 this.el.delete_event.connect( ( event) => {
71 this.el.destroy.connect( () => {
74 Resources.singleton().disconnect(_this.statusbar.handler_id);
76 BuilderApplication.removeWindow(this);
78 if (BuilderApplication.windows.size < 1) {
83 this.el.show.connect( ( ) => {
84 // hide the file editing..
86 //this.hideViewEditing();
87 _this.statusbar.el.hide();
88 _this.statusbar_errors.el.hide();
89 _this.statusbar_warnings.el.hide();
90 _this.statusbar_depricated.el.hide();
91 _this.statusbar_compile_spinner.el.hide();
93 Resources.singleton().checkResources();
96 this.el.key_release_event.connect( (event) => {
98 if (this.search_entry.el.is_visible()) {
99 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
100 print("SAVE: ctrl-f pressed");
101 this.search_entry.el.grab_focus();
105 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
106 print("SAVE: ctrl-g pressed");
107 this.search_entry.forwardSearch(true);
113 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
114 print("SAVE: ctrl-n pressed");
115 this.openNewWindow();
119 // print(event.key.keyval)
126 // user defined functions
127 public void initChildren () {
128 // this needs putting in a better place..
129 this.windowstate = new WindowState(this);
139 public void show () {
144 public void setTitle (string str) {
145 this.headerbar.el.set_title(this.title + " - " + str);
147 public void openNewWindow () {
149 var w = new Xcls_MainWindow();
151 BuilderApplication.addWindow(w);
154 w.windowstate.showPopoverFiles(w.open_projects_btn.el, _this.project, false);
157 public class Xcls_headerbar : Object
159 public Gtk.HeaderBar el;
160 private Xcls_MainWindow _this;
166 public Xcls_headerbar(Xcls_MainWindow _owner )
169 _this.headerbar = this;
170 this.el = new Gtk.HeaderBar();
174 // set gobject values
175 this.el.title = "Application Builder";
176 this.el.show_close_button = true;
177 var child_0 = new Xcls_Box3( _this );
179 this.el.pack_start ( child_0.el );
182 // user defined functions
184 public class Xcls_Box3 : Object
187 private Xcls_MainWindow _this;
193 public Xcls_Box3(Xcls_MainWindow _owner )
196 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
200 // set gobject values
201 var child_0 = new Xcls_windowbtn( _this );
203 this.el.add( child_0.el );
204 var child_1 = new Xcls_open_projects_btn( _this );
206 this.el.add ( child_1.el );
209 // user defined functions
211 public class Xcls_windowbtn : Object
213 public Gtk.MenuButton el;
214 private Xcls_MainWindow _this;
218 public Gee.ArrayList<Gtk.MenuItem> mitems;
221 public Xcls_windowbtn(Xcls_MainWindow _owner )
224 _this.windowbtn = this;
225 this.el = new Gtk.MenuButton();
229 // set gobject values
230 this.el.margin_end = 4;
231 this.el.halign = Gtk.Align.START;
232 this.el.direction = Gtk.ArrowType.DOWN;
233 this.el.use_popover = false;
234 this.el.always_show_image = true;
235 this.el.label = "Windows";
236 var child_0 = new Xcls_Image5( _this );
238 this.el.set_image ( child_0.el );
239 var child_1 = new Xcls_Menu6( _this );
241 this.el.popup = child_1.el;
246 this.mitems = new Gee.ArrayList<Gtk.MenuItem>();
251 // user defined functions
252 public void updateMenu () {
253 foreach(var m in this.mitems) {
254 this.el.popup.remove(m);
258 foreach(var w in BuilderApplication.windows) {
259 var wid = BuilderApplication.windows.index_of(w);
260 // fixme find a better way to display this.
261 if (w.windowstate == null ||
262 w.windowstate.file == null ||
263 _this.windowstate == null ||
264 _this.windowstate.file == null
269 if (w.windowstate.file.path == _this.windowstate.file.path) {
273 GLib.debug("add menuitem %s", w.windowstate.file.path);
274 var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);
275 m.activate.connect(() => {
276 BuilderApplication.windows.get(wid).el.present();
278 this.el.popup.append(m);
284 public class Xcls_Image5 : Object
287 private Xcls_MainWindow _this;
293 public Xcls_Image5(Xcls_MainWindow _owner )
296 this.el = new Gtk.Image();
300 // set gobject values
301 this.el.icon_name = "window-new";
304 // user defined functions
307 public class Xcls_Menu6 : Object
310 private Xcls_MainWindow _this;
316 public Xcls_Menu6(Xcls_MainWindow _owner )
319 this.el = new Gtk.Menu();
323 // set gobject values
324 var child_0 = new Xcls_MenuItem7( _this );
326 this.el.append ( child_0.el );
327 var child_1 = new Xcls_SeparatorMenuItem8( _this );
329 this.el.append ( child_1.el );
338 // user defined functions
340 public class Xcls_MenuItem7 : Object
342 public Gtk.MenuItem el;
343 private Xcls_MainWindow _this;
349 public Xcls_MenuItem7(Xcls_MainWindow _owner )
352 this.el = new Gtk.MenuItem();
356 // set gobject values
357 this.el.label = "New Window";
360 this.el.activate.connect( ( ) => {
362 _this.windowstate.showPopoverFiles(_this.windowbtn.el, _this.project, true);
366 // user defined functions
369 public class Xcls_SeparatorMenuItem8 : Object
371 public Gtk.SeparatorMenuItem el;
372 private Xcls_MainWindow _this;
378 public Xcls_SeparatorMenuItem8(Xcls_MainWindow _owner )
381 this.el = new Gtk.SeparatorMenuItem();
385 // set gobject values
388 // user defined functions
393 public class Xcls_open_projects_btn : Object
395 public Gtk.Button el;
396 private Xcls_MainWindow _this;
402 public Xcls_open_projects_btn(Xcls_MainWindow _owner )
405 _this.open_projects_btn = this;
406 this.el = new Gtk.Button();
410 // set gobject values
411 this.el.always_show_image = true;
412 this.el.label = "Files / Projects";
413 var child_0 = new Xcls_Image10( _this );
415 this.el.set_image ( child_0.el );
418 this.el.clicked.connect( ( ) => {
419 _this.windowstate.showPopoverFiles(this.el, _this.project, false);
424 // user defined functions
426 public class Xcls_Image10 : Object
429 private Xcls_MainWindow _this;
435 public Xcls_Image10(Xcls_MainWindow _owner )
438 this.el = new Gtk.Image();
442 // set gobject values
443 this.el.icon_name = "system-file-manager";
446 // user defined functions
452 public class Xcls_vbox : Object
455 private Xcls_MainWindow _this;
461 public Xcls_vbox(Xcls_MainWindow _owner )
465 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
469 // set gobject values
470 this.el.homogeneous = false;
471 var child_0 = new Xcls_mainpane( _this );
473 this.el.pack_start ( child_0.el , true,true,0 );
474 var child_1 = new Xcls_Box20( _this );
476 this.el.pack_end ( child_1.el , false,true,0 );
479 // user defined functions
481 public class Xcls_mainpane : Object
484 private Xcls_MainWindow _this;
488 public int lastWidth;
491 public Xcls_mainpane(Xcls_MainWindow _owner )
494 _this.mainpane = this;
495 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
500 // set gobject values
501 this.el.position = 400;
502 var child_0 = new Xcls_leftpane( _this );
504 this.el.add ( child_0.el );
505 var child_1 = new Xcls_Box17( _this );
507 this.el.add2 ( child_1.el );
510 // user defined functions
512 public class Xcls_leftpane : Object
515 private Xcls_MainWindow _this;
521 public Xcls_leftpane(Xcls_MainWindow _owner )
524 _this.leftpane = this;
525 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
529 // set gobject values
530 var child_0 = new Xcls_editpane( _this );
532 this.el.pack_start ( child_0.el , true,true,0 );
535 // user defined functions
537 public class Xcls_editpane : Object
540 private Xcls_MainWindow _this;
546 public Xcls_editpane(Xcls_MainWindow _owner )
549 _this.editpane = this;
550 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
554 // set gobject values
555 var child_0 = new Xcls_tree( _this );
557 this.el.add1 ( child_0.el );
558 var child_1 = new Xcls_props( _this );
560 this.el.add2 ( child_1.el );
563 this.el.accept_position.connect( () => {
564 GLib.debug("Accept postion");
567 this.el.move_handle.connect( (scroll) => {
568 GLib.debug("Move handle");
573 // user defined functions
575 public class Xcls_tree : Object
578 private Xcls_MainWindow _this;
584 public Xcls_tree(Xcls_MainWindow _owner )
588 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
592 // set gobject values
595 // user defined functions
598 public class Xcls_props : Object
601 private Xcls_MainWindow _this;
607 public Xcls_props(Xcls_MainWindow _owner )
611 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
615 // set gobject values
618 // user defined functions
623 public class Xcls_Box17 : Object
626 private Xcls_MainWindow _this;
632 public Xcls_Box17(Xcls_MainWindow _owner )
635 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
639 // set gobject values
640 var child_0 = new Xcls_rooviewbox( _this );
642 this.el.add ( child_0.el );
643 var child_1 = new Xcls_codeeditviewbox( _this );
645 this.el.add ( child_1.el );
648 // user defined functions
650 public class Xcls_rooviewbox : Object
653 private Xcls_MainWindow _this;
659 public Xcls_rooviewbox(Xcls_MainWindow _owner )
662 _this.rooviewbox = this;
663 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
667 // set gobject values
668 this.el.vexpand = true;
671 // user defined functions
674 public class Xcls_codeeditviewbox : Object
677 private Xcls_MainWindow _this;
683 public Xcls_codeeditviewbox(Xcls_MainWindow _owner )
686 _this.codeeditviewbox = this;
687 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
691 // set gobject values
692 this.el.vexpand = true;
695 // user defined functions
700 public class Xcls_Box20 : Object
703 private Xcls_MainWindow _this;
709 public Xcls_Box20(Xcls_MainWindow _owner )
712 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
716 // set gobject values
717 this.el.homogeneous = false;
718 var child_0 = new Xcls_Button21( _this );
720 this.el.add ( child_0.el );
721 var child_1 = new Xcls_Button23( _this );
723 this.el.add ( child_1.el );
724 var child_2 = new Xcls_MenuButton25( _this );
726 this.el.add ( child_2.el );
727 var child_3 = new Xcls_Label30( _this );
729 this.el.pack_start ( child_3.el , true,true,0 );
730 var child_4 = new Xcls_statusbar( _this );
732 this.el.pack_start ( child_4.el , true,true,0 );
733 var child_5 = new Xcls_search_entry( _this );
735 this.el.pack_start ( child_5.el , false,true,0 );
736 var child_6 = new Xcls_MenuBar33( _this );
738 this.el.add ( child_6.el );
739 var child_7 = new Xcls_statusbar_compile_spinner( _this );
741 this.el.add ( child_7.el );
744 // user defined functions
746 public class Xcls_Button21 : Object
748 public Gtk.Button el;
749 private Xcls_MainWindow _this;
755 public Xcls_Button21(Xcls_MainWindow _owner )
758 this.el = new Gtk.Button();
762 // set gobject values
763 this.el.always_show_image = true;
764 this.el.tooltip_text = "Project Details";
765 this.el.label = "Edit Project Settings";
766 var child_0 = new Xcls_Image22( _this );
768 this.el.set_image ( child_0.el );
771 this.el.clicked.connect( ( ) => {
773 _this.windowstate.projectPopoverShow(this.el, _this.project);
779 // user defined functions
781 public class Xcls_Image22 : Object
784 private Xcls_MainWindow _this;
790 public Xcls_Image22(Xcls_MainWindow _owner )
793 this.el = new Gtk.Image();
797 // set gobject values
798 this.el.icon_name = "emblem-system";
801 // user defined functions
805 public class Xcls_Button23 : Object
807 public Gtk.Button el;
808 private Xcls_MainWindow _this;
814 public Xcls_Button23(Xcls_MainWindow _owner )
817 this.el = new Gtk.Button();
821 // set gobject values
822 this.el.always_show_image = true;
823 this.el.tooltip_text = "File Details";
824 this.el.label = "Edit File Properties";
825 var child_0 = new Xcls_Image24( _this );
827 this.el.set_image ( child_0.el );
830 this.el.clicked.connect( ( ) => {
832 // create a new file in project..
833 if (_this.project == null || _this.windowstate.file == null) {
836 _this.windowstate.file_details.show(
837 _this.windowstate.file, this.el, false
846 // user defined functions
848 public class Xcls_Image24 : Object
851 private Xcls_MainWindow _this;
857 public Xcls_Image24(Xcls_MainWindow _owner )
860 this.el = new Gtk.Image();
864 // set gobject values
865 this.el.icon_name = "document-properties";
868 // user defined functions
872 public class Xcls_MenuButton25 : Object
874 public Gtk.MenuButton el;
875 private Xcls_MainWindow _this;
881 public Xcls_MenuButton25(Xcls_MainWindow _owner )
884 this.el = new Gtk.MenuButton();
888 // set gobject values
889 this.el.always_show_image = true;
890 this.el.label = "About";
891 var child_0 = new Xcls_topbarmenu( _this );
893 this.el.set_popup ( child_0.el );
894 var child_1 = new Xcls_Image29( _this );
896 this.el.set_image ( child_1.el );
899 // user defined functions
901 public class Xcls_topbarmenu : Object
904 private Xcls_MainWindow _this;
910 public Xcls_topbarmenu(Xcls_MainWindow _owner )
913 _this.topbarmenu = this;
914 this.el = new Gtk.Menu();
918 // set gobject values
919 var child_0 = new Xcls_MenuItem27( _this );
921 this.el.append ( child_0.el );
922 var child_1 = new Xcls_MenuItem28( _this );
924 this.el.append ( child_1.el );
933 // user defined functions
935 public class Xcls_MenuItem27 : Object
937 public Gtk.MenuItem el;
938 private Xcls_MainWindow _this;
944 public Xcls_MenuItem27(Xcls_MainWindow _owner )
947 this.el = new Gtk.MenuItem();
951 // set gobject values
952 this.el.label = "Download updated Resources";
955 this.el.activate.connect( ( ) => {
956 Resources.singleton().fetchStart();
960 // user defined functions
963 public class Xcls_MenuItem28 : Object
965 public Gtk.MenuItem el;
966 private Xcls_MainWindow _this;
972 public Xcls_MenuItem28(Xcls_MainWindow _owner )
975 this.el = new Gtk.MenuItem();
979 // set gobject values
980 this.el.label = "About the Builder";
983 this.el.activate.connect( () => {
984 About.singleton().el.show();
988 // user defined functions
992 public class Xcls_Image29 : Object
995 private Xcls_MainWindow _this;
1001 public Xcls_Image29(Xcls_MainWindow _owner )
1004 this.el = new Gtk.Image();
1008 // set gobject values
1009 this.el.icon_name = "dialog-information";
1012 // user defined functions
1016 public class Xcls_Label30 : Object
1018 public Gtk.Label el;
1019 private Xcls_MainWindow _this;
1025 public Xcls_Label30(Xcls_MainWindow _owner )
1028 this.el = new Gtk.Label( " " );
1032 // set gobject values
1035 // user defined functions
1038 public class Xcls_statusbar : Object
1040 public Gtk.ProgressBar el;
1041 private Xcls_MainWindow _this;
1045 public ulong handler_id;
1048 public Xcls_statusbar(Xcls_MainWindow _owner )
1051 _this.statusbar = this;
1052 this.el = new Gtk.ProgressBar();
1055 this.handler_id = -1;
1057 // set gobject values
1058 this.el.show_text = true;
1063 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
1066 _this.mainpane.el.set_sensitive(true);
1070 _this.mainpane.el.set_sensitive(false);
1072 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
1073 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
1079 // user defined functions
1082 public class Xcls_search_entry : Object
1084 public Gtk.SearchEntry el;
1085 private Xcls_MainWindow _this;
1091 public Xcls_search_entry(Xcls_MainWindow _owner )
1094 _this.search_entry = this;
1095 this.el = new Gtk.SearchEntry();
1099 // set gobject values
1100 this.el.width_request = 300;
1104 var description = Pango.FontDescription.from_string("monospace");
1105 description.set_size(8000);
1106 this.el.override_font(description);
1109 this.el.key_press_event.connect( (event) => {
1111 if (event.keyval == Gdk.Key.Return) {
1112 this.forwardSearch(false);
1116 // print(event.key.keyval)
1121 this.el.changed.connect( () => {
1122 if (this.el.text == "") {
1123 _this.search_results.el.hide();
1127 switch(_this.windowstate.state) {
1128 case WindowState.State.CODEONLY:
1129 ///case WindowState.State.CODE:
1130 // search the code being edited..
1131 res = _this.windowstate.code_editor_tab.search(this.el.text);
1134 case WindowState.State.PREVIEW:
1135 if (_this.windowstate.file.xtype == "Gtk") {
1136 res = _this.windowstate.window_gladeview.search(this.el.text);
1138 res = _this.windowstate.window_rooview.search(this.el.text);
1144 _this.search_results.el.show();
1146 _this.search_results.el.label = "%d Matches".printf(res);
1148 _this.search_results.el.label = "No Matches";
1156 // user defined functions
1157 public void forwardSearch (bool change_focus) {
1158 switch(_this.windowstate.state) {
1159 case WindowState.State.CODEONLY:
1160 //case WindowState.State.CODE:
1161 // search the code being edited..
1162 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
1165 case WindowState.State.PREVIEW:
1166 if (_this.windowstate.file.xtype == "Gtk") {
1167 _this.windowstate.window_gladeview.forwardSearch(change_focus);
1169 _this.windowstate.window_rooview.forwardSearch(change_focus);
1178 public class Xcls_MenuBar33 : Object
1180 public Gtk.MenuBar el;
1181 private Xcls_MainWindow _this;
1187 public Xcls_MenuBar33(Xcls_MainWindow _owner )
1190 this.el = new Gtk.MenuBar();
1194 // set gobject values
1195 this.el.tooltip_text = "Update Resources / About Roobuilder";
1196 var child_0 = new Xcls_search_results( _this );
1198 this.el.add ( child_0.el );
1199 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
1201 this.el.add ( child_1.el );
1202 var child_2 = new Xcls_statusbar_errors( _this );
1204 this.el.add ( child_2.el );
1205 var child_3 = new Xcls_statusbar_warnings( _this );
1207 this.el.add ( child_3.el );
1208 var child_4 = new Xcls_statusbar_depricated( _this );
1210 this.el.add ( child_4.el );
1211 var child_5 = new Xcls_statusbar_run( _this );
1213 this.el.add ( child_5.el );
1216 // user defined functions
1218 public class Xcls_search_results : Object
1220 public Gtk.ImageMenuItem el;
1221 private Xcls_MainWindow _this;
1225 public Xcls_ValaCompileErrors popup;
1228 public Xcls_search_results(Xcls_MainWindow _owner )
1231 _this.search_results = this;
1232 this.el = new Gtk.ImageMenuItem();
1236 // set gobject values
1237 this.el.always_show_image = true;
1238 this.el.label = "Matches";
1239 var child_0 = new Xcls_Image35( _this );
1241 this.el.set_image ( child_0.el );
1244 this.el.button_press_event.connect( () => {
1246 if (this.popup == null) {
1247 this.popup = new Xcls_ValaCompileErrors();
1248 this.popup.window = _this;
1252 this.popup.show(this.notices, this.el);
1258 // user defined functions
1260 public class Xcls_Image35 : Object
1262 public Gtk.Image el;
1263 private Xcls_MainWindow _this;
1269 public Xcls_Image35(Xcls_MainWindow _owner )
1272 this.el = new Gtk.Image();
1276 // set gobject values
1277 this.el.icon_name = "system-search";
1278 this.el.sensitive = false;
1281 // user defined functions
1285 public class Xcls_statusbar_compilestatus_label : Object
1287 public Gtk.MenuItem el;
1288 private Xcls_MainWindow _this;
1294 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
1297 _this.statusbar_compilestatus_label = this;
1298 this.el = new Gtk.MenuItem();
1302 // set gobject values
1303 this.el.label = "Compile Status:";
1306 // user defined functions
1309 public class Xcls_statusbar_errors : Object
1311 public Gtk.ImageMenuItem el;
1312 private Xcls_MainWindow _this;
1316 public Xcls_ValaCompileErrors popup;
1317 public Json.Object notices;
1320 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
1323 _this.statusbar_errors = this;
1324 this.el = new Gtk.ImageMenuItem();
1327 this.notices = new Json.Object();
1329 // set gobject values
1330 this.el.always_show_image = true;
1331 this.el.label = "Errors";
1332 var child_0 = new Xcls_Image38( _this );
1334 this.el.set_image ( child_0.el );
1337 this.el.button_press_event.connect( () => {
1338 if (this.popup == null) {
1339 this.popup = new Xcls_ValaCompileErrors();
1340 this.popup.window = _this;
1344 this.popup.show(this.notices, this.el);
1349 // user defined functions
1350 public void setNotices (Json.Object nots, int qty) {
1352 this.el.label = qty.to_string() + " Errors";
1353 this.notices = nots;
1357 public class Xcls_Image38 : Object
1359 public Gtk.Image el;
1360 private Xcls_MainWindow _this;
1366 public Xcls_Image38(Xcls_MainWindow _owner )
1369 this.el = new Gtk.Image();
1373 // set gobject values
1374 this.el.icon_name = "dialog-error";
1377 // user defined functions
1381 public class Xcls_statusbar_warnings : Object
1383 public Gtk.ImageMenuItem el;
1384 private Xcls_MainWindow _this;
1388 public Xcls_ValaCompileErrors popup;
1389 public Json.Object notices;
1392 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
1395 _this.statusbar_warnings = this;
1396 this.el = new Gtk.ImageMenuItem();
1399 this.notices = new Json.Object();
1401 // set gobject values
1402 this.el.always_show_image = true;
1403 this.el.label = "Warnings";
1404 var child_0 = new Xcls_Image40( _this );
1406 this.el.set_image ( child_0.el );
1409 this.el.button_press_event.connect( () => {
1410 if (this.popup == null) {
1411 this.popup = new Xcls_ValaCompileErrors();
1412 this.popup.window = _this;
1415 this.popup.show(this.notices, this.el);
1420 // user defined functions
1421 public void setNotices (Json.Object nots, int qty) {
1423 this.el.label = qty.to_string() + " Warnings";
1424 this.notices = nots;
1428 public class Xcls_Image40 : Object
1430 public Gtk.Image el;
1431 private Xcls_MainWindow _this;
1437 public Xcls_Image40(Xcls_MainWindow _owner )
1440 this.el = new Gtk.Image();
1444 // set gobject values
1445 this.el.icon_name = "dialog-warning";
1448 // user defined functions
1452 public class Xcls_statusbar_depricated : Object
1454 public Gtk.ImageMenuItem el;
1455 private Xcls_MainWindow _this;
1459 public Xcls_ValaCompileErrors popup;
1460 public Json.Object notices;
1463 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
1466 _this.statusbar_depricated = this;
1467 this.el = new Gtk.ImageMenuItem();
1470 this.notices = new Json.Object();
1472 // set gobject values
1473 this.el.always_show_image = true;
1474 this.el.label = "Depricated";
1475 var child_0 = new Xcls_Image42( _this );
1477 this.el.set_image ( child_0.el );
1480 this.el.button_press_event.connect( () => {
1481 if (this.popup == null) {
1482 this.popup = new Xcls_ValaCompileErrors();
1483 this.popup.window = _this;
1487 this.popup.show(this.notices, this.el);
1492 // user defined functions
1493 public void setNotices (Json.Object nots, int qty) {
1495 this.el.label = qty.to_string() + " Depricated";
1496 this.notices = nots;
1500 public class Xcls_Image42 : Object
1502 public Gtk.Image el;
1503 private Xcls_MainWindow _this;
1509 public Xcls_Image42(Xcls_MainWindow _owner )
1512 this.el = new Gtk.Image();
1516 // set gobject values
1517 this.el.icon_name = "dialog-information";
1520 // user defined functions
1524 public class Xcls_statusbar_run : Object
1526 public Gtk.ImageMenuItem el;
1527 private Xcls_MainWindow _this;
1531 public Xcls_ValaCompileErrors popup;
1534 public Xcls_statusbar_run(Xcls_MainWindow _owner )
1537 _this.statusbar_run = this;
1538 this.el = new Gtk.ImageMenuItem();
1542 // set gobject values
1543 this.el.always_show_image = true;
1544 this.el.label = "Run";
1545 var child_0 = new Xcls_Image44( _this );
1547 this.el.set_image ( child_0.el );
1550 this.el.button_press_event.connect( () => {
1551 if (_this.windowstate.file == null) {
1554 BuilderApplication.valasource.spawnExecute(_this.windowstate.file);
1556 _this.windowstate.compile_results.show(this.el,true);
1562 // user defined functions
1564 public class Xcls_Image44 : Object
1566 public Gtk.Image el;
1567 private Xcls_MainWindow _this;
1573 public Xcls_Image44(Xcls_MainWindow _owner )
1576 this.el = new Gtk.Image();
1580 // set gobject values
1581 this.el.icon_name = "media-playback-start";
1584 // user defined functions
1589 public class Xcls_statusbar_compile_spinner : Object
1591 public Gtk.Spinner el;
1592 private Xcls_MainWindow _this;
1598 public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
1601 _this.statusbar_compile_spinner = this;
1602 this.el = new Gtk.Spinner();
1606 // set gobject values
1607 this.el.tooltip_text = "Compiling";
1610 // user defined functions
1611 public void start () {
1615 public void stop () {