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_buttonlayout buttonlayout;
31 public Xcls_backbutton backbutton;
32 public Xcls_editfilebutton editfilebutton;
33 public Xcls_projecteditbutton projecteditbutton;
34 public Xcls_objectshowbutton objectshowbutton;
35 public Xcls_addpropbutton addpropbutton;
36 public Xcls_addlistenerbutton addlistenerbutton;
37 public Xcls_addprojectbutton addprojectbutton;
38 public Xcls_addfilebutton addfilebutton;
39 public Xcls_delprojectbutton delprojectbutton;
40 public Xcls_statusbar statusbar;
41 public Xcls_search_entry search_entry;
42 public Xcls_search_results search_results;
43 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
44 public Xcls_statusbar_errors statusbar_errors;
45 public Xcls_statusbar_warnings statusbar_warnings;
46 public Xcls_statusbar_depricated statusbar_depricated;
47 public Xcls_statusbar_run statusbar_run;
48 public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
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 = "Roo 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 );
83 this.el.set_icon_name("roobuilder");
84 //} catch (Exception e) {
85 // print("no icon found");
89 this.el.delete_event.connect( ( event) => {
92 this.el.destroy.connect( () => {
93 Xcls_MainWindow.singleton().no_windows--;
95 Resources.singleton().disconnect(_this.statusbar.handler_id);
98 if (Xcls_MainWindow.singleton().no_windows < 1) {
103 this.el.show.connect( ( ) => {
104 // hide the file editing..
106 //this.hideViewEditing();
107 _this.statusbar.el.hide();
108 _this.statusbar_errors.el.hide();
109 _this.statusbar_warnings.el.hide();
110 _this.statusbar_depricated.el.hide();
111 _this.statusbar_compile_spinner.el.hide();
113 Resources.singleton().checkResources();
116 this.el.key_release_event.connect( (event) => {
118 if (this.search_entry.el.is_visible()) {
119 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120 print("SAVE: ctrl-f pressed");
121 this.search_entry.el.grab_focus();
125 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
126 print("SAVE: ctrl-g pressed");
127 this.search_entry.forwardSearch(true);
133 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
134 print("SAVE: ctrl-n pressed");
135 this.openNewWindow();
139 // print(event.key.keyval)
146 // user defined functions
147 public void openNewWindow () {
148 Xcls_MainWindow.singleton().no_windows++;
149 var w = new Xcls_MainWindow();
154 w.windowstate.switchState(WindowState.State.FILES);
156 public void initChildren () {
157 // this needs putting in a better place..
158 this.windowstate = new WindowState(this);
162 var tl = new Clutter.Timeline(6000);
163 tl.set_repeat_count(-1);
172 public void show () {
177 public void setTitle (string str) {
178 this.headerbar.el.set_title(this.title + " - " + str);
180 public class Xcls_headerbar : Object
182 public Gtk.HeaderBar el;
183 private Xcls_MainWindow _this;
189 public Xcls_headerbar(Xcls_MainWindow _owner )
192 _this.headerbar = this;
193 this.el = new Gtk.HeaderBar();
197 // set gobject values
198 this.el.title = "Application Builder";
199 this.el.show_close_button = true;
200 var child_0 = new Xcls_Box3( _this );
202 this.el.pack_start ( child_0.el );
205 // user defined functions
207 public class Xcls_Box3 : Object
210 private Xcls_MainWindow _this;
216 public Xcls_Box3(Xcls_MainWindow _owner )
219 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
223 // set gobject values
224 var child_0 = new Xcls_MenuButton4( _this );
226 this.el.add ( child_0.el );
227 var child_1 = new Xcls_openbtn( _this );
229 this.el.add ( child_1.el );
230 var child_2 = new Xcls_openbackbtn( _this );
232 this.el.add ( child_2.el );
235 // user defined functions
237 public class Xcls_MenuButton4 : Object
239 public Gtk.MenuButton el;
240 private Xcls_MainWindow _this;
246 public Xcls_MenuButton4(Xcls_MainWindow _owner )
249 this.el = new Gtk.MenuButton();
253 // set gobject values
254 this.el.use_popover = false;
255 var child_0 = new Xcls_topbarmenu( _this );
257 this.el.set_popup ( child_0.el );
258 var child_1 = new Xcls_Image10( _this );
260 this.el.set_image ( child_1.el );
263 // user defined functions
265 public class Xcls_topbarmenu : Object
268 private Xcls_MainWindow _this;
274 public Xcls_topbarmenu(Xcls_MainWindow _owner )
277 _this.topbarmenu = this;
278 this.el = new Gtk.Menu();
282 // set gobject values
283 var child_0 = new Xcls_MenuItem6( _this );
285 this.el.append ( child_0.el );
286 var child_1 = new Xcls_SeparatorMenuItem7( _this );
288 this.el.append ( child_1.el );
289 var child_2 = new Xcls_MenuItem8( _this );
291 this.el.append ( child_2.el );
292 var child_3 = new Xcls_MenuItem9( _this );
294 this.el.append ( child_3.el );
303 // user defined functions
305 public class Xcls_MenuItem6 : Object
307 public Gtk.MenuItem el;
308 private Xcls_MainWindow _this;
314 public Xcls_MenuItem6(Xcls_MainWindow _owner )
317 this.el = new Gtk.MenuItem();
321 // set gobject values
322 this.el.label = "Open a new Window";
325 this.el.activate.connect( ( ) => {
326 _this.openNewWindow();
330 // user defined functions
333 public class Xcls_SeparatorMenuItem7 : Object
335 public Gtk.SeparatorMenuItem el;
336 private Xcls_MainWindow _this;
342 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
345 this.el = new Gtk.SeparatorMenuItem();
349 // set gobject values
352 // user defined functions
355 public class Xcls_MenuItem8 : Object
357 public Gtk.MenuItem el;
358 private Xcls_MainWindow _this;
364 public Xcls_MenuItem8(Xcls_MainWindow _owner )
367 this.el = new Gtk.MenuItem();
371 // set gobject values
372 this.el.label = "Download updated Resources";
375 this.el.activate.connect( ( ) => {
376 Resources.singleton().fetchStart();
380 // user defined functions
383 public class Xcls_MenuItem9 : Object
385 public Gtk.MenuItem el;
386 private Xcls_MainWindow _this;
392 public Xcls_MenuItem9(Xcls_MainWindow _owner )
395 this.el = new Gtk.MenuItem();
399 // set gobject values
400 this.el.label = "About the Builder";
403 this.el.activate.connect( () => {
404 About.singleton().el.show();
408 // user defined functions
412 public class Xcls_Image10 : Object
415 private Xcls_MainWindow _this;
421 public Xcls_Image10(Xcls_MainWindow _owner )
424 this.el = new Gtk.Image();
428 // set gobject values
429 this.el.icon_name = "help-about";
432 // user defined functions
436 public class Xcls_openbtn : Object
438 public Gtk.Button el;
439 private Xcls_MainWindow _this;
445 public Xcls_openbtn(Xcls_MainWindow _owner )
448 _this.openbtn = this;
449 this.el = new Gtk.Button();
453 // set gobject values
454 var child_0 = new Xcls_Image12( _this );
456 this.el.set_image ( child_0.el );
459 this.el.clicked.connect( ( ) => {
460 _this.windowstate.switchState(WindowState.State.FILES);
466 // user defined functions
468 public class Xcls_Image12 : Object
471 private Xcls_MainWindow _this;
477 public Xcls_Image12(Xcls_MainWindow _owner )
480 this.el = new Gtk.Image();
484 // set gobject values
485 this.el.icon_name = "document-open";
488 // user defined functions
492 public class Xcls_openbackbtn : Object
494 public Gtk.Button el;
495 private Xcls_MainWindow _this;
501 public Xcls_openbackbtn(Xcls_MainWindow _owner )
504 _this.openbackbtn = this;
505 this.el = new Gtk.Button();
509 // set gobject values
510 this.el.tooltip_text = "Back";
511 this.el.visible = false;
512 var child_0 = new Xcls_Image14( _this );
514 this.el.set_image ( child_0.el );
517 this.el.clicked.connect( ( ) => {
519 _this.windowstate.switchState(WindowState.State.PREVIEW);
525 // user defined functions
527 public class Xcls_Image14 : Object
530 private Xcls_MainWindow _this;
536 public Xcls_Image14(Xcls_MainWindow _owner )
539 this.el = new Gtk.Image();
543 // set gobject values
544 this.el.icon_name = "go-previous";
547 // user defined functions
553 public class Xcls_vbox : Object
556 private Xcls_MainWindow _this;
562 public Xcls_vbox(Xcls_MainWindow _owner )
566 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
570 // set gobject values
571 this.el.homogeneous = false;
572 var child_0 = new Xcls_mainpane( _this );
574 this.el.pack_start ( child_0.el , true,true,0 );
575 var child_1 = new Xcls_Box65( _this );
577 this.el.pack_end ( child_1.el , false,true,0 );
580 // user defined functions
582 public class Xcls_mainpane : Object
585 private Xcls_MainWindow _this;
589 public int lastWidth;
592 public Xcls_mainpane(Xcls_MainWindow _owner )
595 _this.mainpane = this;
596 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
601 // set gobject values
602 this.el.position = 400;
603 var child_0 = new Xcls_leftpane( _this );
605 this.el.add1 ( child_0.el );
606 var child_1 = new Xcls_Box21( _this );
608 this.el.add2 ( child_1.el );
611 // user defined functions
613 public class Xcls_leftpane : Object
616 private Xcls_MainWindow _this;
622 public Xcls_leftpane(Xcls_MainWindow _owner )
625 _this.leftpane = this;
626 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
630 // set gobject values
631 var child_0 = new Xcls_editpane( _this );
633 this.el.pack_start ( child_0.el , true,true,0 );
636 // user defined functions
638 public class Xcls_editpane : Object
641 private Xcls_MainWindow _this;
647 public Xcls_editpane(Xcls_MainWindow _owner )
650 _this.editpane = this;
651 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
655 // set gobject values
656 var child_0 = new Xcls_tree( _this );
658 this.el.add1 ( child_0.el );
659 var child_1 = new Xcls_props( _this );
661 this.el.add2 ( child_1.el );
664 // user defined functions
666 public class Xcls_tree : Object
669 private Xcls_MainWindow _this;
675 public Xcls_tree(Xcls_MainWindow _owner )
679 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
683 // set gobject values
686 // user defined functions
689 public class Xcls_props : Object
692 private Xcls_MainWindow _this;
698 public Xcls_props(Xcls_MainWindow _owner )
702 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
706 // set gobject values
709 // user defined functions
714 public class Xcls_Box21 : Object
717 private Xcls_MainWindow _this;
723 public Xcls_Box21(Xcls_MainWindow _owner )
726 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
730 // set gobject values
731 var child_0 = new Xcls_clutterembed( _this );
733 this.el.pack_start ( child_0.el , true,true,0 );
736 // user defined functions
738 public class Xcls_clutterembed : Object
740 public GtkClutter.Embed el;
741 private Xcls_MainWindow _this;
747 public Xcls_clutterembed(Xcls_MainWindow _owner )
750 _this.clutterembed = this;
751 this.el = new GtkClutter.Embed();
755 // set gobject values
756 var child_0 = new Xcls_rooview( _this );
758 this.el.get_stage().add_child ( child_0.el );
759 var child_1 = new Xcls_objectview( _this );
761 this.el.get_stage().add_child ( child_1.el );
762 var child_2 = new Xcls_codeeditview( _this );
764 this.el.get_stage().add_child ( child_2.el );
765 var child_3 = new Xcls_addpropsview( _this );
767 this.el.get_stage().add_child ( child_3.el );
768 var child_4 = new Xcls_buttonlayout( _this );
770 this.el.get_stage().add_child ( child_4.el );
774 var stage = this.el.get_stage();
775 stage.set_background_color( Clutter.Color.from_string("#000"));
778 this.el.size_allocate.connect( ( alloc) => {
779 if (_this.windowstate == null) {
782 _this.windowstate.resizeCanvas();
787 // user defined functions
789 public class Xcls_rooview : Object
791 public GtkClutter.Actor el;
792 private Xcls_MainWindow _this;
798 public Xcls_rooview(Xcls_MainWindow _owner )
801 _this.rooview = this;
802 this.el = new GtkClutter.Actor();
806 // set gobject values
813 this.el.add_constraint(
814 new Clutter.AlignConstraint(
815 _this.clutterembed.el.get_stage(),
816 Clutter.AlignAxis.X_AXIS,
821 //this.el.set_position(100,100);
822 this.el.set_pivot_point(1.0f,1.0f);
824 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
825 _this.clutterembed.el.get_stage().height);
830 // user defined functions
833 public class Xcls_objectview : Object
835 public GtkClutter.Actor el;
836 private Xcls_MainWindow _this;
842 public Xcls_objectview(Xcls_MainWindow _owner )
845 _this.objectview = this;
846 this.el = new GtkClutter.Actor();
850 // set gobject values
857 this.el.add_constraint(
858 new Clutter.AlignConstraint(
859 _this.clutterembed.el.get_stage(),
860 Clutter.AlignAxis.X_AXIS,
865 this.el.fixed_x = 50.0f;
866 this.el.fixed_y = 0.0f;
867 //this.el.set_position(100,100);
868 this.el.set_pivot_point(0.0f,0.0f);
869 this.el.set_scale(0.0f,1.0f);
870 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
871 _this.clutterembed.el.get_stage().height);
876 // user defined functions
879 public class Xcls_codeeditview : Object
881 public GtkClutter.Actor el;
882 private Xcls_MainWindow _this;
888 public Xcls_codeeditview(Xcls_MainWindow _owner )
891 _this.codeeditview = this;
892 this.el = new GtkClutter.Actor();
896 // set gobject values
903 this.el.add_constraint(
904 new Clutter.AlignConstraint(
905 _this.clutterembed.el.get_stage(),
906 Clutter.AlignAxis.X_AXIS,
911 this.el.fixed_x = 50.0f;
912 this.el.fixed_y = 0.0f;
913 //this.el.set_position(100,100);
914 this.el.set_pivot_point(0.0f,0.0f);
915 this.el.set_scale(0.0f,1.0f);
916 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
917 _this.clutterembed.el.get_stage().height);
922 // user defined functions
925 public class Xcls_addpropsview : Object
927 public GtkClutter.Actor el;
928 private Xcls_MainWindow _this;
934 public Xcls_addpropsview(Xcls_MainWindow _owner )
937 _this.addpropsview = this;
938 this.el = new GtkClutter.Actor();
942 // set gobject values
949 this.el.add_constraint(
950 new Clutter.AlignConstraint(
951 _this.clutterembed.el.get_stage(),
952 Clutter.AlignAxis.X_AXIS,
957 this.el.fixed_x = 50.0f;
958 this.el.fixed_y = 0.0f;
959 //this.el.set_position(100,100);
960 this.el.set_pivot_point(0.0f,0.0f);
961 this.el.set_scale(0.0f,1.0f);
962 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
963 _this.clutterembed.el.get_stage().height);
968 // user defined functions
971 public class Xcls_buttonlayout : Object
973 public Clutter.Actor el;
974 private Xcls_MainWindow _this;
980 public Xcls_buttonlayout(Xcls_MainWindow _owner )
983 _this.buttonlayout = this;
984 this.el = new Clutter.Actor();
988 // set gobject values
989 var child_0 = new Xcls_BoxLayout28( _this );
991 this.el.layout_manager = child_0.el;
992 var child_1 = new Xcls_backbutton( _this );
994 this.el.add_child ( child_1.el );
995 var child_2 = new Xcls_editfilebutton( _this );
997 this.el.add_child ( child_2.el );
998 var child_3 = new Xcls_projecteditbutton( _this );
1000 this.el.add_child ( child_3.el );
1001 var child_4 = new Xcls_objectshowbutton( _this );
1003 this.el.add_child ( child_4.el );
1004 var child_5 = new Xcls_addpropbutton( _this );
1006 this.el.add_child ( child_5.el );
1007 var child_6 = new Xcls_addlistenerbutton( _this );
1009 this.el.add_child ( child_6.el );
1010 var child_7 = new Xcls_addprojectbutton( _this );
1012 this.el.add_child ( child_7.el );
1013 var child_8 = new Xcls_addfilebutton( _this );
1015 this.el.add_child ( child_8.el );
1016 var child_9 = new Xcls_delprojectbutton( _this );
1018 this.el.add_child ( child_9.el );
1024 this.el.add_constraint(
1025 new Clutter.AlignConstraint(
1026 _this.clutterembed.el.get_stage(),
1027 Clutter.AlignAxis.X_AXIS,
1033 //this.el.set_position(100,100);
1034 this.el.set_pivot_point(0.5f,0.5f);
1035 this.el.set_size(50,
1036 _this.clutterembed.el.get_stage().height);
1041 // user defined functions
1043 public class Xcls_BoxLayout28 : Object
1045 public Clutter.BoxLayout el;
1046 private Xcls_MainWindow _this;
1052 public Xcls_BoxLayout28(Xcls_MainWindow _owner )
1055 this.el = new Clutter.BoxLayout();
1059 // set gobject values
1060 this.el.orientation = Clutter.Orientation.VERTICAL;
1063 // user defined functions
1066 public class Xcls_backbutton : Object
1068 public Clutter.Actor el;
1069 private Xcls_MainWindow _this;
1075 public Xcls_backbutton(Xcls_MainWindow _owner )
1078 _this.backbutton = this;
1079 this.el = new Clutter.Actor();
1083 // set gobject values
1084 var child_0 = new Xcls_Actor30( _this );
1086 this.el.add_child ( child_0.el );
1090 this.el.set_size(50,50);
1093 // user defined functions
1095 public class Xcls_Actor30 : Object
1097 public GtkClutter.Actor el;
1098 private Xcls_MainWindow _this;
1104 public Xcls_Actor30(Xcls_MainWindow _owner )
1107 this.el = new GtkClutter.Actor();
1111 // set gobject values
1112 var child_0 = new Xcls_Button31( _this );
1117 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1120 // user defined functions
1122 public class Xcls_Button31 : Object
1124 public Gtk.Button el;
1125 private Xcls_MainWindow _this;
1131 public Xcls_Button31(Xcls_MainWindow _owner )
1134 this.el = new Gtk.Button();
1138 // set gobject values
1139 this.el.width_request = 50;
1140 this.el.height_request = 50;
1141 this.el.tooltip_text = "Back";
1142 var child_0 = new Xcls_Image32( _this );
1144 this.el.set_image ( child_0.el );
1147 this.el.clicked.connect( ( ) => {
1148 // if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
1150 // _this.windowstate.switchState(WindowState.State.FILES);
1152 _this.windowstate.switchState(WindowState.State.PREVIEW);
1159 // user defined functions
1161 public class Xcls_Image32 : Object
1163 public Gtk.Image el;
1164 private Xcls_MainWindow _this;
1170 public Xcls_Image32(Xcls_MainWindow _owner )
1173 this.el = new Gtk.Image();
1177 // set gobject values
1178 this.el.icon_name = "go-previous";
1181 // user defined functions
1187 public class Xcls_editfilebutton : Object
1189 public Clutter.Actor el;
1190 private Xcls_MainWindow _this;
1196 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1199 _this.editfilebutton = this;
1200 this.el = new Clutter.Actor();
1204 // set gobject values
1205 var child_0 = new Xcls_Actor34( _this );
1207 this.el.add_child ( child_0.el );
1211 this.el.set_size(50.0f,50.0f);
1214 // user defined functions
1216 public class Xcls_Actor34 : Object
1218 public GtkClutter.Actor el;
1219 private Xcls_MainWindow _this;
1225 public Xcls_Actor34(Xcls_MainWindow _owner )
1228 this.el = new GtkClutter.Actor();
1232 // set gobject values
1233 var child_0 = new Xcls_Button35( _this );
1238 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1241 // user defined functions
1243 public class Xcls_Button35 : Object
1245 public Gtk.Button el;
1246 private Xcls_MainWindow _this;
1252 public Xcls_Button35(Xcls_MainWindow _owner )
1255 this.el = new Gtk.Button();
1259 // set gobject values
1260 this.el.width_request = 50;
1261 this.el.height_request = 50;
1262 this.el.tooltip_text = "File Details";
1263 var child_0 = new Xcls_Image36( _this );
1265 this.el.set_image ( child_0.el );
1268 this.el.clicked.connect( ( ) => {
1270 // create a new file in project..
1271 if (_this.project == null || _this.windowstate.file == null) {
1274 _this.windowstate.file_details.show(
1275 _this.windowstate.file, this.el
1284 // user defined functions
1286 public class Xcls_Image36 : Object
1288 public Gtk.Image el;
1289 private Xcls_MainWindow _this;
1295 public Xcls_Image36(Xcls_MainWindow _owner )
1298 this.el = new Gtk.Image();
1302 // set gobject values
1303 this.el.icon_name = "document-properties";
1306 // user defined functions
1312 public class Xcls_projecteditbutton : Object
1314 public Clutter.Actor el;
1315 private Xcls_MainWindow _this;
1321 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1324 _this.projecteditbutton = this;
1325 this.el = new Clutter.Actor();
1329 // set gobject values
1330 var child_0 = new Xcls_Actor38( _this );
1332 this.el.add_child ( child_0.el );
1336 this.el.set_size(50,50);
1339 // user defined functions
1341 public class Xcls_Actor38 : Object
1343 public GtkClutter.Actor el;
1344 private Xcls_MainWindow _this;
1350 public Xcls_Actor38(Xcls_MainWindow _owner )
1353 this.el = new GtkClutter.Actor();
1357 // set gobject values
1358 var child_0 = new Xcls_Button39( _this );
1363 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1366 // user defined functions
1368 public class Xcls_Button39 : Object
1370 public Gtk.Button el;
1371 private Xcls_MainWindow _this;
1377 public Xcls_Button39(Xcls_MainWindow _owner )
1380 this.el = new Gtk.Button();
1384 // set gobject values
1385 this.el.width_request = 50;
1386 this.el.height_request = 50;
1387 this.el.tooltip_text = "Project Details";
1388 var child_0 = new Xcls_Image40( _this );
1390 this.el.set_image ( child_0.el );
1393 this.el.clicked.connect( ( ) => {
1395 _this.windowstate.projectPopoverShow(this.el);
1401 // user defined functions
1403 public class Xcls_Image40 : Object
1405 public Gtk.Image el;
1406 private Xcls_MainWindow _this;
1412 public Xcls_Image40(Xcls_MainWindow _owner )
1415 this.el = new Gtk.Image();
1419 // set gobject values
1420 this.el.icon_name = "emblem-system";
1423 // user defined functions
1429 public class Xcls_objectshowbutton : Object
1431 public Clutter.Actor el;
1432 private Xcls_MainWindow _this;
1438 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1441 _this.objectshowbutton = this;
1442 this.el = new Clutter.Actor();
1446 // set gobject values
1447 var child_0 = new Xcls_Actor42( _this );
1449 this.el.add_child ( child_0.el );
1453 this.el.set_size(50,50);
1456 this.el.enter_event.connect( ( event) => {
1457 this.el.background_color = Clutter.Color.from_string("#333");
1460 this.el.leave_event.connect( ( event) => {
1461 this.el.background_color = Clutter.Color.from_string("#000");
1466 // user defined functions
1468 public class Xcls_Actor42 : Object
1470 public GtkClutter.Actor el;
1471 private Xcls_MainWindow _this;
1477 public Xcls_Actor42(Xcls_MainWindow _owner )
1480 this.el = new GtkClutter.Actor();
1484 // set gobject values
1485 var child_0 = new Xcls_Button43( _this );
1490 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1493 // user defined functions
1495 public class Xcls_Button43 : Object
1497 public Gtk.Button el;
1498 private Xcls_MainWindow _this;
1504 public Xcls_Button43(Xcls_MainWindow _owner )
1507 this.el = new Gtk.Button();
1511 // set gobject values
1512 this.el.width_request = 50;
1513 this.el.height_request = 50;
1514 this.el.tooltip_text = "Add Child Element";
1515 var child_0 = new Xcls_Image44( _this );
1517 this.el.set_image ( child_0.el );
1520 this.el.clicked.connect( ( ) => {
1523 _this.windowstate.showAddObject(this.el);
1528 // user defined functions
1530 public class Xcls_Image44 : Object
1532 public Gtk.Image el;
1533 private Xcls_MainWindow _this;
1539 public Xcls_Image44(Xcls_MainWindow _owner )
1542 this.el = new Gtk.Image();
1546 // set gobject values
1547 this.el.icon_name = "list-add";
1550 // user defined functions
1556 public class Xcls_addpropbutton : Object
1558 public Clutter.Actor el;
1559 private Xcls_MainWindow _this;
1565 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1568 _this.addpropbutton = this;
1569 this.el = new Clutter.Actor();
1573 // set gobject values
1574 var child_0 = new Xcls_Actor46( _this );
1576 this.el.add_child ( child_0.el );
1580 this.el.set_size(50,50);
1583 // user defined functions
1585 public class Xcls_Actor46 : Object
1587 public GtkClutter.Actor el;
1588 private Xcls_MainWindow _this;
1594 public Xcls_Actor46(Xcls_MainWindow _owner )
1597 this.el = new GtkClutter.Actor();
1601 // set gobject values
1602 var child_0 = new Xcls_Button47( _this );
1607 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1610 // user defined functions
1612 public class Xcls_Button47 : Object
1614 public Gtk.Button el;
1615 private Xcls_MainWindow _this;
1621 public Xcls_Button47(Xcls_MainWindow _owner )
1624 this.el = new Gtk.Button();
1628 // set gobject values
1629 this.el.width_request = 50;
1630 this.el.height_request = 50;
1631 this.el.tooltip_text = "Add Property";
1632 var child_0 = new Xcls_Image48( _this );
1634 this.el.set_image ( child_0.el );
1637 this.el.clicked.connect( ( ) => {
1639 _this.windowstate.showProps(this.el, "props");
1645 // user defined functions
1647 public class Xcls_Image48 : Object
1649 public Gtk.Image el;
1650 private Xcls_MainWindow _this;
1656 public Xcls_Image48(Xcls_MainWindow _owner )
1659 this.el = new Gtk.Image();
1663 // set gobject values
1664 this.el.icon_name = "format-justify-left";
1667 // user defined functions
1673 public class Xcls_addlistenerbutton : Object
1675 public Clutter.Actor el;
1676 private Xcls_MainWindow _this;
1682 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1685 _this.addlistenerbutton = this;
1686 this.el = new Clutter.Actor();
1690 // set gobject values
1691 var child_0 = new Xcls_Actor50( _this );
1693 this.el.add_child ( child_0.el );
1697 this.el.set_size(50,50);
1700 // user defined functions
1702 public class Xcls_Actor50 : Object
1704 public GtkClutter.Actor el;
1705 private Xcls_MainWindow _this;
1711 public Xcls_Actor50(Xcls_MainWindow _owner )
1714 this.el = new GtkClutter.Actor();
1718 // set gobject values
1719 var child_0 = new Xcls_Button51( _this );
1724 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1727 // user defined functions
1729 public class Xcls_Button51 : Object
1731 public Gtk.Button el;
1732 private Xcls_MainWindow _this;
1738 public Xcls_Button51(Xcls_MainWindow _owner )
1741 this.el = new Gtk.Button();
1745 // set gobject values
1746 this.el.width_request = 50;
1747 this.el.height_request = 50;
1748 this.el.tooltip_text = "Add Event Code";
1749 var child_0 = new Xcls_Image52( _this );
1751 this.el.set_image ( child_0.el );
1754 this.el.clicked.connect( ( ) => {
1757 _this.windowstate.showProps(this.el, "signals");
1763 // user defined functions
1765 public class Xcls_Image52 : Object
1767 public Gtk.Image el;
1768 private Xcls_MainWindow _this;
1774 public Xcls_Image52(Xcls_MainWindow _owner )
1777 this.el = new Gtk.Image();
1781 // set gobject values
1782 this.el.icon_name = "appointment-new";
1785 // user defined functions
1791 public class Xcls_addprojectbutton : Object
1793 public Clutter.Actor el;
1794 private Xcls_MainWindow _this;
1800 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1803 _this.addprojectbutton = this;
1804 this.el = new Clutter.Actor();
1808 // set gobject values
1809 var child_0 = new Xcls_Actor54( _this );
1811 this.el.add_child ( child_0.el );
1815 this.el.set_size(50.0f,50.0f);
1818 // user defined functions
1820 public class Xcls_Actor54 : Object
1822 public GtkClutter.Actor el;
1823 private Xcls_MainWindow _this;
1829 public Xcls_Actor54(Xcls_MainWindow _owner )
1832 this.el = new GtkClutter.Actor();
1836 // set gobject values
1837 var child_0 = new Xcls_Button55( _this );
1842 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1845 // user defined functions
1847 public class Xcls_Button55 : Object
1849 public Gtk.Button el;
1850 private Xcls_MainWindow _this;
1856 public Xcls_Button55(Xcls_MainWindow _owner )
1859 this.el = new Gtk.Button();
1863 // set gobject values
1864 this.el.width_request = 50;
1865 this.el.height_request = 50;
1866 this.el.tooltip_text = "New\nProj.";
1867 var child_0 = new Xcls_Image56( _this );
1869 this.el.set_image ( child_0.el );
1872 this.el.clicked.connect( ( ) => {
1874 // create a new file in project..
1875 //Xcls_DialogNewComponent.singleton().show(
1876 var pe = EditProject.singleton();
1877 pe.el.set_transient_for(_this.el);
1878 pe.el.set_modal(true);
1887 _this.windowstate.left_projects.is_loaded = false;
1888 _this.windowstate.left_projects.load();
1889 _this.windowstate.left_projects.selectProject(p);
1896 // user defined functions
1898 public class Xcls_Image56 : Object
1900 public Gtk.Image el;
1901 private Xcls_MainWindow _this;
1907 public Xcls_Image56(Xcls_MainWindow _owner )
1910 this.el = new Gtk.Image();
1914 // set gobject values
1915 this.el.icon_name = "folder-new";
1918 // user defined functions
1924 public class Xcls_addfilebutton : Object
1926 public Clutter.Actor el;
1927 private Xcls_MainWindow _this;
1933 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1936 _this.addfilebutton = this;
1937 this.el = new Clutter.Actor();
1941 // set gobject values
1942 var child_0 = new Xcls_Actor58( _this );
1944 this.el.add_child ( child_0.el );
1948 this.el.set_size(50.0f,50.0f);
1951 // user defined functions
1953 public class Xcls_Actor58 : Object
1955 public GtkClutter.Actor el;
1956 private Xcls_MainWindow _this;
1962 public Xcls_Actor58(Xcls_MainWindow _owner )
1965 this.el = new GtkClutter.Actor();
1969 // set gobject values
1970 var child_0 = new Xcls_Button59( _this );
1975 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1978 // user defined functions
1980 public class Xcls_Button59 : Object
1982 public Gtk.Button el;
1983 private Xcls_MainWindow _this;
1989 public Xcls_Button59(Xcls_MainWindow _owner )
1992 this.el = new Gtk.Button();
1996 // set gobject values
1997 this.el.width_request = 50;
1998 this.el.height_request = 50;
1999 this.el.tooltip_text = "Add File";
2000 var child_0 = new Xcls_Image60( _this );
2002 this.el.set_image ( child_0.el );
2005 this.el.clicked.connect( () => {
2006 // create a new file in project..
2007 print("add file selected\n");
2008 // what's the currently selected project...
2009 var proj = _this.windowstate.left_projects.getSelectedProject();
2012 print("no project selected?\n");
2016 print("creating file?");
2018 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2019 _this.project = proj;
2020 print("showing popup?");
2021 _this.windowstate.file_details.show(
2030 // user defined functions
2032 public class Xcls_Image60 : Object
2034 public Gtk.Image el;
2035 private Xcls_MainWindow _this;
2041 public Xcls_Image60(Xcls_MainWindow _owner )
2044 this.el = new Gtk.Image();
2048 // set gobject values
2049 this.el.icon_name = "document-new";
2052 // user defined functions
2058 public class Xcls_delprojectbutton : Object
2060 public Clutter.Actor el;
2061 private Xcls_MainWindow _this;
2067 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2070 _this.delprojectbutton = this;
2071 this.el = new Clutter.Actor();
2075 // set gobject values
2076 var child_0 = new Xcls_Actor62( _this );
2078 this.el.add_child ( child_0.el );
2082 this.el.set_size(50,50);
2085 // user defined functions
2087 public class Xcls_Actor62 : Object
2089 public GtkClutter.Actor el;
2090 private Xcls_MainWindow _this;
2096 public Xcls_Actor62(Xcls_MainWindow _owner )
2099 this.el = new GtkClutter.Actor();
2103 // set gobject values
2104 var child_0 = new Xcls_Button63( _this );
2109 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2112 // user defined functions
2114 public class Xcls_Button63 : Object
2116 public Gtk.Button el;
2117 private Xcls_MainWindow _this;
2123 public Xcls_Button63(Xcls_MainWindow _owner )
2126 this.el = new Gtk.Button();
2130 // set gobject values
2131 this.el.width_request = 50;
2132 this.el.height_request = 50;
2133 this.el.tooltip_text = "Delete Project";
2134 var child_0 = new Xcls_Image64( _this );
2136 this.el.set_image ( child_0.el );
2139 this.el.clicked.connect( ( ) => {
2141 var cd = DialogConfirm.singleton();
2142 cd.el.set_transient_for(_this.el);
2143 cd.el.set_modal(true);
2145 var project = _this.windowstate.left_projects.getSelectedProject();
2146 if (project == null) {
2147 print("SKIP - no project\n");
2152 if (Gtk.ResponseType.YES != cd.show("Confirm",
2153 "Are you sure you want to delete project %s".printf(project.name))) {
2159 Project.Project.remove(project);
2160 _this.project = null;
2162 _this.windowstate.left_projects.is_loaded = false;
2163 _this.windowstate.left_projects.load();
2164 _this.windowstate.clutterfiles.clearFiles();
2169 // user defined functions
2171 public class Xcls_Image64 : Object
2173 public Gtk.Image el;
2174 private Xcls_MainWindow _this;
2180 public Xcls_Image64(Xcls_MainWindow _owner )
2183 this.el = new Gtk.Image();
2187 // set gobject values
2188 this.el.icon_name = "user-trash";
2191 // user defined functions
2201 public class Xcls_Box65 : Object
2204 private Xcls_MainWindow _this;
2210 public Xcls_Box65(Xcls_MainWindow _owner )
2213 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2217 // set gobject values
2218 this.el.homogeneous = false;
2219 var child_0 = new Xcls_Label66( _this );
2221 this.el.pack_start ( child_0.el , true,true,0 );
2222 var child_1 = new Xcls_statusbar( _this );
2224 this.el.pack_start ( child_1.el , true,true,0 );
2225 var child_2 = new Xcls_search_entry( _this );
2227 this.el.pack_start ( child_2.el , false,true,0 );
2228 var child_3 = new Xcls_MenuBar69( _this );
2230 this.el.add ( child_3.el );
2231 var child_4 = new Xcls_statusbar_compile_spinner( _this );
2233 this.el.add ( child_4.el );
2236 // user defined functions
2238 public class Xcls_Label66 : Object
2240 public Gtk.Label el;
2241 private Xcls_MainWindow _this;
2247 public Xcls_Label66(Xcls_MainWindow _owner )
2250 this.el = new Gtk.Label( " " );
2254 // set gobject values
2257 // user defined functions
2260 public class Xcls_statusbar : Object
2262 public Gtk.ProgressBar el;
2263 private Xcls_MainWindow _this;
2267 public ulong handler_id;
2270 public Xcls_statusbar(Xcls_MainWindow _owner )
2273 _this.statusbar = this;
2274 this.el = new Gtk.ProgressBar();
2277 this.handler_id = -1;
2279 // set gobject values
2280 this.el.show_text = true;
2285 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2288 _this.mainpane.el.set_sensitive(true);
2292 _this.mainpane.el.set_sensitive(false);
2294 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2295 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2301 // user defined functions
2304 public class Xcls_search_entry : Object
2306 public Gtk.SearchEntry el;
2307 private Xcls_MainWindow _this;
2313 public Xcls_search_entry(Xcls_MainWindow _owner )
2316 _this.search_entry = this;
2317 this.el = new Gtk.SearchEntry();
2321 // set gobject values
2325 var description = Pango.FontDescription.from_string("monospace");
2326 description.set_size(8000);
2327 this.el.override_font(description);
2330 this.el.key_press_event.connect( (event) => {
2332 if (event.keyval == Gdk.Key.Return) {
2333 this.forwardSearch(false);
2337 // print(event.key.keyval)
2342 this.el.changed.connect( () => {
2343 if (this.el.text == "") {
2344 _this.search_results.el.hide();
2348 switch(_this.windowstate.state) {
2349 case WindowState.State.CODEONLY:
2350 ///case WindowState.State.CODE:
2351 // search the code being edited..
2352 res = _this.windowstate.code_editor_tab.search(this.el.text);
2355 case WindowState.State.PREVIEW:
2356 if (_this.windowstate.file.xtype == "Gtk") {
2357 res = _this.windowstate.window_gladeview.search(this.el.text);
2359 res = _this.windowstate.window_rooview.search(this.el.text);
2365 _this.search_results.el.show();
2367 _this.search_results.el.label = "%d Matches".printf(res);
2369 _this.search_results.el.label = "No Matches";
2377 // user defined functions
2378 public void forwardSearch (bool change_focus) {
2379 switch(_this.windowstate.state) {
2380 case WindowState.State.CODEONLY:
2381 //case WindowState.State.CODE:
2382 // search the code being edited..
2383 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
2386 case WindowState.State.PREVIEW:
2387 if (_this.windowstate.file.xtype == "Gtk") {
2388 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2390 _this.windowstate.window_rooview.forwardSearch(change_focus);
2399 public class Xcls_MenuBar69 : Object
2401 public Gtk.MenuBar el;
2402 private Xcls_MainWindow _this;
2408 public Xcls_MenuBar69(Xcls_MainWindow _owner )
2411 this.el = new Gtk.MenuBar();
2415 // set gobject values
2416 var child_0 = new Xcls_search_results( _this );
2418 this.el.add ( child_0.el );
2419 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2421 this.el.add ( child_1.el );
2422 var child_2 = new Xcls_statusbar_errors( _this );
2424 this.el.add ( child_2.el );
2425 var child_3 = new Xcls_statusbar_warnings( _this );
2427 this.el.add ( child_3.el );
2428 var child_4 = new Xcls_statusbar_depricated( _this );
2430 this.el.add ( child_4.el );
2431 var child_5 = new Xcls_statusbar_run( _this );
2433 this.el.add ( child_5.el );
2436 // user defined functions
2438 public class Xcls_search_results : Object
2440 public Gtk.ImageMenuItem el;
2441 private Xcls_MainWindow _this;
2445 public Xcls_ValaCompileErrors popup;
2448 public Xcls_search_results(Xcls_MainWindow _owner )
2451 _this.search_results = this;
2452 this.el = new Gtk.ImageMenuItem();
2456 // set gobject values
2457 this.el.always_show_image = true;
2458 this.el.label = "Matches";
2459 var child_0 = new Xcls_Image71( _this );
2461 this.el.set_image ( child_0.el );
2464 this.el.button_press_event.connect( () => {
2466 if (this.popup == null) {
2467 this.popup = new Xcls_ValaCompileErrors();
2468 this.popup.window = _this;
2472 this.popup.show(this.notices, this.el);
2478 // user defined functions
2480 public class Xcls_Image71 : Object
2482 public Gtk.Image el;
2483 private Xcls_MainWindow _this;
2489 public Xcls_Image71(Xcls_MainWindow _owner )
2492 this.el = new Gtk.Image();
2496 // set gobject values
2497 this.el.icon_name = "system-search";
2498 this.el.sensitive = false;
2501 // user defined functions
2505 public class Xcls_statusbar_compilestatus_label : Object
2507 public Gtk.MenuItem el;
2508 private Xcls_MainWindow _this;
2514 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2517 _this.statusbar_compilestatus_label = this;
2518 this.el = new Gtk.MenuItem();
2522 // set gobject values
2523 this.el.label = "Compile Status:";
2526 // user defined functions
2529 public class Xcls_statusbar_errors : Object
2531 public Gtk.ImageMenuItem el;
2532 private Xcls_MainWindow _this;
2536 public Xcls_ValaCompileErrors popup;
2537 public Json.Object notices;
2540 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2543 _this.statusbar_errors = this;
2544 this.el = new Gtk.ImageMenuItem();
2547 this.notices = new Json.Object() ;
2549 // set gobject values
2550 this.el.always_show_image = true;
2551 this.el.label = "Errors";
2552 var child_0 = new Xcls_Image74( _this );
2554 this.el.set_image ( child_0.el );
2557 this.el.button_press_event.connect( () => {
2558 if (this.popup == null) {
2559 this.popup = new Xcls_ValaCompileErrors();
2560 this.popup.window = _this;
2564 this.popup.show(this.notices, this.el);
2569 // user defined functions
2570 public void setNotices (Json.Object nots, int qty) {
2572 this.el.label = qty.to_string() + " Errors";
2573 this.notices = nots;
2577 public class Xcls_Image74 : Object
2579 public Gtk.Image el;
2580 private Xcls_MainWindow _this;
2586 public Xcls_Image74(Xcls_MainWindow _owner )
2589 this.el = new Gtk.Image();
2593 // set gobject values
2594 this.el.icon_name = "dialog-error";
2597 // user defined functions
2601 public class Xcls_statusbar_warnings : Object
2603 public Gtk.ImageMenuItem el;
2604 private Xcls_MainWindow _this;
2608 public Xcls_ValaCompileErrors popup;
2609 public Json.Object notices;
2612 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2615 _this.statusbar_warnings = this;
2616 this.el = new Gtk.ImageMenuItem();
2619 this.notices = new Json.Object();
2621 // set gobject values
2622 this.el.always_show_image = true;
2623 this.el.label = "Warnings";
2624 var child_0 = new Xcls_Image76( _this );
2626 this.el.set_image ( child_0.el );
2629 this.el.button_press_event.connect( () => {
2630 if (this.popup == null) {
2631 this.popup = new Xcls_ValaCompileErrors();
2632 this.popup.window = _this;
2635 this.popup.show(this.notices, this.el);
2640 // user defined functions
2641 public void setNotices (Json.Object nots, int qty) {
2643 this.el.label = qty.to_string() + " Warnings";
2644 this.notices = nots;
2648 public class Xcls_Image76 : Object
2650 public Gtk.Image el;
2651 private Xcls_MainWindow _this;
2657 public Xcls_Image76(Xcls_MainWindow _owner )
2660 this.el = new Gtk.Image();
2664 // set gobject values
2665 this.el.icon_name = "dialog-warning";
2668 // user defined functions
2672 public class Xcls_statusbar_depricated : Object
2674 public Gtk.ImageMenuItem el;
2675 private Xcls_MainWindow _this;
2679 public Xcls_ValaCompileErrors popup;
2680 public Json.Object notices;
2683 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2686 _this.statusbar_depricated = this;
2687 this.el = new Gtk.ImageMenuItem();
2690 this.notices = new Json.Object();
2692 // set gobject values
2693 this.el.always_show_image = true;
2694 this.el.label = "Depricated";
2695 var child_0 = new Xcls_Image78( _this );
2697 this.el.set_image ( child_0.el );
2700 this.el.button_press_event.connect( () => {
2701 if (this.popup == null) {
2702 this.popup = new Xcls_ValaCompileErrors();
2703 this.popup.window = _this;
2707 this.popup.show(this.notices, this.el);
2712 // user defined functions
2713 public void setNotices (Json.Object nots, int qty) {
2715 this.el.label = qty.to_string() + " Depricated";
2716 this.notices = nots;
2720 public class Xcls_Image78 : Object
2722 public Gtk.Image el;
2723 private Xcls_MainWindow _this;
2729 public Xcls_Image78(Xcls_MainWindow _owner )
2732 this.el = new Gtk.Image();
2736 // set gobject values
2737 this.el.icon_name = "dialog-information";
2740 // user defined functions
2744 public class Xcls_statusbar_run : Object
2746 public Gtk.ImageMenuItem el;
2747 private Xcls_MainWindow _this;
2751 public Xcls_ValaCompileErrors popup;
2754 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2757 _this.statusbar_run = this;
2758 this.el = new Gtk.ImageMenuItem();
2762 // set gobject values
2763 this.el.always_show_image = true;
2764 this.el.label = "Run";
2765 var child_0 = new Xcls_Image80( _this );
2767 this.el.set_image ( child_0.el );
2770 this.el.button_press_event.connect( () => {
2771 if (_this.windowstate.file == null) {
2774 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2776 _this.windowstate.compile_results.show(this.el,true);
2782 // user defined functions
2784 public class Xcls_Image80 : Object
2786 public Gtk.Image el;
2787 private Xcls_MainWindow _this;
2793 public Xcls_Image80(Xcls_MainWindow _owner )
2796 this.el = new Gtk.Image();
2800 // set gobject values
2801 this.el.icon_name = "media-playback-start";
2804 // user defined functions
2809 public class Xcls_statusbar_compile_spinner : Object
2811 public Gtk.Spinner el;
2812 private Xcls_MainWindow _this;
2818 public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
2821 _this.statusbar_compile_spinner = this;
2822 this.el = new Gtk.Spinner();
2826 // set gobject values
2827 this.el.tooltip_text = "Compiling";
2830 // user defined functions
2831 public void stop () {
2835 public void start () {