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");
129 Xcls_MainWindow.singleton().no_windows++;
130 var w = new Xcls_MainWindow();
135 w.windowstate.switchState(WindowState.State.FILES);
139 // print(event.key.keyval)
146 // user defined functions
147 public void initChildren () {
148 // this needs putting in a better place..
149 this.windowstate = new WindowState(this);
153 var tl = new Clutter.Timeline(6000);
154 tl.set_repeat_count(-1);
163 public void show () {
168 public return_type openNewWindow () {
171 public void setTitle (string str) {
172 this.headerbar.el.set_title(this.title + " - " + str);
174 public class Xcls_headerbar : Object
176 public Gtk.HeaderBar el;
177 private Xcls_MainWindow _this;
183 public Xcls_headerbar(Xcls_MainWindow _owner )
186 _this.headerbar = this;
187 this.el = new Gtk.HeaderBar();
191 // set gobject values
192 this.el.title = "Application Builder";
193 this.el.show_close_button = true;
194 var child_0 = new Xcls_Box3( _this );
196 this.el.pack_start ( child_0.el );
199 // user defined functions
201 public class Xcls_Box3 : Object
204 private Xcls_MainWindow _this;
210 public Xcls_Box3(Xcls_MainWindow _owner )
213 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
217 // set gobject values
218 var child_0 = new Xcls_MenuButton4( _this );
220 this.el.add ( child_0.el );
223 // user defined functions
225 public class Xcls_MenuButton4 : Object
227 public Gtk.MenuButton el;
228 private Xcls_MainWindow _this;
234 public Xcls_MenuButton4(Xcls_MainWindow _owner )
237 this.el = new Gtk.MenuButton();
241 // set gobject values
242 this.el.use_popover = false;
243 var child_0 = new Xcls_topbarmenu( _this );
245 this.el.set_popup ( child_0.el );
246 var child_1 = new Xcls_Image10( _this );
248 this.el.set_image ( child_1.el );
251 // user defined functions
253 public class Xcls_topbarmenu : Object
256 private Xcls_MainWindow _this;
262 public Xcls_topbarmenu(Xcls_MainWindow _owner )
265 _this.topbarmenu = this;
266 this.el = new Gtk.Menu();
270 // set gobject values
271 var child_0 = new Xcls_MenuItem6( _this );
273 this.el.append ( child_0.el );
274 var child_1 = new Xcls_SeparatorMenuItem7( _this );
276 this.el.append ( child_1.el );
277 var child_2 = new Xcls_MenuItem8( _this );
279 this.el.append ( child_2.el );
280 var child_3 = new Xcls_MenuItem9( _this );
282 this.el.append ( child_3.el );
291 // user defined functions
293 public class Xcls_MenuItem6 : Object
295 public Gtk.MenuItem el;
296 private Xcls_MainWindow _this;
302 public Xcls_MenuItem6(Xcls_MainWindow _owner )
305 this.el = new Gtk.MenuItem();
309 // set gobject values
310 this.el.label = "Open a new Window";
313 this.el.activate.connect( ( ) => {
314 Xcls_MainWindow.singleton().no_windows++;
315 var w = new Xcls_MainWindow();
320 w.windowstate.switchState(WindowState.State.FILES);
324 // user defined functions
327 public class Xcls_SeparatorMenuItem7 : Object
329 public Gtk.SeparatorMenuItem el;
330 private Xcls_MainWindow _this;
336 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
339 this.el = new Gtk.SeparatorMenuItem();
343 // set gobject values
346 // user defined functions
349 public class Xcls_MenuItem8 : Object
351 public Gtk.MenuItem el;
352 private Xcls_MainWindow _this;
358 public Xcls_MenuItem8(Xcls_MainWindow _owner )
361 this.el = new Gtk.MenuItem();
365 // set gobject values
366 this.el.label = "Download updated Resources";
369 this.el.activate.connect( ( ) => {
370 Resources.singleton().fetchStart();
374 // user defined functions
377 public class Xcls_MenuItem9 : Object
379 public Gtk.MenuItem el;
380 private Xcls_MainWindow _this;
386 public Xcls_MenuItem9(Xcls_MainWindow _owner )
389 this.el = new Gtk.MenuItem();
393 // set gobject values
394 this.el.label = "About the Builder";
397 this.el.activate.connect( () => {
398 About.singleton().el.show();
402 // user defined functions
406 public class Xcls_Image10 : Object
409 private Xcls_MainWindow _this;
415 public Xcls_Image10(Xcls_MainWindow _owner )
418 this.el = new Gtk.Image();
422 // set gobject values
423 this.el.icon_name = "help-about";
426 // user defined functions
432 public class Xcls_vbox : Object
435 private Xcls_MainWindow _this;
441 public Xcls_vbox(Xcls_MainWindow _owner )
445 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
449 // set gobject values
450 this.el.homogeneous = false;
451 var child_0 = new Xcls_mainpane( _this );
453 this.el.pack_start ( child_0.el , true,true,0 );
454 var child_1 = new Xcls_Box66( _this );
456 this.el.pack_end ( child_1.el , false,true,0 );
459 // user defined functions
461 public class Xcls_mainpane : Object
464 private Xcls_MainWindow _this;
468 public int lastWidth;
471 public Xcls_mainpane(Xcls_MainWindow _owner )
474 _this.mainpane = this;
475 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
480 // set gobject values
481 this.el.position = 400;
482 var child_0 = new Xcls_leftpane( _this );
484 this.el.add1 ( child_0.el );
485 var child_1 = new Xcls_Box17( _this );
487 this.el.add2 ( child_1.el );
490 // user defined functions
492 public class Xcls_leftpane : Object
495 private Xcls_MainWindow _this;
501 public Xcls_leftpane(Xcls_MainWindow _owner )
504 _this.leftpane = this;
505 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
509 // set gobject values
510 var child_0 = new Xcls_editpane( _this );
512 this.el.pack_start ( child_0.el , true,true,0 );
515 // user defined functions
517 public class Xcls_editpane : Object
520 private Xcls_MainWindow _this;
526 public Xcls_editpane(Xcls_MainWindow _owner )
529 _this.editpane = this;
530 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
534 // set gobject values
535 var child_0 = new Xcls_tree( _this );
537 this.el.add1 ( child_0.el );
538 var child_1 = new Xcls_props( _this );
540 this.el.add2 ( child_1.el );
543 // user defined functions
545 public class Xcls_tree : Object
548 private Xcls_MainWindow _this;
554 public Xcls_tree(Xcls_MainWindow _owner )
558 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
562 // set gobject values
565 // user defined functions
568 public class Xcls_props : Object
571 private Xcls_MainWindow _this;
577 public Xcls_props(Xcls_MainWindow _owner )
581 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
585 // set gobject values
588 // user defined functions
593 public class Xcls_Box17 : Object
596 private Xcls_MainWindow _this;
602 public Xcls_Box17(Xcls_MainWindow _owner )
605 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
609 // set gobject values
610 var child_0 = new Xcls_clutterembed( _this );
612 this.el.pack_start ( child_0.el , true,true,0 );
615 // user defined functions
617 public class Xcls_clutterembed : Object
619 public GtkClutter.Embed el;
620 private Xcls_MainWindow _this;
626 public Xcls_clutterembed(Xcls_MainWindow _owner )
629 _this.clutterembed = this;
630 this.el = new GtkClutter.Embed();
634 // set gobject values
635 var child_0 = new Xcls_rooview( _this );
637 this.el.get_stage().add_child ( child_0.el );
638 var child_1 = new Xcls_objectview( _this );
640 this.el.get_stage().add_child ( child_1.el );
641 var child_2 = new Xcls_codeeditview( _this );
643 this.el.get_stage().add_child ( child_2.el );
644 var child_3 = new Xcls_addpropsview( _this );
646 this.el.get_stage().add_child ( child_3.el );
647 var child_4 = new Xcls_projecteditview( _this );
649 this.el.get_stage().add_child ( child_4.el );
650 var child_5 = new Xcls_buttonlayout( _this );
652 this.el.get_stage().add_child ( child_5.el );
656 var stage = this.el.get_stage();
657 stage.set_background_color( Clutter.Color.from_string("#000"));
660 this.el.size_allocate.connect( ( alloc) => {
661 if (_this.windowstate == null) {
664 _this.windowstate.resizeCanvas();
669 // user defined functions
671 public class Xcls_rooview : Object
673 public GtkClutter.Actor el;
674 private Xcls_MainWindow _this;
680 public Xcls_rooview(Xcls_MainWindow _owner )
683 _this.rooview = this;
684 this.el = new GtkClutter.Actor();
688 // set gobject values
695 this.el.add_constraint(
696 new Clutter.AlignConstraint(
697 _this.clutterembed.el.get_stage(),
698 Clutter.AlignAxis.X_AXIS,
703 //this.el.set_position(100,100);
704 this.el.set_pivot_point(1.0f,1.0f);
706 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
707 _this.clutterembed.el.get_stage().height);
712 // user defined functions
715 public class Xcls_objectview : Object
717 public GtkClutter.Actor el;
718 private Xcls_MainWindow _this;
724 public Xcls_objectview(Xcls_MainWindow _owner )
727 _this.objectview = this;
728 this.el = new GtkClutter.Actor();
732 // set gobject values
739 this.el.add_constraint(
740 new Clutter.AlignConstraint(
741 _this.clutterembed.el.get_stage(),
742 Clutter.AlignAxis.X_AXIS,
747 this.el.fixed_x = 50.0f;
748 this.el.fixed_y = 0.0f;
749 //this.el.set_position(100,100);
750 this.el.set_pivot_point(0.0f,0.0f);
751 this.el.set_scale(0.0f,1.0f);
752 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
753 _this.clutterembed.el.get_stage().height);
758 // user defined functions
761 public class Xcls_codeeditview : Object
763 public GtkClutter.Actor el;
764 private Xcls_MainWindow _this;
770 public Xcls_codeeditview(Xcls_MainWindow _owner )
773 _this.codeeditview = this;
774 this.el = new GtkClutter.Actor();
778 // set gobject values
785 this.el.add_constraint(
786 new Clutter.AlignConstraint(
787 _this.clutterembed.el.get_stage(),
788 Clutter.AlignAxis.X_AXIS,
793 this.el.fixed_x = 50.0f;
794 this.el.fixed_y = 0.0f;
795 //this.el.set_position(100,100);
796 this.el.set_pivot_point(0.0f,0.0f);
797 this.el.set_scale(0.0f,1.0f);
798 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
799 _this.clutterembed.el.get_stage().height);
804 // user defined functions
807 public class Xcls_addpropsview : Object
809 public GtkClutter.Actor el;
810 private Xcls_MainWindow _this;
816 public Xcls_addpropsview(Xcls_MainWindow _owner )
819 _this.addpropsview = this;
820 this.el = new GtkClutter.Actor();
824 // set gobject values
831 this.el.add_constraint(
832 new Clutter.AlignConstraint(
833 _this.clutterembed.el.get_stage(),
834 Clutter.AlignAxis.X_AXIS,
839 this.el.fixed_x = 50.0f;
840 this.el.fixed_y = 0.0f;
841 //this.el.set_position(100,100);
842 this.el.set_pivot_point(0.0f,0.0f);
843 this.el.set_scale(0.0f,1.0f);
844 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
845 _this.clutterembed.el.get_stage().height);
850 // user defined functions
853 public class Xcls_projecteditview : Object
855 public GtkClutter.Actor el;
856 private Xcls_MainWindow _this;
862 public Xcls_projecteditview(Xcls_MainWindow _owner )
865 _this.projecteditview = this;
866 this.el = new GtkClutter.Actor();
870 // set gobject values
877 this.el.add_constraint(
878 new Clutter.AlignConstraint(
879 _this.clutterembed.el.get_stage(),
880 Clutter.AlignAxis.X_AXIS,
885 //this.el.set_position(100,100);
886 this.el.set_pivot_point(0.0f,0.0f);
887 this.el.set_scale(1.0f,0.0f);
888 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
889 _this.clutterembed.el.get_stage().height /2);
894 // user defined functions
897 public class Xcls_buttonlayout : Object
899 public Clutter.Actor el;
900 private Xcls_MainWindow _this;
906 public Xcls_buttonlayout(Xcls_MainWindow _owner )
909 _this.buttonlayout = this;
910 this.el = new Clutter.Actor();
914 // set gobject values
915 var child_0 = new Xcls_BoxLayout25( _this );
917 this.el.layout_manager = child_0.el;
918 var child_1 = new Xcls_backbutton( _this );
920 this.el.add_child ( child_1.el );
921 var child_2 = new Xcls_projectbutton( _this );
923 this.el.add_child ( child_2.el );
924 var child_3 = new Xcls_editfilebutton( _this );
926 this.el.add_child ( child_3.el );
927 var child_4 = new Xcls_projecteditbutton( _this );
929 this.el.add_child ( child_4.el );
930 var child_5 = new Xcls_objectshowbutton( _this );
932 this.el.add_child ( child_5.el );
933 var child_6 = new Xcls_addpropbutton( _this );
935 this.el.add_child ( child_6.el );
936 var child_7 = new Xcls_addlistenerbutton( _this );
938 this.el.add_child ( child_7.el );
939 var child_8 = new Xcls_addprojectbutton( _this );
941 this.el.add_child ( child_8.el );
942 var child_9 = new Xcls_addfilebutton( _this );
944 this.el.add_child ( child_9.el );
945 var child_10 = new Xcls_delprojectbutton( _this );
947 this.el.add_child ( child_10.el );
953 this.el.add_constraint(
954 new Clutter.AlignConstraint(
955 _this.clutterembed.el.get_stage(),
956 Clutter.AlignAxis.X_AXIS,
962 //this.el.set_position(100,100);
963 this.el.set_pivot_point(0.5f,0.5f);
965 _this.clutterembed.el.get_stage().height);
970 // user defined functions
972 public class Xcls_BoxLayout25 : Object
974 public Clutter.BoxLayout el;
975 private Xcls_MainWindow _this;
981 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
984 this.el = new Clutter.BoxLayout();
988 // set gobject values
989 this.el.orientation = Clutter.Orientation.VERTICAL;
992 // user defined functions
995 public class Xcls_backbutton : Object
997 public Clutter.Actor el;
998 private Xcls_MainWindow _this;
1004 public Xcls_backbutton(Xcls_MainWindow _owner )
1007 _this.backbutton = this;
1008 this.el = new Clutter.Actor();
1012 // set gobject values
1013 var child_0 = new Xcls_Actor27( _this );
1015 this.el.add_child ( child_0.el );
1019 this.el.set_size(50,50);
1022 // user defined functions
1024 public class Xcls_Actor27 : Object
1026 public GtkClutter.Actor el;
1027 private Xcls_MainWindow _this;
1033 public Xcls_Actor27(Xcls_MainWindow _owner )
1036 this.el = new GtkClutter.Actor();
1040 // set gobject values
1041 var child_0 = new Xcls_Button28( _this );
1046 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1049 // user defined functions
1051 public class Xcls_Button28 : Object
1053 public Gtk.Button el;
1054 private Xcls_MainWindow _this;
1060 public Xcls_Button28(Xcls_MainWindow _owner )
1063 this.el = new Gtk.Button();
1067 // set gobject values
1068 this.el.width_request = 50;
1069 this.el.height_request = 50;
1070 this.el.tooltip_text = "Back";
1071 var child_0 = new Xcls_Image29( _this );
1073 this.el.set_image ( child_0.el );
1076 this.el.clicked.connect( ( ) => {
1078 _this.windowstate.switchState(WindowState.State.PREVIEW);
1084 // user defined functions
1086 public class Xcls_Image29 : Object
1088 public Gtk.Image el;
1089 private Xcls_MainWindow _this;
1095 public Xcls_Image29(Xcls_MainWindow _owner )
1098 this.el = new Gtk.Image();
1102 // set gobject values
1103 this.el.icon_name = "go-previous";
1106 // user defined functions
1112 public class Xcls_projectbutton : Object
1114 public Clutter.Actor el;
1115 private Xcls_MainWindow _this;
1121 public Xcls_projectbutton(Xcls_MainWindow _owner )
1124 _this.projectbutton = this;
1125 this.el = new Clutter.Actor();
1129 // set gobject values
1130 var child_0 = new Xcls_Actor31( _this );
1132 this.el.add_child ( child_0.el );
1136 this.el.set_size(50,50);
1139 // user defined functions
1141 public class Xcls_Actor31 : Object
1143 public GtkClutter.Actor el;
1144 private Xcls_MainWindow _this;
1150 public Xcls_Actor31(Xcls_MainWindow _owner )
1153 this.el = new GtkClutter.Actor();
1157 // set gobject values
1158 var child_0 = new Xcls_Button32( _this );
1163 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1166 // user defined functions
1168 public class Xcls_Button32 : Object
1170 public Gtk.Button el;
1171 private Xcls_MainWindow _this;
1177 public Xcls_Button32(Xcls_MainWindow _owner )
1180 this.el = new Gtk.Button();
1184 // set gobject values
1185 this.el.width_request = 50;
1186 this.el.height_request = 50;
1187 var child_0 = new Xcls_Image33( _this );
1189 this.el.set_image ( child_0.el );
1192 this.el.clicked.connect( ( ) => {
1193 _this.windowstate.switchState(WindowState.State.FILES);
1199 // user defined functions
1201 public class Xcls_Image33 : Object
1203 public Gtk.Image el;
1204 private Xcls_MainWindow _this;
1210 public Xcls_Image33(Xcls_MainWindow _owner )
1213 this.el = new Gtk.Image();
1217 // set gobject values
1218 this.el.icon_name = "document-open";
1221 // user defined functions
1227 public class Xcls_editfilebutton : Object
1229 public Clutter.Actor el;
1230 private Xcls_MainWindow _this;
1236 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1239 _this.editfilebutton = this;
1240 this.el = new Clutter.Actor();
1244 // set gobject values
1245 var child_0 = new Xcls_Actor35( _this );
1247 this.el.add_child ( child_0.el );
1251 this.el.set_size(50.0f,50.0f);
1254 // user defined functions
1256 public class Xcls_Actor35 : Object
1258 public GtkClutter.Actor el;
1259 private Xcls_MainWindow _this;
1265 public Xcls_Actor35(Xcls_MainWindow _owner )
1268 this.el = new GtkClutter.Actor();
1272 // set gobject values
1273 var child_0 = new Xcls_Button36( _this );
1278 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1281 // user defined functions
1283 public class Xcls_Button36 : Object
1285 public Gtk.Button el;
1286 private Xcls_MainWindow _this;
1292 public Xcls_Button36(Xcls_MainWindow _owner )
1295 this.el = new Gtk.Button();
1299 // set gobject values
1300 this.el.width_request = 50;
1301 this.el.height_request = 50;
1302 this.el.tooltip_text = "File Details";
1303 var child_0 = new Xcls_Image37( _this );
1305 this.el.set_image ( child_0.el );
1308 this.el.clicked.connect( ( ) => {
1310 // create a new file in project..
1311 if (_this.project == null || _this.windowstate.file == null) {
1314 _this.windowstate.file_details.show(
1315 _this.windowstate.file, this.el
1324 // user defined functions
1326 public class Xcls_Image37 : Object
1328 public Gtk.Image el;
1329 private Xcls_MainWindow _this;
1335 public Xcls_Image37(Xcls_MainWindow _owner )
1338 this.el = new Gtk.Image();
1342 // set gobject values
1343 this.el.icon_name = "document-properties";
1346 // user defined functions
1352 public class Xcls_projecteditbutton : Object
1354 public Clutter.Actor el;
1355 private Xcls_MainWindow _this;
1361 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1364 _this.projecteditbutton = this;
1365 this.el = new Clutter.Actor();
1369 // set gobject values
1370 var child_0 = new Xcls_Actor39( _this );
1372 this.el.add_child ( child_0.el );
1376 this.el.set_size(50,50);
1379 // user defined functions
1381 public class Xcls_Actor39 : Object
1383 public GtkClutter.Actor el;
1384 private Xcls_MainWindow _this;
1390 public Xcls_Actor39(Xcls_MainWindow _owner )
1393 this.el = new GtkClutter.Actor();
1397 // set gobject values
1398 var child_0 = new Xcls_Button40( _this );
1403 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1406 // user defined functions
1408 public class Xcls_Button40 : Object
1410 public Gtk.Button el;
1411 private Xcls_MainWindow _this;
1417 public Xcls_Button40(Xcls_MainWindow _owner )
1420 this.el = new Gtk.Button();
1424 // set gobject values
1425 this.el.width_request = 50;
1426 this.el.height_request = 50;
1427 this.el.tooltip_text = "Project Details";
1428 var child_0 = new Xcls_Image41( _this );
1430 this.el.set_image ( child_0.el );
1433 this.el.clicked.connect( ( ) => {
1434 _this.windowstate.switchState(WindowState.State.PROJECT);
1441 // user defined functions
1443 public class Xcls_Image41 : Object
1445 public Gtk.Image el;
1446 private Xcls_MainWindow _this;
1452 public Xcls_Image41(Xcls_MainWindow _owner )
1455 this.el = new Gtk.Image();
1459 // set gobject values
1460 this.el.icon_name = "emblem-system";
1463 // user defined functions
1469 public class Xcls_objectshowbutton : Object
1471 public Clutter.Actor el;
1472 private Xcls_MainWindow _this;
1478 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1481 _this.objectshowbutton = this;
1482 this.el = new Clutter.Actor();
1486 // set gobject values
1487 var child_0 = new Xcls_Actor43( _this );
1489 this.el.add_child ( child_0.el );
1493 this.el.set_size(50,50);
1496 this.el.enter_event.connect( ( event) => {
1497 this.el.background_color = Clutter.Color.from_string("#333");
1500 this.el.leave_event.connect( ( event) => {
1501 this.el.background_color = Clutter.Color.from_string("#000");
1506 // user defined functions
1508 public class Xcls_Actor43 : Object
1510 public GtkClutter.Actor el;
1511 private Xcls_MainWindow _this;
1517 public Xcls_Actor43(Xcls_MainWindow _owner )
1520 this.el = new GtkClutter.Actor();
1524 // set gobject values
1525 var child_0 = new Xcls_Button44( _this );
1530 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1533 // user defined functions
1535 public class Xcls_Button44 : Object
1537 public Gtk.Button el;
1538 private Xcls_MainWindow _this;
1544 public Xcls_Button44(Xcls_MainWindow _owner )
1547 this.el = new Gtk.Button();
1551 // set gobject values
1552 this.el.width_request = 50;
1553 this.el.height_request = 50;
1554 this.el.tooltip_text = "Add Child Element";
1555 var child_0 = new Xcls_Image45( _this );
1557 this.el.set_image ( child_0.el );
1560 this.el.clicked.connect( ( ) => {
1562 _this.windowstate.switchState(WindowState.State.OBJECT);
1568 // user defined functions
1570 public class Xcls_Image45 : Object
1572 public Gtk.Image el;
1573 private Xcls_MainWindow _this;
1579 public Xcls_Image45(Xcls_MainWindow _owner )
1582 this.el = new Gtk.Image();
1586 // set gobject values
1587 this.el.icon_name = "list-add";
1590 // user defined functions
1596 public class Xcls_addpropbutton : Object
1598 public Clutter.Actor el;
1599 private Xcls_MainWindow _this;
1605 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1608 _this.addpropbutton = this;
1609 this.el = new Clutter.Actor();
1613 // set gobject values
1614 var child_0 = new Xcls_Actor47( _this );
1616 this.el.add_child ( child_0.el );
1620 this.el.set_size(50,50);
1623 // user defined functions
1625 public class Xcls_Actor47 : Object
1627 public GtkClutter.Actor el;
1628 private Xcls_MainWindow _this;
1634 public Xcls_Actor47(Xcls_MainWindow _owner )
1637 this.el = new GtkClutter.Actor();
1641 // set gobject values
1642 var child_0 = new Xcls_Button48( _this );
1647 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1650 // user defined functions
1652 public class Xcls_Button48 : Object
1654 public Gtk.Button el;
1655 private Xcls_MainWindow _this;
1661 public Xcls_Button48(Xcls_MainWindow _owner )
1664 this.el = new Gtk.Button();
1668 // set gobject values
1669 this.el.width_request = 50;
1670 this.el.height_request = 50;
1671 this.el.tooltip_text = "Add Property";
1672 var child_0 = new Xcls_Image49( _this );
1674 this.el.set_image ( child_0.el );
1677 this.el.clicked.connect( ( ) => {
1679 _this.windowstate.switchState(WindowState.State.PROP);
1685 // user defined functions
1687 public class Xcls_Image49 : Object
1689 public Gtk.Image el;
1690 private Xcls_MainWindow _this;
1696 public Xcls_Image49(Xcls_MainWindow _owner )
1699 this.el = new Gtk.Image();
1703 // set gobject values
1704 this.el.icon_name = "format-justify-left";
1707 // user defined functions
1713 public class Xcls_addlistenerbutton : Object
1715 public Clutter.Actor el;
1716 private Xcls_MainWindow _this;
1722 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1725 _this.addlistenerbutton = this;
1726 this.el = new Clutter.Actor();
1730 // set gobject values
1731 var child_0 = new Xcls_Actor51( _this );
1733 this.el.add_child ( child_0.el );
1737 this.el.set_size(50,50);
1740 // user defined functions
1742 public class Xcls_Actor51 : Object
1744 public GtkClutter.Actor el;
1745 private Xcls_MainWindow _this;
1751 public Xcls_Actor51(Xcls_MainWindow _owner )
1754 this.el = new GtkClutter.Actor();
1758 // set gobject values
1759 var child_0 = new Xcls_Button52( _this );
1764 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1767 // user defined functions
1769 public class Xcls_Button52 : Object
1771 public Gtk.Button el;
1772 private Xcls_MainWindow _this;
1778 public Xcls_Button52(Xcls_MainWindow _owner )
1781 this.el = new Gtk.Button();
1785 // set gobject values
1786 this.el.width_request = 50;
1787 this.el.height_request = 50;
1788 this.el.tooltip_text = "Add Event Code";
1789 var child_0 = new Xcls_Image53( _this );
1791 this.el.set_image ( child_0.el );
1794 this.el.clicked.connect( ( ) => {
1796 _this.windowstate.switchState(WindowState.State.LISTENER);
1803 // user defined functions
1805 public class Xcls_Image53 : Object
1807 public Gtk.Image el;
1808 private Xcls_MainWindow _this;
1814 public Xcls_Image53(Xcls_MainWindow _owner )
1817 this.el = new Gtk.Image();
1821 // set gobject values
1822 this.el.icon_name = "appointment-new";
1825 // user defined functions
1831 public class Xcls_addprojectbutton : Object
1833 public Clutter.Actor el;
1834 private Xcls_MainWindow _this;
1840 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1843 _this.addprojectbutton = this;
1844 this.el = new Clutter.Actor();
1848 // set gobject values
1849 var child_0 = new Xcls_Actor55( _this );
1851 this.el.add_child ( child_0.el );
1855 this.el.set_size(50.0f,50.0f);
1858 // user defined functions
1860 public class Xcls_Actor55 : Object
1862 public GtkClutter.Actor el;
1863 private Xcls_MainWindow _this;
1869 public Xcls_Actor55(Xcls_MainWindow _owner )
1872 this.el = new GtkClutter.Actor();
1876 // set gobject values
1877 var child_0 = new Xcls_Button56( _this );
1882 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1885 // user defined functions
1887 public class Xcls_Button56 : Object
1889 public Gtk.Button el;
1890 private Xcls_MainWindow _this;
1896 public Xcls_Button56(Xcls_MainWindow _owner )
1899 this.el = new Gtk.Button();
1903 // set gobject values
1904 this.el.width_request = 50;
1905 this.el.height_request = 50;
1906 this.el.tooltip_text = "New\nProj.";
1907 var child_0 = new Xcls_Image57( _this );
1909 this.el.set_image ( child_0.el );
1912 this.el.clicked.connect( ( ) => {
1914 // create a new file in project..
1915 //Xcls_DialogNewComponent.singleton().show(
1916 var pe = EditProject.singleton();
1917 pe.el.set_transient_for(_this.el);
1918 pe.el.set_modal(true);
1927 _this.windowstate.left_projects.is_loaded = false;
1928 _this.windowstate.left_projects.load();
1929 _this.windowstate.left_projects.selectProject(p);
1936 // user defined functions
1938 public class Xcls_Image57 : Object
1940 public Gtk.Image el;
1941 private Xcls_MainWindow _this;
1947 public Xcls_Image57(Xcls_MainWindow _owner )
1950 this.el = new Gtk.Image();
1954 // set gobject values
1955 this.el.icon_name = "folder-new";
1958 // user defined functions
1964 public class Xcls_addfilebutton : Object
1966 public Clutter.Actor el;
1967 private Xcls_MainWindow _this;
1973 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1976 _this.addfilebutton = this;
1977 this.el = new Clutter.Actor();
1981 // set gobject values
1982 var child_0 = new Xcls_Actor59( _this );
1984 this.el.add_child ( child_0.el );
1988 this.el.set_size(50.0f,50.0f);
1991 // user defined functions
1993 public class Xcls_Actor59 : Object
1995 public GtkClutter.Actor el;
1996 private Xcls_MainWindow _this;
2002 public Xcls_Actor59(Xcls_MainWindow _owner )
2005 this.el = new GtkClutter.Actor();
2009 // set gobject values
2010 var child_0 = new Xcls_Button60( _this );
2015 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2018 // user defined functions
2020 public class Xcls_Button60 : Object
2022 public Gtk.Button el;
2023 private Xcls_MainWindow _this;
2029 public Xcls_Button60(Xcls_MainWindow _owner )
2032 this.el = new Gtk.Button();
2036 // set gobject values
2037 this.el.width_request = 50;
2038 this.el.height_request = 50;
2039 this.el.tooltip_text = "Add File";
2040 var child_0 = new Xcls_Image61( _this );
2042 this.el.set_image ( child_0.el );
2045 this.el.clicked.connect( () => {
2046 // create a new file in project..
2047 print("add file selected\n");
2048 // what's the currently selected project...
2049 var proj = _this.windowstate.left_projects.getSelectedProject();
2052 print("no project selected?\n");
2056 print("creating file?");
2058 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2059 _this.project = proj;
2060 print("showing popup?");
2061 _this.windowstate.file_details.show(
2070 // user defined functions
2072 public class Xcls_Image61 : Object
2074 public Gtk.Image el;
2075 private Xcls_MainWindow _this;
2081 public Xcls_Image61(Xcls_MainWindow _owner )
2084 this.el = new Gtk.Image();
2088 // set gobject values
2089 this.el.icon_name = "document-new";
2092 // user defined functions
2098 public class Xcls_delprojectbutton : Object
2100 public Clutter.Actor el;
2101 private Xcls_MainWindow _this;
2107 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2110 _this.delprojectbutton = this;
2111 this.el = new Clutter.Actor();
2115 // set gobject values
2116 var child_0 = new Xcls_Actor63( _this );
2118 this.el.add_child ( child_0.el );
2122 this.el.set_size(50,50);
2125 // user defined functions
2127 public class Xcls_Actor63 : Object
2129 public GtkClutter.Actor el;
2130 private Xcls_MainWindow _this;
2136 public Xcls_Actor63(Xcls_MainWindow _owner )
2139 this.el = new GtkClutter.Actor();
2143 // set gobject values
2144 var child_0 = new Xcls_Button64( _this );
2149 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2152 // user defined functions
2154 public class Xcls_Button64 : Object
2156 public Gtk.Button el;
2157 private Xcls_MainWindow _this;
2163 public Xcls_Button64(Xcls_MainWindow _owner )
2166 this.el = new Gtk.Button();
2170 // set gobject values
2171 this.el.width_request = 50;
2172 this.el.height_request = 50;
2173 this.el.tooltip_text = "Delete Project";
2174 var child_0 = new Xcls_Image65( _this );
2176 this.el.set_image ( child_0.el );
2179 this.el.clicked.connect( ( ) => {
2181 var cd = DialogConfirm.singleton();
2182 cd.el.set_transient_for(_this.el);
2183 cd.el.set_modal(true);
2185 var project = _this.windowstate.left_projects.getSelectedProject();
2186 if (project == null) {
2187 print("SKIP - no project\n");
2192 if (Gtk.ResponseType.YES != cd.show("Confirm",
2193 "Are you sure you want to delete project %s".printf(project.name))) {
2199 Project.Project.remove(project);
2200 _this.project = null;
2202 _this.windowstate.left_projects.is_loaded = false;
2203 _this.windowstate.left_projects.load();
2204 _this.windowstate.clutterfiles.clearFiles();
2209 // user defined functions
2211 public class Xcls_Image65 : Object
2213 public Gtk.Image el;
2214 private Xcls_MainWindow _this;
2220 public Xcls_Image65(Xcls_MainWindow _owner )
2223 this.el = new Gtk.Image();
2227 // set gobject values
2228 this.el.icon_name = "user-trash";
2231 // user defined functions
2241 public class Xcls_Box66 : Object
2244 private Xcls_MainWindow _this;
2250 public Xcls_Box66(Xcls_MainWindow _owner )
2253 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2257 // set gobject values
2258 this.el.homogeneous = false;
2259 var child_0 = new Xcls_Label67( _this );
2261 this.el.pack_start ( child_0.el , true,true,0 );
2262 var child_1 = new Xcls_statusbar( _this );
2264 this.el.pack_start ( child_1.el , true,true,0 );
2265 var child_2 = new Xcls_search_entry( _this );
2267 this.el.pack_start ( child_2.el , false,true,0 );
2268 var child_3 = new Xcls_MenuBar70( _this );
2270 this.el.pack_end ( child_3.el , false,true,0 );
2273 // user defined functions
2275 public class Xcls_Label67 : Object
2277 public Gtk.Label el;
2278 private Xcls_MainWindow _this;
2284 public Xcls_Label67(Xcls_MainWindow _owner )
2287 this.el = new Gtk.Label( " " );
2291 // set gobject values
2294 // user defined functions
2297 public class Xcls_statusbar : Object
2299 public Gtk.ProgressBar el;
2300 private Xcls_MainWindow _this;
2304 public ulong handler_id;
2307 public Xcls_statusbar(Xcls_MainWindow _owner )
2310 _this.statusbar = this;
2311 this.el = new Gtk.ProgressBar();
2314 this.handler_id = -1;
2316 // set gobject values
2317 this.el.show_text = true;
2322 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2325 _this.mainpane.el.set_sensitive(true);
2329 _this.mainpane.el.set_sensitive(false);
2331 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2332 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2338 // user defined functions
2341 public class Xcls_search_entry : Object
2343 public Gtk.SearchEntry el;
2344 private Xcls_MainWindow _this;
2350 public Xcls_search_entry(Xcls_MainWindow _owner )
2353 _this.search_entry = this;
2354 this.el = new Gtk.SearchEntry();
2358 // set gobject values
2362 var description = Pango.FontDescription.from_string("monospace");
2363 description.set_size(8000);
2364 this.el.override_font(description);
2367 this.el.key_press_event.connect( (event) => {
2369 if (event.keyval == Gdk.Key.Return) {
2370 this.forwardSearch(false);
2374 // print(event.key.keyval)
2379 this.el.changed.connect( () => {
2380 if (this.el.text == "") {
2381 _this.search_results.el.hide();
2385 switch(_this.windowstate.state) {
2386 case WindowState.State.CODEONLY:
2387 case WindowState.State.CODE:
2388 // search the code being edited..
2389 res = _this.windowstate.code_editor.search(this.el.text);
2392 case WindowState.State.PREVIEW:
2393 if (_this.windowstate.file.xtype == "Gtk") {
2394 res = _this.windowstate.window_gladeview.search(this.el.text);
2396 res = _this.windowstate.window_rooview.search(this.el.text);
2402 _this.search_results.el.show();
2404 _this.search_results.el.label = "%d Matches".printf(res);
2406 _this.search_results.el.label = "No Matches";
2414 // user defined functions
2415 public void forwardSearch (bool change_focus) {
2416 switch(_this.windowstate.state) {
2417 case WindowState.State.CODEONLY:
2418 case WindowState.State.CODE:
2419 // search the code being edited..
2420 _this.windowstate.code_editor.forwardSearch(change_focus);
2423 case WindowState.State.PREVIEW:
2424 if (_this.windowstate.file.xtype == "Gtk") {
2425 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2427 _this.windowstate.window_rooview.forwardSearch(change_focus);
2436 public class Xcls_MenuBar70 : Object
2438 public Gtk.MenuBar el;
2439 private Xcls_MainWindow _this;
2445 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2448 this.el = new Gtk.MenuBar();
2452 // set gobject values
2453 var child_0 = new Xcls_search_results( _this );
2455 this.el.add ( child_0.el );
2456 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2458 this.el.add ( child_1.el );
2459 var child_2 = new Xcls_statusbar_errors( _this );
2461 this.el.add ( child_2.el );
2462 var child_3 = new Xcls_statusbar_warnings( _this );
2464 this.el.add ( child_3.el );
2465 var child_4 = new Xcls_statusbar_depricated( _this );
2467 this.el.add ( child_4.el );
2468 var child_5 = new Xcls_statusbar_run( _this );
2470 this.el.add ( child_5.el );
2473 // user defined functions
2475 public class Xcls_search_results : Object
2477 public Gtk.ImageMenuItem el;
2478 private Xcls_MainWindow _this;
2482 public Xcls_ValaCompileErrors popup;
2485 public Xcls_search_results(Xcls_MainWindow _owner )
2488 _this.search_results = this;
2489 this.el = new Gtk.ImageMenuItem();
2493 // set gobject values
2494 this.el.always_show_image = true;
2495 this.el.label = "Matches";
2496 var child_0 = new Xcls_Image72( _this );
2498 this.el.set_image ( child_0.el );
2501 this.el.button_press_event.connect( () => {
2503 if (this.popup == null) {
2504 this.popup = new Xcls_ValaCompileErrors();
2505 this.popup.window = _this;
2509 this.popup.show(this.notices, this.el);
2515 // user defined functions
2517 public class Xcls_Image72 : Object
2519 public Gtk.Image el;
2520 private Xcls_MainWindow _this;
2526 public Xcls_Image72(Xcls_MainWindow _owner )
2529 this.el = new Gtk.Image();
2533 // set gobject values
2534 this.el.icon_name = "system-search";
2535 this.el.sensitive = false;
2538 // user defined functions
2542 public class Xcls_statusbar_compilestatus_label : Object
2544 public Gtk.MenuItem el;
2545 private Xcls_MainWindow _this;
2551 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2554 _this.statusbar_compilestatus_label = this;
2555 this.el = new Gtk.MenuItem();
2559 // set gobject values
2560 this.el.label = "Compile Status:";
2563 // user defined functions
2566 public class Xcls_statusbar_errors : Object
2568 public Gtk.ImageMenuItem el;
2569 private Xcls_MainWindow _this;
2573 public Xcls_ValaCompileErrors popup;
2574 public Json.Object notices;
2577 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2580 _this.statusbar_errors = this;
2581 this.el = new Gtk.ImageMenuItem();
2584 this.notices = new Json.Object() ;
2586 // set gobject values
2587 this.el.always_show_image = true;
2588 this.el.label = "Errors";
2589 var child_0 = new Xcls_Image75( _this );
2591 this.el.set_image ( child_0.el );
2594 this.el.button_press_event.connect( () => {
2595 if (this.popup == null) {
2596 this.popup = new Xcls_ValaCompileErrors();
2597 this.popup.window = _this;
2601 this.popup.show(this.notices, this.el);
2606 // user defined functions
2607 public void setNotices (Json.Object nots, int qty) {
2609 this.el.label = qty.to_string() + " Errors";
2610 this.notices = nots;
2614 public class Xcls_Image75 : Object
2616 public Gtk.Image el;
2617 private Xcls_MainWindow _this;
2623 public Xcls_Image75(Xcls_MainWindow _owner )
2626 this.el = new Gtk.Image();
2630 // set gobject values
2631 this.el.icon_name = "dialog-error";
2634 // user defined functions
2638 public class Xcls_statusbar_warnings : Object
2640 public Gtk.ImageMenuItem el;
2641 private Xcls_MainWindow _this;
2645 public Xcls_ValaCompileErrors popup;
2646 public Json.Object notices;
2649 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2652 _this.statusbar_warnings = this;
2653 this.el = new Gtk.ImageMenuItem();
2656 this.notices = new Json.Object();
2658 // set gobject values
2659 this.el.always_show_image = true;
2660 this.el.label = "Warnings";
2661 var child_0 = new Xcls_Image77( _this );
2663 this.el.set_image ( child_0.el );
2666 this.el.button_press_event.connect( () => {
2667 if (this.popup == null) {
2668 this.popup = new Xcls_ValaCompileErrors();
2669 this.popup.window = _this;
2672 this.popup.show(this.notices, this.el);
2677 // user defined functions
2678 public void setNotices (Json.Object nots, int qty) {
2680 this.el.label = qty.to_string() + " Warnings";
2681 this.notices = nots;
2685 public class Xcls_Image77 : Object
2687 public Gtk.Image el;
2688 private Xcls_MainWindow _this;
2694 public Xcls_Image77(Xcls_MainWindow _owner )
2697 this.el = new Gtk.Image();
2701 // set gobject values
2702 this.el.icon_name = "dialog-warning";
2705 // user defined functions
2709 public class Xcls_statusbar_depricated : Object
2711 public Gtk.ImageMenuItem el;
2712 private Xcls_MainWindow _this;
2716 public Xcls_ValaCompileErrors popup;
2717 public Json.Object notices;
2720 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2723 _this.statusbar_depricated = this;
2724 this.el = new Gtk.ImageMenuItem();
2727 this.notices = new Json.Object();
2729 // set gobject values
2730 this.el.always_show_image = true;
2731 this.el.label = "Depricated";
2732 var child_0 = new Xcls_Image79( _this );
2734 this.el.set_image ( child_0.el );
2737 this.el.button_press_event.connect( () => {
2738 if (this.popup == null) {
2739 this.popup = new Xcls_ValaCompileErrors();
2740 this.popup.window = _this;
2744 this.popup.show(this.notices, this.el);
2749 // user defined functions
2750 public void setNotices (Json.Object nots, int qty) {
2752 this.el.label = qty.to_string() + " Depricated";
2753 this.notices = nots;
2757 public class Xcls_Image79 : Object
2759 public Gtk.Image el;
2760 private Xcls_MainWindow _this;
2766 public Xcls_Image79(Xcls_MainWindow _owner )
2769 this.el = new Gtk.Image();
2773 // set gobject values
2774 this.el.icon_name = "dialog-information";
2777 // user defined functions
2781 public class Xcls_statusbar_run : Object
2783 public Gtk.ImageMenuItem el;
2784 private Xcls_MainWindow _this;
2788 public Xcls_ValaCompileErrors popup;
2791 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2794 _this.statusbar_run = this;
2795 this.el = new Gtk.ImageMenuItem();
2799 // set gobject values
2800 this.el.always_show_image = true;
2801 this.el.label = "Run";
2802 var child_0 = new Xcls_Image81( _this );
2804 this.el.set_image ( child_0.el );
2807 this.el.button_press_event.connect( () => {
2808 if (_this.windowstate.file == null) {
2811 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2813 _this.windowstate.compile_results.show(this.el,true);
2819 // user defined functions
2821 public class Xcls_Image81 : Object
2823 public Gtk.Image el;
2824 private Xcls_MainWindow _this;
2830 public Xcls_Image81(Xcls_MainWindow _owner )
2833 this.el = new Gtk.Image();
2837 // set gobject values
2838 this.el.icon_name = "media-playback-start";
2841 // user defined functions