1 static Xcls_MainWindow _MainWindow;
3 public class Xcls_MainWindow : Object
6 private Xcls_MainWindow _this;
8 public static Xcls_MainWindow singleton()
10 if (_MainWindow == null) {
11 _MainWindow= new Xcls_MainWindow();
15 public Xcls_headerbar headerbar;
16 public Xcls_topbarmenu topbarmenu;
17 public Xcls_openbtn openbtn;
18 public Xcls_openbackbtn openbackbtn;
19 public Xcls_vbox vbox;
20 public Xcls_mainpane mainpane;
21 public Xcls_leftpane leftpane;
22 public Xcls_editpane editpane;
23 public Xcls_tree tree;
24 public Xcls_props props;
25 public Xcls_clutterembed clutterembed;
26 public Xcls_rooview rooview;
27 public Xcls_objectview objectview;
28 public Xcls_codeeditview codeeditview;
29 public Xcls_addpropsview addpropsview;
30 public Xcls_projecteditview projecteditview;
31 public Xcls_buttonlayout buttonlayout;
32 public Xcls_backbutton backbutton;
33 public Xcls_editfilebutton editfilebutton;
34 public Xcls_projecteditbutton projecteditbutton;
35 public Xcls_objectshowbutton objectshowbutton;
36 public Xcls_addpropbutton addpropbutton;
37 public Xcls_addlistenerbutton addlistenerbutton;
38 public Xcls_addprojectbutton addprojectbutton;
39 public Xcls_addfilebutton addfilebutton;
40 public Xcls_delprojectbutton delprojectbutton;
41 public Xcls_statusbar statusbar;
42 public Xcls_search_entry search_entry;
43 public Xcls_search_results search_results;
44 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
45 public Xcls_statusbar_errors statusbar_errors;
46 public Xcls_statusbar_warnings statusbar_warnings;
47 public Xcls_statusbar_depricated statusbar_depricated;
48 public Xcls_statusbar_run statusbar_run;
51 public Project.Project project;
53 public int no_windows;
54 public WindowState windowstate;
57 public Xcls_MainWindow()
60 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
64 this.title = "Application Builder";
66 this.windowstate = null;
69 this.el.border_width = 0;
70 this.el.default_height = 500;
71 this.el.default_width = 800;
72 var child_0 = new Xcls_headerbar( _this );
74 this.el.set_titlebar ( child_0.el );
75 var child_1 = new Xcls_vbox( _this );
77 this.el.add ( child_1.el );
84 this.el.delete_event.connect( ( event) => {
87 this.el.destroy.connect( () => {
88 Xcls_MainWindow.singleton().no_windows--;
90 Resources.singleton().disconnect(_this.statusbar.handler_id);
93 if (Xcls_MainWindow.singleton().no_windows < 1) {
98 this.el.show.connect( ( ) => {
99 // hide the file editing..
101 //this.hideViewEditing();
102 _this.statusbar.el.hide();
103 _this.statusbar_errors.el.hide();
104 _this.statusbar_warnings.el.hide();
105 _this.statusbar_depricated.el.hide();
108 Resources.singleton().checkResources();
111 this.el.key_release_event.connect( (event) => {
113 if (this.search_entry.el.is_visible()) {
114 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
115 print("SAVE: ctrl-f pressed");
116 this.search_entry.el.grab_focus();
120 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
121 print("SAVE: ctrl-g pressed");
122 this.search_entry.forwardSearch(true);
128 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
129 print("SAVE: ctrl-n pressed");
130 this.openNewWindow();
134 // print(event.key.keyval)
141 // user defined functions
142 public void openNewWindow () {
143 Xcls_MainWindow.singleton().no_windows++;
144 var w = new Xcls_MainWindow();
149 w.windowstate.switchState(WindowState.State.FILES);
151 public void initChildren () {
152 // this needs putting in a better place..
153 this.windowstate = new WindowState(this);
157 var tl = new Clutter.Timeline(6000);
158 tl.set_repeat_count(-1);
167 public void show () {
172 public void setTitle (string str) {
173 this.headerbar.el.set_title(this.title + " - " + str);
175 public class Xcls_headerbar : Object
177 public Gtk.HeaderBar el;
178 private Xcls_MainWindow _this;
184 public Xcls_headerbar(Xcls_MainWindow _owner )
187 _this.headerbar = this;
188 this.el = new Gtk.HeaderBar();
192 // set gobject values
193 this.el.title = "Application Builder";
194 this.el.show_close_button = true;
195 var child_0 = new Xcls_Box3( _this );
197 this.el.pack_start ( child_0.el );
200 // user defined functions
202 public class Xcls_Box3 : Object
205 private Xcls_MainWindow _this;
211 public Xcls_Box3(Xcls_MainWindow _owner )
214 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
218 // set gobject values
219 var child_0 = new Xcls_MenuButton4( _this );
221 this.el.add ( child_0.el );
222 var child_1 = new Xcls_openbtn( _this );
224 this.el.add ( child_1.el );
225 var child_2 = new Xcls_openbackbtn( _this );
227 this.el.add ( child_2.el );
230 // user defined functions
232 public class Xcls_MenuButton4 : Object
234 public Gtk.MenuButton el;
235 private Xcls_MainWindow _this;
241 public Xcls_MenuButton4(Xcls_MainWindow _owner )
244 this.el = new Gtk.MenuButton();
248 // set gobject values
249 this.el.use_popover = false;
250 var child_0 = new Xcls_topbarmenu( _this );
252 this.el.set_popup ( child_0.el );
253 var child_1 = new Xcls_Image10( _this );
255 this.el.set_image ( child_1.el );
258 // user defined functions
260 public class Xcls_topbarmenu : Object
263 private Xcls_MainWindow _this;
269 public Xcls_topbarmenu(Xcls_MainWindow _owner )
272 _this.topbarmenu = this;
273 this.el = new Gtk.Menu();
277 // set gobject values
278 var child_0 = new Xcls_MenuItem6( _this );
280 this.el.append ( child_0.el );
281 var child_1 = new Xcls_SeparatorMenuItem7( _this );
283 this.el.append ( child_1.el );
284 var child_2 = new Xcls_MenuItem8( _this );
286 this.el.append ( child_2.el );
287 var child_3 = new Xcls_MenuItem9( _this );
289 this.el.append ( child_3.el );
298 // user defined functions
300 public class Xcls_MenuItem6 : Object
302 public Gtk.MenuItem el;
303 private Xcls_MainWindow _this;
309 public Xcls_MenuItem6(Xcls_MainWindow _owner )
312 this.el = new Gtk.MenuItem();
316 // set gobject values
317 this.el.label = "Open a new Window";
320 this.el.activate.connect( ( ) => {
321 _this.openNewWindow();
325 // user defined functions
328 public class Xcls_SeparatorMenuItem7 : Object
330 public Gtk.SeparatorMenuItem el;
331 private Xcls_MainWindow _this;
337 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
340 this.el = new Gtk.SeparatorMenuItem();
344 // set gobject values
347 // user defined functions
350 public class Xcls_MenuItem8 : Object
352 public Gtk.MenuItem el;
353 private Xcls_MainWindow _this;
359 public Xcls_MenuItem8(Xcls_MainWindow _owner )
362 this.el = new Gtk.MenuItem();
366 // set gobject values
367 this.el.label = "Download updated Resources";
370 this.el.activate.connect( ( ) => {
371 Resources.singleton().fetchStart();
375 // user defined functions
378 public class Xcls_MenuItem9 : Object
380 public Gtk.MenuItem el;
381 private Xcls_MainWindow _this;
387 public Xcls_MenuItem9(Xcls_MainWindow _owner )
390 this.el = new Gtk.MenuItem();
394 // set gobject values
395 this.el.label = "About the Builder";
398 this.el.activate.connect( () => {
399 About.singleton().el.show();
403 // user defined functions
407 public class Xcls_Image10 : Object
410 private Xcls_MainWindow _this;
416 public Xcls_Image10(Xcls_MainWindow _owner )
419 this.el = new Gtk.Image();
423 // set gobject values
424 this.el.icon_name = "help-about";
427 // user defined functions
431 public class Xcls_openbtn : Object
433 public Gtk.Button el;
434 private Xcls_MainWindow _this;
440 public Xcls_openbtn(Xcls_MainWindow _owner )
443 _this.openbtn = this;
444 this.el = new Gtk.Button();
448 // set gobject values
449 this.el.height_request = 50;
450 var child_0 = new Xcls_Image12( _this );
452 this.el.set_image ( child_0.el );
455 this.el.clicked.connect( ( ) => {
456 _this.windowstate.switchState(WindowState.State.FILES);
462 // user defined functions
464 public class Xcls_Image12 : Object
467 private Xcls_MainWindow _this;
473 public Xcls_Image12(Xcls_MainWindow _owner )
476 this.el = new Gtk.Image();
480 // set gobject values
481 this.el.icon_name = "document-open";
484 // user defined functions
488 public class Xcls_openbackbtn : Object
490 public Gtk.Button el;
491 private Xcls_MainWindow _this;
497 public Xcls_openbackbtn(Xcls_MainWindow _owner )
500 _this.openbackbtn = this;
501 this.el = new Gtk.Button();
505 // set gobject values
506 this.el.width_request = 50;
507 this.el.height_request = 50;
508 this.el.tooltip_text = "Back";
509 this.el.visible = false;
510 var child_0 = new Xcls_Image14( _this );
512 this.el.set_image ( child_0.el );
515 this.el.clicked.connect( ( ) => {
517 _this.windowstate.switchState(WindowState.State.PREVIEW);
523 // user defined functions
525 public class Xcls_Image14 : Object
528 private Xcls_MainWindow _this;
534 public Xcls_Image14(Xcls_MainWindow _owner )
537 this.el = new Gtk.Image();
541 // set gobject values
542 this.el.icon_name = "go-previous";
545 // user defined functions
551 public class Xcls_vbox : Object
554 private Xcls_MainWindow _this;
560 public Xcls_vbox(Xcls_MainWindow _owner )
564 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
568 // set gobject values
569 this.el.homogeneous = false;
570 var child_0 = new Xcls_mainpane( _this );
572 this.el.pack_start ( child_0.el , true,true,0 );
573 var child_1 = new Xcls_Box66( _this );
575 this.el.pack_end ( child_1.el , false,true,0 );
578 // user defined functions
580 public class Xcls_mainpane : Object
583 private Xcls_MainWindow _this;
587 public int lastWidth;
590 public Xcls_mainpane(Xcls_MainWindow _owner )
593 _this.mainpane = this;
594 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
599 // set gobject values
600 this.el.position = 400;
601 var child_0 = new Xcls_leftpane( _this );
603 this.el.add1 ( child_0.el );
604 var child_1 = new Xcls_Box21( _this );
606 this.el.add2 ( child_1.el );
609 // user defined functions
611 public class Xcls_leftpane : Object
614 private Xcls_MainWindow _this;
620 public Xcls_leftpane(Xcls_MainWindow _owner )
623 _this.leftpane = this;
624 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
628 // set gobject values
629 var child_0 = new Xcls_editpane( _this );
631 this.el.pack_start ( child_0.el , true,true,0 );
634 // user defined functions
636 public class Xcls_editpane : Object
639 private Xcls_MainWindow _this;
645 public Xcls_editpane(Xcls_MainWindow _owner )
648 _this.editpane = this;
649 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
653 // set gobject values
654 var child_0 = new Xcls_tree( _this );
656 this.el.add1 ( child_0.el );
657 var child_1 = new Xcls_props( _this );
659 this.el.add2 ( child_1.el );
662 // user defined functions
664 public class Xcls_tree : Object
667 private Xcls_MainWindow _this;
673 public Xcls_tree(Xcls_MainWindow _owner )
677 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
681 // set gobject values
684 // user defined functions
687 public class Xcls_props : Object
690 private Xcls_MainWindow _this;
696 public Xcls_props(Xcls_MainWindow _owner )
700 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
704 // set gobject values
707 // user defined functions
712 public class Xcls_Box21 : Object
715 private Xcls_MainWindow _this;
721 public Xcls_Box21(Xcls_MainWindow _owner )
724 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
728 // set gobject values
729 var child_0 = new Xcls_clutterembed( _this );
731 this.el.pack_start ( child_0.el , true,true,0 );
734 // user defined functions
736 public class Xcls_clutterembed : Object
738 public GtkClutter.Embed el;
739 private Xcls_MainWindow _this;
745 public Xcls_clutterembed(Xcls_MainWindow _owner )
748 _this.clutterembed = this;
749 this.el = new GtkClutter.Embed();
753 // set gobject values
754 var child_0 = new Xcls_rooview( _this );
756 this.el.get_stage().add_child ( child_0.el );
757 var child_1 = new Xcls_objectview( _this );
759 this.el.get_stage().add_child ( child_1.el );
760 var child_2 = new Xcls_codeeditview( _this );
762 this.el.get_stage().add_child ( child_2.el );
763 var child_3 = new Xcls_addpropsview( _this );
765 this.el.get_stage().add_child ( child_3.el );
766 var child_4 = new Xcls_projecteditview( _this );
768 this.el.get_stage().add_child ( child_4.el );
769 var child_5 = new Xcls_buttonlayout( _this );
771 this.el.get_stage().add_child ( child_5.el );
775 var stage = this.el.get_stage();
776 stage.set_background_color( Clutter.Color.from_string("#000"));
779 this.el.size_allocate.connect( ( alloc) => {
780 if (_this.windowstate == null) {
783 _this.windowstate.resizeCanvas();
788 // user defined functions
790 public class Xcls_rooview : Object
792 public GtkClutter.Actor el;
793 private Xcls_MainWindow _this;
799 public Xcls_rooview(Xcls_MainWindow _owner )
802 _this.rooview = this;
803 this.el = new GtkClutter.Actor();
807 // set gobject values
814 this.el.add_constraint(
815 new Clutter.AlignConstraint(
816 _this.clutterembed.el.get_stage(),
817 Clutter.AlignAxis.X_AXIS,
822 //this.el.set_position(100,100);
823 this.el.set_pivot_point(1.0f,1.0f);
825 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
826 _this.clutterembed.el.get_stage().height);
831 // user defined functions
834 public class Xcls_objectview : Object
836 public GtkClutter.Actor el;
837 private Xcls_MainWindow _this;
843 public Xcls_objectview(Xcls_MainWindow _owner )
846 _this.objectview = this;
847 this.el = new GtkClutter.Actor();
851 // set gobject values
858 this.el.add_constraint(
859 new Clutter.AlignConstraint(
860 _this.clutterembed.el.get_stage(),
861 Clutter.AlignAxis.X_AXIS,
866 this.el.fixed_x = 50.0f;
867 this.el.fixed_y = 0.0f;
868 //this.el.set_position(100,100);
869 this.el.set_pivot_point(0.0f,0.0f);
870 this.el.set_scale(0.0f,1.0f);
871 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
872 _this.clutterembed.el.get_stage().height);
877 // user defined functions
880 public class Xcls_codeeditview : Object
882 public GtkClutter.Actor el;
883 private Xcls_MainWindow _this;
889 public Xcls_codeeditview(Xcls_MainWindow _owner )
892 _this.codeeditview = this;
893 this.el = new GtkClutter.Actor();
897 // set gobject values
904 this.el.add_constraint(
905 new Clutter.AlignConstraint(
906 _this.clutterembed.el.get_stage(),
907 Clutter.AlignAxis.X_AXIS,
912 this.el.fixed_x = 50.0f;
913 this.el.fixed_y = 0.0f;
914 //this.el.set_position(100,100);
915 this.el.set_pivot_point(0.0f,0.0f);
916 this.el.set_scale(0.0f,1.0f);
917 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
918 _this.clutterembed.el.get_stage().height);
923 // user defined functions
926 public class Xcls_addpropsview : Object
928 public GtkClutter.Actor el;
929 private Xcls_MainWindow _this;
935 public Xcls_addpropsview(Xcls_MainWindow _owner )
938 _this.addpropsview = this;
939 this.el = new GtkClutter.Actor();
943 // set gobject values
950 this.el.add_constraint(
951 new Clutter.AlignConstraint(
952 _this.clutterembed.el.get_stage(),
953 Clutter.AlignAxis.X_AXIS,
958 this.el.fixed_x = 50.0f;
959 this.el.fixed_y = 0.0f;
960 //this.el.set_position(100,100);
961 this.el.set_pivot_point(0.0f,0.0f);
962 this.el.set_scale(0.0f,1.0f);
963 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
964 _this.clutterembed.el.get_stage().height);
969 // user defined functions
972 public class Xcls_projecteditview : Object
974 public GtkClutter.Actor el;
975 private Xcls_MainWindow _this;
981 public Xcls_projecteditview(Xcls_MainWindow _owner )
984 _this.projecteditview = this;
985 this.el = new GtkClutter.Actor();
989 // set gobject values
996 this.el.add_constraint(
997 new Clutter.AlignConstraint(
998 _this.clutterembed.el.get_stage(),
999 Clutter.AlignAxis.X_AXIS,
1004 //this.el.set_position(100,100);
1005 this.el.set_pivot_point(0.0f,0.0f);
1006 this.el.set_scale(1.0f,0.0f);
1007 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1008 _this.clutterembed.el.get_stage().height /2);
1013 // user defined functions
1016 public class Xcls_buttonlayout : Object
1018 public Clutter.Actor el;
1019 private Xcls_MainWindow _this;
1025 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1028 _this.buttonlayout = this;
1029 this.el = new Clutter.Actor();
1033 // set gobject values
1034 var child_0 = new Xcls_BoxLayout29( _this );
1036 this.el.layout_manager = child_0.el;
1037 var child_1 = new Xcls_backbutton( _this );
1039 this.el.add_child ( child_1.el );
1040 var child_2 = new Xcls_editfilebutton( _this );
1042 this.el.add_child ( child_2.el );
1043 var child_3 = new Xcls_projecteditbutton( _this );
1045 this.el.add_child ( child_3.el );
1046 var child_4 = new Xcls_objectshowbutton( _this );
1048 this.el.add_child ( child_4.el );
1049 var child_5 = new Xcls_addpropbutton( _this );
1051 this.el.add_child ( child_5.el );
1052 var child_6 = new Xcls_addlistenerbutton( _this );
1054 this.el.add_child ( child_6.el );
1055 var child_7 = new Xcls_addprojectbutton( _this );
1057 this.el.add_child ( child_7.el );
1058 var child_8 = new Xcls_addfilebutton( _this );
1060 this.el.add_child ( child_8.el );
1061 var child_9 = new Xcls_delprojectbutton( _this );
1063 this.el.add_child ( child_9.el );
1069 this.el.add_constraint(
1070 new Clutter.AlignConstraint(
1071 _this.clutterembed.el.get_stage(),
1072 Clutter.AlignAxis.X_AXIS,
1078 //this.el.set_position(100,100);
1079 this.el.set_pivot_point(0.5f,0.5f);
1080 this.el.set_size(50,
1081 _this.clutterembed.el.get_stage().height);
1086 // user defined functions
1088 public class Xcls_BoxLayout29 : Object
1090 public Clutter.BoxLayout el;
1091 private Xcls_MainWindow _this;
1097 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1100 this.el = new Clutter.BoxLayout();
1104 // set gobject values
1105 this.el.orientation = Clutter.Orientation.VERTICAL;
1108 // user defined functions
1111 public class Xcls_backbutton : Object
1113 public Clutter.Actor el;
1114 private Xcls_MainWindow _this;
1120 public Xcls_backbutton(Xcls_MainWindow _owner )
1123 _this.backbutton = this;
1124 this.el = new Clutter.Actor();
1128 // set gobject values
1129 var child_0 = new Xcls_Actor31( _this );
1131 this.el.add_child ( child_0.el );
1135 this.el.set_size(50,50);
1138 // user defined functions
1140 public class Xcls_Actor31 : Object
1142 public GtkClutter.Actor el;
1143 private Xcls_MainWindow _this;
1149 public Xcls_Actor31(Xcls_MainWindow _owner )
1152 this.el = new GtkClutter.Actor();
1156 // set gobject values
1157 var child_0 = new Xcls_Button32( _this );
1162 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1165 // user defined functions
1167 public class Xcls_Button32 : Object
1169 public Gtk.Button el;
1170 private Xcls_MainWindow _this;
1176 public Xcls_Button32(Xcls_MainWindow _owner )
1179 this.el = new Gtk.Button();
1183 // set gobject values
1184 this.el.width_request = 50;
1185 this.el.height_request = 50;
1186 this.el.tooltip_text = "Back";
1187 var child_0 = new Xcls_Image33( _this );
1189 this.el.set_image ( child_0.el );
1192 this.el.clicked.connect( ( ) => {
1194 _this.windowstate.switchState(WindowState.State.PREVIEW);
1200 // user defined functions
1202 public class Xcls_Image33 : Object
1204 public Gtk.Image el;
1205 private Xcls_MainWindow _this;
1211 public Xcls_Image33(Xcls_MainWindow _owner )
1214 this.el = new Gtk.Image();
1218 // set gobject values
1219 this.el.icon_name = "go-previous";
1222 // user defined functions
1228 public class Xcls_editfilebutton : Object
1230 public Clutter.Actor el;
1231 private Xcls_MainWindow _this;
1237 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1240 _this.editfilebutton = this;
1241 this.el = new Clutter.Actor();
1245 // set gobject values
1246 var child_0 = new Xcls_Actor35( _this );
1248 this.el.add_child ( child_0.el );
1252 this.el.set_size(50.0f,50.0f);
1255 // user defined functions
1257 public class Xcls_Actor35 : Object
1259 public GtkClutter.Actor el;
1260 private Xcls_MainWindow _this;
1266 public Xcls_Actor35(Xcls_MainWindow _owner )
1269 this.el = new GtkClutter.Actor();
1273 // set gobject values
1274 var child_0 = new Xcls_Button36( _this );
1279 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1282 // user defined functions
1284 public class Xcls_Button36 : Object
1286 public Gtk.Button el;
1287 private Xcls_MainWindow _this;
1293 public Xcls_Button36(Xcls_MainWindow _owner )
1296 this.el = new Gtk.Button();
1300 // set gobject values
1301 this.el.width_request = 50;
1302 this.el.height_request = 50;
1303 this.el.tooltip_text = "File Details";
1304 var child_0 = new Xcls_Image37( _this );
1306 this.el.set_image ( child_0.el );
1309 this.el.clicked.connect( ( ) => {
1311 // create a new file in project..
1312 if (_this.project == null || _this.windowstate.file == null) {
1315 _this.windowstate.file_details.show(
1316 _this.windowstate.file, this.el
1325 // user defined functions
1327 public class Xcls_Image37 : Object
1329 public Gtk.Image el;
1330 private Xcls_MainWindow _this;
1336 public Xcls_Image37(Xcls_MainWindow _owner )
1339 this.el = new Gtk.Image();
1343 // set gobject values
1344 this.el.icon_name = "document-properties";
1347 // user defined functions
1353 public class Xcls_projecteditbutton : Object
1355 public Clutter.Actor el;
1356 private Xcls_MainWindow _this;
1362 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1365 _this.projecteditbutton = this;
1366 this.el = new Clutter.Actor();
1370 // set gobject values
1371 var child_0 = new Xcls_Actor39( _this );
1373 this.el.add_child ( child_0.el );
1377 this.el.set_size(50,50);
1380 // user defined functions
1382 public class Xcls_Actor39 : Object
1384 public GtkClutter.Actor el;
1385 private Xcls_MainWindow _this;
1391 public Xcls_Actor39(Xcls_MainWindow _owner )
1394 this.el = new GtkClutter.Actor();
1398 // set gobject values
1399 var child_0 = new Xcls_Button40( _this );
1404 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1407 // user defined functions
1409 public class Xcls_Button40 : Object
1411 public Gtk.Button el;
1412 private Xcls_MainWindow _this;
1418 public Xcls_Button40(Xcls_MainWindow _owner )
1421 this.el = new Gtk.Button();
1425 // set gobject values
1426 this.el.width_request = 50;
1427 this.el.height_request = 50;
1428 this.el.tooltip_text = "Project Details";
1429 var child_0 = new Xcls_Image41( _this );
1431 this.el.set_image ( child_0.el );
1434 this.el.clicked.connect( ( ) => {
1435 _this.windowstate.switchState(WindowState.State.PROJECT);
1442 // user defined functions
1444 public class Xcls_Image41 : Object
1446 public Gtk.Image el;
1447 private Xcls_MainWindow _this;
1453 public Xcls_Image41(Xcls_MainWindow _owner )
1456 this.el = new Gtk.Image();
1460 // set gobject values
1461 this.el.icon_name = "emblem-system";
1464 // user defined functions
1470 public class Xcls_objectshowbutton : Object
1472 public Clutter.Actor el;
1473 private Xcls_MainWindow _this;
1479 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1482 _this.objectshowbutton = this;
1483 this.el = new Clutter.Actor();
1487 // set gobject values
1488 var child_0 = new Xcls_Actor43( _this );
1490 this.el.add_child ( child_0.el );
1494 this.el.set_size(50,50);
1497 this.el.enter_event.connect( ( event) => {
1498 this.el.background_color = Clutter.Color.from_string("#333");
1501 this.el.leave_event.connect( ( event) => {
1502 this.el.background_color = Clutter.Color.from_string("#000");
1507 // user defined functions
1509 public class Xcls_Actor43 : Object
1511 public GtkClutter.Actor el;
1512 private Xcls_MainWindow _this;
1518 public Xcls_Actor43(Xcls_MainWindow _owner )
1521 this.el = new GtkClutter.Actor();
1525 // set gobject values
1526 var child_0 = new Xcls_Button44( _this );
1531 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1534 // user defined functions
1536 public class Xcls_Button44 : Object
1538 public Gtk.Button el;
1539 private Xcls_MainWindow _this;
1545 public Xcls_Button44(Xcls_MainWindow _owner )
1548 this.el = new Gtk.Button();
1552 // set gobject values
1553 this.el.width_request = 50;
1554 this.el.height_request = 50;
1555 this.el.tooltip_text = "Add Child Element";
1556 var child_0 = new Xcls_Image45( _this );
1558 this.el.set_image ( child_0.el );
1561 this.el.clicked.connect( ( ) => {
1563 _this.windowstate.switchState(WindowState.State.OBJECT);
1569 // user defined functions
1571 public class Xcls_Image45 : Object
1573 public Gtk.Image el;
1574 private Xcls_MainWindow _this;
1580 public Xcls_Image45(Xcls_MainWindow _owner )
1583 this.el = new Gtk.Image();
1587 // set gobject values
1588 this.el.icon_name = "list-add";
1591 // user defined functions
1597 public class Xcls_addpropbutton : Object
1599 public Clutter.Actor el;
1600 private Xcls_MainWindow _this;
1606 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1609 _this.addpropbutton = this;
1610 this.el = new Clutter.Actor();
1614 // set gobject values
1615 var child_0 = new Xcls_Actor47( _this );
1617 this.el.add_child ( child_0.el );
1621 this.el.set_size(50,50);
1624 // user defined functions
1626 public class Xcls_Actor47 : Object
1628 public GtkClutter.Actor el;
1629 private Xcls_MainWindow _this;
1635 public Xcls_Actor47(Xcls_MainWindow _owner )
1638 this.el = new GtkClutter.Actor();
1642 // set gobject values
1643 var child_0 = new Xcls_Button48( _this );
1648 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1651 // user defined functions
1653 public class Xcls_Button48 : Object
1655 public Gtk.Button el;
1656 private Xcls_MainWindow _this;
1662 public Xcls_Button48(Xcls_MainWindow _owner )
1665 this.el = new Gtk.Button();
1669 // set gobject values
1670 this.el.width_request = 50;
1671 this.el.height_request = 50;
1672 this.el.tooltip_text = "Add Property";
1673 var child_0 = new Xcls_Image49( _this );
1675 this.el.set_image ( child_0.el );
1678 this.el.clicked.connect( ( ) => {
1680 _this.windowstate.switchState(WindowState.State.PROP);
1686 // user defined functions
1688 public class Xcls_Image49 : Object
1690 public Gtk.Image el;
1691 private Xcls_MainWindow _this;
1697 public Xcls_Image49(Xcls_MainWindow _owner )
1700 this.el = new Gtk.Image();
1704 // set gobject values
1705 this.el.icon_name = "format-justify-left";
1708 // user defined functions
1714 public class Xcls_addlistenerbutton : Object
1716 public Clutter.Actor el;
1717 private Xcls_MainWindow _this;
1723 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1726 _this.addlistenerbutton = this;
1727 this.el = new Clutter.Actor();
1731 // set gobject values
1732 var child_0 = new Xcls_Actor51( _this );
1734 this.el.add_child ( child_0.el );
1738 this.el.set_size(50,50);
1741 // user defined functions
1743 public class Xcls_Actor51 : Object
1745 public GtkClutter.Actor el;
1746 private Xcls_MainWindow _this;
1752 public Xcls_Actor51(Xcls_MainWindow _owner )
1755 this.el = new GtkClutter.Actor();
1759 // set gobject values
1760 var child_0 = new Xcls_Button52( _this );
1765 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1768 // user defined functions
1770 public class Xcls_Button52 : Object
1772 public Gtk.Button el;
1773 private Xcls_MainWindow _this;
1779 public Xcls_Button52(Xcls_MainWindow _owner )
1782 this.el = new Gtk.Button();
1786 // set gobject values
1787 this.el.width_request = 50;
1788 this.el.height_request = 50;
1789 this.el.tooltip_text = "Add Event Code";
1790 var child_0 = new Xcls_Image53( _this );
1792 this.el.set_image ( child_0.el );
1795 this.el.clicked.connect( ( ) => {
1797 _this.windowstate.switchState(WindowState.State.LISTENER);
1804 // user defined functions
1806 public class Xcls_Image53 : Object
1808 public Gtk.Image el;
1809 private Xcls_MainWindow _this;
1815 public Xcls_Image53(Xcls_MainWindow _owner )
1818 this.el = new Gtk.Image();
1822 // set gobject values
1823 this.el.icon_name = "appointment-new";
1826 // user defined functions
1832 public class Xcls_addprojectbutton : Object
1834 public Clutter.Actor el;
1835 private Xcls_MainWindow _this;
1841 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1844 _this.addprojectbutton = this;
1845 this.el = new Clutter.Actor();
1849 // set gobject values
1850 var child_0 = new Xcls_Actor55( _this );
1852 this.el.add_child ( child_0.el );
1856 this.el.set_size(50.0f,50.0f);
1859 // user defined functions
1861 public class Xcls_Actor55 : Object
1863 public GtkClutter.Actor el;
1864 private Xcls_MainWindow _this;
1870 public Xcls_Actor55(Xcls_MainWindow _owner )
1873 this.el = new GtkClutter.Actor();
1877 // set gobject values
1878 var child_0 = new Xcls_Button56( _this );
1883 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1886 // user defined functions
1888 public class Xcls_Button56 : Object
1890 public Gtk.Button el;
1891 private Xcls_MainWindow _this;
1897 public Xcls_Button56(Xcls_MainWindow _owner )
1900 this.el = new Gtk.Button();
1904 // set gobject values
1905 this.el.width_request = 50;
1906 this.el.height_request = 50;
1907 this.el.tooltip_text = "New\nProj.";
1908 var child_0 = new Xcls_Image57( _this );
1910 this.el.set_image ( child_0.el );
1913 this.el.clicked.connect( ( ) => {
1915 // create a new file in project..
1916 //Xcls_DialogNewComponent.singleton().show(
1917 var pe = EditProject.singleton();
1918 pe.el.set_transient_for(_this.el);
1919 pe.el.set_modal(true);
1928 _this.windowstate.left_projects.is_loaded = false;
1929 _this.windowstate.left_projects.load();
1930 _this.windowstate.left_projects.selectProject(p);
1937 // user defined functions
1939 public class Xcls_Image57 : Object
1941 public Gtk.Image el;
1942 private Xcls_MainWindow _this;
1948 public Xcls_Image57(Xcls_MainWindow _owner )
1951 this.el = new Gtk.Image();
1955 // set gobject values
1956 this.el.icon_name = "folder-new";
1959 // user defined functions
1965 public class Xcls_addfilebutton : Object
1967 public Clutter.Actor el;
1968 private Xcls_MainWindow _this;
1974 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1977 _this.addfilebutton = this;
1978 this.el = new Clutter.Actor();
1982 // set gobject values
1983 var child_0 = new Xcls_Actor59( _this );
1985 this.el.add_child ( child_0.el );
1989 this.el.set_size(50.0f,50.0f);
1992 // user defined functions
1994 public class Xcls_Actor59 : Object
1996 public GtkClutter.Actor el;
1997 private Xcls_MainWindow _this;
2003 public Xcls_Actor59(Xcls_MainWindow _owner )
2006 this.el = new GtkClutter.Actor();
2010 // set gobject values
2011 var child_0 = new Xcls_Button60( _this );
2016 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2019 // user defined functions
2021 public class Xcls_Button60 : Object
2023 public Gtk.Button el;
2024 private Xcls_MainWindow _this;
2030 public Xcls_Button60(Xcls_MainWindow _owner )
2033 this.el = new Gtk.Button();
2037 // set gobject values
2038 this.el.width_request = 50;
2039 this.el.height_request = 50;
2040 this.el.tooltip_text = "Add File";
2041 var child_0 = new Xcls_Image61( _this );
2043 this.el.set_image ( child_0.el );
2046 this.el.clicked.connect( () => {
2047 // create a new file in project..
2048 print("add file selected\n");
2049 // what's the currently selected project...
2050 var proj = _this.windowstate.left_projects.getSelectedProject();
2053 print("no project selected?\n");
2057 print("creating file?");
2059 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2060 _this.project = proj;
2061 print("showing popup?");
2062 _this.windowstate.file_details.show(
2071 // user defined functions
2073 public class Xcls_Image61 : Object
2075 public Gtk.Image el;
2076 private Xcls_MainWindow _this;
2082 public Xcls_Image61(Xcls_MainWindow _owner )
2085 this.el = new Gtk.Image();
2089 // set gobject values
2090 this.el.icon_name = "document-new";
2093 // user defined functions
2099 public class Xcls_delprojectbutton : Object
2101 public Clutter.Actor el;
2102 private Xcls_MainWindow _this;
2108 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2111 _this.delprojectbutton = this;
2112 this.el = new Clutter.Actor();
2116 // set gobject values
2117 var child_0 = new Xcls_Actor63( _this );
2119 this.el.add_child ( child_0.el );
2123 this.el.set_size(50,50);
2126 // user defined functions
2128 public class Xcls_Actor63 : Object
2130 public GtkClutter.Actor el;
2131 private Xcls_MainWindow _this;
2137 public Xcls_Actor63(Xcls_MainWindow _owner )
2140 this.el = new GtkClutter.Actor();
2144 // set gobject values
2145 var child_0 = new Xcls_Button64( _this );
2150 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2153 // user defined functions
2155 public class Xcls_Button64 : Object
2157 public Gtk.Button el;
2158 private Xcls_MainWindow _this;
2164 public Xcls_Button64(Xcls_MainWindow _owner )
2167 this.el = new Gtk.Button();
2171 // set gobject values
2172 this.el.width_request = 50;
2173 this.el.height_request = 50;
2174 this.el.tooltip_text = "Delete Project";
2175 var child_0 = new Xcls_Image65( _this );
2177 this.el.set_image ( child_0.el );
2180 this.el.clicked.connect( ( ) => {
2182 var cd = DialogConfirm.singleton();
2183 cd.el.set_transient_for(_this.el);
2184 cd.el.set_modal(true);
2186 var project = _this.windowstate.left_projects.getSelectedProject();
2187 if (project == null) {
2188 print("SKIP - no project\n");
2193 if (Gtk.ResponseType.YES != cd.show("Confirm",
2194 "Are you sure you want to delete project %s".printf(project.name))) {
2200 Project.Project.remove(project);
2201 _this.project = null;
2203 _this.windowstate.left_projects.is_loaded = false;
2204 _this.windowstate.left_projects.load();
2205 _this.windowstate.clutterfiles.clearFiles();
2210 // user defined functions
2212 public class Xcls_Image65 : Object
2214 public Gtk.Image el;
2215 private Xcls_MainWindow _this;
2221 public Xcls_Image65(Xcls_MainWindow _owner )
2224 this.el = new Gtk.Image();
2228 // set gobject values
2229 this.el.icon_name = "user-trash";
2232 // user defined functions
2242 public class Xcls_Box66 : Object
2245 private Xcls_MainWindow _this;
2251 public Xcls_Box66(Xcls_MainWindow _owner )
2254 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2258 // set gobject values
2259 this.el.homogeneous = false;
2260 var child_0 = new Xcls_Label67( _this );
2262 this.el.pack_start ( child_0.el , true,true,0 );
2263 var child_1 = new Xcls_statusbar( _this );
2265 this.el.pack_start ( child_1.el , true,true,0 );
2266 var child_2 = new Xcls_search_entry( _this );
2268 this.el.pack_start ( child_2.el , false,true,0 );
2269 var child_3 = new Xcls_MenuBar70( _this );
2271 this.el.pack_end ( child_3.el , false,true,0 );
2274 // user defined functions
2276 public class Xcls_Label67 : Object
2278 public Gtk.Label el;
2279 private Xcls_MainWindow _this;
2285 public Xcls_Label67(Xcls_MainWindow _owner )
2288 this.el = new Gtk.Label( " " );
2292 // set gobject values
2295 // user defined functions
2298 public class Xcls_statusbar : Object
2300 public Gtk.ProgressBar el;
2301 private Xcls_MainWindow _this;
2305 public ulong handler_id;
2308 public Xcls_statusbar(Xcls_MainWindow _owner )
2311 _this.statusbar = this;
2312 this.el = new Gtk.ProgressBar();
2315 this.handler_id = -1;
2317 // set gobject values
2318 this.el.show_text = true;
2323 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2326 _this.mainpane.el.set_sensitive(true);
2330 _this.mainpane.el.set_sensitive(false);
2332 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2333 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2339 // user defined functions
2342 public class Xcls_search_entry : Object
2344 public Gtk.SearchEntry el;
2345 private Xcls_MainWindow _this;
2351 public Xcls_search_entry(Xcls_MainWindow _owner )
2354 _this.search_entry = this;
2355 this.el = new Gtk.SearchEntry();
2359 // set gobject values
2363 var description = Pango.FontDescription.from_string("monospace");
2364 description.set_size(8000);
2365 this.el.override_font(description);
2368 this.el.key_press_event.connect( (event) => {
2370 if (event.keyval == Gdk.Key.Return) {
2371 this.forwardSearch(false);
2375 // print(event.key.keyval)
2380 this.el.changed.connect( () => {
2381 if (this.el.text == "") {
2382 _this.search_results.el.hide();
2386 switch(_this.windowstate.state) {
2387 case WindowState.State.CODEONLY:
2388 case WindowState.State.CODE:
2389 // search the code being edited..
2390 res = _this.windowstate.code_editor.search(this.el.text);
2393 case WindowState.State.PREVIEW:
2394 if (_this.windowstate.file.xtype == "Gtk") {
2395 res = _this.windowstate.window_gladeview.search(this.el.text);
2397 res = _this.windowstate.window_rooview.search(this.el.text);
2403 _this.search_results.el.show();
2405 _this.search_results.el.label = "%d Matches".printf(res);
2407 _this.search_results.el.label = "No Matches";
2415 // user defined functions
2416 public void forwardSearch (bool change_focus) {
2417 switch(_this.windowstate.state) {
2418 case WindowState.State.CODEONLY:
2419 case WindowState.State.CODE:
2420 // search the code being edited..
2421 _this.windowstate.code_editor.forwardSearch(change_focus);
2424 case WindowState.State.PREVIEW:
2425 if (_this.windowstate.file.xtype == "Gtk") {
2426 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2428 _this.windowstate.window_rooview.forwardSearch(change_focus);
2437 public class Xcls_MenuBar70 : Object
2439 public Gtk.MenuBar el;
2440 private Xcls_MainWindow _this;
2446 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2449 this.el = new Gtk.MenuBar();
2453 // set gobject values
2454 var child_0 = new Xcls_search_results( _this );
2456 this.el.add ( child_0.el );
2457 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2459 this.el.add ( child_1.el );
2460 var child_2 = new Xcls_statusbar_errors( _this );
2462 this.el.add ( child_2.el );
2463 var child_3 = new Xcls_statusbar_warnings( _this );
2465 this.el.add ( child_3.el );
2466 var child_4 = new Xcls_statusbar_depricated( _this );
2468 this.el.add ( child_4.el );
2469 var child_5 = new Xcls_statusbar_run( _this );
2471 this.el.add ( child_5.el );
2474 // user defined functions
2476 public class Xcls_search_results : Object
2478 public Gtk.ImageMenuItem el;
2479 private Xcls_MainWindow _this;
2483 public Xcls_ValaCompileErrors popup;
2486 public Xcls_search_results(Xcls_MainWindow _owner )
2489 _this.search_results = this;
2490 this.el = new Gtk.ImageMenuItem();
2494 // set gobject values
2495 this.el.always_show_image = true;
2496 this.el.label = "Matches";
2497 var child_0 = new Xcls_Image72( _this );
2499 this.el.set_image ( child_0.el );
2502 this.el.button_press_event.connect( () => {
2504 if (this.popup == null) {
2505 this.popup = new Xcls_ValaCompileErrors();
2506 this.popup.window = _this;
2510 this.popup.show(this.notices, this.el);
2516 // user defined functions
2518 public class Xcls_Image72 : Object
2520 public Gtk.Image el;
2521 private Xcls_MainWindow _this;
2527 public Xcls_Image72(Xcls_MainWindow _owner )
2530 this.el = new Gtk.Image();
2534 // set gobject values
2535 this.el.icon_name = "system-search";
2536 this.el.sensitive = false;
2539 // user defined functions
2543 public class Xcls_statusbar_compilestatus_label : Object
2545 public Gtk.MenuItem el;
2546 private Xcls_MainWindow _this;
2552 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2555 _this.statusbar_compilestatus_label = this;
2556 this.el = new Gtk.MenuItem();
2560 // set gobject values
2561 this.el.label = "Compile Status:";
2564 // user defined functions
2567 public class Xcls_statusbar_errors : Object
2569 public Gtk.ImageMenuItem el;
2570 private Xcls_MainWindow _this;
2574 public Xcls_ValaCompileErrors popup;
2575 public Json.Object notices;
2578 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2581 _this.statusbar_errors = this;
2582 this.el = new Gtk.ImageMenuItem();
2585 this.notices = new Json.Object() ;
2587 // set gobject values
2588 this.el.always_show_image = true;
2589 this.el.label = "Errors";
2590 var child_0 = new Xcls_Image75( _this );
2592 this.el.set_image ( child_0.el );
2595 this.el.button_press_event.connect( () => {
2596 if (this.popup == null) {
2597 this.popup = new Xcls_ValaCompileErrors();
2598 this.popup.window = _this;
2602 this.popup.show(this.notices, this.el);
2607 // user defined functions
2608 public void setNotices (Json.Object nots, int qty) {
2610 this.el.label = qty.to_string() + " Errors";
2611 this.notices = nots;
2615 public class Xcls_Image75 : Object
2617 public Gtk.Image el;
2618 private Xcls_MainWindow _this;
2624 public Xcls_Image75(Xcls_MainWindow _owner )
2627 this.el = new Gtk.Image();
2631 // set gobject values
2632 this.el.icon_name = "dialog-error";
2635 // user defined functions
2639 public class Xcls_statusbar_warnings : Object
2641 public Gtk.ImageMenuItem el;
2642 private Xcls_MainWindow _this;
2646 public Xcls_ValaCompileErrors popup;
2647 public Json.Object notices;
2650 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2653 _this.statusbar_warnings = this;
2654 this.el = new Gtk.ImageMenuItem();
2657 this.notices = new Json.Object();
2659 // set gobject values
2660 this.el.always_show_image = true;
2661 this.el.label = "Warnings";
2662 var child_0 = new Xcls_Image77( _this );
2664 this.el.set_image ( child_0.el );
2667 this.el.button_press_event.connect( () => {
2668 if (this.popup == null) {
2669 this.popup = new Xcls_ValaCompileErrors();
2670 this.popup.window = _this;
2673 this.popup.show(this.notices, this.el);
2678 // user defined functions
2679 public void setNotices (Json.Object nots, int qty) {
2681 this.el.label = qty.to_string() + " Warnings";
2682 this.notices = nots;
2686 public class Xcls_Image77 : Object
2688 public Gtk.Image el;
2689 private Xcls_MainWindow _this;
2695 public Xcls_Image77(Xcls_MainWindow _owner )
2698 this.el = new Gtk.Image();
2702 // set gobject values
2703 this.el.icon_name = "dialog-warning";
2706 // user defined functions
2710 public class Xcls_statusbar_depricated : Object
2712 public Gtk.ImageMenuItem el;
2713 private Xcls_MainWindow _this;
2717 public Xcls_ValaCompileErrors popup;
2718 public Json.Object notices;
2721 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2724 _this.statusbar_depricated = this;
2725 this.el = new Gtk.ImageMenuItem();
2728 this.notices = new Json.Object();
2730 // set gobject values
2731 this.el.always_show_image = true;
2732 this.el.label = "Depricated";
2733 var child_0 = new Xcls_Image79( _this );
2735 this.el.set_image ( child_0.el );
2738 this.el.button_press_event.connect( () => {
2739 if (this.popup == null) {
2740 this.popup = new Xcls_ValaCompileErrors();
2741 this.popup.window = _this;
2745 this.popup.show(this.notices, this.el);
2750 // user defined functions
2751 public void setNotices (Json.Object nots, int qty) {
2753 this.el.label = qty.to_string() + " Depricated";
2754 this.notices = nots;
2758 public class Xcls_Image79 : Object
2760 public Gtk.Image el;
2761 private Xcls_MainWindow _this;
2767 public Xcls_Image79(Xcls_MainWindow _owner )
2770 this.el = new Gtk.Image();
2774 // set gobject values
2775 this.el.icon_name = "dialog-information";
2778 // user defined functions
2782 public class Xcls_statusbar_run : Object
2784 public Gtk.ImageMenuItem el;
2785 private Xcls_MainWindow _this;
2789 public Xcls_ValaCompileErrors popup;
2792 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2795 _this.statusbar_run = this;
2796 this.el = new Gtk.ImageMenuItem();
2800 // set gobject values
2801 this.el.always_show_image = true;
2802 this.el.label = "Run";
2803 var child_0 = new Xcls_Image81( _this );
2805 this.el.set_image ( child_0.el );
2808 this.el.button_press_event.connect( () => {
2809 if (_this.windowstate.file == null) {
2812 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2814 _this.windowstate.compile_results.show(this.el,true);
2820 // user defined functions
2822 public class Xcls_Image81 : Object
2824 public Gtk.Image el;
2825 private Xcls_MainWindow _this;
2831 public Xcls_Image81(Xcls_MainWindow _owner )
2834 this.el = new Gtk.Image();
2838 // set gobject values
2839 this.el.icon_name = "media-playback-start";
2842 // user defined functions