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.width_request = 50;
450 this.el.height_request = 50;
451 var child_0 = new Xcls_Image12( _this );
453 this.el.set_image ( child_0.el );
456 this.el.clicked.connect( ( ) => {
457 _this.windowstate.switchState(WindowState.State.FILES);
463 // user defined functions
465 public class Xcls_Image12 : Object
468 private Xcls_MainWindow _this;
474 public Xcls_Image12(Xcls_MainWindow _owner )
477 this.el = new Gtk.Image();
481 // set gobject values
482 this.el.icon_name = "document-open";
485 // user defined functions
489 public class Xcls_openbackbtn : Object
491 public Gtk.Button el;
492 private Xcls_MainWindow _this;
498 public Xcls_openbackbtn(Xcls_MainWindow _owner )
501 _this.openbackbtn = this;
502 this.el = new Gtk.Button();
506 // set gobject values
507 this.el.width_request = 50;
508 this.el.height_request = 50;
509 this.el.tooltip_text = "Back";
510 this.el.visible = false;
511 var child_0 = new Xcls_Image14( _this );
513 this.el.set_image ( child_0.el );
516 this.el.clicked.connect( ( ) => {
518 _this.windowstate.switchState(WindowState.State.PREVIEW);
524 // user defined functions
526 public class Xcls_Image14 : Object
529 private Xcls_MainWindow _this;
535 public Xcls_Image14(Xcls_MainWindow _owner )
538 this.el = new Gtk.Image();
542 // set gobject values
543 this.el.icon_name = "go-previous";
546 // user defined functions
552 public class Xcls_vbox : Object
555 private Xcls_MainWindow _this;
561 public Xcls_vbox(Xcls_MainWindow _owner )
565 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
569 // set gobject values
570 this.el.homogeneous = false;
571 var child_0 = new Xcls_mainpane( _this );
573 this.el.pack_start ( child_0.el , true,true,0 );
574 var child_1 = new Xcls_Box66( _this );
576 this.el.pack_end ( child_1.el , false,true,0 );
579 // user defined functions
581 public class Xcls_mainpane : Object
584 private Xcls_MainWindow _this;
588 public int lastWidth;
591 public Xcls_mainpane(Xcls_MainWindow _owner )
594 _this.mainpane = this;
595 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
600 // set gobject values
601 this.el.position = 400;
602 var child_0 = new Xcls_leftpane( _this );
604 this.el.add1 ( child_0.el );
605 var child_1 = new Xcls_Box21( _this );
607 this.el.add2 ( child_1.el );
610 // user defined functions
612 public class Xcls_leftpane : Object
615 private Xcls_MainWindow _this;
621 public Xcls_leftpane(Xcls_MainWindow _owner )
624 _this.leftpane = this;
625 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
629 // set gobject values
630 var child_0 = new Xcls_editpane( _this );
632 this.el.pack_start ( child_0.el , true,true,0 );
635 // user defined functions
637 public class Xcls_editpane : Object
640 private Xcls_MainWindow _this;
646 public Xcls_editpane(Xcls_MainWindow _owner )
649 _this.editpane = this;
650 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
654 // set gobject values
655 var child_0 = new Xcls_tree( _this );
657 this.el.add1 ( child_0.el );
658 var child_1 = new Xcls_props( _this );
660 this.el.add2 ( child_1.el );
663 // user defined functions
665 public class Xcls_tree : Object
668 private Xcls_MainWindow _this;
674 public Xcls_tree(Xcls_MainWindow _owner )
678 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
682 // set gobject values
685 // user defined functions
688 public class Xcls_props : Object
691 private Xcls_MainWindow _this;
697 public Xcls_props(Xcls_MainWindow _owner )
701 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
705 // set gobject values
708 // user defined functions
713 public class Xcls_Box21 : Object
716 private Xcls_MainWindow _this;
722 public Xcls_Box21(Xcls_MainWindow _owner )
725 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
729 // set gobject values
730 var child_0 = new Xcls_clutterembed( _this );
732 this.el.pack_start ( child_0.el , true,true,0 );
735 // user defined functions
737 public class Xcls_clutterembed : Object
739 public GtkClutter.Embed el;
740 private Xcls_MainWindow _this;
746 public Xcls_clutterembed(Xcls_MainWindow _owner )
749 _this.clutterembed = this;
750 this.el = new GtkClutter.Embed();
754 // set gobject values
755 var child_0 = new Xcls_rooview( _this );
757 this.el.get_stage().add_child ( child_0.el );
758 var child_1 = new Xcls_objectview( _this );
760 this.el.get_stage().add_child ( child_1.el );
761 var child_2 = new Xcls_codeeditview( _this );
763 this.el.get_stage().add_child ( child_2.el );
764 var child_3 = new Xcls_addpropsview( _this );
766 this.el.get_stage().add_child ( child_3.el );
767 var child_4 = new Xcls_projecteditview( _this );
769 this.el.get_stage().add_child ( child_4.el );
770 var child_5 = new Xcls_buttonlayout( _this );
772 this.el.get_stage().add_child ( child_5.el );
776 var stage = this.el.get_stage();
777 stage.set_background_color( Clutter.Color.from_string("#000"));
780 this.el.size_allocate.connect( ( alloc) => {
781 if (_this.windowstate == null) {
784 _this.windowstate.resizeCanvas();
789 // user defined functions
791 public class Xcls_rooview : Object
793 public GtkClutter.Actor el;
794 private Xcls_MainWindow _this;
800 public Xcls_rooview(Xcls_MainWindow _owner )
803 _this.rooview = this;
804 this.el = new GtkClutter.Actor();
808 // set gobject values
815 this.el.add_constraint(
816 new Clutter.AlignConstraint(
817 _this.clutterembed.el.get_stage(),
818 Clutter.AlignAxis.X_AXIS,
823 //this.el.set_position(100,100);
824 this.el.set_pivot_point(1.0f,1.0f);
826 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
827 _this.clutterembed.el.get_stage().height);
832 // user defined functions
835 public class Xcls_objectview : Object
837 public GtkClutter.Actor el;
838 private Xcls_MainWindow _this;
844 public Xcls_objectview(Xcls_MainWindow _owner )
847 _this.objectview = this;
848 this.el = new GtkClutter.Actor();
852 // set gobject values
859 this.el.add_constraint(
860 new Clutter.AlignConstraint(
861 _this.clutterembed.el.get_stage(),
862 Clutter.AlignAxis.X_AXIS,
867 this.el.fixed_x = 50.0f;
868 this.el.fixed_y = 0.0f;
869 //this.el.set_position(100,100);
870 this.el.set_pivot_point(0.0f,0.0f);
871 this.el.set_scale(0.0f,1.0f);
872 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
873 _this.clutterembed.el.get_stage().height);
878 // user defined functions
881 public class Xcls_codeeditview : Object
883 public GtkClutter.Actor el;
884 private Xcls_MainWindow _this;
890 public Xcls_codeeditview(Xcls_MainWindow _owner )
893 _this.codeeditview = this;
894 this.el = new GtkClutter.Actor();
898 // set gobject values
905 this.el.add_constraint(
906 new Clutter.AlignConstraint(
907 _this.clutterembed.el.get_stage(),
908 Clutter.AlignAxis.X_AXIS,
913 this.el.fixed_x = 50.0f;
914 this.el.fixed_y = 0.0f;
915 //this.el.set_position(100,100);
916 this.el.set_pivot_point(0.0f,0.0f);
917 this.el.set_scale(0.0f,1.0f);
918 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
919 _this.clutterembed.el.get_stage().height);
924 // user defined functions
927 public class Xcls_addpropsview : Object
929 public GtkClutter.Actor el;
930 private Xcls_MainWindow _this;
936 public Xcls_addpropsview(Xcls_MainWindow _owner )
939 _this.addpropsview = this;
940 this.el = new GtkClutter.Actor();
944 // set gobject values
951 this.el.add_constraint(
952 new Clutter.AlignConstraint(
953 _this.clutterembed.el.get_stage(),
954 Clutter.AlignAxis.X_AXIS,
959 this.el.fixed_x = 50.0f;
960 this.el.fixed_y = 0.0f;
961 //this.el.set_position(100,100);
962 this.el.set_pivot_point(0.0f,0.0f);
963 this.el.set_scale(0.0f,1.0f);
964 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
965 _this.clutterembed.el.get_stage().height);
970 // user defined functions
973 public class Xcls_projecteditview : Object
975 public GtkClutter.Actor el;
976 private Xcls_MainWindow _this;
982 public Xcls_projecteditview(Xcls_MainWindow _owner )
985 _this.projecteditview = this;
986 this.el = new GtkClutter.Actor();
990 // set gobject values
997 this.el.add_constraint(
998 new Clutter.AlignConstraint(
999 _this.clutterembed.el.get_stage(),
1000 Clutter.AlignAxis.X_AXIS,
1005 //this.el.set_position(100,100);
1006 this.el.set_pivot_point(0.0f,0.0f);
1007 this.el.set_scale(1.0f,0.0f);
1008 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1009 _this.clutterembed.el.get_stage().height /2);
1014 // user defined functions
1017 public class Xcls_buttonlayout : Object
1019 public Clutter.Actor el;
1020 private Xcls_MainWindow _this;
1026 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1029 _this.buttonlayout = this;
1030 this.el = new Clutter.Actor();
1034 // set gobject values
1035 var child_0 = new Xcls_BoxLayout29( _this );
1037 this.el.layout_manager = child_0.el;
1038 var child_1 = new Xcls_backbutton( _this );
1040 this.el.add_child ( child_1.el );
1041 var child_2 = new Xcls_editfilebutton( _this );
1043 this.el.add_child ( child_2.el );
1044 var child_3 = new Xcls_projecteditbutton( _this );
1046 this.el.add_child ( child_3.el );
1047 var child_4 = new Xcls_objectshowbutton( _this );
1049 this.el.add_child ( child_4.el );
1050 var child_5 = new Xcls_addpropbutton( _this );
1052 this.el.add_child ( child_5.el );
1053 var child_6 = new Xcls_addlistenerbutton( _this );
1055 this.el.add_child ( child_6.el );
1056 var child_7 = new Xcls_addprojectbutton( _this );
1058 this.el.add_child ( child_7.el );
1059 var child_8 = new Xcls_addfilebutton( _this );
1061 this.el.add_child ( child_8.el );
1062 var child_9 = new Xcls_delprojectbutton( _this );
1064 this.el.add_child ( child_9.el );
1070 this.el.add_constraint(
1071 new Clutter.AlignConstraint(
1072 _this.clutterembed.el.get_stage(),
1073 Clutter.AlignAxis.X_AXIS,
1079 //this.el.set_position(100,100);
1080 this.el.set_pivot_point(0.5f,0.5f);
1081 this.el.set_size(50,
1082 _this.clutterembed.el.get_stage().height);
1087 // user defined functions
1089 public class Xcls_BoxLayout29 : Object
1091 public Clutter.BoxLayout el;
1092 private Xcls_MainWindow _this;
1098 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1101 this.el = new Clutter.BoxLayout();
1105 // set gobject values
1106 this.el.orientation = Clutter.Orientation.VERTICAL;
1109 // user defined functions
1112 public class Xcls_backbutton : Object
1114 public Clutter.Actor el;
1115 private Xcls_MainWindow _this;
1121 public Xcls_backbutton(Xcls_MainWindow _owner )
1124 _this.backbutton = this;
1125 this.el = new Clutter.Actor();
1129 // set gobject values
1130 var child_0 = new Xcls_Actor31( _this );
1132 this.el.add_child ( child_0.el );
1136 this.el.set_size(50,50);
1139 // user defined functions
1141 public class Xcls_Actor31 : Object
1143 public GtkClutter.Actor el;
1144 private Xcls_MainWindow _this;
1150 public Xcls_Actor31(Xcls_MainWindow _owner )
1153 this.el = new GtkClutter.Actor();
1157 // set gobject values
1158 var child_0 = new Xcls_Button32( _this );
1163 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1166 // user defined functions
1168 public class Xcls_Button32 : Object
1170 public Gtk.Button el;
1171 private Xcls_MainWindow _this;
1177 public Xcls_Button32(Xcls_MainWindow _owner )
1180 this.el = new Gtk.Button();
1184 // set gobject values
1185 this.el.width_request = 50;
1186 this.el.height_request = 50;
1187 this.el.tooltip_text = "Back";
1188 var child_0 = new Xcls_Image33( _this );
1190 this.el.set_image ( child_0.el );
1193 this.el.clicked.connect( ( ) => {
1195 _this.windowstate.switchState(WindowState.State.PREVIEW);
1201 // user defined functions
1203 public class Xcls_Image33 : Object
1205 public Gtk.Image el;
1206 private Xcls_MainWindow _this;
1212 public Xcls_Image33(Xcls_MainWindow _owner )
1215 this.el = new Gtk.Image();
1219 // set gobject values
1220 this.el.icon_name = "go-previous";
1223 // user defined functions
1229 public class Xcls_editfilebutton : Object
1231 public Clutter.Actor el;
1232 private Xcls_MainWindow _this;
1238 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1241 _this.editfilebutton = this;
1242 this.el = new Clutter.Actor();
1246 // set gobject values
1247 var child_0 = new Xcls_Actor35( _this );
1249 this.el.add_child ( child_0.el );
1253 this.el.set_size(50.0f,50.0f);
1256 // user defined functions
1258 public class Xcls_Actor35 : Object
1260 public GtkClutter.Actor el;
1261 private Xcls_MainWindow _this;
1267 public Xcls_Actor35(Xcls_MainWindow _owner )
1270 this.el = new GtkClutter.Actor();
1274 // set gobject values
1275 var child_0 = new Xcls_Button36( _this );
1280 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1283 // user defined functions
1285 public class Xcls_Button36 : Object
1287 public Gtk.Button el;
1288 private Xcls_MainWindow _this;
1294 public Xcls_Button36(Xcls_MainWindow _owner )
1297 this.el = new Gtk.Button();
1301 // set gobject values
1302 this.el.width_request = 50;
1303 this.el.height_request = 50;
1304 this.el.tooltip_text = "File Details";
1305 var child_0 = new Xcls_Image37( _this );
1307 this.el.set_image ( child_0.el );
1310 this.el.clicked.connect( ( ) => {
1312 // create a new file in project..
1313 if (_this.project == null || _this.windowstate.file == null) {
1316 _this.windowstate.file_details.show(
1317 _this.windowstate.file, this.el
1326 // user defined functions
1328 public class Xcls_Image37 : Object
1330 public Gtk.Image el;
1331 private Xcls_MainWindow _this;
1337 public Xcls_Image37(Xcls_MainWindow _owner )
1340 this.el = new Gtk.Image();
1344 // set gobject values
1345 this.el.icon_name = "document-properties";
1348 // user defined functions
1354 public class Xcls_projecteditbutton : Object
1356 public Clutter.Actor el;
1357 private Xcls_MainWindow _this;
1363 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1366 _this.projecteditbutton = this;
1367 this.el = new Clutter.Actor();
1371 // set gobject values
1372 var child_0 = new Xcls_Actor39( _this );
1374 this.el.add_child ( child_0.el );
1378 this.el.set_size(50,50);
1381 // user defined functions
1383 public class Xcls_Actor39 : Object
1385 public GtkClutter.Actor el;
1386 private Xcls_MainWindow _this;
1392 public Xcls_Actor39(Xcls_MainWindow _owner )
1395 this.el = new GtkClutter.Actor();
1399 // set gobject values
1400 var child_0 = new Xcls_Button40( _this );
1405 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1408 // user defined functions
1410 public class Xcls_Button40 : Object
1412 public Gtk.Button el;
1413 private Xcls_MainWindow _this;
1419 public Xcls_Button40(Xcls_MainWindow _owner )
1422 this.el = new Gtk.Button();
1426 // set gobject values
1427 this.el.width_request = 50;
1428 this.el.height_request = 50;
1429 this.el.tooltip_text = "Project Details";
1430 var child_0 = new Xcls_Image41( _this );
1432 this.el.set_image ( child_0.el );
1435 this.el.clicked.connect( ( ) => {
1436 _this.windowstate.switchState(WindowState.State.PROJECT);
1443 // user defined functions
1445 public class Xcls_Image41 : Object
1447 public Gtk.Image el;
1448 private Xcls_MainWindow _this;
1454 public Xcls_Image41(Xcls_MainWindow _owner )
1457 this.el = new Gtk.Image();
1461 // set gobject values
1462 this.el.icon_name = "emblem-system";
1465 // user defined functions
1471 public class Xcls_objectshowbutton : Object
1473 public Clutter.Actor el;
1474 private Xcls_MainWindow _this;
1480 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1483 _this.objectshowbutton = this;
1484 this.el = new Clutter.Actor();
1488 // set gobject values
1489 var child_0 = new Xcls_Actor43( _this );
1491 this.el.add_child ( child_0.el );
1495 this.el.set_size(50,50);
1498 this.el.enter_event.connect( ( event) => {
1499 this.el.background_color = Clutter.Color.from_string("#333");
1502 this.el.leave_event.connect( ( event) => {
1503 this.el.background_color = Clutter.Color.from_string("#000");
1508 // user defined functions
1510 public class Xcls_Actor43 : Object
1512 public GtkClutter.Actor el;
1513 private Xcls_MainWindow _this;
1519 public Xcls_Actor43(Xcls_MainWindow _owner )
1522 this.el = new GtkClutter.Actor();
1526 // set gobject values
1527 var child_0 = new Xcls_Button44( _this );
1532 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1535 // user defined functions
1537 public class Xcls_Button44 : Object
1539 public Gtk.Button el;
1540 private Xcls_MainWindow _this;
1546 public Xcls_Button44(Xcls_MainWindow _owner )
1549 this.el = new Gtk.Button();
1553 // set gobject values
1554 this.el.width_request = 50;
1555 this.el.height_request = 50;
1556 this.el.tooltip_text = "Add Child Element";
1557 var child_0 = new Xcls_Image45( _this );
1559 this.el.set_image ( child_0.el );
1562 this.el.clicked.connect( ( ) => {
1564 _this.windowstate.switchState(WindowState.State.OBJECT);
1570 // user defined functions
1572 public class Xcls_Image45 : Object
1574 public Gtk.Image el;
1575 private Xcls_MainWindow _this;
1581 public Xcls_Image45(Xcls_MainWindow _owner )
1584 this.el = new Gtk.Image();
1588 // set gobject values
1589 this.el.icon_name = "list-add";
1592 // user defined functions
1598 public class Xcls_addpropbutton : Object
1600 public Clutter.Actor el;
1601 private Xcls_MainWindow _this;
1607 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1610 _this.addpropbutton = this;
1611 this.el = new Clutter.Actor();
1615 // set gobject values
1616 var child_0 = new Xcls_Actor47( _this );
1618 this.el.add_child ( child_0.el );
1622 this.el.set_size(50,50);
1625 // user defined functions
1627 public class Xcls_Actor47 : Object
1629 public GtkClutter.Actor el;
1630 private Xcls_MainWindow _this;
1636 public Xcls_Actor47(Xcls_MainWindow _owner )
1639 this.el = new GtkClutter.Actor();
1643 // set gobject values
1644 var child_0 = new Xcls_Button48( _this );
1649 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1652 // user defined functions
1654 public class Xcls_Button48 : Object
1656 public Gtk.Button el;
1657 private Xcls_MainWindow _this;
1663 public Xcls_Button48(Xcls_MainWindow _owner )
1666 this.el = new Gtk.Button();
1670 // set gobject values
1671 this.el.width_request = 50;
1672 this.el.height_request = 50;
1673 this.el.tooltip_text = "Add Property";
1674 var child_0 = new Xcls_Image49( _this );
1676 this.el.set_image ( child_0.el );
1679 this.el.clicked.connect( ( ) => {
1681 _this.windowstate.switchState(WindowState.State.PROP);
1687 // user defined functions
1689 public class Xcls_Image49 : Object
1691 public Gtk.Image el;
1692 private Xcls_MainWindow _this;
1698 public Xcls_Image49(Xcls_MainWindow _owner )
1701 this.el = new Gtk.Image();
1705 // set gobject values
1706 this.el.icon_name = "format-justify-left";
1709 // user defined functions
1715 public class Xcls_addlistenerbutton : Object
1717 public Clutter.Actor el;
1718 private Xcls_MainWindow _this;
1724 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1727 _this.addlistenerbutton = this;
1728 this.el = new Clutter.Actor();
1732 // set gobject values
1733 var child_0 = new Xcls_Actor51( _this );
1735 this.el.add_child ( child_0.el );
1739 this.el.set_size(50,50);
1742 // user defined functions
1744 public class Xcls_Actor51 : Object
1746 public GtkClutter.Actor el;
1747 private Xcls_MainWindow _this;
1753 public Xcls_Actor51(Xcls_MainWindow _owner )
1756 this.el = new GtkClutter.Actor();
1760 // set gobject values
1761 var child_0 = new Xcls_Button52( _this );
1766 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1769 // user defined functions
1771 public class Xcls_Button52 : Object
1773 public Gtk.Button el;
1774 private Xcls_MainWindow _this;
1780 public Xcls_Button52(Xcls_MainWindow _owner )
1783 this.el = new Gtk.Button();
1787 // set gobject values
1788 this.el.width_request = 50;
1789 this.el.height_request = 50;
1790 this.el.tooltip_text = "Add Event Code";
1791 var child_0 = new Xcls_Image53( _this );
1793 this.el.set_image ( child_0.el );
1796 this.el.clicked.connect( ( ) => {
1798 _this.windowstate.switchState(WindowState.State.LISTENER);
1805 // user defined functions
1807 public class Xcls_Image53 : Object
1809 public Gtk.Image el;
1810 private Xcls_MainWindow _this;
1816 public Xcls_Image53(Xcls_MainWindow _owner )
1819 this.el = new Gtk.Image();
1823 // set gobject values
1824 this.el.icon_name = "appointment-new";
1827 // user defined functions
1833 public class Xcls_addprojectbutton : Object
1835 public Clutter.Actor el;
1836 private Xcls_MainWindow _this;
1842 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1845 _this.addprojectbutton = this;
1846 this.el = new Clutter.Actor();
1850 // set gobject values
1851 var child_0 = new Xcls_Actor55( _this );
1853 this.el.add_child ( child_0.el );
1857 this.el.set_size(50.0f,50.0f);
1860 // user defined functions
1862 public class Xcls_Actor55 : Object
1864 public GtkClutter.Actor el;
1865 private Xcls_MainWindow _this;
1871 public Xcls_Actor55(Xcls_MainWindow _owner )
1874 this.el = new GtkClutter.Actor();
1878 // set gobject values
1879 var child_0 = new Xcls_Button56( _this );
1884 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1887 // user defined functions
1889 public class Xcls_Button56 : Object
1891 public Gtk.Button el;
1892 private Xcls_MainWindow _this;
1898 public Xcls_Button56(Xcls_MainWindow _owner )
1901 this.el = new Gtk.Button();
1905 // set gobject values
1906 this.el.width_request = 50;
1907 this.el.height_request = 50;
1908 this.el.tooltip_text = "New\nProj.";
1909 var child_0 = new Xcls_Image57( _this );
1911 this.el.set_image ( child_0.el );
1914 this.el.clicked.connect( ( ) => {
1916 // create a new file in project..
1917 //Xcls_DialogNewComponent.singleton().show(
1918 var pe = EditProject.singleton();
1919 pe.el.set_transient_for(_this.el);
1920 pe.el.set_modal(true);
1929 _this.windowstate.left_projects.is_loaded = false;
1930 _this.windowstate.left_projects.load();
1931 _this.windowstate.left_projects.selectProject(p);
1938 // user defined functions
1940 public class Xcls_Image57 : Object
1942 public Gtk.Image el;
1943 private Xcls_MainWindow _this;
1949 public Xcls_Image57(Xcls_MainWindow _owner )
1952 this.el = new Gtk.Image();
1956 // set gobject values
1957 this.el.icon_name = "folder-new";
1960 // user defined functions
1966 public class Xcls_addfilebutton : Object
1968 public Clutter.Actor el;
1969 private Xcls_MainWindow _this;
1975 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1978 _this.addfilebutton = this;
1979 this.el = new Clutter.Actor();
1983 // set gobject values
1984 var child_0 = new Xcls_Actor59( _this );
1986 this.el.add_child ( child_0.el );
1990 this.el.set_size(50.0f,50.0f);
1993 // user defined functions
1995 public class Xcls_Actor59 : Object
1997 public GtkClutter.Actor el;
1998 private Xcls_MainWindow _this;
2004 public Xcls_Actor59(Xcls_MainWindow _owner )
2007 this.el = new GtkClutter.Actor();
2011 // set gobject values
2012 var child_0 = new Xcls_Button60( _this );
2017 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2020 // user defined functions
2022 public class Xcls_Button60 : Object
2024 public Gtk.Button el;
2025 private Xcls_MainWindow _this;
2031 public Xcls_Button60(Xcls_MainWindow _owner )
2034 this.el = new Gtk.Button();
2038 // set gobject values
2039 this.el.width_request = 50;
2040 this.el.height_request = 50;
2041 this.el.tooltip_text = "Add File";
2042 var child_0 = new Xcls_Image61( _this );
2044 this.el.set_image ( child_0.el );
2047 this.el.clicked.connect( () => {
2048 // create a new file in project..
2049 print("add file selected\n");
2050 // what's the currently selected project...
2051 var proj = _this.windowstate.left_projects.getSelectedProject();
2054 print("no project selected?\n");
2058 print("creating file?");
2060 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2061 _this.project = proj;
2062 print("showing popup?");
2063 _this.windowstate.file_details.show(
2072 // user defined functions
2074 public class Xcls_Image61 : Object
2076 public Gtk.Image el;
2077 private Xcls_MainWindow _this;
2083 public Xcls_Image61(Xcls_MainWindow _owner )
2086 this.el = new Gtk.Image();
2090 // set gobject values
2091 this.el.icon_name = "document-new";
2094 // user defined functions
2100 public class Xcls_delprojectbutton : Object
2102 public Clutter.Actor el;
2103 private Xcls_MainWindow _this;
2109 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2112 _this.delprojectbutton = this;
2113 this.el = new Clutter.Actor();
2117 // set gobject values
2118 var child_0 = new Xcls_Actor63( _this );
2120 this.el.add_child ( child_0.el );
2124 this.el.set_size(50,50);
2127 // user defined functions
2129 public class Xcls_Actor63 : Object
2131 public GtkClutter.Actor el;
2132 private Xcls_MainWindow _this;
2138 public Xcls_Actor63(Xcls_MainWindow _owner )
2141 this.el = new GtkClutter.Actor();
2145 // set gobject values
2146 var child_0 = new Xcls_Button64( _this );
2151 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2154 // user defined functions
2156 public class Xcls_Button64 : Object
2158 public Gtk.Button el;
2159 private Xcls_MainWindow _this;
2165 public Xcls_Button64(Xcls_MainWindow _owner )
2168 this.el = new Gtk.Button();
2172 // set gobject values
2173 this.el.width_request = 50;
2174 this.el.height_request = 50;
2175 this.el.tooltip_text = "Delete Project";
2176 var child_0 = new Xcls_Image65( _this );
2178 this.el.set_image ( child_0.el );
2181 this.el.clicked.connect( ( ) => {
2183 var cd = DialogConfirm.singleton();
2184 cd.el.set_transient_for(_this.el);
2185 cd.el.set_modal(true);
2187 var project = _this.windowstate.left_projects.getSelectedProject();
2188 if (project == null) {
2189 print("SKIP - no project\n");
2194 if (Gtk.ResponseType.YES != cd.show("Confirm",
2195 "Are you sure you want to delete project %s".printf(project.name))) {
2201 Project.Project.remove(project);
2202 _this.project = null;
2204 _this.windowstate.left_projects.is_loaded = false;
2205 _this.windowstate.left_projects.load();
2206 _this.windowstate.clutterfiles.clearFiles();
2211 // user defined functions
2213 public class Xcls_Image65 : Object
2215 public Gtk.Image el;
2216 private Xcls_MainWindow _this;
2222 public Xcls_Image65(Xcls_MainWindow _owner )
2225 this.el = new Gtk.Image();
2229 // set gobject values
2230 this.el.icon_name = "user-trash";
2233 // user defined functions
2243 public class Xcls_Box66 : Object
2246 private Xcls_MainWindow _this;
2252 public Xcls_Box66(Xcls_MainWindow _owner )
2255 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2259 // set gobject values
2260 this.el.homogeneous = false;
2261 var child_0 = new Xcls_Label67( _this );
2263 this.el.pack_start ( child_0.el , true,true,0 );
2264 var child_1 = new Xcls_statusbar( _this );
2266 this.el.pack_start ( child_1.el , true,true,0 );
2267 var child_2 = new Xcls_search_entry( _this );
2269 this.el.pack_start ( child_2.el , false,true,0 );
2270 var child_3 = new Xcls_MenuBar70( _this );
2272 this.el.pack_end ( child_3.el , false,true,0 );
2275 // user defined functions
2277 public class Xcls_Label67 : Object
2279 public Gtk.Label el;
2280 private Xcls_MainWindow _this;
2286 public Xcls_Label67(Xcls_MainWindow _owner )
2289 this.el = new Gtk.Label( " " );
2293 // set gobject values
2296 // user defined functions
2299 public class Xcls_statusbar : Object
2301 public Gtk.ProgressBar el;
2302 private Xcls_MainWindow _this;
2306 public ulong handler_id;
2309 public Xcls_statusbar(Xcls_MainWindow _owner )
2312 _this.statusbar = this;
2313 this.el = new Gtk.ProgressBar();
2316 this.handler_id = -1;
2318 // set gobject values
2319 this.el.show_text = true;
2324 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2327 _this.mainpane.el.set_sensitive(true);
2331 _this.mainpane.el.set_sensitive(false);
2333 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2334 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2340 // user defined functions
2343 public class Xcls_search_entry : Object
2345 public Gtk.SearchEntry el;
2346 private Xcls_MainWindow _this;
2352 public Xcls_search_entry(Xcls_MainWindow _owner )
2355 _this.search_entry = this;
2356 this.el = new Gtk.SearchEntry();
2360 // set gobject values
2364 var description = Pango.FontDescription.from_string("monospace");
2365 description.set_size(8000);
2366 this.el.override_font(description);
2369 this.el.key_press_event.connect( (event) => {
2371 if (event.keyval == Gdk.Key.Return) {
2372 this.forwardSearch(false);
2376 // print(event.key.keyval)
2381 this.el.changed.connect( () => {
2382 if (this.el.text == "") {
2383 _this.search_results.el.hide();
2387 switch(_this.windowstate.state) {
2388 case WindowState.State.CODEONLY:
2389 case WindowState.State.CODE:
2390 // search the code being edited..
2391 res = _this.windowstate.code_editor.search(this.el.text);
2394 case WindowState.State.PREVIEW:
2395 if (_this.windowstate.file.xtype == "Gtk") {
2396 res = _this.windowstate.window_gladeview.search(this.el.text);
2398 res = _this.windowstate.window_rooview.search(this.el.text);
2404 _this.search_results.el.show();
2406 _this.search_results.el.label = "%d Matches".printf(res);
2408 _this.search_results.el.label = "No Matches";
2416 // user defined functions
2417 public void forwardSearch (bool change_focus) {
2418 switch(_this.windowstate.state) {
2419 case WindowState.State.CODEONLY:
2420 case WindowState.State.CODE:
2421 // search the code being edited..
2422 _this.windowstate.code_editor.forwardSearch(change_focus);
2425 case WindowState.State.PREVIEW:
2426 if (_this.windowstate.file.xtype == "Gtk") {
2427 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2429 _this.windowstate.window_rooview.forwardSearch(change_focus);
2438 public class Xcls_MenuBar70 : Object
2440 public Gtk.MenuBar el;
2441 private Xcls_MainWindow _this;
2447 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2450 this.el = new Gtk.MenuBar();
2454 // set gobject values
2455 var child_0 = new Xcls_search_results( _this );
2457 this.el.add ( child_0.el );
2458 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2460 this.el.add ( child_1.el );
2461 var child_2 = new Xcls_statusbar_errors( _this );
2463 this.el.add ( child_2.el );
2464 var child_3 = new Xcls_statusbar_warnings( _this );
2466 this.el.add ( child_3.el );
2467 var child_4 = new Xcls_statusbar_depricated( _this );
2469 this.el.add ( child_4.el );
2470 var child_5 = new Xcls_statusbar_run( _this );
2472 this.el.add ( child_5.el );
2475 // user defined functions
2477 public class Xcls_search_results : Object
2479 public Gtk.ImageMenuItem el;
2480 private Xcls_MainWindow _this;
2484 public Xcls_ValaCompileErrors popup;
2487 public Xcls_search_results(Xcls_MainWindow _owner )
2490 _this.search_results = this;
2491 this.el = new Gtk.ImageMenuItem();
2495 // set gobject values
2496 this.el.always_show_image = true;
2497 this.el.label = "Matches";
2498 var child_0 = new Xcls_Image72( _this );
2500 this.el.set_image ( child_0.el );
2503 this.el.button_press_event.connect( () => {
2505 if (this.popup == null) {
2506 this.popup = new Xcls_ValaCompileErrors();
2507 this.popup.window = _this;
2511 this.popup.show(this.notices, this.el);
2517 // user defined functions
2519 public class Xcls_Image72 : Object
2521 public Gtk.Image el;
2522 private Xcls_MainWindow _this;
2528 public Xcls_Image72(Xcls_MainWindow _owner )
2531 this.el = new Gtk.Image();
2535 // set gobject values
2536 this.el.icon_name = "system-search";
2537 this.el.sensitive = false;
2540 // user defined functions
2544 public class Xcls_statusbar_compilestatus_label : Object
2546 public Gtk.MenuItem el;
2547 private Xcls_MainWindow _this;
2553 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2556 _this.statusbar_compilestatus_label = this;
2557 this.el = new Gtk.MenuItem();
2561 // set gobject values
2562 this.el.label = "Compile Status:";
2565 // user defined functions
2568 public class Xcls_statusbar_errors : Object
2570 public Gtk.ImageMenuItem el;
2571 private Xcls_MainWindow _this;
2575 public Xcls_ValaCompileErrors popup;
2576 public Json.Object notices;
2579 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2582 _this.statusbar_errors = this;
2583 this.el = new Gtk.ImageMenuItem();
2586 this.notices = new Json.Object() ;
2588 // set gobject values
2589 this.el.always_show_image = true;
2590 this.el.label = "Errors";
2591 var child_0 = new Xcls_Image75( _this );
2593 this.el.set_image ( child_0.el );
2596 this.el.button_press_event.connect( () => {
2597 if (this.popup == null) {
2598 this.popup = new Xcls_ValaCompileErrors();
2599 this.popup.window = _this;
2603 this.popup.show(this.notices, this.el);
2608 // user defined functions
2609 public void setNotices (Json.Object nots, int qty) {
2611 this.el.label = qty.to_string() + " Errors";
2612 this.notices = nots;
2616 public class Xcls_Image75 : Object
2618 public Gtk.Image el;
2619 private Xcls_MainWindow _this;
2625 public Xcls_Image75(Xcls_MainWindow _owner )
2628 this.el = new Gtk.Image();
2632 // set gobject values
2633 this.el.icon_name = "dialog-error";
2636 // user defined functions
2640 public class Xcls_statusbar_warnings : Object
2642 public Gtk.ImageMenuItem el;
2643 private Xcls_MainWindow _this;
2647 public Xcls_ValaCompileErrors popup;
2648 public Json.Object notices;
2651 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2654 _this.statusbar_warnings = this;
2655 this.el = new Gtk.ImageMenuItem();
2658 this.notices = new Json.Object();
2660 // set gobject values
2661 this.el.always_show_image = true;
2662 this.el.label = "Warnings";
2663 var child_0 = new Xcls_Image77( _this );
2665 this.el.set_image ( child_0.el );
2668 this.el.button_press_event.connect( () => {
2669 if (this.popup == null) {
2670 this.popup = new Xcls_ValaCompileErrors();
2671 this.popup.window = _this;
2674 this.popup.show(this.notices, this.el);
2679 // user defined functions
2680 public void setNotices (Json.Object nots, int qty) {
2682 this.el.label = qty.to_string() + " Warnings";
2683 this.notices = nots;
2687 public class Xcls_Image77 : Object
2689 public Gtk.Image el;
2690 private Xcls_MainWindow _this;
2696 public Xcls_Image77(Xcls_MainWindow _owner )
2699 this.el = new Gtk.Image();
2703 // set gobject values
2704 this.el.icon_name = "dialog-warning";
2707 // user defined functions
2711 public class Xcls_statusbar_depricated : Object
2713 public Gtk.ImageMenuItem el;
2714 private Xcls_MainWindow _this;
2718 public Xcls_ValaCompileErrors popup;
2719 public Json.Object notices;
2722 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2725 _this.statusbar_depricated = this;
2726 this.el = new Gtk.ImageMenuItem();
2729 this.notices = new Json.Object();
2731 // set gobject values
2732 this.el.always_show_image = true;
2733 this.el.label = "Depricated";
2734 var child_0 = new Xcls_Image79( _this );
2736 this.el.set_image ( child_0.el );
2739 this.el.button_press_event.connect( () => {
2740 if (this.popup == null) {
2741 this.popup = new Xcls_ValaCompileErrors();
2742 this.popup.window = _this;
2746 this.popup.show(this.notices, this.el);
2751 // user defined functions
2752 public void setNotices (Json.Object nots, int qty) {
2754 this.el.label = qty.to_string() + " Depricated";
2755 this.notices = nots;
2759 public class Xcls_Image79 : Object
2761 public Gtk.Image el;
2762 private Xcls_MainWindow _this;
2768 public Xcls_Image79(Xcls_MainWindow _owner )
2771 this.el = new Gtk.Image();
2775 // set gobject values
2776 this.el.icon_name = "dialog-information";
2779 // user defined functions
2783 public class Xcls_statusbar_run : Object
2785 public Gtk.ImageMenuItem el;
2786 private Xcls_MainWindow _this;
2790 public Xcls_ValaCompileErrors popup;
2793 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2796 _this.statusbar_run = this;
2797 this.el = new Gtk.ImageMenuItem();
2801 // set gobject values
2802 this.el.always_show_image = true;
2803 this.el.label = "Run";
2804 var child_0 = new Xcls_Image81( _this );
2806 this.el.set_image ( child_0.el );
2809 this.el.button_press_event.connect( () => {
2810 if (_this.windowstate.file == null) {
2813 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2815 _this.windowstate.compile_results.show(this.el,true);
2821 // user defined functions
2823 public class Xcls_Image81 : Object
2825 public Gtk.Image el;
2826 private Xcls_MainWindow _this;
2832 public Xcls_Image81(Xcls_MainWindow _owner )
2835 this.el = new Gtk.Image();
2839 // set gobject values
2840 this.el.icon_name = "media-playback-start";
2843 // user defined functions