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_vbox vbox;
18 public Xcls_mainpane mainpane;
19 public Xcls_leftpane leftpane;
20 public Xcls_editpane editpane;
21 public Xcls_tree tree;
22 public Xcls_props props;
23 public Xcls_clutterembed clutterembed;
24 public Xcls_rooview rooview;
25 public Xcls_objectview objectview;
26 public Xcls_codeeditview codeeditview;
27 public Xcls_addpropsview addpropsview;
28 public Xcls_projecteditview projecteditview;
29 public Xcls_buttonlayout buttonlayout;
30 public Xcls_backbutton backbutton;
31 public Xcls_projectbutton projectbutton;
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;
50 public Project.Project project;
52 public int no_windows;
53 public WindowState windowstate;
56 public Xcls_MainWindow()
59 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
63 this.title = "Application Builder";
65 this.windowstate = null;
68 this.el.border_width = 0;
69 this.el.default_height = 500;
70 this.el.default_width = 800;
71 var child_0 = new Xcls_headerbar( _this );
73 this.el.set_titlebar ( child_0.el );
74 var child_1 = new Xcls_vbox( _this );
76 this.el.add ( child_1.el );
83 this.el.delete_event.connect( ( event) => {
86 this.el.destroy.connect( () => {
87 Xcls_MainWindow.singleton().no_windows--;
89 Resources.singleton().disconnect(_this.statusbar.handler_id);
92 if (Xcls_MainWindow.singleton().no_windows < 1) {
97 this.el.show.connect( ( ) => {
98 // hide the file editing..
100 //this.hideViewEditing();
101 _this.statusbar.el.hide();
102 _this.statusbar_errors.el.hide();
103 _this.statusbar_warnings.el.hide();
104 _this.statusbar_depricated.el.hide();
107 Resources.singleton().checkResources();
110 this.el.key_release_event.connect( (event) => {
112 if (this.search_entry.el.is_visible()) {
113 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
114 print("SAVE: ctrl-f pressed");
115 this.search_entry.el.grab_focus();
119 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120 print("SAVE: ctrl-g pressed");
121 this.search_entry.forwardSearch(true);
125 // print(event.key.keyval)
132 // user defined functions
133 public void initChildren () {
134 // this needs putting in a better place..
135 this.windowstate = new WindowState(this);
139 var tl = new Clutter.Timeline(6000);
140 tl.set_repeat_count(-1);
149 public void show () {
154 public void setTitle (string str) {
155 this.headerbar.el.set_title(this.title + " - " + str);
157 public class Xcls_headerbar : Object
159 public Gtk.HeaderBar el;
160 private Xcls_MainWindow _this;
166 public Xcls_headerbar(Xcls_MainWindow _owner )
169 _this.headerbar = this;
170 this.el = new Gtk.HeaderBar();
174 // set gobject values
175 this.el.title = "Application Builder";
176 this.el.show_close_button = true;
177 var child_0 = new Xcls_Box3( _this );
179 this.el.pack_start ( child_0.el );
182 // user defined functions
184 public class Xcls_Box3 : Object
187 private Xcls_MainWindow _this;
193 public Xcls_Box3(Xcls_MainWindow _owner )
196 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
200 // set gobject values
201 var child_0 = new Xcls_MenuButton4( _this );
203 this.el.add ( child_0.el );
206 // user defined functions
208 public class Xcls_MenuButton4 : Object
210 public Gtk.MenuButton el;
211 private Xcls_MainWindow _this;
217 public Xcls_MenuButton4(Xcls_MainWindow _owner )
220 this.el = new Gtk.MenuButton();
224 // set gobject values
225 this.el.use_popover = false;
226 var child_0 = new Xcls_topbarmenu( _this );
228 this.el.set_popup ( child_0.el );
229 var child_1 = new Xcls_Image10( _this );
231 this.el.set_image ( child_1.el );
234 // user defined functions
236 public class Xcls_topbarmenu : Object
239 private Xcls_MainWindow _this;
245 public Xcls_topbarmenu(Xcls_MainWindow _owner )
248 _this.topbarmenu = this;
249 this.el = new Gtk.Menu();
253 // set gobject values
254 var child_0 = new Xcls_MenuItem6( _this );
256 this.el.append ( child_0.el );
257 var child_1 = new Xcls_SeparatorMenuItem7( _this );
259 this.el.append ( child_1.el );
260 var child_2 = new Xcls_MenuItem8( _this );
262 this.el.append ( child_2.el );
263 var child_3 = new Xcls_MenuItem9( _this );
265 this.el.append ( child_3.el );
274 // user defined functions
276 public class Xcls_MenuItem6 : Object
278 public Gtk.MenuItem el;
279 private Xcls_MainWindow _this;
285 public Xcls_MenuItem6(Xcls_MainWindow _owner )
288 this.el = new Gtk.MenuItem();
292 // set gobject values
293 this.el.label = "Open a new Window";
296 this.el.activate.connect( ( ) => {
297 Xcls_MainWindow.singleton().no_windows++;
298 var w = new Xcls_MainWindow();
303 w.windowstate.switchState(WindowState.State.FILES);
307 // user defined functions
310 public class Xcls_SeparatorMenuItem7 : Object
312 public Gtk.SeparatorMenuItem el;
313 private Xcls_MainWindow _this;
319 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
322 this.el = new Gtk.SeparatorMenuItem();
326 // set gobject values
329 // user defined functions
332 public class Xcls_MenuItem8 : Object
334 public Gtk.MenuItem el;
335 private Xcls_MainWindow _this;
341 public Xcls_MenuItem8(Xcls_MainWindow _owner )
344 this.el = new Gtk.MenuItem();
348 // set gobject values
349 this.el.label = "Download updated Resources";
352 this.el.activate.connect( ( ) => {
353 Resources.singleton().fetchStart();
357 // user defined functions
360 public class Xcls_MenuItem9 : Object
362 public Gtk.MenuItem el;
363 private Xcls_MainWindow _this;
369 public Xcls_MenuItem9(Xcls_MainWindow _owner )
372 this.el = new Gtk.MenuItem();
376 // set gobject values
377 this.el.label = "About the Builder";
380 this.el.activate.connect( () => {
381 About.singleton().el.show();
385 // user defined functions
389 public class Xcls_Image10 : Object
392 private Xcls_MainWindow _this;
398 public Xcls_Image10(Xcls_MainWindow _owner )
401 this.el = new Gtk.Image();
405 // set gobject values
406 this.el.icon_name = "help-about";
409 // user defined functions
415 public class Xcls_vbox : Object
418 private Xcls_MainWindow _this;
424 public Xcls_vbox(Xcls_MainWindow _owner )
428 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
432 // set gobject values
433 this.el.homogeneous = false;
434 var child_0 = new Xcls_mainpane( _this );
436 this.el.pack_start ( child_0.el , true,true,0 );
437 var child_1 = new Xcls_Box66( _this );
439 this.el.pack_end ( child_1.el , false,true,0 );
442 // user defined functions
444 public class Xcls_mainpane : Object
447 private Xcls_MainWindow _this;
451 public int lastWidth;
454 public Xcls_mainpane(Xcls_MainWindow _owner )
457 _this.mainpane = this;
458 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
463 // set gobject values
464 this.el.position = 400;
465 var child_0 = new Xcls_leftpane( _this );
467 this.el.add1 ( child_0.el );
468 var child_1 = new Xcls_Box17( _this );
470 this.el.add2 ( child_1.el );
473 // user defined functions
475 public class Xcls_leftpane : Object
478 private Xcls_MainWindow _this;
484 public Xcls_leftpane(Xcls_MainWindow _owner )
487 _this.leftpane = this;
488 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
492 // set gobject values
493 var child_0 = new Xcls_editpane( _this );
495 this.el.pack_start ( child_0.el , true,true,0 );
498 // user defined functions
500 public class Xcls_editpane : Object
503 private Xcls_MainWindow _this;
509 public Xcls_editpane(Xcls_MainWindow _owner )
512 _this.editpane = this;
513 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
517 // set gobject values
518 var child_0 = new Xcls_tree( _this );
520 this.el.add1 ( child_0.el );
521 var child_1 = new Xcls_props( _this );
523 this.el.add2 ( child_1.el );
526 // user defined functions
528 public class Xcls_tree : Object
531 private Xcls_MainWindow _this;
537 public Xcls_tree(Xcls_MainWindow _owner )
541 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
545 // set gobject values
548 // user defined functions
551 public class Xcls_props : Object
554 private Xcls_MainWindow _this;
560 public Xcls_props(Xcls_MainWindow _owner )
564 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
568 // set gobject values
571 // user defined functions
576 public class Xcls_Box17 : Object
579 private Xcls_MainWindow _this;
585 public Xcls_Box17(Xcls_MainWindow _owner )
588 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
592 // set gobject values
593 var child_0 = new Xcls_clutterembed( _this );
595 this.el.pack_start ( child_0.el , true,true,0 );
598 // user defined functions
600 public class Xcls_clutterembed : Object
602 public GtkClutter.Embed el;
603 private Xcls_MainWindow _this;
609 public Xcls_clutterembed(Xcls_MainWindow _owner )
612 _this.clutterembed = this;
613 this.el = new GtkClutter.Embed();
617 // set gobject values
618 var child_0 = new Xcls_rooview( _this );
620 this.el.get_stage().add_child ( child_0.el );
621 var child_1 = new Xcls_objectview( _this );
623 this.el.get_stage().add_child ( child_1.el );
624 var child_2 = new Xcls_codeeditview( _this );
626 this.el.get_stage().add_child ( child_2.el );
627 var child_3 = new Xcls_addpropsview( _this );
629 this.el.get_stage().add_child ( child_3.el );
630 var child_4 = new Xcls_projecteditview( _this );
632 this.el.get_stage().add_child ( child_4.el );
633 var child_5 = new Xcls_buttonlayout( _this );
635 this.el.get_stage().add_child ( child_5.el );
639 var stage = this.el.get_stage();
640 stage.set_background_color( Clutter.Color.from_string("#000"));
643 this.el.size_allocate.connect( ( alloc) => {
644 if (_this.windowstate == null) {
647 _this.windowstate.resizeCanvas();
652 // user defined functions
654 public class Xcls_rooview : Object
656 public GtkClutter.Actor el;
657 private Xcls_MainWindow _this;
663 public Xcls_rooview(Xcls_MainWindow _owner )
666 _this.rooview = this;
667 this.el = new GtkClutter.Actor();
671 // set gobject values
678 this.el.add_constraint(
679 new Clutter.AlignConstraint(
680 _this.clutterembed.el.get_stage(),
681 Clutter.AlignAxis.X_AXIS,
686 //this.el.set_position(100,100);
687 this.el.set_pivot_point(1.0f,1.0f);
689 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
690 _this.clutterembed.el.get_stage().height);
695 // user defined functions
698 public class Xcls_objectview : Object
700 public GtkClutter.Actor el;
701 private Xcls_MainWindow _this;
707 public Xcls_objectview(Xcls_MainWindow _owner )
710 _this.objectview = this;
711 this.el = new GtkClutter.Actor();
715 // set gobject values
722 this.el.add_constraint(
723 new Clutter.AlignConstraint(
724 _this.clutterembed.el.get_stage(),
725 Clutter.AlignAxis.X_AXIS,
730 this.el.fixed_x = 50.0f;
731 this.el.fixed_y = 0.0f;
732 //this.el.set_position(100,100);
733 this.el.set_pivot_point(0.0f,0.0f);
734 this.el.set_scale(0.0f,1.0f);
735 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
736 _this.clutterembed.el.get_stage().height);
741 // user defined functions
744 public class Xcls_codeeditview : Object
746 public GtkClutter.Actor el;
747 private Xcls_MainWindow _this;
753 public Xcls_codeeditview(Xcls_MainWindow _owner )
756 _this.codeeditview = this;
757 this.el = new GtkClutter.Actor();
761 // set gobject values
768 this.el.add_constraint(
769 new Clutter.AlignConstraint(
770 _this.clutterembed.el.get_stage(),
771 Clutter.AlignAxis.X_AXIS,
776 this.el.fixed_x = 50.0f;
777 this.el.fixed_y = 0.0f;
778 //this.el.set_position(100,100);
779 this.el.set_pivot_point(0.0f,0.0f);
780 this.el.set_scale(0.0f,1.0f);
781 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
782 _this.clutterembed.el.get_stage().height);
787 // user defined functions
790 public class Xcls_addpropsview : Object
792 public GtkClutter.Actor el;
793 private Xcls_MainWindow _this;
799 public Xcls_addpropsview(Xcls_MainWindow _owner )
802 _this.addpropsview = 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.fixed_x = 50.0f;
823 this.el.fixed_y = 0.0f;
824 //this.el.set_position(100,100);
825 this.el.set_pivot_point(0.0f,0.0f);
826 this.el.set_scale(0.0f,1.0f);
827 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
828 _this.clutterembed.el.get_stage().height);
833 // user defined functions
836 public class Xcls_projecteditview : Object
838 public GtkClutter.Actor el;
839 private Xcls_MainWindow _this;
845 public Xcls_projecteditview(Xcls_MainWindow _owner )
848 _this.projecteditview = this;
849 this.el = new GtkClutter.Actor();
853 // set gobject values
860 this.el.add_constraint(
861 new Clutter.AlignConstraint(
862 _this.clutterembed.el.get_stage(),
863 Clutter.AlignAxis.X_AXIS,
868 //this.el.set_position(100,100);
869 this.el.set_pivot_point(0.0f,0.0f);
870 this.el.set_scale(1.0f,0.0f);
871 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
872 _this.clutterembed.el.get_stage().height /2);
877 // user defined functions
880 public class Xcls_buttonlayout : Object
882 public Clutter.Actor el;
883 private Xcls_MainWindow _this;
889 public Xcls_buttonlayout(Xcls_MainWindow _owner )
892 _this.buttonlayout = this;
893 this.el = new Clutter.Actor();
897 // set gobject values
898 var child_0 = new Xcls_BoxLayout25( _this );
900 this.el.layout_manager = child_0.el;
901 var child_1 = new Xcls_backbutton( _this );
903 this.el.add_child ( child_1.el );
904 var child_2 = new Xcls_projectbutton( _this );
906 this.el.add_child ( child_2.el );
907 var child_3 = new Xcls_editfilebutton( _this );
909 this.el.add_child ( child_3.el );
910 var child_4 = new Xcls_projecteditbutton( _this );
912 this.el.add_child ( child_4.el );
913 var child_5 = new Xcls_objectshowbutton( _this );
915 this.el.add_child ( child_5.el );
916 var child_6 = new Xcls_addpropbutton( _this );
918 this.el.add_child ( child_6.el );
919 var child_7 = new Xcls_addlistenerbutton( _this );
921 this.el.add_child ( child_7.el );
922 var child_8 = new Xcls_addprojectbutton( _this );
924 this.el.add_child ( child_8.el );
925 var child_9 = new Xcls_addfilebutton( _this );
927 this.el.add_child ( child_9.el );
928 var child_10 = new Xcls_delprojectbutton( _this );
930 this.el.add_child ( child_10.el );
936 this.el.add_constraint(
937 new Clutter.AlignConstraint(
938 _this.clutterembed.el.get_stage(),
939 Clutter.AlignAxis.X_AXIS,
945 //this.el.set_position(100,100);
946 this.el.set_pivot_point(0.5f,0.5f);
948 _this.clutterembed.el.get_stage().height);
953 // user defined functions
955 public class Xcls_BoxLayout25 : Object
957 public Clutter.BoxLayout el;
958 private Xcls_MainWindow _this;
964 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
967 this.el = new Clutter.BoxLayout();
971 // set gobject values
972 this.el.orientation = Clutter.Orientation.VERTICAL;
975 // user defined functions
978 public class Xcls_backbutton : Object
980 public Clutter.Actor el;
981 private Xcls_MainWindow _this;
987 public Xcls_backbutton(Xcls_MainWindow _owner )
990 _this.backbutton = this;
991 this.el = new Clutter.Actor();
995 // set gobject values
996 var child_0 = new Xcls_Actor27( _this );
998 this.el.add_child ( child_0.el );
1002 this.el.set_size(50,50);
1005 // user defined functions
1007 public class Xcls_Actor27 : Object
1009 public GtkClutter.Actor el;
1010 private Xcls_MainWindow _this;
1016 public Xcls_Actor27(Xcls_MainWindow _owner )
1019 this.el = new GtkClutter.Actor();
1023 // set gobject values
1024 var child_0 = new Xcls_Button28( _this );
1029 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1032 // user defined functions
1034 public class Xcls_Button28 : Object
1036 public Gtk.Button el;
1037 private Xcls_MainWindow _this;
1043 public Xcls_Button28(Xcls_MainWindow _owner )
1046 this.el = new Gtk.Button();
1050 // set gobject values
1051 this.el.width_request = 50;
1052 this.el.height_request = 50;
1053 this.el.tooltip_text = "Back";
1054 var child_0 = new Xcls_Image29( _this );
1056 this.el.set_image ( child_0.el );
1059 this.el.clicked.connect( ( ) => {
1061 _this.windowstate.switchState(WindowState.State.PREVIEW);
1067 // user defined functions
1069 public class Xcls_Image29 : Object
1071 public Gtk.Image el;
1072 private Xcls_MainWindow _this;
1078 public Xcls_Image29(Xcls_MainWindow _owner )
1081 this.el = new Gtk.Image();
1085 // set gobject values
1086 this.el.icon_name = "go-previous";
1089 // user defined functions
1095 public class Xcls_projectbutton : Object
1097 public Clutter.Actor el;
1098 private Xcls_MainWindow _this;
1104 public Xcls_projectbutton(Xcls_MainWindow _owner )
1107 _this.projectbutton = this;
1108 this.el = new Clutter.Actor();
1112 // set gobject values
1113 var child_0 = new Xcls_Actor31( _this );
1115 this.el.add_child ( child_0.el );
1119 this.el.set_size(50,50);
1122 // user defined functions
1124 public class Xcls_Actor31 : Object
1126 public GtkClutter.Actor el;
1127 private Xcls_MainWindow _this;
1133 public Xcls_Actor31(Xcls_MainWindow _owner )
1136 this.el = new GtkClutter.Actor();
1140 // set gobject values
1141 var child_0 = new Xcls_Button32( _this );
1146 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1149 // user defined functions
1151 public class Xcls_Button32 : Object
1153 public Gtk.Button el;
1154 private Xcls_MainWindow _this;
1160 public Xcls_Button32(Xcls_MainWindow _owner )
1163 this.el = new Gtk.Button();
1167 // set gobject values
1168 this.el.width_request = 50;
1169 this.el.height_request = 50;
1170 var child_0 = new Xcls_Image33( _this );
1172 this.el.set_image ( child_0.el );
1175 this.el.clicked.connect( ( ) => {
1176 _this.windowstate.switchState(WindowState.State.FILES);
1182 // user defined functions
1184 public class Xcls_Image33 : Object
1186 public Gtk.Image el;
1187 private Xcls_MainWindow _this;
1193 public Xcls_Image33(Xcls_MainWindow _owner )
1196 this.el = new Gtk.Image();
1200 // set gobject values
1201 this.el.icon_name = "document-open";
1204 // user defined functions
1210 public class Xcls_editfilebutton : Object
1212 public Clutter.Actor el;
1213 private Xcls_MainWindow _this;
1219 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1222 _this.editfilebutton = this;
1223 this.el = new Clutter.Actor();
1227 // set gobject values
1228 var child_0 = new Xcls_Actor35( _this );
1230 this.el.add_child ( child_0.el );
1234 this.el.set_size(50.0f,50.0f);
1237 // user defined functions
1239 public class Xcls_Actor35 : Object
1241 public GtkClutter.Actor el;
1242 private Xcls_MainWindow _this;
1248 public Xcls_Actor35(Xcls_MainWindow _owner )
1251 this.el = new GtkClutter.Actor();
1255 // set gobject values
1256 var child_0 = new Xcls_Button36( _this );
1261 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1264 // user defined functions
1266 public class Xcls_Button36 : Object
1268 public Gtk.Button el;
1269 private Xcls_MainWindow _this;
1275 public Xcls_Button36(Xcls_MainWindow _owner )
1278 this.el = new Gtk.Button();
1282 // set gobject values
1283 this.el.width_request = 50;
1284 this.el.height_request = 50;
1285 this.el.tooltip_text = "File Details";
1286 var child_0 = new Xcls_Image37( _this );
1288 this.el.set_image ( child_0.el );
1291 this.el.clicked.connect( ( ) => {
1293 // create a new file in project..
1294 if (_this.project == null || _this.windowstate.file == null) {
1297 _this.windowstate.file_details.show(
1298 _this.windowstate.file, this.el
1307 // user defined functions
1309 public class Xcls_Image37 : Object
1311 public Gtk.Image el;
1312 private Xcls_MainWindow _this;
1318 public Xcls_Image37(Xcls_MainWindow _owner )
1321 this.el = new Gtk.Image();
1325 // set gobject values
1326 this.el.icon_name = "document-properties";
1329 // user defined functions
1335 public class Xcls_projecteditbutton : Object
1337 public Clutter.Actor el;
1338 private Xcls_MainWindow _this;
1344 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1347 _this.projecteditbutton = this;
1348 this.el = new Clutter.Actor();
1352 // set gobject values
1353 var child_0 = new Xcls_Actor39( _this );
1355 this.el.add_child ( child_0.el );
1359 this.el.set_size(50,50);
1362 // user defined functions
1364 public class Xcls_Actor39 : Object
1366 public GtkClutter.Actor el;
1367 private Xcls_MainWindow _this;
1373 public Xcls_Actor39(Xcls_MainWindow _owner )
1376 this.el = new GtkClutter.Actor();
1380 // set gobject values
1381 var child_0 = new Xcls_Button40( _this );
1386 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1389 // user defined functions
1391 public class Xcls_Button40 : Object
1393 public Gtk.Button el;
1394 private Xcls_MainWindow _this;
1400 public Xcls_Button40(Xcls_MainWindow _owner )
1403 this.el = new Gtk.Button();
1407 // set gobject values
1408 this.el.width_request = 50;
1409 this.el.height_request = 50;
1410 this.el.tooltip_text = "Project Details";
1411 var child_0 = new Xcls_Image41( _this );
1413 this.el.set_image ( child_0.el );
1416 this.el.clicked.connect( ( ) => {
1417 _this.windowstate.switchState(WindowState.State.PROJECT);
1424 // user defined functions
1426 public class Xcls_Image41 : Object
1428 public Gtk.Image el;
1429 private Xcls_MainWindow _this;
1435 public Xcls_Image41(Xcls_MainWindow _owner )
1438 this.el = new Gtk.Image();
1442 // set gobject values
1443 this.el.icon_name = "emblem-system";
1446 // user defined functions
1452 public class Xcls_objectshowbutton : Object
1454 public Clutter.Actor el;
1455 private Xcls_MainWindow _this;
1461 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1464 _this.objectshowbutton = this;
1465 this.el = new Clutter.Actor();
1469 // set gobject values
1470 var child_0 = new Xcls_Actor43( _this );
1472 this.el.add_child ( child_0.el );
1476 this.el.set_size(50,50);
1479 this.el.enter_event.connect( ( event) => {
1480 this.el.background_color = Clutter.Color.from_string("#333");
1483 this.el.leave_event.connect( ( event) => {
1484 this.el.background_color = Clutter.Color.from_string("#000");
1489 // user defined functions
1491 public class Xcls_Actor43 : Object
1493 public GtkClutter.Actor el;
1494 private Xcls_MainWindow _this;
1500 public Xcls_Actor43(Xcls_MainWindow _owner )
1503 this.el = new GtkClutter.Actor();
1507 // set gobject values
1508 var child_0 = new Xcls_Button44( _this );
1513 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1516 // user defined functions
1518 public class Xcls_Button44 : Object
1520 public Gtk.Button el;
1521 private Xcls_MainWindow _this;
1527 public Xcls_Button44(Xcls_MainWindow _owner )
1530 this.el = new Gtk.Button();
1534 // set gobject values
1535 this.el.width_request = 50;
1536 this.el.height_request = 50;
1537 this.el.tooltip_text = "Add Child Element";
1538 var child_0 = new Xcls_Image45( _this );
1540 this.el.set_image ( child_0.el );
1543 this.el.clicked.connect( ( ) => {
1545 _this.windowstate.switchState(WindowState.State.OBJECT);
1551 // user defined functions
1553 public class Xcls_Image45 : Object
1555 public Gtk.Image el;
1556 private Xcls_MainWindow _this;
1562 public Xcls_Image45(Xcls_MainWindow _owner )
1565 this.el = new Gtk.Image();
1569 // set gobject values
1570 this.el.icon_name = "list-add";
1573 // user defined functions
1579 public class Xcls_addpropbutton : Object
1581 public Clutter.Actor el;
1582 private Xcls_MainWindow _this;
1588 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1591 _this.addpropbutton = this;
1592 this.el = new Clutter.Actor();
1596 // set gobject values
1597 var child_0 = new Xcls_Actor47( _this );
1599 this.el.add_child ( child_0.el );
1603 this.el.set_size(50,50);
1606 // user defined functions
1608 public class Xcls_Actor47 : Object
1610 public GtkClutter.Actor el;
1611 private Xcls_MainWindow _this;
1617 public Xcls_Actor47(Xcls_MainWindow _owner )
1620 this.el = new GtkClutter.Actor();
1624 // set gobject values
1625 var child_0 = new Xcls_Button48( _this );
1630 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1633 // user defined functions
1635 public class Xcls_Button48 : Object
1637 public Gtk.Button el;
1638 private Xcls_MainWindow _this;
1644 public Xcls_Button48(Xcls_MainWindow _owner )
1647 this.el = new Gtk.Button();
1651 // set gobject values
1652 this.el.width_request = 50;
1653 this.el.height_request = 50;
1654 this.el.tooltip_text = "Add Property";
1655 var child_0 = new Xcls_Image49( _this );
1657 this.el.set_image ( child_0.el );
1660 this.el.clicked.connect( ( ) => {
1662 _this.windowstate.switchState(WindowState.State.PROP);
1668 // user defined functions
1670 public class Xcls_Image49 : Object
1672 public Gtk.Image el;
1673 private Xcls_MainWindow _this;
1679 public Xcls_Image49(Xcls_MainWindow _owner )
1682 this.el = new Gtk.Image();
1686 // set gobject values
1687 this.el.icon_name = "format-justify-left";
1690 // user defined functions
1696 public class Xcls_addlistenerbutton : Object
1698 public Clutter.Actor el;
1699 private Xcls_MainWindow _this;
1705 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1708 _this.addlistenerbutton = this;
1709 this.el = new Clutter.Actor();
1713 // set gobject values
1714 var child_0 = new Xcls_Actor51( _this );
1716 this.el.add_child ( child_0.el );
1720 this.el.set_size(50,50);
1723 // user defined functions
1725 public class Xcls_Actor51 : Object
1727 public GtkClutter.Actor el;
1728 private Xcls_MainWindow _this;
1734 public Xcls_Actor51(Xcls_MainWindow _owner )
1737 this.el = new GtkClutter.Actor();
1741 // set gobject values
1742 var child_0 = new Xcls_Button52( _this );
1747 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1750 // user defined functions
1752 public class Xcls_Button52 : Object
1754 public Gtk.Button el;
1755 private Xcls_MainWindow _this;
1761 public Xcls_Button52(Xcls_MainWindow _owner )
1764 this.el = new Gtk.Button();
1768 // set gobject values
1769 this.el.width_request = 50;
1770 this.el.height_request = 50;
1771 this.el.tooltip_text = "Add Event Code";
1772 var child_0 = new Xcls_Image53( _this );
1774 this.el.set_image ( child_0.el );
1777 this.el.clicked.connect( ( ) => {
1779 _this.windowstate.switchState(WindowState.State.LISTENER);
1786 // user defined functions
1788 public class Xcls_Image53 : Object
1790 public Gtk.Image el;
1791 private Xcls_MainWindow _this;
1797 public Xcls_Image53(Xcls_MainWindow _owner )
1800 this.el = new Gtk.Image();
1804 // set gobject values
1805 this.el.icon_name = "appointment-new";
1808 // user defined functions
1814 public class Xcls_addprojectbutton : Object
1816 public Clutter.Actor el;
1817 private Xcls_MainWindow _this;
1823 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1826 _this.addprojectbutton = this;
1827 this.el = new Clutter.Actor();
1831 // set gobject values
1832 var child_0 = new Xcls_Actor55( _this );
1834 this.el.add_child ( child_0.el );
1838 this.el.set_size(50.0f,50.0f);
1841 // user defined functions
1843 public class Xcls_Actor55 : Object
1845 public GtkClutter.Actor el;
1846 private Xcls_MainWindow _this;
1852 public Xcls_Actor55(Xcls_MainWindow _owner )
1855 this.el = new GtkClutter.Actor();
1859 // set gobject values
1860 var child_0 = new Xcls_Button56( _this );
1865 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1868 // user defined functions
1870 public class Xcls_Button56 : Object
1872 public Gtk.Button el;
1873 private Xcls_MainWindow _this;
1879 public Xcls_Button56(Xcls_MainWindow _owner )
1882 this.el = new Gtk.Button();
1886 // set gobject values
1887 this.el.width_request = 50;
1888 this.el.height_request = 50;
1889 this.el.tooltip_text = "New\nProj.";
1890 var child_0 = new Xcls_Image57( _this );
1892 this.el.set_image ( child_0.el );
1895 this.el.clicked.connect( ( ) => {
1897 // create a new file in project..
1898 //Xcls_DialogNewComponent.singleton().show(
1899 var pe = EditProject.singleton();
1900 pe.el.set_transient_for(_this.el);
1901 pe.el.set_modal(true);
1910 _this.windowstate.left_projects.is_loaded = false;
1911 _this.windowstate.left_projects.load();
1912 _this.windowstate.left_projects.selectProject(p);
1919 // user defined functions
1921 public class Xcls_Image57 : Object
1923 public Gtk.Image el;
1924 private Xcls_MainWindow _this;
1930 public Xcls_Image57(Xcls_MainWindow _owner )
1933 this.el = new Gtk.Image();
1937 // set gobject values
1938 this.el.icon_name = "folder-new";
1941 // user defined functions
1947 public class Xcls_addfilebutton : Object
1949 public Clutter.Actor el;
1950 private Xcls_MainWindow _this;
1956 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1959 _this.addfilebutton = this;
1960 this.el = new Clutter.Actor();
1964 // set gobject values
1965 var child_0 = new Xcls_Actor59( _this );
1967 this.el.add_child ( child_0.el );
1971 this.el.set_size(50.0f,50.0f);
1974 // user defined functions
1976 public class Xcls_Actor59 : Object
1978 public GtkClutter.Actor el;
1979 private Xcls_MainWindow _this;
1985 public Xcls_Actor59(Xcls_MainWindow _owner )
1988 this.el = new GtkClutter.Actor();
1992 // set gobject values
1993 var child_0 = new Xcls_Button60( _this );
1998 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2001 // user defined functions
2003 public class Xcls_Button60 : Object
2005 public Gtk.Button el;
2006 private Xcls_MainWindow _this;
2012 public Xcls_Button60(Xcls_MainWindow _owner )
2015 this.el = new Gtk.Button();
2019 // set gobject values
2020 this.el.width_request = 50;
2021 this.el.height_request = 50;
2022 this.el.tooltip_text = "Add File";
2023 var child_0 = new Xcls_Image61( _this );
2025 this.el.set_image ( child_0.el );
2028 this.el.clicked.connect( () => {
2029 // create a new file in project..
2030 print("add file selected\n");
2031 // what's the currently selected project...
2032 var proj = _this.windowstate.left_projects.getSelectedProject();
2035 print("no project selected?\n");
2039 print("creating file?");
2041 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2042 _this.project = proj;
2043 print("showing popup?");
2044 _this.windowstate.file_details.show(
2053 // user defined functions
2055 public class Xcls_Image61 : Object
2057 public Gtk.Image el;
2058 private Xcls_MainWindow _this;
2064 public Xcls_Image61(Xcls_MainWindow _owner )
2067 this.el = new Gtk.Image();
2071 // set gobject values
2072 this.el.icon_name = "document-new";
2075 // user defined functions
2081 public class Xcls_delprojectbutton : Object
2083 public Clutter.Actor el;
2084 private Xcls_MainWindow _this;
2090 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2093 _this.delprojectbutton = this;
2094 this.el = new Clutter.Actor();
2098 // set gobject values
2099 var child_0 = new Xcls_Actor63( _this );
2101 this.el.add_child ( child_0.el );
2105 this.el.set_size(50,50);
2108 // user defined functions
2110 public class Xcls_Actor63 : Object
2112 public GtkClutter.Actor el;
2113 private Xcls_MainWindow _this;
2119 public Xcls_Actor63(Xcls_MainWindow _owner )
2122 this.el = new GtkClutter.Actor();
2126 // set gobject values
2127 var child_0 = new Xcls_Button64( _this );
2132 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2135 // user defined functions
2137 public class Xcls_Button64 : Object
2139 public Gtk.Button el;
2140 private Xcls_MainWindow _this;
2146 public Xcls_Button64(Xcls_MainWindow _owner )
2149 this.el = new Gtk.Button();
2153 // set gobject values
2154 this.el.width_request = 50;
2155 this.el.height_request = 50;
2156 this.el.tooltip_text = "Delete Project";
2157 var child_0 = new Xcls_Image65( _this );
2159 this.el.set_image ( child_0.el );
2162 this.el.clicked.connect( ( ) => {
2164 var cd = DialogConfirm.singleton();
2165 cd.el.set_transient_for(_this.el);
2166 cd.el.set_modal(true);
2168 var project = _this.windowstate.left_projects.getSelectedProject();
2169 if (project == null) {
2170 print("SKIP - no project\n");
2175 if (Gtk.ResponseType.YES != cd.show("Confirm",
2176 "Are you sure you want to delete project %s".printf(project.name))) {
2182 Project.Project.remove(project);
2183 _this.project = null;
2185 _this.windowstate.left_projects.is_loaded = false;
2186 _this.windowstate.left_projects.load();
2187 _this.windowstate.clutterfiles.clearFiles();
2192 // user defined functions
2194 public class Xcls_Image65 : Object
2196 public Gtk.Image el;
2197 private Xcls_MainWindow _this;
2203 public Xcls_Image65(Xcls_MainWindow _owner )
2206 this.el = new Gtk.Image();
2210 // set gobject values
2211 this.el.icon_name = "user-trash";
2214 // user defined functions
2224 public class Xcls_Box66 : Object
2227 private Xcls_MainWindow _this;
2233 public Xcls_Box66(Xcls_MainWindow _owner )
2236 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2240 // set gobject values
2241 this.el.homogeneous = false;
2242 var child_0 = new Xcls_Label67( _this );
2244 this.el.pack_start ( child_0.el , true,true,0 );
2245 var child_1 = new Xcls_statusbar( _this );
2247 this.el.pack_start ( child_1.el , true,true,0 );
2248 var child_2 = new Xcls_search_entry( _this );
2250 this.el.pack_start ( child_2.el , false,true,0 );
2251 var child_3 = new Xcls_MenuBar70( _this );
2253 this.el.pack_end ( child_3.el , false,true,0 );
2256 // user defined functions
2258 public class Xcls_Label67 : Object
2260 public Gtk.Label el;
2261 private Xcls_MainWindow _this;
2267 public Xcls_Label67(Xcls_MainWindow _owner )
2270 this.el = new Gtk.Label( " " );
2274 // set gobject values
2277 // user defined functions
2280 public class Xcls_statusbar : Object
2282 public Gtk.ProgressBar el;
2283 private Xcls_MainWindow _this;
2287 public ulong handler_id;
2290 public Xcls_statusbar(Xcls_MainWindow _owner )
2293 _this.statusbar = this;
2294 this.el = new Gtk.ProgressBar();
2297 this.handler_id = -1;
2299 // set gobject values
2300 this.el.show_text = true;
2305 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2308 _this.mainpane.el.set_sensitive(true);
2312 _this.mainpane.el.set_sensitive(false);
2314 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2315 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2321 // user defined functions
2324 public class Xcls_search_entry : Object
2326 public Gtk.SearchEntry el;
2327 private Xcls_MainWindow _this;
2333 public Xcls_search_entry(Xcls_MainWindow _owner )
2336 _this.search_entry = this;
2337 this.el = new Gtk.SearchEntry();
2341 // set gobject values
2345 var description = Pango.FontDescription.from_string("monospace");
2346 description.set_size(8000);
2347 this.el.override_font(description);
2350 this.el.key_press_event.connect( (event) => {
2352 if (event.keyval == Gdk.Key.Return) {
2353 this.forwardSearch(false);
2357 // print(event.key.keyval)
2362 this.el.changed.connect( () => {
2363 if (this.el.text == "") {
2367 switch(_this.windowstate.state) {
2368 case WindowState.State.CODEONLY:
2369 case WindowState.State.CODE:
2370 // search the code being edited..
2371 res = _this.windowstate.code_editor.search(this.el.text);
2374 case WindowState.State.PREVIEW:
2375 if (_this.windowstate.file.xtype == "Gtk") {
2376 res = _this.windowstate.window_gladeview.search(this.el.text);
2378 res = _this.windowstate.window_rooview.search(this.el.text);
2385 _this.search_results.el.label = "%d Matches".printf(res);
2387 _this.search_results.el.label = "No Matches";
2395 // user defined functions
2396 public void forwardSearch (bool change_focus) {
2397 switch(_this.windowstate.state) {
2398 case WindowState.State.CODEONLY:
2399 case WindowState.State.CODE:
2400 // search the code being edited..
2401 _this.windowstate.code_editor.forwardSearch(change_focus);
2404 case WindowState.State.PREVIEW:
2405 if (_this.windowstate.file.xtype == "Gtk") {
2406 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2408 _this.windowstate.window_rooview.forwardSearch(change_focus);
2417 public class Xcls_MenuBar70 : Object
2419 public Gtk.MenuBar el;
2420 private Xcls_MainWindow _this;
2426 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2429 this.el = new Gtk.MenuBar();
2433 // set gobject values
2434 var child_0 = new Xcls_search_results( _this );
2436 this.el.add ( child_0.el );
2437 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2439 this.el.add ( child_1.el );
2440 var child_2 = new Xcls_statusbar_errors( _this );
2442 this.el.add ( child_2.el );
2443 var child_3 = new Xcls_statusbar_warnings( _this );
2445 this.el.add ( child_3.el );
2446 var child_4 = new Xcls_statusbar_depricated( _this );
2448 this.el.add ( child_4.el );
2449 var child_5 = new Xcls_statusbar_run( _this );
2451 this.el.add ( child_5.el );
2454 // user defined functions
2456 public class Xcls_search_results : Object
2458 public Gtk.ImageMenuItem el;
2459 private Xcls_MainWindow _this;
2463 public Xcls_ValaCompileErrors popup;
2466 public Xcls_search_results(Xcls_MainWindow _owner )
2469 _this.search_results = this;
2470 this.el = new Gtk.ImageMenuItem();
2474 // set gobject values
2475 this.el.always_show_image = true;
2476 this.el.label = "Matches";
2477 var child_0 = new Xcls_Image72( _this );
2479 this.el.set_image ( child_0.el );
2482 this.el.button_press_event.connect( () => {
2484 if (this.popup == null) {
2485 this.popup = new Xcls_ValaCompileErrors();
2486 this.popup.window = _this;
2490 this.popup.show(this.notices, this.el);
2496 // user defined functions
2498 public class Xcls_Image72 : Object
2500 public Gtk.Image el;
2501 private Xcls_MainWindow _this;
2507 public Xcls_Image72(Xcls_MainWindow _owner )
2510 this.el = new Gtk.Image();
2514 // set gobject values
2515 this.el.icon_name = "system-search";
2516 this.el.sensitive = false;
2519 // user defined functions
2523 public class Xcls_statusbar_compilestatus_label : Object
2525 public Gtk.MenuItem el;
2526 private Xcls_MainWindow _this;
2532 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2535 _this.statusbar_compilestatus_label = this;
2536 this.el = new Gtk.MenuItem();
2540 // set gobject values
2541 this.el.label = "Compile Status:";
2544 // user defined functions
2547 public class Xcls_statusbar_errors : Object
2549 public Gtk.ImageMenuItem el;
2550 private Xcls_MainWindow _this;
2554 public Xcls_ValaCompileErrors popup;
2555 public Json.Object notices;
2558 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2561 _this.statusbar_errors = this;
2562 this.el = new Gtk.ImageMenuItem();
2565 this.notices = new Json.Object() ;
2567 // set gobject values
2568 this.el.always_show_image = true;
2569 this.el.label = "Errors";
2570 var child_0 = new Xcls_Image75( _this );
2572 this.el.set_image ( child_0.el );
2575 this.el.button_press_event.connect( () => {
2576 if (this.popup == null) {
2577 this.popup = new Xcls_ValaCompileErrors();
2578 this.popup.window = _this;
2582 this.popup.show(this.notices, this.el);
2587 // user defined functions
2588 public void setNotices (Json.Object nots, int qty) {
2590 this.el.label = qty.to_string() + " Errors";
2591 this.notices = nots;
2595 public class Xcls_Image75 : Object
2597 public Gtk.Image el;
2598 private Xcls_MainWindow _this;
2604 public Xcls_Image75(Xcls_MainWindow _owner )
2607 this.el = new Gtk.Image();
2611 // set gobject values
2612 this.el.icon_name = "dialog-error";
2615 // user defined functions
2619 public class Xcls_statusbar_warnings : Object
2621 public Gtk.ImageMenuItem el;
2622 private Xcls_MainWindow _this;
2626 public Xcls_ValaCompileErrors popup;
2627 public Json.Object notices;
2630 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2633 _this.statusbar_warnings = this;
2634 this.el = new Gtk.ImageMenuItem();
2637 this.notices = new Json.Object();
2639 // set gobject values
2640 this.el.always_show_image = true;
2641 this.el.label = "Warnings";
2642 var child_0 = new Xcls_Image77( _this );
2644 this.el.set_image ( child_0.el );
2647 this.el.button_press_event.connect( () => {
2648 if (this.popup == null) {
2649 this.popup = new Xcls_ValaCompileErrors();
2650 this.popup.window = _this;
2653 this.popup.show(this.notices, this.el);
2658 // user defined functions
2659 public void setNotices (Json.Object nots, int qty) {
2661 this.el.label = qty.to_string() + " Warnings";
2662 this.notices = nots;
2666 public class Xcls_Image77 : Object
2668 public Gtk.Image el;
2669 private Xcls_MainWindow _this;
2675 public Xcls_Image77(Xcls_MainWindow _owner )
2678 this.el = new Gtk.Image();
2682 // set gobject values
2683 this.el.icon_name = "dialog-warning";
2686 // user defined functions
2690 public class Xcls_statusbar_depricated : Object
2692 public Gtk.ImageMenuItem el;
2693 private Xcls_MainWindow _this;
2697 public Xcls_ValaCompileErrors popup;
2698 public Json.Object notices;
2701 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2704 _this.statusbar_depricated = this;
2705 this.el = new Gtk.ImageMenuItem();
2708 this.notices = new Json.Object();
2710 // set gobject values
2711 this.el.always_show_image = true;
2712 this.el.label = "Depricated";
2713 var child_0 = new Xcls_Image79( _this );
2715 this.el.set_image ( child_0.el );
2718 this.el.button_press_event.connect( () => {
2719 if (this.popup == null) {
2720 this.popup = new Xcls_ValaCompileErrors();
2721 this.popup.window = _this;
2725 this.popup.show(this.notices, this.el);
2730 // user defined functions
2731 public void setNotices (Json.Object nots, int qty) {
2733 this.el.label = qty.to_string() + " Depricated";
2734 this.notices = nots;
2738 public class Xcls_Image79 : Object
2740 public Gtk.Image el;
2741 private Xcls_MainWindow _this;
2747 public Xcls_Image79(Xcls_MainWindow _owner )
2750 this.el = new Gtk.Image();
2754 // set gobject values
2755 this.el.icon_name = "dialog-information";
2758 // user defined functions
2762 public class Xcls_statusbar_run : Object
2764 public Gtk.ImageMenuItem el;
2765 private Xcls_MainWindow _this;
2769 public Xcls_ValaCompileErrors popup;
2772 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2775 _this.statusbar_run = this;
2776 this.el = new Gtk.ImageMenuItem();
2780 // set gobject values
2781 this.el.always_show_image = true;
2782 this.el.label = "Run";
2783 var child_0 = new Xcls_Image81( _this );
2785 this.el.set_image ( child_0.el );
2788 this.el.button_press_event.connect( () => {
2789 if (_this.windowstate.file == null) {
2792 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2794 _this.windowstate.compile_results.show(this.el,true);
2800 // user defined functions
2802 public class Xcls_Image81 : Object
2804 public Gtk.Image el;
2805 private Xcls_MainWindow _this;
2811 public Xcls_Image81(Xcls_MainWindow _owner )
2814 this.el = new Gtk.Image();
2818 // set gobject values
2819 this.el.icon_name = "media-playback-start";
2822 // user defined functions