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 this.openNewWindow();
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 return_type openNewWindow () {
163 Xcls_MainWindow.singleton().no_windows++;
164 var w = new Xcls_MainWindow();
169 w.windowstate.switchState(WindowState.State.FILES);
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 _this.openNewWindow();
318 // user defined functions
321 public class Xcls_SeparatorMenuItem7 : Object
323 public Gtk.SeparatorMenuItem el;
324 private Xcls_MainWindow _this;
330 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
333 this.el = new Gtk.SeparatorMenuItem();
337 // set gobject values
340 // user defined functions
343 public class Xcls_MenuItem8 : Object
345 public Gtk.MenuItem el;
346 private Xcls_MainWindow _this;
352 public Xcls_MenuItem8(Xcls_MainWindow _owner )
355 this.el = new Gtk.MenuItem();
359 // set gobject values
360 this.el.label = "Download updated Resources";
363 this.el.activate.connect( ( ) => {
364 Resources.singleton().fetchStart();
368 // user defined functions
371 public class Xcls_MenuItem9 : Object
373 public Gtk.MenuItem el;
374 private Xcls_MainWindow _this;
380 public Xcls_MenuItem9(Xcls_MainWindow _owner )
383 this.el = new Gtk.MenuItem();
387 // set gobject values
388 this.el.label = "About the Builder";
391 this.el.activate.connect( () => {
392 About.singleton().el.show();
396 // user defined functions
400 public class Xcls_Image10 : Object
403 private Xcls_MainWindow _this;
409 public Xcls_Image10(Xcls_MainWindow _owner )
412 this.el = new Gtk.Image();
416 // set gobject values
417 this.el.icon_name = "help-about";
420 // user defined functions
426 public class Xcls_vbox : Object
429 private Xcls_MainWindow _this;
435 public Xcls_vbox(Xcls_MainWindow _owner )
439 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
443 // set gobject values
444 this.el.homogeneous = false;
445 var child_0 = new Xcls_mainpane( _this );
447 this.el.pack_start ( child_0.el , true,true,0 );
448 var child_1 = new Xcls_Box66( _this );
450 this.el.pack_end ( child_1.el , false,true,0 );
453 // user defined functions
455 public class Xcls_mainpane : Object
458 private Xcls_MainWindow _this;
462 public int lastWidth;
465 public Xcls_mainpane(Xcls_MainWindow _owner )
468 _this.mainpane = this;
469 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
474 // set gobject values
475 this.el.position = 400;
476 var child_0 = new Xcls_leftpane( _this );
478 this.el.add1 ( child_0.el );
479 var child_1 = new Xcls_Box17( _this );
481 this.el.add2 ( child_1.el );
484 // user defined functions
486 public class Xcls_leftpane : Object
489 private Xcls_MainWindow _this;
495 public Xcls_leftpane(Xcls_MainWindow _owner )
498 _this.leftpane = this;
499 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
503 // set gobject values
504 var child_0 = new Xcls_editpane( _this );
506 this.el.pack_start ( child_0.el , true,true,0 );
509 // user defined functions
511 public class Xcls_editpane : Object
514 private Xcls_MainWindow _this;
520 public Xcls_editpane(Xcls_MainWindow _owner )
523 _this.editpane = this;
524 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
528 // set gobject values
529 var child_0 = new Xcls_tree( _this );
531 this.el.add1 ( child_0.el );
532 var child_1 = new Xcls_props( _this );
534 this.el.add2 ( child_1.el );
537 // user defined functions
539 public class Xcls_tree : Object
542 private Xcls_MainWindow _this;
548 public Xcls_tree(Xcls_MainWindow _owner )
552 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
556 // set gobject values
559 // user defined functions
562 public class Xcls_props : Object
565 private Xcls_MainWindow _this;
571 public Xcls_props(Xcls_MainWindow _owner )
575 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
579 // set gobject values
582 // user defined functions
587 public class Xcls_Box17 : Object
590 private Xcls_MainWindow _this;
596 public Xcls_Box17(Xcls_MainWindow _owner )
599 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
603 // set gobject values
604 var child_0 = new Xcls_clutterembed( _this );
606 this.el.pack_start ( child_0.el , true,true,0 );
609 // user defined functions
611 public class Xcls_clutterembed : Object
613 public GtkClutter.Embed el;
614 private Xcls_MainWindow _this;
620 public Xcls_clutterembed(Xcls_MainWindow _owner )
623 _this.clutterembed = this;
624 this.el = new GtkClutter.Embed();
628 // set gobject values
629 var child_0 = new Xcls_rooview( _this );
631 this.el.get_stage().add_child ( child_0.el );
632 var child_1 = new Xcls_objectview( _this );
634 this.el.get_stage().add_child ( child_1.el );
635 var child_2 = new Xcls_codeeditview( _this );
637 this.el.get_stage().add_child ( child_2.el );
638 var child_3 = new Xcls_addpropsview( _this );
640 this.el.get_stage().add_child ( child_3.el );
641 var child_4 = new Xcls_projecteditview( _this );
643 this.el.get_stage().add_child ( child_4.el );
644 var child_5 = new Xcls_buttonlayout( _this );
646 this.el.get_stage().add_child ( child_5.el );
650 var stage = this.el.get_stage();
651 stage.set_background_color( Clutter.Color.from_string("#000"));
654 this.el.size_allocate.connect( ( alloc) => {
655 if (_this.windowstate == null) {
658 _this.windowstate.resizeCanvas();
663 // user defined functions
665 public class Xcls_rooview : Object
667 public GtkClutter.Actor el;
668 private Xcls_MainWindow _this;
674 public Xcls_rooview(Xcls_MainWindow _owner )
677 _this.rooview = this;
678 this.el = new GtkClutter.Actor();
682 // set gobject values
689 this.el.add_constraint(
690 new Clutter.AlignConstraint(
691 _this.clutterembed.el.get_stage(),
692 Clutter.AlignAxis.X_AXIS,
697 //this.el.set_position(100,100);
698 this.el.set_pivot_point(1.0f,1.0f);
700 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
701 _this.clutterembed.el.get_stage().height);
706 // user defined functions
709 public class Xcls_objectview : Object
711 public GtkClutter.Actor el;
712 private Xcls_MainWindow _this;
718 public Xcls_objectview(Xcls_MainWindow _owner )
721 _this.objectview = this;
722 this.el = new GtkClutter.Actor();
726 // set gobject values
733 this.el.add_constraint(
734 new Clutter.AlignConstraint(
735 _this.clutterembed.el.get_stage(),
736 Clutter.AlignAxis.X_AXIS,
741 this.el.fixed_x = 50.0f;
742 this.el.fixed_y = 0.0f;
743 //this.el.set_position(100,100);
744 this.el.set_pivot_point(0.0f,0.0f);
745 this.el.set_scale(0.0f,1.0f);
746 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
747 _this.clutterembed.el.get_stage().height);
752 // user defined functions
755 public class Xcls_codeeditview : Object
757 public GtkClutter.Actor el;
758 private Xcls_MainWindow _this;
764 public Xcls_codeeditview(Xcls_MainWindow _owner )
767 _this.codeeditview = this;
768 this.el = new GtkClutter.Actor();
772 // set gobject values
779 this.el.add_constraint(
780 new Clutter.AlignConstraint(
781 _this.clutterembed.el.get_stage(),
782 Clutter.AlignAxis.X_AXIS,
787 this.el.fixed_x = 50.0f;
788 this.el.fixed_y = 0.0f;
789 //this.el.set_position(100,100);
790 this.el.set_pivot_point(0.0f,0.0f);
791 this.el.set_scale(0.0f,1.0f);
792 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
793 _this.clutterembed.el.get_stage().height);
798 // user defined functions
801 public class Xcls_addpropsview : Object
803 public GtkClutter.Actor el;
804 private Xcls_MainWindow _this;
810 public Xcls_addpropsview(Xcls_MainWindow _owner )
813 _this.addpropsview = this;
814 this.el = new GtkClutter.Actor();
818 // set gobject values
825 this.el.add_constraint(
826 new Clutter.AlignConstraint(
827 _this.clutterembed.el.get_stage(),
828 Clutter.AlignAxis.X_AXIS,
833 this.el.fixed_x = 50.0f;
834 this.el.fixed_y = 0.0f;
835 //this.el.set_position(100,100);
836 this.el.set_pivot_point(0.0f,0.0f);
837 this.el.set_scale(0.0f,1.0f);
838 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
839 _this.clutterembed.el.get_stage().height);
844 // user defined functions
847 public class Xcls_projecteditview : Object
849 public GtkClutter.Actor el;
850 private Xcls_MainWindow _this;
856 public Xcls_projecteditview(Xcls_MainWindow _owner )
859 _this.projecteditview = this;
860 this.el = new GtkClutter.Actor();
864 // set gobject values
871 this.el.add_constraint(
872 new Clutter.AlignConstraint(
873 _this.clutterembed.el.get_stage(),
874 Clutter.AlignAxis.X_AXIS,
879 //this.el.set_position(100,100);
880 this.el.set_pivot_point(0.0f,0.0f);
881 this.el.set_scale(1.0f,0.0f);
882 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
883 _this.clutterembed.el.get_stage().height /2);
888 // user defined functions
891 public class Xcls_buttonlayout : Object
893 public Clutter.Actor el;
894 private Xcls_MainWindow _this;
900 public Xcls_buttonlayout(Xcls_MainWindow _owner )
903 _this.buttonlayout = this;
904 this.el = new Clutter.Actor();
908 // set gobject values
909 var child_0 = new Xcls_BoxLayout25( _this );
911 this.el.layout_manager = child_0.el;
912 var child_1 = new Xcls_backbutton( _this );
914 this.el.add_child ( child_1.el );
915 var child_2 = new Xcls_projectbutton( _this );
917 this.el.add_child ( child_2.el );
918 var child_3 = new Xcls_editfilebutton( _this );
920 this.el.add_child ( child_3.el );
921 var child_4 = new Xcls_projecteditbutton( _this );
923 this.el.add_child ( child_4.el );
924 var child_5 = new Xcls_objectshowbutton( _this );
926 this.el.add_child ( child_5.el );
927 var child_6 = new Xcls_addpropbutton( _this );
929 this.el.add_child ( child_6.el );
930 var child_7 = new Xcls_addlistenerbutton( _this );
932 this.el.add_child ( child_7.el );
933 var child_8 = new Xcls_addprojectbutton( _this );
935 this.el.add_child ( child_8.el );
936 var child_9 = new Xcls_addfilebutton( _this );
938 this.el.add_child ( child_9.el );
939 var child_10 = new Xcls_delprojectbutton( _this );
941 this.el.add_child ( child_10.el );
947 this.el.add_constraint(
948 new Clutter.AlignConstraint(
949 _this.clutterembed.el.get_stage(),
950 Clutter.AlignAxis.X_AXIS,
956 //this.el.set_position(100,100);
957 this.el.set_pivot_point(0.5f,0.5f);
959 _this.clutterembed.el.get_stage().height);
964 // user defined functions
966 public class Xcls_BoxLayout25 : Object
968 public Clutter.BoxLayout el;
969 private Xcls_MainWindow _this;
975 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
978 this.el = new Clutter.BoxLayout();
982 // set gobject values
983 this.el.orientation = Clutter.Orientation.VERTICAL;
986 // user defined functions
989 public class Xcls_backbutton : Object
991 public Clutter.Actor el;
992 private Xcls_MainWindow _this;
998 public Xcls_backbutton(Xcls_MainWindow _owner )
1001 _this.backbutton = this;
1002 this.el = new Clutter.Actor();
1006 // set gobject values
1007 var child_0 = new Xcls_Actor27( _this );
1009 this.el.add_child ( child_0.el );
1013 this.el.set_size(50,50);
1016 // user defined functions
1018 public class Xcls_Actor27 : Object
1020 public GtkClutter.Actor el;
1021 private Xcls_MainWindow _this;
1027 public Xcls_Actor27(Xcls_MainWindow _owner )
1030 this.el = new GtkClutter.Actor();
1034 // set gobject values
1035 var child_0 = new Xcls_Button28( _this );
1040 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1043 // user defined functions
1045 public class Xcls_Button28 : Object
1047 public Gtk.Button el;
1048 private Xcls_MainWindow _this;
1054 public Xcls_Button28(Xcls_MainWindow _owner )
1057 this.el = new Gtk.Button();
1061 // set gobject values
1062 this.el.width_request = 50;
1063 this.el.height_request = 50;
1064 this.el.tooltip_text = "Back";
1065 var child_0 = new Xcls_Image29( _this );
1067 this.el.set_image ( child_0.el );
1070 this.el.clicked.connect( ( ) => {
1072 _this.windowstate.switchState(WindowState.State.PREVIEW);
1078 // user defined functions
1080 public class Xcls_Image29 : Object
1082 public Gtk.Image el;
1083 private Xcls_MainWindow _this;
1089 public Xcls_Image29(Xcls_MainWindow _owner )
1092 this.el = new Gtk.Image();
1096 // set gobject values
1097 this.el.icon_name = "go-previous";
1100 // user defined functions
1106 public class Xcls_projectbutton : Object
1108 public Clutter.Actor el;
1109 private Xcls_MainWindow _this;
1115 public Xcls_projectbutton(Xcls_MainWindow _owner )
1118 _this.projectbutton = this;
1119 this.el = new Clutter.Actor();
1123 // set gobject values
1124 var child_0 = new Xcls_Actor31( _this );
1126 this.el.add_child ( child_0.el );
1130 this.el.set_size(50,50);
1133 // user defined functions
1135 public class Xcls_Actor31 : Object
1137 public GtkClutter.Actor el;
1138 private Xcls_MainWindow _this;
1144 public Xcls_Actor31(Xcls_MainWindow _owner )
1147 this.el = new GtkClutter.Actor();
1151 // set gobject values
1152 var child_0 = new Xcls_Button32( _this );
1157 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1160 // user defined functions
1162 public class Xcls_Button32 : Object
1164 public Gtk.Button el;
1165 private Xcls_MainWindow _this;
1171 public Xcls_Button32(Xcls_MainWindow _owner )
1174 this.el = new Gtk.Button();
1178 // set gobject values
1179 this.el.width_request = 50;
1180 this.el.height_request = 50;
1181 var child_0 = new Xcls_Image33( _this );
1183 this.el.set_image ( child_0.el );
1186 this.el.clicked.connect( ( ) => {
1187 _this.windowstate.switchState(WindowState.State.FILES);
1193 // user defined functions
1195 public class Xcls_Image33 : Object
1197 public Gtk.Image el;
1198 private Xcls_MainWindow _this;
1204 public Xcls_Image33(Xcls_MainWindow _owner )
1207 this.el = new Gtk.Image();
1211 // set gobject values
1212 this.el.icon_name = "document-open";
1215 // user defined functions
1221 public class Xcls_editfilebutton : Object
1223 public Clutter.Actor el;
1224 private Xcls_MainWindow _this;
1230 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1233 _this.editfilebutton = this;
1234 this.el = new Clutter.Actor();
1238 // set gobject values
1239 var child_0 = new Xcls_Actor35( _this );
1241 this.el.add_child ( child_0.el );
1245 this.el.set_size(50.0f,50.0f);
1248 // user defined functions
1250 public class Xcls_Actor35 : Object
1252 public GtkClutter.Actor el;
1253 private Xcls_MainWindow _this;
1259 public Xcls_Actor35(Xcls_MainWindow _owner )
1262 this.el = new GtkClutter.Actor();
1266 // set gobject values
1267 var child_0 = new Xcls_Button36( _this );
1272 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1275 // user defined functions
1277 public class Xcls_Button36 : Object
1279 public Gtk.Button el;
1280 private Xcls_MainWindow _this;
1286 public Xcls_Button36(Xcls_MainWindow _owner )
1289 this.el = new Gtk.Button();
1293 // set gobject values
1294 this.el.width_request = 50;
1295 this.el.height_request = 50;
1296 this.el.tooltip_text = "File Details";
1297 var child_0 = new Xcls_Image37( _this );
1299 this.el.set_image ( child_0.el );
1302 this.el.clicked.connect( ( ) => {
1304 // create a new file in project..
1305 if (_this.project == null || _this.windowstate.file == null) {
1308 _this.windowstate.file_details.show(
1309 _this.windowstate.file, this.el
1318 // user defined functions
1320 public class Xcls_Image37 : Object
1322 public Gtk.Image el;
1323 private Xcls_MainWindow _this;
1329 public Xcls_Image37(Xcls_MainWindow _owner )
1332 this.el = new Gtk.Image();
1336 // set gobject values
1337 this.el.icon_name = "document-properties";
1340 // user defined functions
1346 public class Xcls_projecteditbutton : Object
1348 public Clutter.Actor el;
1349 private Xcls_MainWindow _this;
1355 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1358 _this.projecteditbutton = this;
1359 this.el = new Clutter.Actor();
1363 // set gobject values
1364 var child_0 = new Xcls_Actor39( _this );
1366 this.el.add_child ( child_0.el );
1370 this.el.set_size(50,50);
1373 // user defined functions
1375 public class Xcls_Actor39 : Object
1377 public GtkClutter.Actor el;
1378 private Xcls_MainWindow _this;
1384 public Xcls_Actor39(Xcls_MainWindow _owner )
1387 this.el = new GtkClutter.Actor();
1391 // set gobject values
1392 var child_0 = new Xcls_Button40( _this );
1397 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1400 // user defined functions
1402 public class Xcls_Button40 : Object
1404 public Gtk.Button el;
1405 private Xcls_MainWindow _this;
1411 public Xcls_Button40(Xcls_MainWindow _owner )
1414 this.el = new Gtk.Button();
1418 // set gobject values
1419 this.el.width_request = 50;
1420 this.el.height_request = 50;
1421 this.el.tooltip_text = "Project Details";
1422 var child_0 = new Xcls_Image41( _this );
1424 this.el.set_image ( child_0.el );
1427 this.el.clicked.connect( ( ) => {
1428 _this.windowstate.switchState(WindowState.State.PROJECT);
1435 // user defined functions
1437 public class Xcls_Image41 : Object
1439 public Gtk.Image el;
1440 private Xcls_MainWindow _this;
1446 public Xcls_Image41(Xcls_MainWindow _owner )
1449 this.el = new Gtk.Image();
1453 // set gobject values
1454 this.el.icon_name = "emblem-system";
1457 // user defined functions
1463 public class Xcls_objectshowbutton : Object
1465 public Clutter.Actor el;
1466 private Xcls_MainWindow _this;
1472 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1475 _this.objectshowbutton = this;
1476 this.el = new Clutter.Actor();
1480 // set gobject values
1481 var child_0 = new Xcls_Actor43( _this );
1483 this.el.add_child ( child_0.el );
1487 this.el.set_size(50,50);
1490 this.el.enter_event.connect( ( event) => {
1491 this.el.background_color = Clutter.Color.from_string("#333");
1494 this.el.leave_event.connect( ( event) => {
1495 this.el.background_color = Clutter.Color.from_string("#000");
1500 // user defined functions
1502 public class Xcls_Actor43 : Object
1504 public GtkClutter.Actor el;
1505 private Xcls_MainWindow _this;
1511 public Xcls_Actor43(Xcls_MainWindow _owner )
1514 this.el = new GtkClutter.Actor();
1518 // set gobject values
1519 var child_0 = new Xcls_Button44( _this );
1524 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1527 // user defined functions
1529 public class Xcls_Button44 : Object
1531 public Gtk.Button el;
1532 private Xcls_MainWindow _this;
1538 public Xcls_Button44(Xcls_MainWindow _owner )
1541 this.el = new Gtk.Button();
1545 // set gobject values
1546 this.el.width_request = 50;
1547 this.el.height_request = 50;
1548 this.el.tooltip_text = "Add Child Element";
1549 var child_0 = new Xcls_Image45( _this );
1551 this.el.set_image ( child_0.el );
1554 this.el.clicked.connect( ( ) => {
1556 _this.windowstate.switchState(WindowState.State.OBJECT);
1562 // user defined functions
1564 public class Xcls_Image45 : Object
1566 public Gtk.Image el;
1567 private Xcls_MainWindow _this;
1573 public Xcls_Image45(Xcls_MainWindow _owner )
1576 this.el = new Gtk.Image();
1580 // set gobject values
1581 this.el.icon_name = "list-add";
1584 // user defined functions
1590 public class Xcls_addpropbutton : Object
1592 public Clutter.Actor el;
1593 private Xcls_MainWindow _this;
1599 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1602 _this.addpropbutton = this;
1603 this.el = new Clutter.Actor();
1607 // set gobject values
1608 var child_0 = new Xcls_Actor47( _this );
1610 this.el.add_child ( child_0.el );
1614 this.el.set_size(50,50);
1617 // user defined functions
1619 public class Xcls_Actor47 : Object
1621 public GtkClutter.Actor el;
1622 private Xcls_MainWindow _this;
1628 public Xcls_Actor47(Xcls_MainWindow _owner )
1631 this.el = new GtkClutter.Actor();
1635 // set gobject values
1636 var child_0 = new Xcls_Button48( _this );
1641 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1644 // user defined functions
1646 public class Xcls_Button48 : Object
1648 public Gtk.Button el;
1649 private Xcls_MainWindow _this;
1655 public Xcls_Button48(Xcls_MainWindow _owner )
1658 this.el = new Gtk.Button();
1662 // set gobject values
1663 this.el.width_request = 50;
1664 this.el.height_request = 50;
1665 this.el.tooltip_text = "Add Property";
1666 var child_0 = new Xcls_Image49( _this );
1668 this.el.set_image ( child_0.el );
1671 this.el.clicked.connect( ( ) => {
1673 _this.windowstate.switchState(WindowState.State.PROP);
1679 // user defined functions
1681 public class Xcls_Image49 : Object
1683 public Gtk.Image el;
1684 private Xcls_MainWindow _this;
1690 public Xcls_Image49(Xcls_MainWindow _owner )
1693 this.el = new Gtk.Image();
1697 // set gobject values
1698 this.el.icon_name = "format-justify-left";
1701 // user defined functions
1707 public class Xcls_addlistenerbutton : Object
1709 public Clutter.Actor el;
1710 private Xcls_MainWindow _this;
1716 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1719 _this.addlistenerbutton = this;
1720 this.el = new Clutter.Actor();
1724 // set gobject values
1725 var child_0 = new Xcls_Actor51( _this );
1727 this.el.add_child ( child_0.el );
1731 this.el.set_size(50,50);
1734 // user defined functions
1736 public class Xcls_Actor51 : Object
1738 public GtkClutter.Actor el;
1739 private Xcls_MainWindow _this;
1745 public Xcls_Actor51(Xcls_MainWindow _owner )
1748 this.el = new GtkClutter.Actor();
1752 // set gobject values
1753 var child_0 = new Xcls_Button52( _this );
1758 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1761 // user defined functions
1763 public class Xcls_Button52 : Object
1765 public Gtk.Button el;
1766 private Xcls_MainWindow _this;
1772 public Xcls_Button52(Xcls_MainWindow _owner )
1775 this.el = new Gtk.Button();
1779 // set gobject values
1780 this.el.width_request = 50;
1781 this.el.height_request = 50;
1782 this.el.tooltip_text = "Add Event Code";
1783 var child_0 = new Xcls_Image53( _this );
1785 this.el.set_image ( child_0.el );
1788 this.el.clicked.connect( ( ) => {
1790 _this.windowstate.switchState(WindowState.State.LISTENER);
1797 // user defined functions
1799 public class Xcls_Image53 : Object
1801 public Gtk.Image el;
1802 private Xcls_MainWindow _this;
1808 public Xcls_Image53(Xcls_MainWindow _owner )
1811 this.el = new Gtk.Image();
1815 // set gobject values
1816 this.el.icon_name = "appointment-new";
1819 // user defined functions
1825 public class Xcls_addprojectbutton : Object
1827 public Clutter.Actor el;
1828 private Xcls_MainWindow _this;
1834 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1837 _this.addprojectbutton = this;
1838 this.el = new Clutter.Actor();
1842 // set gobject values
1843 var child_0 = new Xcls_Actor55( _this );
1845 this.el.add_child ( child_0.el );
1849 this.el.set_size(50.0f,50.0f);
1852 // user defined functions
1854 public class Xcls_Actor55 : Object
1856 public GtkClutter.Actor el;
1857 private Xcls_MainWindow _this;
1863 public Xcls_Actor55(Xcls_MainWindow _owner )
1866 this.el = new GtkClutter.Actor();
1870 // set gobject values
1871 var child_0 = new Xcls_Button56( _this );
1876 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1879 // user defined functions
1881 public class Xcls_Button56 : Object
1883 public Gtk.Button el;
1884 private Xcls_MainWindow _this;
1890 public Xcls_Button56(Xcls_MainWindow _owner )
1893 this.el = new Gtk.Button();
1897 // set gobject values
1898 this.el.width_request = 50;
1899 this.el.height_request = 50;
1900 this.el.tooltip_text = "New\nProj.";
1901 var child_0 = new Xcls_Image57( _this );
1903 this.el.set_image ( child_0.el );
1906 this.el.clicked.connect( ( ) => {
1908 // create a new file in project..
1909 //Xcls_DialogNewComponent.singleton().show(
1910 var pe = EditProject.singleton();
1911 pe.el.set_transient_for(_this.el);
1912 pe.el.set_modal(true);
1921 _this.windowstate.left_projects.is_loaded = false;
1922 _this.windowstate.left_projects.load();
1923 _this.windowstate.left_projects.selectProject(p);
1930 // user defined functions
1932 public class Xcls_Image57 : Object
1934 public Gtk.Image el;
1935 private Xcls_MainWindow _this;
1941 public Xcls_Image57(Xcls_MainWindow _owner )
1944 this.el = new Gtk.Image();
1948 // set gobject values
1949 this.el.icon_name = "folder-new";
1952 // user defined functions
1958 public class Xcls_addfilebutton : Object
1960 public Clutter.Actor el;
1961 private Xcls_MainWindow _this;
1967 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1970 _this.addfilebutton = this;
1971 this.el = new Clutter.Actor();
1975 // set gobject values
1976 var child_0 = new Xcls_Actor59( _this );
1978 this.el.add_child ( child_0.el );
1982 this.el.set_size(50.0f,50.0f);
1985 // user defined functions
1987 public class Xcls_Actor59 : Object
1989 public GtkClutter.Actor el;
1990 private Xcls_MainWindow _this;
1996 public Xcls_Actor59(Xcls_MainWindow _owner )
1999 this.el = new GtkClutter.Actor();
2003 // set gobject values
2004 var child_0 = new Xcls_Button60( _this );
2009 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2012 // user defined functions
2014 public class Xcls_Button60 : Object
2016 public Gtk.Button el;
2017 private Xcls_MainWindow _this;
2023 public Xcls_Button60(Xcls_MainWindow _owner )
2026 this.el = new Gtk.Button();
2030 // set gobject values
2031 this.el.width_request = 50;
2032 this.el.height_request = 50;
2033 this.el.tooltip_text = "Add File";
2034 var child_0 = new Xcls_Image61( _this );
2036 this.el.set_image ( child_0.el );
2039 this.el.clicked.connect( () => {
2040 // create a new file in project..
2041 print("add file selected\n");
2042 // what's the currently selected project...
2043 var proj = _this.windowstate.left_projects.getSelectedProject();
2046 print("no project selected?\n");
2050 print("creating file?");
2052 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2053 _this.project = proj;
2054 print("showing popup?");
2055 _this.windowstate.file_details.show(
2064 // user defined functions
2066 public class Xcls_Image61 : Object
2068 public Gtk.Image el;
2069 private Xcls_MainWindow _this;
2075 public Xcls_Image61(Xcls_MainWindow _owner )
2078 this.el = new Gtk.Image();
2082 // set gobject values
2083 this.el.icon_name = "document-new";
2086 // user defined functions
2092 public class Xcls_delprojectbutton : Object
2094 public Clutter.Actor el;
2095 private Xcls_MainWindow _this;
2101 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2104 _this.delprojectbutton = this;
2105 this.el = new Clutter.Actor();
2109 // set gobject values
2110 var child_0 = new Xcls_Actor63( _this );
2112 this.el.add_child ( child_0.el );
2116 this.el.set_size(50,50);
2119 // user defined functions
2121 public class Xcls_Actor63 : Object
2123 public GtkClutter.Actor el;
2124 private Xcls_MainWindow _this;
2130 public Xcls_Actor63(Xcls_MainWindow _owner )
2133 this.el = new GtkClutter.Actor();
2137 // set gobject values
2138 var child_0 = new Xcls_Button64( _this );
2143 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2146 // user defined functions
2148 public class Xcls_Button64 : Object
2150 public Gtk.Button el;
2151 private Xcls_MainWindow _this;
2157 public Xcls_Button64(Xcls_MainWindow _owner )
2160 this.el = new Gtk.Button();
2164 // set gobject values
2165 this.el.width_request = 50;
2166 this.el.height_request = 50;
2167 this.el.tooltip_text = "Delete Project";
2168 var child_0 = new Xcls_Image65( _this );
2170 this.el.set_image ( child_0.el );
2173 this.el.clicked.connect( ( ) => {
2175 var cd = DialogConfirm.singleton();
2176 cd.el.set_transient_for(_this.el);
2177 cd.el.set_modal(true);
2179 var project = _this.windowstate.left_projects.getSelectedProject();
2180 if (project == null) {
2181 print("SKIP - no project\n");
2186 if (Gtk.ResponseType.YES != cd.show("Confirm",
2187 "Are you sure you want to delete project %s".printf(project.name))) {
2193 Project.Project.remove(project);
2194 _this.project = null;
2196 _this.windowstate.left_projects.is_loaded = false;
2197 _this.windowstate.left_projects.load();
2198 _this.windowstate.clutterfiles.clearFiles();
2203 // user defined functions
2205 public class Xcls_Image65 : Object
2207 public Gtk.Image el;
2208 private Xcls_MainWindow _this;
2214 public Xcls_Image65(Xcls_MainWindow _owner )
2217 this.el = new Gtk.Image();
2221 // set gobject values
2222 this.el.icon_name = "user-trash";
2225 // user defined functions
2235 public class Xcls_Box66 : Object
2238 private Xcls_MainWindow _this;
2244 public Xcls_Box66(Xcls_MainWindow _owner )
2247 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2251 // set gobject values
2252 this.el.homogeneous = false;
2253 var child_0 = new Xcls_Label67( _this );
2255 this.el.pack_start ( child_0.el , true,true,0 );
2256 var child_1 = new Xcls_statusbar( _this );
2258 this.el.pack_start ( child_1.el , true,true,0 );
2259 var child_2 = new Xcls_search_entry( _this );
2261 this.el.pack_start ( child_2.el , false,true,0 );
2262 var child_3 = new Xcls_MenuBar70( _this );
2264 this.el.pack_end ( child_3.el , false,true,0 );
2267 // user defined functions
2269 public class Xcls_Label67 : Object
2271 public Gtk.Label el;
2272 private Xcls_MainWindow _this;
2278 public Xcls_Label67(Xcls_MainWindow _owner )
2281 this.el = new Gtk.Label( " " );
2285 // set gobject values
2288 // user defined functions
2291 public class Xcls_statusbar : Object
2293 public Gtk.ProgressBar el;
2294 private Xcls_MainWindow _this;
2298 public ulong handler_id;
2301 public Xcls_statusbar(Xcls_MainWindow _owner )
2304 _this.statusbar = this;
2305 this.el = new Gtk.ProgressBar();
2308 this.handler_id = -1;
2310 // set gobject values
2311 this.el.show_text = true;
2316 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2319 _this.mainpane.el.set_sensitive(true);
2323 _this.mainpane.el.set_sensitive(false);
2325 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2326 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2332 // user defined functions
2335 public class Xcls_search_entry : Object
2337 public Gtk.SearchEntry el;
2338 private Xcls_MainWindow _this;
2344 public Xcls_search_entry(Xcls_MainWindow _owner )
2347 _this.search_entry = this;
2348 this.el = new Gtk.SearchEntry();
2352 // set gobject values
2356 var description = Pango.FontDescription.from_string("monospace");
2357 description.set_size(8000);
2358 this.el.override_font(description);
2361 this.el.key_press_event.connect( (event) => {
2363 if (event.keyval == Gdk.Key.Return) {
2364 this.forwardSearch(false);
2368 // print(event.key.keyval)
2373 this.el.changed.connect( () => {
2374 if (this.el.text == "") {
2375 _this.search_results.el.hide();
2379 switch(_this.windowstate.state) {
2380 case WindowState.State.CODEONLY:
2381 case WindowState.State.CODE:
2382 // search the code being edited..
2383 res = _this.windowstate.code_editor.search(this.el.text);
2386 case WindowState.State.PREVIEW:
2387 if (_this.windowstate.file.xtype == "Gtk") {
2388 res = _this.windowstate.window_gladeview.search(this.el.text);
2390 res = _this.windowstate.window_rooview.search(this.el.text);
2396 _this.search_results.el.show();
2398 _this.search_results.el.label = "%d Matches".printf(res);
2400 _this.search_results.el.label = "No Matches";
2408 // user defined functions
2409 public void forwardSearch (bool change_focus) {
2410 switch(_this.windowstate.state) {
2411 case WindowState.State.CODEONLY:
2412 case WindowState.State.CODE:
2413 // search the code being edited..
2414 _this.windowstate.code_editor.forwardSearch(change_focus);
2417 case WindowState.State.PREVIEW:
2418 if (_this.windowstate.file.xtype == "Gtk") {
2419 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2421 _this.windowstate.window_rooview.forwardSearch(change_focus);
2430 public class Xcls_MenuBar70 : Object
2432 public Gtk.MenuBar el;
2433 private Xcls_MainWindow _this;
2439 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2442 this.el = new Gtk.MenuBar();
2446 // set gobject values
2447 var child_0 = new Xcls_search_results( _this );
2449 this.el.add ( child_0.el );
2450 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2452 this.el.add ( child_1.el );
2453 var child_2 = new Xcls_statusbar_errors( _this );
2455 this.el.add ( child_2.el );
2456 var child_3 = new Xcls_statusbar_warnings( _this );
2458 this.el.add ( child_3.el );
2459 var child_4 = new Xcls_statusbar_depricated( _this );
2461 this.el.add ( child_4.el );
2462 var child_5 = new Xcls_statusbar_run( _this );
2464 this.el.add ( child_5.el );
2467 // user defined functions
2469 public class Xcls_search_results : Object
2471 public Gtk.ImageMenuItem el;
2472 private Xcls_MainWindow _this;
2476 public Xcls_ValaCompileErrors popup;
2479 public Xcls_search_results(Xcls_MainWindow _owner )
2482 _this.search_results = this;
2483 this.el = new Gtk.ImageMenuItem();
2487 // set gobject values
2488 this.el.always_show_image = true;
2489 this.el.label = "Matches";
2490 var child_0 = new Xcls_Image72( _this );
2492 this.el.set_image ( child_0.el );
2495 this.el.button_press_event.connect( () => {
2497 if (this.popup == null) {
2498 this.popup = new Xcls_ValaCompileErrors();
2499 this.popup.window = _this;
2503 this.popup.show(this.notices, this.el);
2509 // user defined functions
2511 public class Xcls_Image72 : Object
2513 public Gtk.Image el;
2514 private Xcls_MainWindow _this;
2520 public Xcls_Image72(Xcls_MainWindow _owner )
2523 this.el = new Gtk.Image();
2527 // set gobject values
2528 this.el.icon_name = "system-search";
2529 this.el.sensitive = false;
2532 // user defined functions
2536 public class Xcls_statusbar_compilestatus_label : Object
2538 public Gtk.MenuItem el;
2539 private Xcls_MainWindow _this;
2545 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2548 _this.statusbar_compilestatus_label = this;
2549 this.el = new Gtk.MenuItem();
2553 // set gobject values
2554 this.el.label = "Compile Status:";
2557 // user defined functions
2560 public class Xcls_statusbar_errors : Object
2562 public Gtk.ImageMenuItem el;
2563 private Xcls_MainWindow _this;
2567 public Xcls_ValaCompileErrors popup;
2568 public Json.Object notices;
2571 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2574 _this.statusbar_errors = this;
2575 this.el = new Gtk.ImageMenuItem();
2578 this.notices = new Json.Object() ;
2580 // set gobject values
2581 this.el.always_show_image = true;
2582 this.el.label = "Errors";
2583 var child_0 = new Xcls_Image75( _this );
2585 this.el.set_image ( child_0.el );
2588 this.el.button_press_event.connect( () => {
2589 if (this.popup == null) {
2590 this.popup = new Xcls_ValaCompileErrors();
2591 this.popup.window = _this;
2595 this.popup.show(this.notices, this.el);
2600 // user defined functions
2601 public void setNotices (Json.Object nots, int qty) {
2603 this.el.label = qty.to_string() + " Errors";
2604 this.notices = nots;
2608 public class Xcls_Image75 : Object
2610 public Gtk.Image el;
2611 private Xcls_MainWindow _this;
2617 public Xcls_Image75(Xcls_MainWindow _owner )
2620 this.el = new Gtk.Image();
2624 // set gobject values
2625 this.el.icon_name = "dialog-error";
2628 // user defined functions
2632 public class Xcls_statusbar_warnings : Object
2634 public Gtk.ImageMenuItem el;
2635 private Xcls_MainWindow _this;
2639 public Xcls_ValaCompileErrors popup;
2640 public Json.Object notices;
2643 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2646 _this.statusbar_warnings = this;
2647 this.el = new Gtk.ImageMenuItem();
2650 this.notices = new Json.Object();
2652 // set gobject values
2653 this.el.always_show_image = true;
2654 this.el.label = "Warnings";
2655 var child_0 = new Xcls_Image77( _this );
2657 this.el.set_image ( child_0.el );
2660 this.el.button_press_event.connect( () => {
2661 if (this.popup == null) {
2662 this.popup = new Xcls_ValaCompileErrors();
2663 this.popup.window = _this;
2666 this.popup.show(this.notices, this.el);
2671 // user defined functions
2672 public void setNotices (Json.Object nots, int qty) {
2674 this.el.label = qty.to_string() + " Warnings";
2675 this.notices = nots;
2679 public class Xcls_Image77 : Object
2681 public Gtk.Image el;
2682 private Xcls_MainWindow _this;
2688 public Xcls_Image77(Xcls_MainWindow _owner )
2691 this.el = new Gtk.Image();
2695 // set gobject values
2696 this.el.icon_name = "dialog-warning";
2699 // user defined functions
2703 public class Xcls_statusbar_depricated : Object
2705 public Gtk.ImageMenuItem el;
2706 private Xcls_MainWindow _this;
2710 public Xcls_ValaCompileErrors popup;
2711 public Json.Object notices;
2714 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2717 _this.statusbar_depricated = this;
2718 this.el = new Gtk.ImageMenuItem();
2721 this.notices = new Json.Object();
2723 // set gobject values
2724 this.el.always_show_image = true;
2725 this.el.label = "Depricated";
2726 var child_0 = new Xcls_Image79( _this );
2728 this.el.set_image ( child_0.el );
2731 this.el.button_press_event.connect( () => {
2732 if (this.popup == null) {
2733 this.popup = new Xcls_ValaCompileErrors();
2734 this.popup.window = _this;
2738 this.popup.show(this.notices, this.el);
2743 // user defined functions
2744 public void setNotices (Json.Object nots, int qty) {
2746 this.el.label = qty.to_string() + " Depricated";
2747 this.notices = nots;
2751 public class Xcls_Image79 : Object
2753 public Gtk.Image el;
2754 private Xcls_MainWindow _this;
2760 public Xcls_Image79(Xcls_MainWindow _owner )
2763 this.el = new Gtk.Image();
2767 // set gobject values
2768 this.el.icon_name = "dialog-information";
2771 // user defined functions
2775 public class Xcls_statusbar_run : Object
2777 public Gtk.ImageMenuItem el;
2778 private Xcls_MainWindow _this;
2782 public Xcls_ValaCompileErrors popup;
2785 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2788 _this.statusbar_run = this;
2789 this.el = new Gtk.ImageMenuItem();
2793 // set gobject values
2794 this.el.always_show_image = true;
2795 this.el.label = "Run";
2796 var child_0 = new Xcls_Image81( _this );
2798 this.el.set_image ( child_0.el );
2801 this.el.button_press_event.connect( () => {
2802 if (_this.windowstate.file == null) {
2805 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2807 _this.windowstate.compile_results.show(this.el,true);
2813 // user defined functions
2815 public class Xcls_Image81 : Object
2817 public Gtk.Image el;
2818 private Xcls_MainWindow _this;
2824 public Xcls_Image81(Xcls_MainWindow _owner )
2827 this.el = new Gtk.Image();
2831 // set gobject values
2832 this.el.icon_name = "media-playback-start";
2835 // user defined functions