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 void setTitle (string str) {
169 this.headerbar.el.set_title(this.title + " - " + str);
171 public class Xcls_headerbar : Object
173 public Gtk.HeaderBar el;
174 private Xcls_MainWindow _this;
180 public Xcls_headerbar(Xcls_MainWindow _owner )
183 _this.headerbar = this;
184 this.el = new Gtk.HeaderBar();
188 // set gobject values
189 this.el.title = "Application Builder";
190 this.el.show_close_button = true;
191 var child_0 = new Xcls_Box3( _this );
193 this.el.pack_start ( child_0.el );
196 // user defined functions
198 public class Xcls_Box3 : Object
201 private Xcls_MainWindow _this;
207 public Xcls_Box3(Xcls_MainWindow _owner )
210 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
214 // set gobject values
215 var child_0 = new Xcls_MenuButton4( _this );
217 this.el.add ( child_0.el );
220 // user defined functions
222 public class Xcls_MenuButton4 : Object
224 public Gtk.MenuButton el;
225 private Xcls_MainWindow _this;
231 public Xcls_MenuButton4(Xcls_MainWindow _owner )
234 this.el = new Gtk.MenuButton();
238 // set gobject values
239 this.el.use_popover = false;
240 var child_0 = new Xcls_topbarmenu( _this );
242 this.el.set_popup ( child_0.el );
243 var child_1 = new Xcls_Image10( _this );
245 this.el.set_image ( child_1.el );
248 // user defined functions
250 public class Xcls_topbarmenu : Object
253 private Xcls_MainWindow _this;
259 public Xcls_topbarmenu(Xcls_MainWindow _owner )
262 _this.topbarmenu = this;
263 this.el = new Gtk.Menu();
267 // set gobject values
268 var child_0 = new Xcls_MenuItem6( _this );
270 this.el.append ( child_0.el );
271 var child_1 = new Xcls_SeparatorMenuItem7( _this );
273 this.el.append ( child_1.el );
274 var child_2 = new Xcls_MenuItem8( _this );
276 this.el.append ( child_2.el );
277 var child_3 = new Xcls_MenuItem9( _this );
279 this.el.append ( child_3.el );
288 // user defined functions
290 public class Xcls_MenuItem6 : Object
292 public Gtk.MenuItem el;
293 private Xcls_MainWindow _this;
299 public Xcls_MenuItem6(Xcls_MainWindow _owner )
302 this.el = new Gtk.MenuItem();
306 // set gobject values
307 this.el.label = "Open a new Window";
310 this.el.activate.connect( ( ) => {
311 Xcls_MainWindow.singleton().no_windows++;
312 var w = new Xcls_MainWindow();
317 w.windowstate.switchState(WindowState.State.FILES);
321 // user defined functions
324 public class Xcls_SeparatorMenuItem7 : Object
326 public Gtk.SeparatorMenuItem el;
327 private Xcls_MainWindow _this;
333 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
336 this.el = new Gtk.SeparatorMenuItem();
340 // set gobject values
343 // user defined functions
346 public class Xcls_MenuItem8 : Object
348 public Gtk.MenuItem el;
349 private Xcls_MainWindow _this;
355 public Xcls_MenuItem8(Xcls_MainWindow _owner )
358 this.el = new Gtk.MenuItem();
362 // set gobject values
363 this.el.label = "Download updated Resources";
366 this.el.activate.connect( ( ) => {
367 Resources.singleton().fetchStart();
371 // user defined functions
374 public class Xcls_MenuItem9 : Object
376 public Gtk.MenuItem el;
377 private Xcls_MainWindow _this;
383 public Xcls_MenuItem9(Xcls_MainWindow _owner )
386 this.el = new Gtk.MenuItem();
390 // set gobject values
391 this.el.label = "About the Builder";
394 this.el.activate.connect( () => {
395 About.singleton().el.show();
399 // user defined functions
403 public class Xcls_Image10 : Object
406 private Xcls_MainWindow _this;
412 public Xcls_Image10(Xcls_MainWindow _owner )
415 this.el = new Gtk.Image();
419 // set gobject values
420 this.el.icon_name = "help-about";
423 // user defined functions
429 public class Xcls_vbox : Object
432 private Xcls_MainWindow _this;
438 public Xcls_vbox(Xcls_MainWindow _owner )
442 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
446 // set gobject values
447 this.el.homogeneous = false;
448 var child_0 = new Xcls_mainpane( _this );
450 this.el.pack_start ( child_0.el , true,true,0 );
451 var child_1 = new Xcls_Box66( _this );
453 this.el.pack_end ( child_1.el , false,true,0 );
456 // user defined functions
458 public class Xcls_mainpane : Object
461 private Xcls_MainWindow _this;
465 public int lastWidth;
468 public Xcls_mainpane(Xcls_MainWindow _owner )
471 _this.mainpane = this;
472 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
477 // set gobject values
478 this.el.position = 400;
479 var child_0 = new Xcls_leftpane( _this );
481 this.el.add1 ( child_0.el );
482 var child_1 = new Xcls_Box17( _this );
484 this.el.add2 ( child_1.el );
487 // user defined functions
489 public class Xcls_leftpane : Object
492 private Xcls_MainWindow _this;
498 public Xcls_leftpane(Xcls_MainWindow _owner )
501 _this.leftpane = this;
502 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
506 // set gobject values
507 var child_0 = new Xcls_editpane( _this );
509 this.el.pack_start ( child_0.el , true,true,0 );
512 // user defined functions
514 public class Xcls_editpane : Object
517 private Xcls_MainWindow _this;
523 public Xcls_editpane(Xcls_MainWindow _owner )
526 _this.editpane = this;
527 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
531 // set gobject values
532 var child_0 = new Xcls_tree( _this );
534 this.el.add1 ( child_0.el );
535 var child_1 = new Xcls_props( _this );
537 this.el.add2 ( child_1.el );
540 // user defined functions
542 public class Xcls_tree : Object
545 private Xcls_MainWindow _this;
551 public Xcls_tree(Xcls_MainWindow _owner )
555 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
559 // set gobject values
562 // user defined functions
565 public class Xcls_props : Object
568 private Xcls_MainWindow _this;
574 public Xcls_props(Xcls_MainWindow _owner )
578 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
582 // set gobject values
585 // user defined functions
590 public class Xcls_Box17 : Object
593 private Xcls_MainWindow _this;
599 public Xcls_Box17(Xcls_MainWindow _owner )
602 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
606 // set gobject values
607 var child_0 = new Xcls_clutterembed( _this );
609 this.el.pack_start ( child_0.el , true,true,0 );
612 // user defined functions
614 public class Xcls_clutterembed : Object
616 public GtkClutter.Embed el;
617 private Xcls_MainWindow _this;
623 public Xcls_clutterembed(Xcls_MainWindow _owner )
626 _this.clutterembed = this;
627 this.el = new GtkClutter.Embed();
631 // set gobject values
632 var child_0 = new Xcls_rooview( _this );
634 this.el.get_stage().add_child ( child_0.el );
635 var child_1 = new Xcls_objectview( _this );
637 this.el.get_stage().add_child ( child_1.el );
638 var child_2 = new Xcls_codeeditview( _this );
640 this.el.get_stage().add_child ( child_2.el );
641 var child_3 = new Xcls_addpropsview( _this );
643 this.el.get_stage().add_child ( child_3.el );
644 var child_4 = new Xcls_projecteditview( _this );
646 this.el.get_stage().add_child ( child_4.el );
647 var child_5 = new Xcls_buttonlayout( _this );
649 this.el.get_stage().add_child ( child_5.el );
653 var stage = this.el.get_stage();
654 stage.set_background_color( Clutter.Color.from_string("#000"));
657 this.el.size_allocate.connect( ( alloc) => {
658 if (_this.windowstate == null) {
661 _this.windowstate.resizeCanvas();
666 // user defined functions
668 public class Xcls_rooview : Object
670 public GtkClutter.Actor el;
671 private Xcls_MainWindow _this;
677 public Xcls_rooview(Xcls_MainWindow _owner )
680 _this.rooview = this;
681 this.el = new GtkClutter.Actor();
685 // set gobject values
692 this.el.add_constraint(
693 new Clutter.AlignConstraint(
694 _this.clutterembed.el.get_stage(),
695 Clutter.AlignAxis.X_AXIS,
700 //this.el.set_position(100,100);
701 this.el.set_pivot_point(1.0f,1.0f);
703 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
704 _this.clutterembed.el.get_stage().height);
709 // user defined functions
712 public class Xcls_objectview : Object
714 public GtkClutter.Actor el;
715 private Xcls_MainWindow _this;
721 public Xcls_objectview(Xcls_MainWindow _owner )
724 _this.objectview = this;
725 this.el = new GtkClutter.Actor();
729 // set gobject values
736 this.el.add_constraint(
737 new Clutter.AlignConstraint(
738 _this.clutterembed.el.get_stage(),
739 Clutter.AlignAxis.X_AXIS,
744 this.el.fixed_x = 50.0f;
745 this.el.fixed_y = 0.0f;
746 //this.el.set_position(100,100);
747 this.el.set_pivot_point(0.0f,0.0f);
748 this.el.set_scale(0.0f,1.0f);
749 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
750 _this.clutterembed.el.get_stage().height);
755 // user defined functions
758 public class Xcls_codeeditview : Object
760 public GtkClutter.Actor el;
761 private Xcls_MainWindow _this;
767 public Xcls_codeeditview(Xcls_MainWindow _owner )
770 _this.codeeditview = this;
771 this.el = new GtkClutter.Actor();
775 // set gobject values
782 this.el.add_constraint(
783 new Clutter.AlignConstraint(
784 _this.clutterembed.el.get_stage(),
785 Clutter.AlignAxis.X_AXIS,
790 this.el.fixed_x = 50.0f;
791 this.el.fixed_y = 0.0f;
792 //this.el.set_position(100,100);
793 this.el.set_pivot_point(0.0f,0.0f);
794 this.el.set_scale(0.0f,1.0f);
795 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
796 _this.clutterembed.el.get_stage().height);
801 // user defined functions
804 public class Xcls_addpropsview : Object
806 public GtkClutter.Actor el;
807 private Xcls_MainWindow _this;
813 public Xcls_addpropsview(Xcls_MainWindow _owner )
816 _this.addpropsview = this;
817 this.el = new GtkClutter.Actor();
821 // set gobject values
828 this.el.add_constraint(
829 new Clutter.AlignConstraint(
830 _this.clutterembed.el.get_stage(),
831 Clutter.AlignAxis.X_AXIS,
836 this.el.fixed_x = 50.0f;
837 this.el.fixed_y = 0.0f;
838 //this.el.set_position(100,100);
839 this.el.set_pivot_point(0.0f,0.0f);
840 this.el.set_scale(0.0f,1.0f);
841 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
842 _this.clutterembed.el.get_stage().height);
847 // user defined functions
850 public class Xcls_projecteditview : Object
852 public GtkClutter.Actor el;
853 private Xcls_MainWindow _this;
859 public Xcls_projecteditview(Xcls_MainWindow _owner )
862 _this.projecteditview = this;
863 this.el = new GtkClutter.Actor();
867 // set gobject values
874 this.el.add_constraint(
875 new Clutter.AlignConstraint(
876 _this.clutterembed.el.get_stage(),
877 Clutter.AlignAxis.X_AXIS,
882 //this.el.set_position(100,100);
883 this.el.set_pivot_point(0.0f,0.0f);
884 this.el.set_scale(1.0f,0.0f);
885 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
886 _this.clutterembed.el.get_stage().height /2);
891 // user defined functions
894 public class Xcls_buttonlayout : Object
896 public Clutter.Actor el;
897 private Xcls_MainWindow _this;
903 public Xcls_buttonlayout(Xcls_MainWindow _owner )
906 _this.buttonlayout = this;
907 this.el = new Clutter.Actor();
911 // set gobject values
912 var child_0 = new Xcls_BoxLayout25( _this );
914 this.el.layout_manager = child_0.el;
915 var child_1 = new Xcls_backbutton( _this );
917 this.el.add_child ( child_1.el );
918 var child_2 = new Xcls_projectbutton( _this );
920 this.el.add_child ( child_2.el );
921 var child_3 = new Xcls_editfilebutton( _this );
923 this.el.add_child ( child_3.el );
924 var child_4 = new Xcls_projecteditbutton( _this );
926 this.el.add_child ( child_4.el );
927 var child_5 = new Xcls_objectshowbutton( _this );
929 this.el.add_child ( child_5.el );
930 var child_6 = new Xcls_addpropbutton( _this );
932 this.el.add_child ( child_6.el );
933 var child_7 = new Xcls_addlistenerbutton( _this );
935 this.el.add_child ( child_7.el );
936 var child_8 = new Xcls_addprojectbutton( _this );
938 this.el.add_child ( child_8.el );
939 var child_9 = new Xcls_addfilebutton( _this );
941 this.el.add_child ( child_9.el );
942 var child_10 = new Xcls_delprojectbutton( _this );
944 this.el.add_child ( child_10.el );
950 this.el.add_constraint(
951 new Clutter.AlignConstraint(
952 _this.clutterembed.el.get_stage(),
953 Clutter.AlignAxis.X_AXIS,
959 //this.el.set_position(100,100);
960 this.el.set_pivot_point(0.5f,0.5f);
962 _this.clutterembed.el.get_stage().height);
967 // user defined functions
969 public class Xcls_BoxLayout25 : Object
971 public Clutter.BoxLayout el;
972 private Xcls_MainWindow _this;
978 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
981 this.el = new Clutter.BoxLayout();
985 // set gobject values
986 this.el.orientation = Clutter.Orientation.VERTICAL;
989 // user defined functions
992 public class Xcls_backbutton : Object
994 public Clutter.Actor el;
995 private Xcls_MainWindow _this;
1001 public Xcls_backbutton(Xcls_MainWindow _owner )
1004 _this.backbutton = this;
1005 this.el = new Clutter.Actor();
1009 // set gobject values
1010 var child_0 = new Xcls_Actor27( _this );
1012 this.el.add_child ( child_0.el );
1016 this.el.set_size(50,50);
1019 // user defined functions
1021 public class Xcls_Actor27 : Object
1023 public GtkClutter.Actor el;
1024 private Xcls_MainWindow _this;
1030 public Xcls_Actor27(Xcls_MainWindow _owner )
1033 this.el = new GtkClutter.Actor();
1037 // set gobject values
1038 var child_0 = new Xcls_Button28( _this );
1043 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1046 // user defined functions
1048 public class Xcls_Button28 : Object
1050 public Gtk.Button el;
1051 private Xcls_MainWindow _this;
1057 public Xcls_Button28(Xcls_MainWindow _owner )
1060 this.el = new Gtk.Button();
1064 // set gobject values
1065 this.el.width_request = 50;
1066 this.el.height_request = 50;
1067 this.el.tooltip_text = "Back";
1068 var child_0 = new Xcls_Image29( _this );
1070 this.el.set_image ( child_0.el );
1073 this.el.clicked.connect( ( ) => {
1075 _this.windowstate.switchState(WindowState.State.PREVIEW);
1081 // user defined functions
1083 public class Xcls_Image29 : Object
1085 public Gtk.Image el;
1086 private Xcls_MainWindow _this;
1092 public Xcls_Image29(Xcls_MainWindow _owner )
1095 this.el = new Gtk.Image();
1099 // set gobject values
1100 this.el.icon_name = "go-previous";
1103 // user defined functions
1109 public class Xcls_projectbutton : Object
1111 public Clutter.Actor el;
1112 private Xcls_MainWindow _this;
1118 public Xcls_projectbutton(Xcls_MainWindow _owner )
1121 _this.projectbutton = this;
1122 this.el = new Clutter.Actor();
1126 // set gobject values
1127 var child_0 = new Xcls_Actor31( _this );
1129 this.el.add_child ( child_0.el );
1133 this.el.set_size(50,50);
1136 // user defined functions
1138 public class Xcls_Actor31 : Object
1140 public GtkClutter.Actor el;
1141 private Xcls_MainWindow _this;
1147 public Xcls_Actor31(Xcls_MainWindow _owner )
1150 this.el = new GtkClutter.Actor();
1154 // set gobject values
1155 var child_0 = new Xcls_Button32( _this );
1160 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1163 // user defined functions
1165 public class Xcls_Button32 : Object
1167 public Gtk.Button el;
1168 private Xcls_MainWindow _this;
1174 public Xcls_Button32(Xcls_MainWindow _owner )
1177 this.el = new Gtk.Button();
1181 // set gobject values
1182 this.el.width_request = 50;
1183 this.el.height_request = 50;
1184 var child_0 = new Xcls_Image33( _this );
1186 this.el.set_image ( child_0.el );
1189 this.el.clicked.connect( ( ) => {
1190 _this.windowstate.switchState(WindowState.State.FILES);
1196 // user defined functions
1198 public class Xcls_Image33 : Object
1200 public Gtk.Image el;
1201 private Xcls_MainWindow _this;
1207 public Xcls_Image33(Xcls_MainWindow _owner )
1210 this.el = new Gtk.Image();
1214 // set gobject values
1215 this.el.icon_name = "document-open";
1218 // user defined functions
1224 public class Xcls_editfilebutton : Object
1226 public Clutter.Actor el;
1227 private Xcls_MainWindow _this;
1233 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1236 _this.editfilebutton = this;
1237 this.el = new Clutter.Actor();
1241 // set gobject values
1242 var child_0 = new Xcls_Actor35( _this );
1244 this.el.add_child ( child_0.el );
1248 this.el.set_size(50.0f,50.0f);
1251 // user defined functions
1253 public class Xcls_Actor35 : Object
1255 public GtkClutter.Actor el;
1256 private Xcls_MainWindow _this;
1262 public Xcls_Actor35(Xcls_MainWindow _owner )
1265 this.el = new GtkClutter.Actor();
1269 // set gobject values
1270 var child_0 = new Xcls_Button36( _this );
1275 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1278 // user defined functions
1280 public class Xcls_Button36 : Object
1282 public Gtk.Button el;
1283 private Xcls_MainWindow _this;
1289 public Xcls_Button36(Xcls_MainWindow _owner )
1292 this.el = new Gtk.Button();
1296 // set gobject values
1297 this.el.width_request = 50;
1298 this.el.height_request = 50;
1299 this.el.tooltip_text = "File Details";
1300 var child_0 = new Xcls_Image37( _this );
1302 this.el.set_image ( child_0.el );
1305 this.el.clicked.connect( ( ) => {
1307 // create a new file in project..
1308 if (_this.project == null || _this.windowstate.file == null) {
1311 _this.windowstate.file_details.show(
1312 _this.windowstate.file, this.el
1321 // user defined functions
1323 public class Xcls_Image37 : Object
1325 public Gtk.Image el;
1326 private Xcls_MainWindow _this;
1332 public Xcls_Image37(Xcls_MainWindow _owner )
1335 this.el = new Gtk.Image();
1339 // set gobject values
1340 this.el.icon_name = "document-properties";
1343 // user defined functions
1349 public class Xcls_projecteditbutton : Object
1351 public Clutter.Actor el;
1352 private Xcls_MainWindow _this;
1358 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1361 _this.projecteditbutton = this;
1362 this.el = new Clutter.Actor();
1366 // set gobject values
1367 var child_0 = new Xcls_Actor39( _this );
1369 this.el.add_child ( child_0.el );
1373 this.el.set_size(50,50);
1376 // user defined functions
1378 public class Xcls_Actor39 : Object
1380 public GtkClutter.Actor el;
1381 private Xcls_MainWindow _this;
1387 public Xcls_Actor39(Xcls_MainWindow _owner )
1390 this.el = new GtkClutter.Actor();
1394 // set gobject values
1395 var child_0 = new Xcls_Button40( _this );
1400 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1403 // user defined functions
1405 public class Xcls_Button40 : Object
1407 public Gtk.Button el;
1408 private Xcls_MainWindow _this;
1414 public Xcls_Button40(Xcls_MainWindow _owner )
1417 this.el = new Gtk.Button();
1421 // set gobject values
1422 this.el.width_request = 50;
1423 this.el.height_request = 50;
1424 this.el.tooltip_text = "Project Details";
1425 var child_0 = new Xcls_Image41( _this );
1427 this.el.set_image ( child_0.el );
1430 this.el.clicked.connect( ( ) => {
1431 _this.windowstate.switchState(WindowState.State.PROJECT);
1438 // user defined functions
1440 public class Xcls_Image41 : Object
1442 public Gtk.Image el;
1443 private Xcls_MainWindow _this;
1449 public Xcls_Image41(Xcls_MainWindow _owner )
1452 this.el = new Gtk.Image();
1456 // set gobject values
1457 this.el.icon_name = "emblem-system";
1460 // user defined functions
1466 public class Xcls_objectshowbutton : Object
1468 public Clutter.Actor el;
1469 private Xcls_MainWindow _this;
1475 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1478 _this.objectshowbutton = this;
1479 this.el = new Clutter.Actor();
1483 // set gobject values
1484 var child_0 = new Xcls_Actor43( _this );
1486 this.el.add_child ( child_0.el );
1490 this.el.set_size(50,50);
1493 this.el.enter_event.connect( ( event) => {
1494 this.el.background_color = Clutter.Color.from_string("#333");
1497 this.el.leave_event.connect( ( event) => {
1498 this.el.background_color = Clutter.Color.from_string("#000");
1503 // user defined functions
1505 public class Xcls_Actor43 : Object
1507 public GtkClutter.Actor el;
1508 private Xcls_MainWindow _this;
1514 public Xcls_Actor43(Xcls_MainWindow _owner )
1517 this.el = new GtkClutter.Actor();
1521 // set gobject values
1522 var child_0 = new Xcls_Button44( _this );
1527 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1530 // user defined functions
1532 public class Xcls_Button44 : Object
1534 public Gtk.Button el;
1535 private Xcls_MainWindow _this;
1541 public Xcls_Button44(Xcls_MainWindow _owner )
1544 this.el = new Gtk.Button();
1548 // set gobject values
1549 this.el.width_request = 50;
1550 this.el.height_request = 50;
1551 this.el.tooltip_text = "Add Child Element";
1552 var child_0 = new Xcls_Image45( _this );
1554 this.el.set_image ( child_0.el );
1557 this.el.clicked.connect( ( ) => {
1559 _this.windowstate.switchState(WindowState.State.OBJECT);
1565 // user defined functions
1567 public class Xcls_Image45 : Object
1569 public Gtk.Image el;
1570 private Xcls_MainWindow _this;
1576 public Xcls_Image45(Xcls_MainWindow _owner )
1579 this.el = new Gtk.Image();
1583 // set gobject values
1584 this.el.icon_name = "list-add";
1587 // user defined functions
1593 public class Xcls_addpropbutton : Object
1595 public Clutter.Actor el;
1596 private Xcls_MainWindow _this;
1602 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1605 _this.addpropbutton = this;
1606 this.el = new Clutter.Actor();
1610 // set gobject values
1611 var child_0 = new Xcls_Actor47( _this );
1613 this.el.add_child ( child_0.el );
1617 this.el.set_size(50,50);
1620 // user defined functions
1622 public class Xcls_Actor47 : Object
1624 public GtkClutter.Actor el;
1625 private Xcls_MainWindow _this;
1631 public Xcls_Actor47(Xcls_MainWindow _owner )
1634 this.el = new GtkClutter.Actor();
1638 // set gobject values
1639 var child_0 = new Xcls_Button48( _this );
1644 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1647 // user defined functions
1649 public class Xcls_Button48 : Object
1651 public Gtk.Button el;
1652 private Xcls_MainWindow _this;
1658 public Xcls_Button48(Xcls_MainWindow _owner )
1661 this.el = new Gtk.Button();
1665 // set gobject values
1666 this.el.width_request = 50;
1667 this.el.height_request = 50;
1668 this.el.tooltip_text = "Add Property";
1669 var child_0 = new Xcls_Image49( _this );
1671 this.el.set_image ( child_0.el );
1674 this.el.clicked.connect( ( ) => {
1676 _this.windowstate.switchState(WindowState.State.PROP);
1682 // user defined functions
1684 public class Xcls_Image49 : Object
1686 public Gtk.Image el;
1687 private Xcls_MainWindow _this;
1693 public Xcls_Image49(Xcls_MainWindow _owner )
1696 this.el = new Gtk.Image();
1700 // set gobject values
1701 this.el.icon_name = "format-justify-left";
1704 // user defined functions
1710 public class Xcls_addlistenerbutton : Object
1712 public Clutter.Actor el;
1713 private Xcls_MainWindow _this;
1719 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1722 _this.addlistenerbutton = this;
1723 this.el = new Clutter.Actor();
1727 // set gobject values
1728 var child_0 = new Xcls_Actor51( _this );
1730 this.el.add_child ( child_0.el );
1734 this.el.set_size(50,50);
1737 // user defined functions
1739 public class Xcls_Actor51 : Object
1741 public GtkClutter.Actor el;
1742 private Xcls_MainWindow _this;
1748 public Xcls_Actor51(Xcls_MainWindow _owner )
1751 this.el = new GtkClutter.Actor();
1755 // set gobject values
1756 var child_0 = new Xcls_Button52( _this );
1761 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1764 // user defined functions
1766 public class Xcls_Button52 : Object
1768 public Gtk.Button el;
1769 private Xcls_MainWindow _this;
1775 public Xcls_Button52(Xcls_MainWindow _owner )
1778 this.el = new Gtk.Button();
1782 // set gobject values
1783 this.el.width_request = 50;
1784 this.el.height_request = 50;
1785 this.el.tooltip_text = "Add Event Code";
1786 var child_0 = new Xcls_Image53( _this );
1788 this.el.set_image ( child_0.el );
1791 this.el.clicked.connect( ( ) => {
1793 _this.windowstate.switchState(WindowState.State.LISTENER);
1800 // user defined functions
1802 public class Xcls_Image53 : Object
1804 public Gtk.Image el;
1805 private Xcls_MainWindow _this;
1811 public Xcls_Image53(Xcls_MainWindow _owner )
1814 this.el = new Gtk.Image();
1818 // set gobject values
1819 this.el.icon_name = "appointment-new";
1822 // user defined functions
1828 public class Xcls_addprojectbutton : Object
1830 public Clutter.Actor el;
1831 private Xcls_MainWindow _this;
1837 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1840 _this.addprojectbutton = this;
1841 this.el = new Clutter.Actor();
1845 // set gobject values
1846 var child_0 = new Xcls_Actor55( _this );
1848 this.el.add_child ( child_0.el );
1852 this.el.set_size(50.0f,50.0f);
1855 // user defined functions
1857 public class Xcls_Actor55 : Object
1859 public GtkClutter.Actor el;
1860 private Xcls_MainWindow _this;
1866 public Xcls_Actor55(Xcls_MainWindow _owner )
1869 this.el = new GtkClutter.Actor();
1873 // set gobject values
1874 var child_0 = new Xcls_Button56( _this );
1879 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1882 // user defined functions
1884 public class Xcls_Button56 : Object
1886 public Gtk.Button el;
1887 private Xcls_MainWindow _this;
1893 public Xcls_Button56(Xcls_MainWindow _owner )
1896 this.el = new Gtk.Button();
1900 // set gobject values
1901 this.el.width_request = 50;
1902 this.el.height_request = 50;
1903 this.el.tooltip_text = "New\nProj.";
1904 var child_0 = new Xcls_Image57( _this );
1906 this.el.set_image ( child_0.el );
1909 this.el.clicked.connect( ( ) => {
1911 // create a new file in project..
1912 //Xcls_DialogNewComponent.singleton().show(
1913 var pe = EditProject.singleton();
1914 pe.el.set_transient_for(_this.el);
1915 pe.el.set_modal(true);
1924 _this.windowstate.left_projects.is_loaded = false;
1925 _this.windowstate.left_projects.load();
1926 _this.windowstate.left_projects.selectProject(p);
1933 // user defined functions
1935 public class Xcls_Image57 : Object
1937 public Gtk.Image el;
1938 private Xcls_MainWindow _this;
1944 public Xcls_Image57(Xcls_MainWindow _owner )
1947 this.el = new Gtk.Image();
1951 // set gobject values
1952 this.el.icon_name = "folder-new";
1955 // user defined functions
1961 public class Xcls_addfilebutton : Object
1963 public Clutter.Actor el;
1964 private Xcls_MainWindow _this;
1970 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1973 _this.addfilebutton = this;
1974 this.el = new Clutter.Actor();
1978 // set gobject values
1979 var child_0 = new Xcls_Actor59( _this );
1981 this.el.add_child ( child_0.el );
1985 this.el.set_size(50.0f,50.0f);
1988 // user defined functions
1990 public class Xcls_Actor59 : Object
1992 public GtkClutter.Actor el;
1993 private Xcls_MainWindow _this;
1999 public Xcls_Actor59(Xcls_MainWindow _owner )
2002 this.el = new GtkClutter.Actor();
2006 // set gobject values
2007 var child_0 = new Xcls_Button60( _this );
2012 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2015 // user defined functions
2017 public class Xcls_Button60 : Object
2019 public Gtk.Button el;
2020 private Xcls_MainWindow _this;
2026 public Xcls_Button60(Xcls_MainWindow _owner )
2029 this.el = new Gtk.Button();
2033 // set gobject values
2034 this.el.width_request = 50;
2035 this.el.height_request = 50;
2036 this.el.tooltip_text = "Add File";
2037 var child_0 = new Xcls_Image61( _this );
2039 this.el.set_image ( child_0.el );
2042 this.el.clicked.connect( () => {
2043 // create a new file in project..
2044 print("add file selected\n");
2045 // what's the currently selected project...
2046 var proj = _this.windowstate.left_projects.getSelectedProject();
2049 print("no project selected?\n");
2053 print("creating file?");
2055 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2056 _this.project = proj;
2057 print("showing popup?");
2058 _this.windowstate.file_details.show(
2067 // user defined functions
2069 public class Xcls_Image61 : Object
2071 public Gtk.Image el;
2072 private Xcls_MainWindow _this;
2078 public Xcls_Image61(Xcls_MainWindow _owner )
2081 this.el = new Gtk.Image();
2085 // set gobject values
2086 this.el.icon_name = "document-new";
2089 // user defined functions
2095 public class Xcls_delprojectbutton : Object
2097 public Clutter.Actor el;
2098 private Xcls_MainWindow _this;
2104 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2107 _this.delprojectbutton = this;
2108 this.el = new Clutter.Actor();
2112 // set gobject values
2113 var child_0 = new Xcls_Actor63( _this );
2115 this.el.add_child ( child_0.el );
2119 this.el.set_size(50,50);
2122 // user defined functions
2124 public class Xcls_Actor63 : Object
2126 public GtkClutter.Actor el;
2127 private Xcls_MainWindow _this;
2133 public Xcls_Actor63(Xcls_MainWindow _owner )
2136 this.el = new GtkClutter.Actor();
2140 // set gobject values
2141 var child_0 = new Xcls_Button64( _this );
2146 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2149 // user defined functions
2151 public class Xcls_Button64 : Object
2153 public Gtk.Button el;
2154 private Xcls_MainWindow _this;
2160 public Xcls_Button64(Xcls_MainWindow _owner )
2163 this.el = new Gtk.Button();
2167 // set gobject values
2168 this.el.width_request = 50;
2169 this.el.height_request = 50;
2170 this.el.tooltip_text = "Delete Project";
2171 var child_0 = new Xcls_Image65( _this );
2173 this.el.set_image ( child_0.el );
2176 this.el.clicked.connect( ( ) => {
2178 var cd = DialogConfirm.singleton();
2179 cd.el.set_transient_for(_this.el);
2180 cd.el.set_modal(true);
2182 var project = _this.windowstate.left_projects.getSelectedProject();
2183 if (project == null) {
2184 print("SKIP - no project\n");
2189 if (Gtk.ResponseType.YES != cd.show("Confirm",
2190 "Are you sure you want to delete project %s".printf(project.name))) {
2196 Project.Project.remove(project);
2197 _this.project = null;
2199 _this.windowstate.left_projects.is_loaded = false;
2200 _this.windowstate.left_projects.load();
2201 _this.windowstate.clutterfiles.clearFiles();
2206 // user defined functions
2208 public class Xcls_Image65 : Object
2210 public Gtk.Image el;
2211 private Xcls_MainWindow _this;
2217 public Xcls_Image65(Xcls_MainWindow _owner )
2220 this.el = new Gtk.Image();
2224 // set gobject values
2225 this.el.icon_name = "user-trash";
2228 // user defined functions
2238 public class Xcls_Box66 : Object
2241 private Xcls_MainWindow _this;
2247 public Xcls_Box66(Xcls_MainWindow _owner )
2250 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2254 // set gobject values
2255 this.el.homogeneous = false;
2256 var child_0 = new Xcls_Label67( _this );
2258 this.el.pack_start ( child_0.el , true,true,0 );
2259 var child_1 = new Xcls_statusbar( _this );
2261 this.el.pack_start ( child_1.el , true,true,0 );
2262 var child_2 = new Xcls_search_entry( _this );
2264 this.el.pack_start ( child_2.el , false,true,0 );
2265 var child_3 = new Xcls_MenuBar70( _this );
2267 this.el.pack_end ( child_3.el , false,true,0 );
2270 // user defined functions
2272 public class Xcls_Label67 : Object
2274 public Gtk.Label el;
2275 private Xcls_MainWindow _this;
2281 public Xcls_Label67(Xcls_MainWindow _owner )
2284 this.el = new Gtk.Label( " " );
2288 // set gobject values
2291 // user defined functions
2294 public class Xcls_statusbar : Object
2296 public Gtk.ProgressBar el;
2297 private Xcls_MainWindow _this;
2301 public ulong handler_id;
2304 public Xcls_statusbar(Xcls_MainWindow _owner )
2307 _this.statusbar = this;
2308 this.el = new Gtk.ProgressBar();
2311 this.handler_id = -1;
2313 // set gobject values
2314 this.el.show_text = true;
2319 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2322 _this.mainpane.el.set_sensitive(true);
2326 _this.mainpane.el.set_sensitive(false);
2328 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2329 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2335 // user defined functions
2338 public class Xcls_search_entry : Object
2340 public Gtk.SearchEntry el;
2341 private Xcls_MainWindow _this;
2347 public Xcls_search_entry(Xcls_MainWindow _owner )
2350 _this.search_entry = this;
2351 this.el = new Gtk.SearchEntry();
2355 // set gobject values
2359 var description = Pango.FontDescription.from_string("monospace");
2360 description.set_size(8000);
2361 this.el.override_font(description);
2364 this.el.key_press_event.connect( (event) => {
2366 if (event.keyval == Gdk.Key.Return) {
2367 this.forwardSearch(false);
2371 // print(event.key.keyval)
2376 this.el.changed.connect( () => {
2377 if (this.el.text == "") {
2378 _this.search_results.el.hide();
2382 switch(_this.windowstate.state) {
2383 case WindowState.State.CODEONLY:
2384 case WindowState.State.CODE:
2385 // search the code being edited..
2386 res = _this.windowstate.code_editor.search(this.el.text);
2389 case WindowState.State.PREVIEW:
2390 if (_this.windowstate.file.xtype == "Gtk") {
2391 res = _this.windowstate.window_gladeview.search(this.el.text);
2393 res = _this.windowstate.window_rooview.search(this.el.text);
2399 _this.search_results.el.show();
2401 _this.search_results.el.label = "%d Matches".printf(res);
2403 _this.search_results.el.label = "No Matches";
2411 // user defined functions
2412 public void forwardSearch (bool change_focus) {
2413 switch(_this.windowstate.state) {
2414 case WindowState.State.CODEONLY:
2415 case WindowState.State.CODE:
2416 // search the code being edited..
2417 _this.windowstate.code_editor.forwardSearch(change_focus);
2420 case WindowState.State.PREVIEW:
2421 if (_this.windowstate.file.xtype == "Gtk") {
2422 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2424 _this.windowstate.window_rooview.forwardSearch(change_focus);
2433 public class Xcls_MenuBar70 : Object
2435 public Gtk.MenuBar el;
2436 private Xcls_MainWindow _this;
2442 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2445 this.el = new Gtk.MenuBar();
2449 // set gobject values
2450 var child_0 = new Xcls_search_results( _this );
2452 this.el.add ( child_0.el );
2453 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2455 this.el.add ( child_1.el );
2456 var child_2 = new Xcls_statusbar_errors( _this );
2458 this.el.add ( child_2.el );
2459 var child_3 = new Xcls_statusbar_warnings( _this );
2461 this.el.add ( child_3.el );
2462 var child_4 = new Xcls_statusbar_depricated( _this );
2464 this.el.add ( child_4.el );
2465 var child_5 = new Xcls_statusbar_run( _this );
2467 this.el.add ( child_5.el );
2470 // user defined functions
2472 public class Xcls_search_results : Object
2474 public Gtk.ImageMenuItem el;
2475 private Xcls_MainWindow _this;
2479 public Xcls_ValaCompileErrors popup;
2482 public Xcls_search_results(Xcls_MainWindow _owner )
2485 _this.search_results = this;
2486 this.el = new Gtk.ImageMenuItem();
2490 // set gobject values
2491 this.el.always_show_image = true;
2492 this.el.label = "Matches";
2493 var child_0 = new Xcls_Image72( _this );
2495 this.el.set_image ( child_0.el );
2498 this.el.button_press_event.connect( () => {
2500 if (this.popup == null) {
2501 this.popup = new Xcls_ValaCompileErrors();
2502 this.popup.window = _this;
2506 this.popup.show(this.notices, this.el);
2512 // user defined functions
2514 public class Xcls_Image72 : Object
2516 public Gtk.Image el;
2517 private Xcls_MainWindow _this;
2523 public Xcls_Image72(Xcls_MainWindow _owner )
2526 this.el = new Gtk.Image();
2530 // set gobject values
2531 this.el.icon_name = "system-search";
2532 this.el.sensitive = false;
2535 // user defined functions
2539 public class Xcls_statusbar_compilestatus_label : Object
2541 public Gtk.MenuItem el;
2542 private Xcls_MainWindow _this;
2548 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2551 _this.statusbar_compilestatus_label = this;
2552 this.el = new Gtk.MenuItem();
2556 // set gobject values
2557 this.el.label = "Compile Status:";
2560 // user defined functions
2563 public class Xcls_statusbar_errors : Object
2565 public Gtk.ImageMenuItem el;
2566 private Xcls_MainWindow _this;
2570 public Xcls_ValaCompileErrors popup;
2571 public Json.Object notices;
2574 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2577 _this.statusbar_errors = this;
2578 this.el = new Gtk.ImageMenuItem();
2581 this.notices = new Json.Object() ;
2583 // set gobject values
2584 this.el.always_show_image = true;
2585 this.el.label = "Errors";
2586 var child_0 = new Xcls_Image75( _this );
2588 this.el.set_image ( child_0.el );
2591 this.el.button_press_event.connect( () => {
2592 if (this.popup == null) {
2593 this.popup = new Xcls_ValaCompileErrors();
2594 this.popup.window = _this;
2598 this.popup.show(this.notices, this.el);
2603 // user defined functions
2604 public void setNotices (Json.Object nots, int qty) {
2606 this.el.label = qty.to_string() + " Errors";
2607 this.notices = nots;
2611 public class Xcls_Image75 : Object
2613 public Gtk.Image el;
2614 private Xcls_MainWindow _this;
2620 public Xcls_Image75(Xcls_MainWindow _owner )
2623 this.el = new Gtk.Image();
2627 // set gobject values
2628 this.el.icon_name = "dialog-error";
2631 // user defined functions
2635 public class Xcls_statusbar_warnings : Object
2637 public Gtk.ImageMenuItem el;
2638 private Xcls_MainWindow _this;
2642 public Xcls_ValaCompileErrors popup;
2643 public Json.Object notices;
2646 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2649 _this.statusbar_warnings = this;
2650 this.el = new Gtk.ImageMenuItem();
2653 this.notices = new Json.Object();
2655 // set gobject values
2656 this.el.always_show_image = true;
2657 this.el.label = "Warnings";
2658 var child_0 = new Xcls_Image77( _this );
2660 this.el.set_image ( child_0.el );
2663 this.el.button_press_event.connect( () => {
2664 if (this.popup == null) {
2665 this.popup = new Xcls_ValaCompileErrors();
2666 this.popup.window = _this;
2669 this.popup.show(this.notices, this.el);
2674 // user defined functions
2675 public void setNotices (Json.Object nots, int qty) {
2677 this.el.label = qty.to_string() + " Warnings";
2678 this.notices = nots;
2682 public class Xcls_Image77 : Object
2684 public Gtk.Image el;
2685 private Xcls_MainWindow _this;
2691 public Xcls_Image77(Xcls_MainWindow _owner )
2694 this.el = new Gtk.Image();
2698 // set gobject values
2699 this.el.icon_name = "dialog-warning";
2702 // user defined functions
2706 public class Xcls_statusbar_depricated : Object
2708 public Gtk.ImageMenuItem el;
2709 private Xcls_MainWindow _this;
2713 public Xcls_ValaCompileErrors popup;
2714 public Json.Object notices;
2717 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2720 _this.statusbar_depricated = this;
2721 this.el = new Gtk.ImageMenuItem();
2724 this.notices = new Json.Object();
2726 // set gobject values
2727 this.el.always_show_image = true;
2728 this.el.label = "Depricated";
2729 var child_0 = new Xcls_Image79( _this );
2731 this.el.set_image ( child_0.el );
2734 this.el.button_press_event.connect( () => {
2735 if (this.popup == null) {
2736 this.popup = new Xcls_ValaCompileErrors();
2737 this.popup.window = _this;
2741 this.popup.show(this.notices, this.el);
2746 // user defined functions
2747 public void setNotices (Json.Object nots, int qty) {
2749 this.el.label = qty.to_string() + " Depricated";
2750 this.notices = nots;
2754 public class Xcls_Image79 : Object
2756 public Gtk.Image el;
2757 private Xcls_MainWindow _this;
2763 public Xcls_Image79(Xcls_MainWindow _owner )
2766 this.el = new Gtk.Image();
2770 // set gobject values
2771 this.el.icon_name = "dialog-information";
2774 // user defined functions
2778 public class Xcls_statusbar_run : Object
2780 public Gtk.ImageMenuItem el;
2781 private Xcls_MainWindow _this;
2785 public Xcls_ValaCompileErrors popup;
2788 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2791 _this.statusbar_run = this;
2792 this.el = new Gtk.ImageMenuItem();
2796 // set gobject values
2797 this.el.always_show_image = true;
2798 this.el.label = "Run";
2799 var child_0 = new Xcls_Image81( _this );
2801 this.el.set_image ( child_0.el );
2804 this.el.button_press_event.connect( () => {
2805 if (_this.windowstate.file == null) {
2808 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2810 _this.windowstate.compile_results.show(this.el,true);
2816 // user defined functions
2818 public class Xcls_Image81 : Object
2820 public Gtk.Image el;
2821 private Xcls_MainWindow _this;
2827 public Xcls_Image81(Xcls_MainWindow _owner )
2830 this.el = new Gtk.Image();
2834 // set gobject values
2835 this.el.icon_name = "media-playback-start";
2838 // user defined functions