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);
127 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
128 print("SAVE: ctrl-n pressed");
133 // print(event.key.keyval)
140 // user defined functions
141 public void initChildren () {
142 // this needs putting in a better place..
143 this.windowstate = new WindowState(this);
147 var tl = new Clutter.Timeline(6000);
148 tl.set_repeat_count(-1);
157 public void show () {
162 public void setTitle (string str) {
163 this.headerbar.el.set_title(this.title + " - " + str);
165 public class Xcls_headerbar : Object
167 public Gtk.HeaderBar el;
168 private Xcls_MainWindow _this;
174 public Xcls_headerbar(Xcls_MainWindow _owner )
177 _this.headerbar = this;
178 this.el = new Gtk.HeaderBar();
182 // set gobject values
183 this.el.title = "Application Builder";
184 this.el.show_close_button = true;
185 var child_0 = new Xcls_Box3( _this );
187 this.el.pack_start ( child_0.el );
190 // user defined functions
192 public class Xcls_Box3 : Object
195 private Xcls_MainWindow _this;
201 public Xcls_Box3(Xcls_MainWindow _owner )
204 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
208 // set gobject values
209 var child_0 = new Xcls_MenuButton4( _this );
211 this.el.add ( child_0.el );
214 // user defined functions
216 public class Xcls_MenuButton4 : Object
218 public Gtk.MenuButton el;
219 private Xcls_MainWindow _this;
225 public Xcls_MenuButton4(Xcls_MainWindow _owner )
228 this.el = new Gtk.MenuButton();
232 // set gobject values
233 this.el.use_popover = false;
234 var child_0 = new Xcls_topbarmenu( _this );
236 this.el.set_popup ( child_0.el );
237 var child_1 = new Xcls_Image10( _this );
239 this.el.set_image ( child_1.el );
242 // user defined functions
244 public class Xcls_topbarmenu : Object
247 private Xcls_MainWindow _this;
253 public Xcls_topbarmenu(Xcls_MainWindow _owner )
256 _this.topbarmenu = this;
257 this.el = new Gtk.Menu();
261 // set gobject values
262 var child_0 = new Xcls_MenuItem6( _this );
264 this.el.append ( child_0.el );
265 var child_1 = new Xcls_SeparatorMenuItem7( _this );
267 this.el.append ( child_1.el );
268 var child_2 = new Xcls_MenuItem8( _this );
270 this.el.append ( child_2.el );
271 var child_3 = new Xcls_MenuItem9( _this );
273 this.el.append ( child_3.el );
282 // user defined functions
284 public class Xcls_MenuItem6 : Object
286 public Gtk.MenuItem el;
287 private Xcls_MainWindow _this;
293 public Xcls_MenuItem6(Xcls_MainWindow _owner )
296 this.el = new Gtk.MenuItem();
300 // set gobject values
301 this.el.label = "Open a new Window";
304 this.el.activate.connect( ( ) => {
305 Xcls_MainWindow.singleton().no_windows++;
306 var w = new Xcls_MainWindow();
311 w.windowstate.switchState(WindowState.State.FILES);
315 // user defined functions
318 public class Xcls_SeparatorMenuItem7 : Object
320 public Gtk.SeparatorMenuItem el;
321 private Xcls_MainWindow _this;
327 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
330 this.el = new Gtk.SeparatorMenuItem();
334 // set gobject values
337 // user defined functions
340 public class Xcls_MenuItem8 : Object
342 public Gtk.MenuItem el;
343 private Xcls_MainWindow _this;
349 public Xcls_MenuItem8(Xcls_MainWindow _owner )
352 this.el = new Gtk.MenuItem();
356 // set gobject values
357 this.el.label = "Download updated Resources";
360 this.el.activate.connect( ( ) => {
361 Resources.singleton().fetchStart();
365 // user defined functions
368 public class Xcls_MenuItem9 : Object
370 public Gtk.MenuItem el;
371 private Xcls_MainWindow _this;
377 public Xcls_MenuItem9(Xcls_MainWindow _owner )
380 this.el = new Gtk.MenuItem();
384 // set gobject values
385 this.el.label = "About the Builder";
388 this.el.activate.connect( () => {
389 About.singleton().el.show();
393 // user defined functions
397 public class Xcls_Image10 : Object
400 private Xcls_MainWindow _this;
406 public Xcls_Image10(Xcls_MainWindow _owner )
409 this.el = new Gtk.Image();
413 // set gobject values
414 this.el.icon_name = "help-about";
417 // user defined functions
423 public class Xcls_vbox : Object
426 private Xcls_MainWindow _this;
432 public Xcls_vbox(Xcls_MainWindow _owner )
436 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
440 // set gobject values
441 this.el.homogeneous = false;
442 var child_0 = new Xcls_mainpane( _this );
444 this.el.pack_start ( child_0.el , true,true,0 );
445 var child_1 = new Xcls_Box66( _this );
447 this.el.pack_end ( child_1.el , false,true,0 );
450 // user defined functions
452 public class Xcls_mainpane : Object
455 private Xcls_MainWindow _this;
459 public int lastWidth;
462 public Xcls_mainpane(Xcls_MainWindow _owner )
465 _this.mainpane = this;
466 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
471 // set gobject values
472 this.el.position = 400;
473 var child_0 = new Xcls_leftpane( _this );
475 this.el.add1 ( child_0.el );
476 var child_1 = new Xcls_Box17( _this );
478 this.el.add2 ( child_1.el );
481 // user defined functions
483 public class Xcls_leftpane : Object
486 private Xcls_MainWindow _this;
492 public Xcls_leftpane(Xcls_MainWindow _owner )
495 _this.leftpane = this;
496 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
500 // set gobject values
501 var child_0 = new Xcls_editpane( _this );
503 this.el.pack_start ( child_0.el , true,true,0 );
506 // user defined functions
508 public class Xcls_editpane : Object
511 private Xcls_MainWindow _this;
517 public Xcls_editpane(Xcls_MainWindow _owner )
520 _this.editpane = this;
521 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
525 // set gobject values
526 var child_0 = new Xcls_tree( _this );
528 this.el.add1 ( child_0.el );
529 var child_1 = new Xcls_props( _this );
531 this.el.add2 ( child_1.el );
534 // user defined functions
536 public class Xcls_tree : Object
539 private Xcls_MainWindow _this;
545 public Xcls_tree(Xcls_MainWindow _owner )
549 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
553 // set gobject values
556 // user defined functions
559 public class Xcls_props : Object
562 private Xcls_MainWindow _this;
568 public Xcls_props(Xcls_MainWindow _owner )
572 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
576 // set gobject values
579 // user defined functions
584 public class Xcls_Box17 : Object
587 private Xcls_MainWindow _this;
593 public Xcls_Box17(Xcls_MainWindow _owner )
596 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
600 // set gobject values
601 var child_0 = new Xcls_clutterembed( _this );
603 this.el.pack_start ( child_0.el , true,true,0 );
606 // user defined functions
608 public class Xcls_clutterembed : Object
610 public GtkClutter.Embed el;
611 private Xcls_MainWindow _this;
617 public Xcls_clutterembed(Xcls_MainWindow _owner )
620 _this.clutterembed = this;
621 this.el = new GtkClutter.Embed();
625 // set gobject values
626 var child_0 = new Xcls_rooview( _this );
628 this.el.get_stage().add_child ( child_0.el );
629 var child_1 = new Xcls_objectview( _this );
631 this.el.get_stage().add_child ( child_1.el );
632 var child_2 = new Xcls_codeeditview( _this );
634 this.el.get_stage().add_child ( child_2.el );
635 var child_3 = new Xcls_addpropsview( _this );
637 this.el.get_stage().add_child ( child_3.el );
638 var child_4 = new Xcls_projecteditview( _this );
640 this.el.get_stage().add_child ( child_4.el );
641 var child_5 = new Xcls_buttonlayout( _this );
643 this.el.get_stage().add_child ( child_5.el );
647 var stage = this.el.get_stage();
648 stage.set_background_color( Clutter.Color.from_string("#000"));
651 this.el.size_allocate.connect( ( alloc) => {
652 if (_this.windowstate == null) {
655 _this.windowstate.resizeCanvas();
660 // user defined functions
662 public class Xcls_rooview : Object
664 public GtkClutter.Actor el;
665 private Xcls_MainWindow _this;
671 public Xcls_rooview(Xcls_MainWindow _owner )
674 _this.rooview = this;
675 this.el = new GtkClutter.Actor();
679 // set gobject values
686 this.el.add_constraint(
687 new Clutter.AlignConstraint(
688 _this.clutterembed.el.get_stage(),
689 Clutter.AlignAxis.X_AXIS,
694 //this.el.set_position(100,100);
695 this.el.set_pivot_point(1.0f,1.0f);
697 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
698 _this.clutterembed.el.get_stage().height);
703 // user defined functions
706 public class Xcls_objectview : Object
708 public GtkClutter.Actor el;
709 private Xcls_MainWindow _this;
715 public Xcls_objectview(Xcls_MainWindow _owner )
718 _this.objectview = this;
719 this.el = new GtkClutter.Actor();
723 // set gobject values
730 this.el.add_constraint(
731 new Clutter.AlignConstraint(
732 _this.clutterembed.el.get_stage(),
733 Clutter.AlignAxis.X_AXIS,
738 this.el.fixed_x = 50.0f;
739 this.el.fixed_y = 0.0f;
740 //this.el.set_position(100,100);
741 this.el.set_pivot_point(0.0f,0.0f);
742 this.el.set_scale(0.0f,1.0f);
743 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
744 _this.clutterembed.el.get_stage().height);
749 // user defined functions
752 public class Xcls_codeeditview : Object
754 public GtkClutter.Actor el;
755 private Xcls_MainWindow _this;
761 public Xcls_codeeditview(Xcls_MainWindow _owner )
764 _this.codeeditview = this;
765 this.el = new GtkClutter.Actor();
769 // set gobject values
776 this.el.add_constraint(
777 new Clutter.AlignConstraint(
778 _this.clutterembed.el.get_stage(),
779 Clutter.AlignAxis.X_AXIS,
784 this.el.fixed_x = 50.0f;
785 this.el.fixed_y = 0.0f;
786 //this.el.set_position(100,100);
787 this.el.set_pivot_point(0.0f,0.0f);
788 this.el.set_scale(0.0f,1.0f);
789 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
790 _this.clutterembed.el.get_stage().height);
795 // user defined functions
798 public class Xcls_addpropsview : Object
800 public GtkClutter.Actor el;
801 private Xcls_MainWindow _this;
807 public Xcls_addpropsview(Xcls_MainWindow _owner )
810 _this.addpropsview = this;
811 this.el = new GtkClutter.Actor();
815 // set gobject values
822 this.el.add_constraint(
823 new Clutter.AlignConstraint(
824 _this.clutterembed.el.get_stage(),
825 Clutter.AlignAxis.X_AXIS,
830 this.el.fixed_x = 50.0f;
831 this.el.fixed_y = 0.0f;
832 //this.el.set_position(100,100);
833 this.el.set_pivot_point(0.0f,0.0f);
834 this.el.set_scale(0.0f,1.0f);
835 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
836 _this.clutterembed.el.get_stage().height);
841 // user defined functions
844 public class Xcls_projecteditview : Object
846 public GtkClutter.Actor el;
847 private Xcls_MainWindow _this;
853 public Xcls_projecteditview(Xcls_MainWindow _owner )
856 _this.projecteditview = this;
857 this.el = new GtkClutter.Actor();
861 // set gobject values
868 this.el.add_constraint(
869 new Clutter.AlignConstraint(
870 _this.clutterembed.el.get_stage(),
871 Clutter.AlignAxis.X_AXIS,
876 //this.el.set_position(100,100);
877 this.el.set_pivot_point(0.0f,0.0f);
878 this.el.set_scale(1.0f,0.0f);
879 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
880 _this.clutterembed.el.get_stage().height /2);
885 // user defined functions
888 public class Xcls_buttonlayout : Object
890 public Clutter.Actor el;
891 private Xcls_MainWindow _this;
897 public Xcls_buttonlayout(Xcls_MainWindow _owner )
900 _this.buttonlayout = this;
901 this.el = new Clutter.Actor();
905 // set gobject values
906 var child_0 = new Xcls_BoxLayout25( _this );
908 this.el.layout_manager = child_0.el;
909 var child_1 = new Xcls_backbutton( _this );
911 this.el.add_child ( child_1.el );
912 var child_2 = new Xcls_projectbutton( _this );
914 this.el.add_child ( child_2.el );
915 var child_3 = new Xcls_editfilebutton( _this );
917 this.el.add_child ( child_3.el );
918 var child_4 = new Xcls_projecteditbutton( _this );
920 this.el.add_child ( child_4.el );
921 var child_5 = new Xcls_objectshowbutton( _this );
923 this.el.add_child ( child_5.el );
924 var child_6 = new Xcls_addpropbutton( _this );
926 this.el.add_child ( child_6.el );
927 var child_7 = new Xcls_addlistenerbutton( _this );
929 this.el.add_child ( child_7.el );
930 var child_8 = new Xcls_addprojectbutton( _this );
932 this.el.add_child ( child_8.el );
933 var child_9 = new Xcls_addfilebutton( _this );
935 this.el.add_child ( child_9.el );
936 var child_10 = new Xcls_delprojectbutton( _this );
938 this.el.add_child ( child_10.el );
944 this.el.add_constraint(
945 new Clutter.AlignConstraint(
946 _this.clutterembed.el.get_stage(),
947 Clutter.AlignAxis.X_AXIS,
953 //this.el.set_position(100,100);
954 this.el.set_pivot_point(0.5f,0.5f);
956 _this.clutterembed.el.get_stage().height);
961 // user defined functions
963 public class Xcls_BoxLayout25 : Object
965 public Clutter.BoxLayout el;
966 private Xcls_MainWindow _this;
972 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
975 this.el = new Clutter.BoxLayout();
979 // set gobject values
980 this.el.orientation = Clutter.Orientation.VERTICAL;
983 // user defined functions
986 public class Xcls_backbutton : Object
988 public Clutter.Actor el;
989 private Xcls_MainWindow _this;
995 public Xcls_backbutton(Xcls_MainWindow _owner )
998 _this.backbutton = this;
999 this.el = new Clutter.Actor();
1003 // set gobject values
1004 var child_0 = new Xcls_Actor27( _this );
1006 this.el.add_child ( child_0.el );
1010 this.el.set_size(50,50);
1013 // user defined functions
1015 public class Xcls_Actor27 : Object
1017 public GtkClutter.Actor el;
1018 private Xcls_MainWindow _this;
1024 public Xcls_Actor27(Xcls_MainWindow _owner )
1027 this.el = new GtkClutter.Actor();
1031 // set gobject values
1032 var child_0 = new Xcls_Button28( _this );
1037 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1040 // user defined functions
1042 public class Xcls_Button28 : Object
1044 public Gtk.Button el;
1045 private Xcls_MainWindow _this;
1051 public Xcls_Button28(Xcls_MainWindow _owner )
1054 this.el = new Gtk.Button();
1058 // set gobject values
1059 this.el.width_request = 50;
1060 this.el.height_request = 50;
1061 this.el.tooltip_text = "Back";
1062 var child_0 = new Xcls_Image29( _this );
1064 this.el.set_image ( child_0.el );
1067 this.el.clicked.connect( ( ) => {
1069 _this.windowstate.switchState(WindowState.State.PREVIEW);
1075 // user defined functions
1077 public class Xcls_Image29 : Object
1079 public Gtk.Image el;
1080 private Xcls_MainWindow _this;
1086 public Xcls_Image29(Xcls_MainWindow _owner )
1089 this.el = new Gtk.Image();
1093 // set gobject values
1094 this.el.icon_name = "go-previous";
1097 // user defined functions
1103 public class Xcls_projectbutton : Object
1105 public Clutter.Actor el;
1106 private Xcls_MainWindow _this;
1112 public Xcls_projectbutton(Xcls_MainWindow _owner )
1115 _this.projectbutton = this;
1116 this.el = new Clutter.Actor();
1120 // set gobject values
1121 var child_0 = new Xcls_Actor31( _this );
1123 this.el.add_child ( child_0.el );
1127 this.el.set_size(50,50);
1130 // user defined functions
1132 public class Xcls_Actor31 : Object
1134 public GtkClutter.Actor el;
1135 private Xcls_MainWindow _this;
1141 public Xcls_Actor31(Xcls_MainWindow _owner )
1144 this.el = new GtkClutter.Actor();
1148 // set gobject values
1149 var child_0 = new Xcls_Button32( _this );
1154 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1157 // user defined functions
1159 public class Xcls_Button32 : Object
1161 public Gtk.Button el;
1162 private Xcls_MainWindow _this;
1168 public Xcls_Button32(Xcls_MainWindow _owner )
1171 this.el = new Gtk.Button();
1175 // set gobject values
1176 this.el.width_request = 50;
1177 this.el.height_request = 50;
1178 var child_0 = new Xcls_Image33( _this );
1180 this.el.set_image ( child_0.el );
1183 this.el.clicked.connect( ( ) => {
1184 _this.windowstate.switchState(WindowState.State.FILES);
1190 // user defined functions
1192 public class Xcls_Image33 : Object
1194 public Gtk.Image el;
1195 private Xcls_MainWindow _this;
1201 public Xcls_Image33(Xcls_MainWindow _owner )
1204 this.el = new Gtk.Image();
1208 // set gobject values
1209 this.el.icon_name = "document-open";
1212 // user defined functions
1218 public class Xcls_editfilebutton : Object
1220 public Clutter.Actor el;
1221 private Xcls_MainWindow _this;
1227 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1230 _this.editfilebutton = this;
1231 this.el = new Clutter.Actor();
1235 // set gobject values
1236 var child_0 = new Xcls_Actor35( _this );
1238 this.el.add_child ( child_0.el );
1242 this.el.set_size(50.0f,50.0f);
1245 // user defined functions
1247 public class Xcls_Actor35 : Object
1249 public GtkClutter.Actor el;
1250 private Xcls_MainWindow _this;
1256 public Xcls_Actor35(Xcls_MainWindow _owner )
1259 this.el = new GtkClutter.Actor();
1263 // set gobject values
1264 var child_0 = new Xcls_Button36( _this );
1269 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1272 // user defined functions
1274 public class Xcls_Button36 : Object
1276 public Gtk.Button el;
1277 private Xcls_MainWindow _this;
1283 public Xcls_Button36(Xcls_MainWindow _owner )
1286 this.el = new Gtk.Button();
1290 // set gobject values
1291 this.el.width_request = 50;
1292 this.el.height_request = 50;
1293 this.el.tooltip_text = "File Details";
1294 var child_0 = new Xcls_Image37( _this );
1296 this.el.set_image ( child_0.el );
1299 this.el.clicked.connect( ( ) => {
1301 // create a new file in project..
1302 if (_this.project == null || _this.windowstate.file == null) {
1305 _this.windowstate.file_details.show(
1306 _this.windowstate.file, this.el
1315 // user defined functions
1317 public class Xcls_Image37 : Object
1319 public Gtk.Image el;
1320 private Xcls_MainWindow _this;
1326 public Xcls_Image37(Xcls_MainWindow _owner )
1329 this.el = new Gtk.Image();
1333 // set gobject values
1334 this.el.icon_name = "document-properties";
1337 // user defined functions
1343 public class Xcls_projecteditbutton : Object
1345 public Clutter.Actor el;
1346 private Xcls_MainWindow _this;
1352 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1355 _this.projecteditbutton = this;
1356 this.el = new Clutter.Actor();
1360 // set gobject values
1361 var child_0 = new Xcls_Actor39( _this );
1363 this.el.add_child ( child_0.el );
1367 this.el.set_size(50,50);
1370 // user defined functions
1372 public class Xcls_Actor39 : Object
1374 public GtkClutter.Actor el;
1375 private Xcls_MainWindow _this;
1381 public Xcls_Actor39(Xcls_MainWindow _owner )
1384 this.el = new GtkClutter.Actor();
1388 // set gobject values
1389 var child_0 = new Xcls_Button40( _this );
1394 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1397 // user defined functions
1399 public class Xcls_Button40 : Object
1401 public Gtk.Button el;
1402 private Xcls_MainWindow _this;
1408 public Xcls_Button40(Xcls_MainWindow _owner )
1411 this.el = new Gtk.Button();
1415 // set gobject values
1416 this.el.width_request = 50;
1417 this.el.height_request = 50;
1418 this.el.tooltip_text = "Project Details";
1419 var child_0 = new Xcls_Image41( _this );
1421 this.el.set_image ( child_0.el );
1424 this.el.clicked.connect( ( ) => {
1425 _this.windowstate.switchState(WindowState.State.PROJECT);
1432 // user defined functions
1434 public class Xcls_Image41 : Object
1436 public Gtk.Image el;
1437 private Xcls_MainWindow _this;
1443 public Xcls_Image41(Xcls_MainWindow _owner )
1446 this.el = new Gtk.Image();
1450 // set gobject values
1451 this.el.icon_name = "emblem-system";
1454 // user defined functions
1460 public class Xcls_objectshowbutton : Object
1462 public Clutter.Actor el;
1463 private Xcls_MainWindow _this;
1469 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1472 _this.objectshowbutton = this;
1473 this.el = new Clutter.Actor();
1477 // set gobject values
1478 var child_0 = new Xcls_Actor43( _this );
1480 this.el.add_child ( child_0.el );
1484 this.el.set_size(50,50);
1487 this.el.enter_event.connect( ( event) => {
1488 this.el.background_color = Clutter.Color.from_string("#333");
1491 this.el.leave_event.connect( ( event) => {
1492 this.el.background_color = Clutter.Color.from_string("#000");
1497 // user defined functions
1499 public class Xcls_Actor43 : Object
1501 public GtkClutter.Actor el;
1502 private Xcls_MainWindow _this;
1508 public Xcls_Actor43(Xcls_MainWindow _owner )
1511 this.el = new GtkClutter.Actor();
1515 // set gobject values
1516 var child_0 = new Xcls_Button44( _this );
1521 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1524 // user defined functions
1526 public class Xcls_Button44 : Object
1528 public Gtk.Button el;
1529 private Xcls_MainWindow _this;
1535 public Xcls_Button44(Xcls_MainWindow _owner )
1538 this.el = new Gtk.Button();
1542 // set gobject values
1543 this.el.width_request = 50;
1544 this.el.height_request = 50;
1545 this.el.tooltip_text = "Add Child Element";
1546 var child_0 = new Xcls_Image45( _this );
1548 this.el.set_image ( child_0.el );
1551 this.el.clicked.connect( ( ) => {
1553 _this.windowstate.switchState(WindowState.State.OBJECT);
1559 // user defined functions
1561 public class Xcls_Image45 : Object
1563 public Gtk.Image el;
1564 private Xcls_MainWindow _this;
1570 public Xcls_Image45(Xcls_MainWindow _owner )
1573 this.el = new Gtk.Image();
1577 // set gobject values
1578 this.el.icon_name = "list-add";
1581 // user defined functions
1587 public class Xcls_addpropbutton : Object
1589 public Clutter.Actor el;
1590 private Xcls_MainWindow _this;
1596 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1599 _this.addpropbutton = this;
1600 this.el = new Clutter.Actor();
1604 // set gobject values
1605 var child_0 = new Xcls_Actor47( _this );
1607 this.el.add_child ( child_0.el );
1611 this.el.set_size(50,50);
1614 // user defined functions
1616 public class Xcls_Actor47 : Object
1618 public GtkClutter.Actor el;
1619 private Xcls_MainWindow _this;
1625 public Xcls_Actor47(Xcls_MainWindow _owner )
1628 this.el = new GtkClutter.Actor();
1632 // set gobject values
1633 var child_0 = new Xcls_Button48( _this );
1638 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1641 // user defined functions
1643 public class Xcls_Button48 : Object
1645 public Gtk.Button el;
1646 private Xcls_MainWindow _this;
1652 public Xcls_Button48(Xcls_MainWindow _owner )
1655 this.el = new Gtk.Button();
1659 // set gobject values
1660 this.el.width_request = 50;
1661 this.el.height_request = 50;
1662 this.el.tooltip_text = "Add Property";
1663 var child_0 = new Xcls_Image49( _this );
1665 this.el.set_image ( child_0.el );
1668 this.el.clicked.connect( ( ) => {
1670 _this.windowstate.switchState(WindowState.State.PROP);
1676 // user defined functions
1678 public class Xcls_Image49 : Object
1680 public Gtk.Image el;
1681 private Xcls_MainWindow _this;
1687 public Xcls_Image49(Xcls_MainWindow _owner )
1690 this.el = new Gtk.Image();
1694 // set gobject values
1695 this.el.icon_name = "format-justify-left";
1698 // user defined functions
1704 public class Xcls_addlistenerbutton : Object
1706 public Clutter.Actor el;
1707 private Xcls_MainWindow _this;
1713 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1716 _this.addlistenerbutton = this;
1717 this.el = new Clutter.Actor();
1721 // set gobject values
1722 var child_0 = new Xcls_Actor51( _this );
1724 this.el.add_child ( child_0.el );
1728 this.el.set_size(50,50);
1731 // user defined functions
1733 public class Xcls_Actor51 : Object
1735 public GtkClutter.Actor el;
1736 private Xcls_MainWindow _this;
1742 public Xcls_Actor51(Xcls_MainWindow _owner )
1745 this.el = new GtkClutter.Actor();
1749 // set gobject values
1750 var child_0 = new Xcls_Button52( _this );
1755 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1758 // user defined functions
1760 public class Xcls_Button52 : Object
1762 public Gtk.Button el;
1763 private Xcls_MainWindow _this;
1769 public Xcls_Button52(Xcls_MainWindow _owner )
1772 this.el = new Gtk.Button();
1776 // set gobject values
1777 this.el.width_request = 50;
1778 this.el.height_request = 50;
1779 this.el.tooltip_text = "Add Event Code";
1780 var child_0 = new Xcls_Image53( _this );
1782 this.el.set_image ( child_0.el );
1785 this.el.clicked.connect( ( ) => {
1787 _this.windowstate.switchState(WindowState.State.LISTENER);
1794 // user defined functions
1796 public class Xcls_Image53 : Object
1798 public Gtk.Image el;
1799 private Xcls_MainWindow _this;
1805 public Xcls_Image53(Xcls_MainWindow _owner )
1808 this.el = new Gtk.Image();
1812 // set gobject values
1813 this.el.icon_name = "appointment-new";
1816 // user defined functions
1822 public class Xcls_addprojectbutton : Object
1824 public Clutter.Actor el;
1825 private Xcls_MainWindow _this;
1831 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1834 _this.addprojectbutton = this;
1835 this.el = new Clutter.Actor();
1839 // set gobject values
1840 var child_0 = new Xcls_Actor55( _this );
1842 this.el.add_child ( child_0.el );
1846 this.el.set_size(50.0f,50.0f);
1849 // user defined functions
1851 public class Xcls_Actor55 : Object
1853 public GtkClutter.Actor el;
1854 private Xcls_MainWindow _this;
1860 public Xcls_Actor55(Xcls_MainWindow _owner )
1863 this.el = new GtkClutter.Actor();
1867 // set gobject values
1868 var child_0 = new Xcls_Button56( _this );
1873 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1876 // user defined functions
1878 public class Xcls_Button56 : Object
1880 public Gtk.Button el;
1881 private Xcls_MainWindow _this;
1887 public Xcls_Button56(Xcls_MainWindow _owner )
1890 this.el = new Gtk.Button();
1894 // set gobject values
1895 this.el.width_request = 50;
1896 this.el.height_request = 50;
1897 this.el.tooltip_text = "New\nProj.";
1898 var child_0 = new Xcls_Image57( _this );
1900 this.el.set_image ( child_0.el );
1903 this.el.clicked.connect( ( ) => {
1905 // create a new file in project..
1906 //Xcls_DialogNewComponent.singleton().show(
1907 var pe = EditProject.singleton();
1908 pe.el.set_transient_for(_this.el);
1909 pe.el.set_modal(true);
1918 _this.windowstate.left_projects.is_loaded = false;
1919 _this.windowstate.left_projects.load();
1920 _this.windowstate.left_projects.selectProject(p);
1927 // user defined functions
1929 public class Xcls_Image57 : Object
1931 public Gtk.Image el;
1932 private Xcls_MainWindow _this;
1938 public Xcls_Image57(Xcls_MainWindow _owner )
1941 this.el = new Gtk.Image();
1945 // set gobject values
1946 this.el.icon_name = "folder-new";
1949 // user defined functions
1955 public class Xcls_addfilebutton : Object
1957 public Clutter.Actor el;
1958 private Xcls_MainWindow _this;
1964 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1967 _this.addfilebutton = this;
1968 this.el = new Clutter.Actor();
1972 // set gobject values
1973 var child_0 = new Xcls_Actor59( _this );
1975 this.el.add_child ( child_0.el );
1979 this.el.set_size(50.0f,50.0f);
1982 // user defined functions
1984 public class Xcls_Actor59 : Object
1986 public GtkClutter.Actor el;
1987 private Xcls_MainWindow _this;
1993 public Xcls_Actor59(Xcls_MainWindow _owner )
1996 this.el = new GtkClutter.Actor();
2000 // set gobject values
2001 var child_0 = new Xcls_Button60( _this );
2006 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2009 // user defined functions
2011 public class Xcls_Button60 : Object
2013 public Gtk.Button el;
2014 private Xcls_MainWindow _this;
2020 public Xcls_Button60(Xcls_MainWindow _owner )
2023 this.el = new Gtk.Button();
2027 // set gobject values
2028 this.el.width_request = 50;
2029 this.el.height_request = 50;
2030 this.el.tooltip_text = "Add File";
2031 var child_0 = new Xcls_Image61( _this );
2033 this.el.set_image ( child_0.el );
2036 this.el.clicked.connect( () => {
2037 // create a new file in project..
2038 print("add file selected\n");
2039 // what's the currently selected project...
2040 var proj = _this.windowstate.left_projects.getSelectedProject();
2043 print("no project selected?\n");
2047 print("creating file?");
2049 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2050 _this.project = proj;
2051 print("showing popup?");
2052 _this.windowstate.file_details.show(
2061 // user defined functions
2063 public class Xcls_Image61 : Object
2065 public Gtk.Image el;
2066 private Xcls_MainWindow _this;
2072 public Xcls_Image61(Xcls_MainWindow _owner )
2075 this.el = new Gtk.Image();
2079 // set gobject values
2080 this.el.icon_name = "document-new";
2083 // user defined functions
2089 public class Xcls_delprojectbutton : Object
2091 public Clutter.Actor el;
2092 private Xcls_MainWindow _this;
2098 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2101 _this.delprojectbutton = this;
2102 this.el = new Clutter.Actor();
2106 // set gobject values
2107 var child_0 = new Xcls_Actor63( _this );
2109 this.el.add_child ( child_0.el );
2113 this.el.set_size(50,50);
2116 // user defined functions
2118 public class Xcls_Actor63 : Object
2120 public GtkClutter.Actor el;
2121 private Xcls_MainWindow _this;
2127 public Xcls_Actor63(Xcls_MainWindow _owner )
2130 this.el = new GtkClutter.Actor();
2134 // set gobject values
2135 var child_0 = new Xcls_Button64( _this );
2140 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2143 // user defined functions
2145 public class Xcls_Button64 : Object
2147 public Gtk.Button el;
2148 private Xcls_MainWindow _this;
2154 public Xcls_Button64(Xcls_MainWindow _owner )
2157 this.el = new Gtk.Button();
2161 // set gobject values
2162 this.el.width_request = 50;
2163 this.el.height_request = 50;
2164 this.el.tooltip_text = "Delete Project";
2165 var child_0 = new Xcls_Image65( _this );
2167 this.el.set_image ( child_0.el );
2170 this.el.clicked.connect( ( ) => {
2172 var cd = DialogConfirm.singleton();
2173 cd.el.set_transient_for(_this.el);
2174 cd.el.set_modal(true);
2176 var project = _this.windowstate.left_projects.getSelectedProject();
2177 if (project == null) {
2178 print("SKIP - no project\n");
2183 if (Gtk.ResponseType.YES != cd.show("Confirm",
2184 "Are you sure you want to delete project %s".printf(project.name))) {
2190 Project.Project.remove(project);
2191 _this.project = null;
2193 _this.windowstate.left_projects.is_loaded = false;
2194 _this.windowstate.left_projects.load();
2195 _this.windowstate.clutterfiles.clearFiles();
2200 // user defined functions
2202 public class Xcls_Image65 : Object
2204 public Gtk.Image el;
2205 private Xcls_MainWindow _this;
2211 public Xcls_Image65(Xcls_MainWindow _owner )
2214 this.el = new Gtk.Image();
2218 // set gobject values
2219 this.el.icon_name = "user-trash";
2222 // user defined functions
2232 public class Xcls_Box66 : Object
2235 private Xcls_MainWindow _this;
2241 public Xcls_Box66(Xcls_MainWindow _owner )
2244 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2248 // set gobject values
2249 this.el.homogeneous = false;
2250 var child_0 = new Xcls_Label67( _this );
2252 this.el.pack_start ( child_0.el , true,true,0 );
2253 var child_1 = new Xcls_statusbar( _this );
2255 this.el.pack_start ( child_1.el , true,true,0 );
2256 var child_2 = new Xcls_search_entry( _this );
2258 this.el.pack_start ( child_2.el , false,true,0 );
2259 var child_3 = new Xcls_MenuBar70( _this );
2261 this.el.pack_end ( child_3.el , false,true,0 );
2264 // user defined functions
2266 public class Xcls_Label67 : Object
2268 public Gtk.Label el;
2269 private Xcls_MainWindow _this;
2275 public Xcls_Label67(Xcls_MainWindow _owner )
2278 this.el = new Gtk.Label( " " );
2282 // set gobject values
2285 // user defined functions
2288 public class Xcls_statusbar : Object
2290 public Gtk.ProgressBar el;
2291 private Xcls_MainWindow _this;
2295 public ulong handler_id;
2298 public Xcls_statusbar(Xcls_MainWindow _owner )
2301 _this.statusbar = this;
2302 this.el = new Gtk.ProgressBar();
2305 this.handler_id = -1;
2307 // set gobject values
2308 this.el.show_text = true;
2313 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2316 _this.mainpane.el.set_sensitive(true);
2320 _this.mainpane.el.set_sensitive(false);
2322 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2323 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2329 // user defined functions
2332 public class Xcls_search_entry : Object
2334 public Gtk.SearchEntry el;
2335 private Xcls_MainWindow _this;
2341 public Xcls_search_entry(Xcls_MainWindow _owner )
2344 _this.search_entry = this;
2345 this.el = new Gtk.SearchEntry();
2349 // set gobject values
2353 var description = Pango.FontDescription.from_string("monospace");
2354 description.set_size(8000);
2355 this.el.override_font(description);
2358 this.el.key_press_event.connect( (event) => {
2360 if (event.keyval == Gdk.Key.Return) {
2361 this.forwardSearch(false);
2365 // print(event.key.keyval)
2370 this.el.changed.connect( () => {
2371 if (this.el.text == "") {
2372 _this.search_results.el.hide();
2376 switch(_this.windowstate.state) {
2377 case WindowState.State.CODEONLY:
2378 case WindowState.State.CODE:
2379 // search the code being edited..
2380 res = _this.windowstate.code_editor.search(this.el.text);
2383 case WindowState.State.PREVIEW:
2384 if (_this.windowstate.file.xtype == "Gtk") {
2385 res = _this.windowstate.window_gladeview.search(this.el.text);
2387 res = _this.windowstate.window_rooview.search(this.el.text);
2393 _this.search_results.el.show();
2395 _this.search_results.el.label = "%d Matches".printf(res);
2397 _this.search_results.el.label = "No Matches";
2405 // user defined functions
2406 public void forwardSearch (bool change_focus) {
2407 switch(_this.windowstate.state) {
2408 case WindowState.State.CODEONLY:
2409 case WindowState.State.CODE:
2410 // search the code being edited..
2411 _this.windowstate.code_editor.forwardSearch(change_focus);
2414 case WindowState.State.PREVIEW:
2415 if (_this.windowstate.file.xtype == "Gtk") {
2416 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2418 _this.windowstate.window_rooview.forwardSearch(change_focus);
2427 public class Xcls_MenuBar70 : Object
2429 public Gtk.MenuBar el;
2430 private Xcls_MainWindow _this;
2436 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2439 this.el = new Gtk.MenuBar();
2443 // set gobject values
2444 var child_0 = new Xcls_search_results( _this );
2446 this.el.add ( child_0.el );
2447 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2449 this.el.add ( child_1.el );
2450 var child_2 = new Xcls_statusbar_errors( _this );
2452 this.el.add ( child_2.el );
2453 var child_3 = new Xcls_statusbar_warnings( _this );
2455 this.el.add ( child_3.el );
2456 var child_4 = new Xcls_statusbar_depricated( _this );
2458 this.el.add ( child_4.el );
2459 var child_5 = new Xcls_statusbar_run( _this );
2461 this.el.add ( child_5.el );
2464 // user defined functions
2466 public class Xcls_search_results : Object
2468 public Gtk.ImageMenuItem el;
2469 private Xcls_MainWindow _this;
2473 public Xcls_ValaCompileErrors popup;
2476 public Xcls_search_results(Xcls_MainWindow _owner )
2479 _this.search_results = this;
2480 this.el = new Gtk.ImageMenuItem();
2484 // set gobject values
2485 this.el.always_show_image = true;
2486 this.el.label = "Matches";
2487 var child_0 = new Xcls_Image72( _this );
2489 this.el.set_image ( child_0.el );
2492 this.el.button_press_event.connect( () => {
2494 if (this.popup == null) {
2495 this.popup = new Xcls_ValaCompileErrors();
2496 this.popup.window = _this;
2500 this.popup.show(this.notices, this.el);
2506 // user defined functions
2508 public class Xcls_Image72 : Object
2510 public Gtk.Image el;
2511 private Xcls_MainWindow _this;
2517 public Xcls_Image72(Xcls_MainWindow _owner )
2520 this.el = new Gtk.Image();
2524 // set gobject values
2525 this.el.icon_name = "system-search";
2526 this.el.sensitive = false;
2529 // user defined functions
2533 public class Xcls_statusbar_compilestatus_label : Object
2535 public Gtk.MenuItem el;
2536 private Xcls_MainWindow _this;
2542 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2545 _this.statusbar_compilestatus_label = this;
2546 this.el = new Gtk.MenuItem();
2550 // set gobject values
2551 this.el.label = "Compile Status:";
2554 // user defined functions
2557 public class Xcls_statusbar_errors : Object
2559 public Gtk.ImageMenuItem el;
2560 private Xcls_MainWindow _this;
2564 public Xcls_ValaCompileErrors popup;
2565 public Json.Object notices;
2568 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2571 _this.statusbar_errors = this;
2572 this.el = new Gtk.ImageMenuItem();
2575 this.notices = new Json.Object() ;
2577 // set gobject values
2578 this.el.always_show_image = true;
2579 this.el.label = "Errors";
2580 var child_0 = new Xcls_Image75( _this );
2582 this.el.set_image ( child_0.el );
2585 this.el.button_press_event.connect( () => {
2586 if (this.popup == null) {
2587 this.popup = new Xcls_ValaCompileErrors();
2588 this.popup.window = _this;
2592 this.popup.show(this.notices, this.el);
2597 // user defined functions
2598 public void setNotices (Json.Object nots, int qty) {
2600 this.el.label = qty.to_string() + " Errors";
2601 this.notices = nots;
2605 public class Xcls_Image75 : Object
2607 public Gtk.Image el;
2608 private Xcls_MainWindow _this;
2614 public Xcls_Image75(Xcls_MainWindow _owner )
2617 this.el = new Gtk.Image();
2621 // set gobject values
2622 this.el.icon_name = "dialog-error";
2625 // user defined functions
2629 public class Xcls_statusbar_warnings : Object
2631 public Gtk.ImageMenuItem el;
2632 private Xcls_MainWindow _this;
2636 public Xcls_ValaCompileErrors popup;
2637 public Json.Object notices;
2640 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2643 _this.statusbar_warnings = this;
2644 this.el = new Gtk.ImageMenuItem();
2647 this.notices = new Json.Object();
2649 // set gobject values
2650 this.el.always_show_image = true;
2651 this.el.label = "Warnings";
2652 var child_0 = new Xcls_Image77( _this );
2654 this.el.set_image ( child_0.el );
2657 this.el.button_press_event.connect( () => {
2658 if (this.popup == null) {
2659 this.popup = new Xcls_ValaCompileErrors();
2660 this.popup.window = _this;
2663 this.popup.show(this.notices, this.el);
2668 // user defined functions
2669 public void setNotices (Json.Object nots, int qty) {
2671 this.el.label = qty.to_string() + " Warnings";
2672 this.notices = nots;
2676 public class Xcls_Image77 : Object
2678 public Gtk.Image el;
2679 private Xcls_MainWindow _this;
2685 public Xcls_Image77(Xcls_MainWindow _owner )
2688 this.el = new Gtk.Image();
2692 // set gobject values
2693 this.el.icon_name = "dialog-warning";
2696 // user defined functions
2700 public class Xcls_statusbar_depricated : Object
2702 public Gtk.ImageMenuItem el;
2703 private Xcls_MainWindow _this;
2707 public Xcls_ValaCompileErrors popup;
2708 public Json.Object notices;
2711 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2714 _this.statusbar_depricated = this;
2715 this.el = new Gtk.ImageMenuItem();
2718 this.notices = new Json.Object();
2720 // set gobject values
2721 this.el.always_show_image = true;
2722 this.el.label = "Depricated";
2723 var child_0 = new Xcls_Image79( _this );
2725 this.el.set_image ( child_0.el );
2728 this.el.button_press_event.connect( () => {
2729 if (this.popup == null) {
2730 this.popup = new Xcls_ValaCompileErrors();
2731 this.popup.window = _this;
2735 this.popup.show(this.notices, this.el);
2740 // user defined functions
2741 public void setNotices (Json.Object nots, int qty) {
2743 this.el.label = qty.to_string() + " Depricated";
2744 this.notices = nots;
2748 public class Xcls_Image79 : Object
2750 public Gtk.Image el;
2751 private Xcls_MainWindow _this;
2757 public Xcls_Image79(Xcls_MainWindow _owner )
2760 this.el = new Gtk.Image();
2764 // set gobject values
2765 this.el.icon_name = "dialog-information";
2768 // user defined functions
2772 public class Xcls_statusbar_run : Object
2774 public Gtk.ImageMenuItem el;
2775 private Xcls_MainWindow _this;
2779 public Xcls_ValaCompileErrors popup;
2782 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2785 _this.statusbar_run = this;
2786 this.el = new Gtk.ImageMenuItem();
2790 // set gobject values
2791 this.el.always_show_image = true;
2792 this.el.label = "Run";
2793 var child_0 = new Xcls_Image81( _this );
2795 this.el.set_image ( child_0.el );
2798 this.el.button_press_event.connect( () => {
2799 if (_this.windowstate.file == null) {
2802 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2804 _this.windowstate.compile_results.show(this.el,true);
2810 // user defined functions
2812 public class Xcls_Image81 : Object
2814 public Gtk.Image el;
2815 private Xcls_MainWindow _this;
2821 public Xcls_Image81(Xcls_MainWindow _owner )
2824 this.el = new Gtk.Image();
2828 // set gobject values
2829 this.el.icon_name = "media-playback-start";
2832 // user defined functions