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_openbtn openbtn;
18 public Xcls_openbackbtn openbackbtn;
19 public Xcls_vbox vbox;
20 public Xcls_mainpane mainpane;
21 public Xcls_leftpane leftpane;
22 public Xcls_editpane editpane;
23 public Xcls_tree tree;
24 public Xcls_props props;
25 public Xcls_clutterembed clutterembed;
26 public Xcls_rooview rooview;
27 public Xcls_objectview objectview;
28 public Xcls_codeeditview codeeditview;
29 public Xcls_addpropsview addpropsview;
30 public Xcls_projecteditview projecteditview;
31 public Xcls_buttonlayout buttonlayout;
32 public Xcls_backbutton backbutton;
33 public Xcls_projectbutton projectbutton;
34 public Xcls_editfilebutton editfilebutton;
35 public Xcls_projecteditbutton projecteditbutton;
36 public Xcls_objectshowbutton objectshowbutton;
37 public Xcls_addpropbutton addpropbutton;
38 public Xcls_addlistenerbutton addlistenerbutton;
39 public Xcls_addprojectbutton addprojectbutton;
40 public Xcls_addfilebutton addfilebutton;
41 public Xcls_delprojectbutton delprojectbutton;
42 public Xcls_statusbar statusbar;
43 public Xcls_search_entry search_entry;
44 public Xcls_search_results search_results;
45 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
46 public Xcls_statusbar_errors statusbar_errors;
47 public Xcls_statusbar_warnings statusbar_warnings;
48 public Xcls_statusbar_depricated statusbar_depricated;
49 public Xcls_statusbar_run statusbar_run;
52 public Project.Project project;
54 public int no_windows;
55 public WindowState windowstate;
58 public Xcls_MainWindow()
61 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
65 this.title = "Application Builder";
67 this.windowstate = null;
70 this.el.border_width = 0;
71 this.el.default_height = 500;
72 this.el.default_width = 800;
73 var child_0 = new Xcls_headerbar( _this );
75 this.el.set_titlebar ( child_0.el );
76 var child_1 = new Xcls_vbox( _this );
78 this.el.add ( child_1.el );
85 this.el.delete_event.connect( ( event) => {
88 this.el.destroy.connect( () => {
89 Xcls_MainWindow.singleton().no_windows--;
91 Resources.singleton().disconnect(_this.statusbar.handler_id);
94 if (Xcls_MainWindow.singleton().no_windows < 1) {
99 this.el.show.connect( ( ) => {
100 // hide the file editing..
102 //this.hideViewEditing();
103 _this.statusbar.el.hide();
104 _this.statusbar_errors.el.hide();
105 _this.statusbar_warnings.el.hide();
106 _this.statusbar_depricated.el.hide();
109 Resources.singleton().checkResources();
112 this.el.key_release_event.connect( (event) => {
114 if (this.search_entry.el.is_visible()) {
115 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
116 print("SAVE: ctrl-f pressed");
117 this.search_entry.el.grab_focus();
121 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
122 print("SAVE: ctrl-g pressed");
123 this.search_entry.forwardSearch(true);
129 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
130 print("SAVE: ctrl-n pressed");
131 this.openNewWindow();
135 // print(event.key.keyval)
142 // user defined functions
143 public void openNewWindow () {
144 Xcls_MainWindow.singleton().no_windows++;
145 var w = new Xcls_MainWindow();
150 w.windowstate.switchState(WindowState.State.FILES);
152 public void initChildren () {
153 // this needs putting in a better place..
154 this.windowstate = new WindowState(this);
158 var tl = new Clutter.Timeline(6000);
159 tl.set_repeat_count(-1);
168 public void show () {
173 public void setTitle (string str) {
174 this.headerbar.el.set_title(this.title + " - " + str);
176 public class Xcls_headerbar : Object
178 public Gtk.HeaderBar el;
179 private Xcls_MainWindow _this;
185 public Xcls_headerbar(Xcls_MainWindow _owner )
188 _this.headerbar = this;
189 this.el = new Gtk.HeaderBar();
193 // set gobject values
194 this.el.title = "Application Builder";
195 this.el.show_close_button = true;
196 var child_0 = new Xcls_Box3( _this );
198 this.el.pack_start ( child_0.el );
201 // user defined functions
203 public class Xcls_Box3 : Object
206 private Xcls_MainWindow _this;
212 public Xcls_Box3(Xcls_MainWindow _owner )
215 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
219 // set gobject values
220 var child_0 = new Xcls_MenuButton4( _this );
222 this.el.add ( child_0.el );
223 var child_1 = new Xcls_openbtn( _this );
225 var child_2 = new Xcls_openbackbtn( _this );
229 // user defined functions
231 public class Xcls_MenuButton4 : Object
233 public Gtk.MenuButton el;
234 private Xcls_MainWindow _this;
240 public Xcls_MenuButton4(Xcls_MainWindow _owner )
243 this.el = new Gtk.MenuButton();
247 // set gobject values
248 this.el.use_popover = false;
249 var child_0 = new Xcls_topbarmenu( _this );
251 this.el.set_popup ( child_0.el );
252 var child_1 = new Xcls_Image10( _this );
254 this.el.set_image ( child_1.el );
257 // user defined functions
259 public class Xcls_topbarmenu : Object
262 private Xcls_MainWindow _this;
268 public Xcls_topbarmenu(Xcls_MainWindow _owner )
271 _this.topbarmenu = this;
272 this.el = new Gtk.Menu();
276 // set gobject values
277 var child_0 = new Xcls_MenuItem6( _this );
279 this.el.append ( child_0.el );
280 var child_1 = new Xcls_SeparatorMenuItem7( _this );
282 this.el.append ( child_1.el );
283 var child_2 = new Xcls_MenuItem8( _this );
285 this.el.append ( child_2.el );
286 var child_3 = new Xcls_MenuItem9( _this );
288 this.el.append ( child_3.el );
297 // user defined functions
299 public class Xcls_MenuItem6 : Object
301 public Gtk.MenuItem el;
302 private Xcls_MainWindow _this;
308 public Xcls_MenuItem6(Xcls_MainWindow _owner )
311 this.el = new Gtk.MenuItem();
315 // set gobject values
316 this.el.label = "Open a new Window";
319 this.el.activate.connect( ( ) => {
320 _this.openNewWindow();
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
430 public class Xcls_openbtn : Object
432 public Gtk.Button el;
433 private Xcls_MainWindow _this;
439 public Xcls_openbtn(Xcls_MainWindow _owner )
442 _this.openbtn = this;
443 this.el = new Gtk.Button();
447 // set gobject values
448 this.el.width_request = 50;
449 this.el.height_request = 50;
450 var child_0 = new Xcls_Image12( _this );
452 this.el.set_image ( child_0.el );
455 this.el.clicked.connect( ( ) => {
456 _this.windowstate.switchState(WindowState.State.FILES);
462 // user defined functions
464 public class Xcls_Image12 : Object
467 private Xcls_MainWindow _this;
473 public Xcls_Image12(Xcls_MainWindow _owner )
476 this.el = new Gtk.Image();
480 // set gobject values
481 this.el.icon_name = "document-open";
484 // user defined functions
488 public class Xcls_openbackbtn : Object
490 public Gtk.Button el;
491 private Xcls_MainWindow _this;
497 public Xcls_openbackbtn(Xcls_MainWindow _owner )
500 _this.openbackbtn = this;
501 this.el = new Gtk.Button();
505 // set gobject values
506 this.el.width_request = 50;
507 this.el.height_request = 50;
508 this.el.tooltip_text = "Back";
509 var child_0 = new Xcls_Image14( _this );
511 this.el.set_image ( child_0.el );
514 this.el.clicked.connect( ( ) => {
516 _this.windowstate.switchState(WindowState.State.PREVIEW);
522 // user defined functions
524 public class Xcls_Image14 : Object
527 private Xcls_MainWindow _this;
533 public Xcls_Image14(Xcls_MainWindow _owner )
536 this.el = new Gtk.Image();
540 // set gobject values
541 this.el.icon_name = "go-previous";
544 // user defined functions
550 public class Xcls_vbox : Object
553 private Xcls_MainWindow _this;
559 public Xcls_vbox(Xcls_MainWindow _owner )
563 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
567 // set gobject values
568 this.el.homogeneous = false;
569 var child_0 = new Xcls_mainpane( _this );
571 this.el.pack_start ( child_0.el , true,true,0 );
572 var child_1 = new Xcls_Box70( _this );
574 this.el.pack_end ( child_1.el , false,true,0 );
577 // user defined functions
579 public class Xcls_mainpane : Object
582 private Xcls_MainWindow _this;
586 public int lastWidth;
589 public Xcls_mainpane(Xcls_MainWindow _owner )
592 _this.mainpane = this;
593 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
598 // set gobject values
599 this.el.position = 400;
600 var child_0 = new Xcls_leftpane( _this );
602 this.el.add1 ( child_0.el );
603 var child_1 = new Xcls_Box21( _this );
605 this.el.add2 ( child_1.el );
608 // user defined functions
610 public class Xcls_leftpane : Object
613 private Xcls_MainWindow _this;
619 public Xcls_leftpane(Xcls_MainWindow _owner )
622 _this.leftpane = this;
623 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
627 // set gobject values
628 var child_0 = new Xcls_editpane( _this );
630 this.el.pack_start ( child_0.el , true,true,0 );
633 // user defined functions
635 public class Xcls_editpane : Object
638 private Xcls_MainWindow _this;
644 public Xcls_editpane(Xcls_MainWindow _owner )
647 _this.editpane = this;
648 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
652 // set gobject values
653 var child_0 = new Xcls_tree( _this );
655 this.el.add1 ( child_0.el );
656 var child_1 = new Xcls_props( _this );
658 this.el.add2 ( child_1.el );
661 // user defined functions
663 public class Xcls_tree : Object
666 private Xcls_MainWindow _this;
672 public Xcls_tree(Xcls_MainWindow _owner )
676 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
680 // set gobject values
683 // user defined functions
686 public class Xcls_props : Object
689 private Xcls_MainWindow _this;
695 public Xcls_props(Xcls_MainWindow _owner )
699 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
703 // set gobject values
706 // user defined functions
711 public class Xcls_Box21 : Object
714 private Xcls_MainWindow _this;
720 public Xcls_Box21(Xcls_MainWindow _owner )
723 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
727 // set gobject values
728 var child_0 = new Xcls_clutterembed( _this );
730 this.el.pack_start ( child_0.el , true,true,0 );
733 // user defined functions
735 public class Xcls_clutterembed : Object
737 public GtkClutter.Embed el;
738 private Xcls_MainWindow _this;
744 public Xcls_clutterembed(Xcls_MainWindow _owner )
747 _this.clutterembed = this;
748 this.el = new GtkClutter.Embed();
752 // set gobject values
753 var child_0 = new Xcls_rooview( _this );
755 this.el.get_stage().add_child ( child_0.el );
756 var child_1 = new Xcls_objectview( _this );
758 this.el.get_stage().add_child ( child_1.el );
759 var child_2 = new Xcls_codeeditview( _this );
761 this.el.get_stage().add_child ( child_2.el );
762 var child_3 = new Xcls_addpropsview( _this );
764 this.el.get_stage().add_child ( child_3.el );
765 var child_4 = new Xcls_projecteditview( _this );
767 this.el.get_stage().add_child ( child_4.el );
768 var child_5 = new Xcls_buttonlayout( _this );
770 this.el.get_stage().add_child ( child_5.el );
774 var stage = this.el.get_stage();
775 stage.set_background_color( Clutter.Color.from_string("#000"));
778 this.el.size_allocate.connect( ( alloc) => {
779 if (_this.windowstate == null) {
782 _this.windowstate.resizeCanvas();
787 // user defined functions
789 public class Xcls_rooview : Object
791 public GtkClutter.Actor el;
792 private Xcls_MainWindow _this;
798 public Xcls_rooview(Xcls_MainWindow _owner )
801 _this.rooview = this;
802 this.el = new GtkClutter.Actor();
806 // set gobject values
813 this.el.add_constraint(
814 new Clutter.AlignConstraint(
815 _this.clutterembed.el.get_stage(),
816 Clutter.AlignAxis.X_AXIS,
821 //this.el.set_position(100,100);
822 this.el.set_pivot_point(1.0f,1.0f);
824 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
825 _this.clutterembed.el.get_stage().height);
830 // user defined functions
833 public class Xcls_objectview : Object
835 public GtkClutter.Actor el;
836 private Xcls_MainWindow _this;
842 public Xcls_objectview(Xcls_MainWindow _owner )
845 _this.objectview = this;
846 this.el = new GtkClutter.Actor();
850 // set gobject values
857 this.el.add_constraint(
858 new Clutter.AlignConstraint(
859 _this.clutterembed.el.get_stage(),
860 Clutter.AlignAxis.X_AXIS,
865 this.el.fixed_x = 50.0f;
866 this.el.fixed_y = 0.0f;
867 //this.el.set_position(100,100);
868 this.el.set_pivot_point(0.0f,0.0f);
869 this.el.set_scale(0.0f,1.0f);
870 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
871 _this.clutterembed.el.get_stage().height);
876 // user defined functions
879 public class Xcls_codeeditview : Object
881 public GtkClutter.Actor el;
882 private Xcls_MainWindow _this;
888 public Xcls_codeeditview(Xcls_MainWindow _owner )
891 _this.codeeditview = this;
892 this.el = new GtkClutter.Actor();
896 // set gobject values
903 this.el.add_constraint(
904 new Clutter.AlignConstraint(
905 _this.clutterembed.el.get_stage(),
906 Clutter.AlignAxis.X_AXIS,
911 this.el.fixed_x = 50.0f;
912 this.el.fixed_y = 0.0f;
913 //this.el.set_position(100,100);
914 this.el.set_pivot_point(0.0f,0.0f);
915 this.el.set_scale(0.0f,1.0f);
916 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
917 _this.clutterembed.el.get_stage().height);
922 // user defined functions
925 public class Xcls_addpropsview : Object
927 public GtkClutter.Actor el;
928 private Xcls_MainWindow _this;
934 public Xcls_addpropsview(Xcls_MainWindow _owner )
937 _this.addpropsview = this;
938 this.el = new GtkClutter.Actor();
942 // set gobject values
949 this.el.add_constraint(
950 new Clutter.AlignConstraint(
951 _this.clutterembed.el.get_stage(),
952 Clutter.AlignAxis.X_AXIS,
957 this.el.fixed_x = 50.0f;
958 this.el.fixed_y = 0.0f;
959 //this.el.set_position(100,100);
960 this.el.set_pivot_point(0.0f,0.0f);
961 this.el.set_scale(0.0f,1.0f);
962 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
963 _this.clutterembed.el.get_stage().height);
968 // user defined functions
971 public class Xcls_projecteditview : Object
973 public GtkClutter.Actor el;
974 private Xcls_MainWindow _this;
980 public Xcls_projecteditview(Xcls_MainWindow _owner )
983 _this.projecteditview = this;
984 this.el = new GtkClutter.Actor();
988 // set gobject values
995 this.el.add_constraint(
996 new Clutter.AlignConstraint(
997 _this.clutterembed.el.get_stage(),
998 Clutter.AlignAxis.X_AXIS,
1003 //this.el.set_position(100,100);
1004 this.el.set_pivot_point(0.0f,0.0f);
1005 this.el.set_scale(1.0f,0.0f);
1006 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1007 _this.clutterembed.el.get_stage().height /2);
1012 // user defined functions
1015 public class Xcls_buttonlayout : Object
1017 public Clutter.Actor el;
1018 private Xcls_MainWindow _this;
1024 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1027 _this.buttonlayout = this;
1028 this.el = new Clutter.Actor();
1032 // set gobject values
1033 var child_0 = new Xcls_BoxLayout29( _this );
1035 this.el.layout_manager = child_0.el;
1036 var child_1 = new Xcls_backbutton( _this );
1038 this.el.add_child ( child_1.el );
1039 var child_2 = new Xcls_projectbutton( _this );
1041 this.el.add_child ( child_2.el );
1042 var child_3 = new Xcls_editfilebutton( _this );
1044 this.el.add_child ( child_3.el );
1045 var child_4 = new Xcls_projecteditbutton( _this );
1047 this.el.add_child ( child_4.el );
1048 var child_5 = new Xcls_objectshowbutton( _this );
1050 this.el.add_child ( child_5.el );
1051 var child_6 = new Xcls_addpropbutton( _this );
1053 this.el.add_child ( child_6.el );
1054 var child_7 = new Xcls_addlistenerbutton( _this );
1056 this.el.add_child ( child_7.el );
1057 var child_8 = new Xcls_addprojectbutton( _this );
1059 this.el.add_child ( child_8.el );
1060 var child_9 = new Xcls_addfilebutton( _this );
1062 this.el.add_child ( child_9.el );
1063 var child_10 = new Xcls_delprojectbutton( _this );
1065 this.el.add_child ( child_10.el );
1071 this.el.add_constraint(
1072 new Clutter.AlignConstraint(
1073 _this.clutterembed.el.get_stage(),
1074 Clutter.AlignAxis.X_AXIS,
1080 //this.el.set_position(100,100);
1081 this.el.set_pivot_point(0.5f,0.5f);
1082 this.el.set_size(50,
1083 _this.clutterembed.el.get_stage().height);
1088 // user defined functions
1090 public class Xcls_BoxLayout29 : Object
1092 public Clutter.BoxLayout el;
1093 private Xcls_MainWindow _this;
1099 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1102 this.el = new Clutter.BoxLayout();
1106 // set gobject values
1107 this.el.orientation = Clutter.Orientation.VERTICAL;
1110 // user defined functions
1113 public class Xcls_backbutton : Object
1115 public Clutter.Actor el;
1116 private Xcls_MainWindow _this;
1122 public Xcls_backbutton(Xcls_MainWindow _owner )
1125 _this.backbutton = this;
1126 this.el = new Clutter.Actor();
1130 // set gobject values
1131 var child_0 = new Xcls_Actor31( _this );
1133 this.el.add_child ( child_0.el );
1137 this.el.set_size(50,50);
1140 // user defined functions
1142 public class Xcls_Actor31 : Object
1144 public GtkClutter.Actor el;
1145 private Xcls_MainWindow _this;
1151 public Xcls_Actor31(Xcls_MainWindow _owner )
1154 this.el = new GtkClutter.Actor();
1158 // set gobject values
1159 var child_0 = new Xcls_Button32( _this );
1164 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1167 // user defined functions
1169 public class Xcls_Button32 : Object
1171 public Gtk.Button el;
1172 private Xcls_MainWindow _this;
1178 public Xcls_Button32(Xcls_MainWindow _owner )
1181 this.el = new Gtk.Button();
1185 // set gobject values
1186 this.el.width_request = 50;
1187 this.el.height_request = 50;
1188 this.el.tooltip_text = "Back";
1189 var child_0 = new Xcls_Image33( _this );
1191 this.el.set_image ( child_0.el );
1194 this.el.clicked.connect( ( ) => {
1196 _this.windowstate.switchState(WindowState.State.PREVIEW);
1202 // user defined functions
1204 public class Xcls_Image33 : Object
1206 public Gtk.Image el;
1207 private Xcls_MainWindow _this;
1213 public Xcls_Image33(Xcls_MainWindow _owner )
1216 this.el = new Gtk.Image();
1220 // set gobject values
1221 this.el.icon_name = "go-previous";
1224 // user defined functions
1230 public class Xcls_projectbutton : Object
1232 public Clutter.Actor el;
1233 private Xcls_MainWindow _this;
1239 public Xcls_projectbutton(Xcls_MainWindow _owner )
1242 _this.projectbutton = this;
1243 this.el = new Clutter.Actor();
1247 // set gobject values
1248 var child_0 = new Xcls_Actor35( _this );
1250 this.el.add_child ( child_0.el );
1254 this.el.set_size(50,50);
1257 // user defined functions
1259 public class Xcls_Actor35 : Object
1261 public GtkClutter.Actor el;
1262 private Xcls_MainWindow _this;
1268 public Xcls_Actor35(Xcls_MainWindow _owner )
1271 this.el = new GtkClutter.Actor();
1275 // set gobject values
1276 var child_0 = new Xcls_Button36( _this );
1281 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1284 // user defined functions
1286 public class Xcls_Button36 : Object
1288 public Gtk.Button el;
1289 private Xcls_MainWindow _this;
1295 public Xcls_Button36(Xcls_MainWindow _owner )
1298 this.el = new Gtk.Button();
1302 // set gobject values
1303 this.el.width_request = 50;
1304 this.el.height_request = 50;
1305 var child_0 = new Xcls_Image37( _this );
1307 this.el.set_image ( child_0.el );
1310 this.el.clicked.connect( ( ) => {
1311 _this.windowstate.switchState(WindowState.State.FILES);
1317 // user defined functions
1319 public class Xcls_Image37 : Object
1321 public Gtk.Image el;
1322 private Xcls_MainWindow _this;
1328 public Xcls_Image37(Xcls_MainWindow _owner )
1331 this.el = new Gtk.Image();
1335 // set gobject values
1336 this.el.icon_name = "document-open";
1339 // user defined functions
1345 public class Xcls_editfilebutton : Object
1347 public Clutter.Actor el;
1348 private Xcls_MainWindow _this;
1354 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1357 _this.editfilebutton = this;
1358 this.el = new Clutter.Actor();
1362 // set gobject values
1363 var child_0 = new Xcls_Actor39( _this );
1365 this.el.add_child ( child_0.el );
1369 this.el.set_size(50.0f,50.0f);
1372 // user defined functions
1374 public class Xcls_Actor39 : Object
1376 public GtkClutter.Actor el;
1377 private Xcls_MainWindow _this;
1383 public Xcls_Actor39(Xcls_MainWindow _owner )
1386 this.el = new GtkClutter.Actor();
1390 // set gobject values
1391 var child_0 = new Xcls_Button40( _this );
1396 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1399 // user defined functions
1401 public class Xcls_Button40 : Object
1403 public Gtk.Button el;
1404 private Xcls_MainWindow _this;
1410 public Xcls_Button40(Xcls_MainWindow _owner )
1413 this.el = new Gtk.Button();
1417 // set gobject values
1418 this.el.width_request = 50;
1419 this.el.height_request = 50;
1420 this.el.tooltip_text = "File Details";
1421 var child_0 = new Xcls_Image41( _this );
1423 this.el.set_image ( child_0.el );
1426 this.el.clicked.connect( ( ) => {
1428 // create a new file in project..
1429 if (_this.project == null || _this.windowstate.file == null) {
1432 _this.windowstate.file_details.show(
1433 _this.windowstate.file, this.el
1442 // user defined functions
1444 public class Xcls_Image41 : Object
1446 public Gtk.Image el;
1447 private Xcls_MainWindow _this;
1453 public Xcls_Image41(Xcls_MainWindow _owner )
1456 this.el = new Gtk.Image();
1460 // set gobject values
1461 this.el.icon_name = "document-properties";
1464 // user defined functions
1470 public class Xcls_projecteditbutton : Object
1472 public Clutter.Actor el;
1473 private Xcls_MainWindow _this;
1479 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1482 _this.projecteditbutton = this;
1483 this.el = new Clutter.Actor();
1487 // set gobject values
1488 var child_0 = new Xcls_Actor43( _this );
1490 this.el.add_child ( child_0.el );
1494 this.el.set_size(50,50);
1497 // user defined functions
1499 public class Xcls_Actor43 : Object
1501 public GtkClutter.Actor el;
1502 private Xcls_MainWindow _this;
1508 public Xcls_Actor43(Xcls_MainWindow _owner )
1511 this.el = new GtkClutter.Actor();
1515 // set gobject values
1516 var child_0 = new Xcls_Button44( _this );
1521 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1524 // user defined functions
1526 public class Xcls_Button44 : Object
1528 public Gtk.Button el;
1529 private Xcls_MainWindow _this;
1535 public Xcls_Button44(Xcls_MainWindow _owner )
1538 this.el = new Gtk.Button();
1542 // set gobject values
1543 this.el.width_request = 50;
1544 this.el.height_request = 50;
1545 this.el.tooltip_text = "Project Details";
1546 var child_0 = new Xcls_Image45( _this );
1548 this.el.set_image ( child_0.el );
1551 this.el.clicked.connect( ( ) => {
1552 _this.windowstate.switchState(WindowState.State.PROJECT);
1559 // user defined functions
1561 public class Xcls_Image45 : Object
1563 public Gtk.Image el;
1564 private Xcls_MainWindow _this;
1570 public Xcls_Image45(Xcls_MainWindow _owner )
1573 this.el = new Gtk.Image();
1577 // set gobject values
1578 this.el.icon_name = "emblem-system";
1581 // user defined functions
1587 public class Xcls_objectshowbutton : Object
1589 public Clutter.Actor el;
1590 private Xcls_MainWindow _this;
1596 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1599 _this.objectshowbutton = this;
1600 this.el = new Clutter.Actor();
1604 // set gobject values
1605 var child_0 = new Xcls_Actor47( _this );
1607 this.el.add_child ( child_0.el );
1611 this.el.set_size(50,50);
1614 this.el.enter_event.connect( ( event) => {
1615 this.el.background_color = Clutter.Color.from_string("#333");
1618 this.el.leave_event.connect( ( event) => {
1619 this.el.background_color = Clutter.Color.from_string("#000");
1624 // user defined functions
1626 public class Xcls_Actor47 : Object
1628 public GtkClutter.Actor el;
1629 private Xcls_MainWindow _this;
1635 public Xcls_Actor47(Xcls_MainWindow _owner )
1638 this.el = new GtkClutter.Actor();
1642 // set gobject values
1643 var child_0 = new Xcls_Button48( _this );
1648 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1651 // user defined functions
1653 public class Xcls_Button48 : Object
1655 public Gtk.Button el;
1656 private Xcls_MainWindow _this;
1662 public Xcls_Button48(Xcls_MainWindow _owner )
1665 this.el = new Gtk.Button();
1669 // set gobject values
1670 this.el.width_request = 50;
1671 this.el.height_request = 50;
1672 this.el.tooltip_text = "Add Child Element";
1673 var child_0 = new Xcls_Image49( _this );
1675 this.el.set_image ( child_0.el );
1678 this.el.clicked.connect( ( ) => {
1680 _this.windowstate.switchState(WindowState.State.OBJECT);
1686 // user defined functions
1688 public class Xcls_Image49 : Object
1690 public Gtk.Image el;
1691 private Xcls_MainWindow _this;
1697 public Xcls_Image49(Xcls_MainWindow _owner )
1700 this.el = new Gtk.Image();
1704 // set gobject values
1705 this.el.icon_name = "list-add";
1708 // user defined functions
1714 public class Xcls_addpropbutton : Object
1716 public Clutter.Actor el;
1717 private Xcls_MainWindow _this;
1723 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1726 _this.addpropbutton = this;
1727 this.el = new Clutter.Actor();
1731 // set gobject values
1732 var child_0 = new Xcls_Actor51( _this );
1734 this.el.add_child ( child_0.el );
1738 this.el.set_size(50,50);
1741 // user defined functions
1743 public class Xcls_Actor51 : Object
1745 public GtkClutter.Actor el;
1746 private Xcls_MainWindow _this;
1752 public Xcls_Actor51(Xcls_MainWindow _owner )
1755 this.el = new GtkClutter.Actor();
1759 // set gobject values
1760 var child_0 = new Xcls_Button52( _this );
1765 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1768 // user defined functions
1770 public class Xcls_Button52 : Object
1772 public Gtk.Button el;
1773 private Xcls_MainWindow _this;
1779 public Xcls_Button52(Xcls_MainWindow _owner )
1782 this.el = new Gtk.Button();
1786 // set gobject values
1787 this.el.width_request = 50;
1788 this.el.height_request = 50;
1789 this.el.tooltip_text = "Add Property";
1790 var child_0 = new Xcls_Image53( _this );
1792 this.el.set_image ( child_0.el );
1795 this.el.clicked.connect( ( ) => {
1797 _this.windowstate.switchState(WindowState.State.PROP);
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 = "format-justify-left";
1825 // user defined functions
1831 public class Xcls_addlistenerbutton : Object
1833 public Clutter.Actor el;
1834 private Xcls_MainWindow _this;
1840 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1843 _this.addlistenerbutton = 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,50);
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 = "Add Event Code";
1907 var child_0 = new Xcls_Image57( _this );
1909 this.el.set_image ( child_0.el );
1912 this.el.clicked.connect( ( ) => {
1914 _this.windowstate.switchState(WindowState.State.LISTENER);
1921 // user defined functions
1923 public class Xcls_Image57 : Object
1925 public Gtk.Image el;
1926 private Xcls_MainWindow _this;
1932 public Xcls_Image57(Xcls_MainWindow _owner )
1935 this.el = new Gtk.Image();
1939 // set gobject values
1940 this.el.icon_name = "appointment-new";
1943 // user defined functions
1949 public class Xcls_addprojectbutton : Object
1951 public Clutter.Actor el;
1952 private Xcls_MainWindow _this;
1958 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1961 _this.addprojectbutton = this;
1962 this.el = new Clutter.Actor();
1966 // set gobject values
1967 var child_0 = new Xcls_Actor59( _this );
1969 this.el.add_child ( child_0.el );
1973 this.el.set_size(50.0f,50.0f);
1976 // user defined functions
1978 public class Xcls_Actor59 : Object
1980 public GtkClutter.Actor el;
1981 private Xcls_MainWindow _this;
1987 public Xcls_Actor59(Xcls_MainWindow _owner )
1990 this.el = new GtkClutter.Actor();
1994 // set gobject values
1995 var child_0 = new Xcls_Button60( _this );
2000 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2003 // user defined functions
2005 public class Xcls_Button60 : Object
2007 public Gtk.Button el;
2008 private Xcls_MainWindow _this;
2014 public Xcls_Button60(Xcls_MainWindow _owner )
2017 this.el = new Gtk.Button();
2021 // set gobject values
2022 this.el.width_request = 50;
2023 this.el.height_request = 50;
2024 this.el.tooltip_text = "New\nProj.";
2025 var child_0 = new Xcls_Image61( _this );
2027 this.el.set_image ( child_0.el );
2030 this.el.clicked.connect( ( ) => {
2032 // create a new file in project..
2033 //Xcls_DialogNewComponent.singleton().show(
2034 var pe = EditProject.singleton();
2035 pe.el.set_transient_for(_this.el);
2036 pe.el.set_modal(true);
2045 _this.windowstate.left_projects.is_loaded = false;
2046 _this.windowstate.left_projects.load();
2047 _this.windowstate.left_projects.selectProject(p);
2054 // user defined functions
2056 public class Xcls_Image61 : Object
2058 public Gtk.Image el;
2059 private Xcls_MainWindow _this;
2065 public Xcls_Image61(Xcls_MainWindow _owner )
2068 this.el = new Gtk.Image();
2072 // set gobject values
2073 this.el.icon_name = "folder-new";
2076 // user defined functions
2082 public class Xcls_addfilebutton : Object
2084 public Clutter.Actor el;
2085 private Xcls_MainWindow _this;
2091 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2094 _this.addfilebutton = this;
2095 this.el = new Clutter.Actor();
2099 // set gobject values
2100 var child_0 = new Xcls_Actor63( _this );
2102 this.el.add_child ( child_0.el );
2106 this.el.set_size(50.0f,50.0f);
2109 // user defined functions
2111 public class Xcls_Actor63 : Object
2113 public GtkClutter.Actor el;
2114 private Xcls_MainWindow _this;
2120 public Xcls_Actor63(Xcls_MainWindow _owner )
2123 this.el = new GtkClutter.Actor();
2127 // set gobject values
2128 var child_0 = new Xcls_Button64( _this );
2133 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2136 // user defined functions
2138 public class Xcls_Button64 : Object
2140 public Gtk.Button el;
2141 private Xcls_MainWindow _this;
2147 public Xcls_Button64(Xcls_MainWindow _owner )
2150 this.el = new Gtk.Button();
2154 // set gobject values
2155 this.el.width_request = 50;
2156 this.el.height_request = 50;
2157 this.el.tooltip_text = "Add File";
2158 var child_0 = new Xcls_Image65( _this );
2160 this.el.set_image ( child_0.el );
2163 this.el.clicked.connect( () => {
2164 // create a new file in project..
2165 print("add file selected\n");
2166 // what's the currently selected project...
2167 var proj = _this.windowstate.left_projects.getSelectedProject();
2170 print("no project selected?\n");
2174 print("creating file?");
2176 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2177 _this.project = proj;
2178 print("showing popup?");
2179 _this.windowstate.file_details.show(
2188 // user defined functions
2190 public class Xcls_Image65 : Object
2192 public Gtk.Image el;
2193 private Xcls_MainWindow _this;
2199 public Xcls_Image65(Xcls_MainWindow _owner )
2202 this.el = new Gtk.Image();
2206 // set gobject values
2207 this.el.icon_name = "document-new";
2210 // user defined functions
2216 public class Xcls_delprojectbutton : Object
2218 public Clutter.Actor el;
2219 private Xcls_MainWindow _this;
2225 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2228 _this.delprojectbutton = this;
2229 this.el = new Clutter.Actor();
2233 // set gobject values
2234 var child_0 = new Xcls_Actor67( _this );
2236 this.el.add_child ( child_0.el );
2240 this.el.set_size(50,50);
2243 // user defined functions
2245 public class Xcls_Actor67 : Object
2247 public GtkClutter.Actor el;
2248 private Xcls_MainWindow _this;
2254 public Xcls_Actor67(Xcls_MainWindow _owner )
2257 this.el = new GtkClutter.Actor();
2261 // set gobject values
2262 var child_0 = new Xcls_Button68( _this );
2267 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2270 // user defined functions
2272 public class Xcls_Button68 : Object
2274 public Gtk.Button el;
2275 private Xcls_MainWindow _this;
2281 public Xcls_Button68(Xcls_MainWindow _owner )
2284 this.el = new Gtk.Button();
2288 // set gobject values
2289 this.el.width_request = 50;
2290 this.el.height_request = 50;
2291 this.el.tooltip_text = "Delete Project";
2292 var child_0 = new Xcls_Image69( _this );
2294 this.el.set_image ( child_0.el );
2297 this.el.clicked.connect( ( ) => {
2299 var cd = DialogConfirm.singleton();
2300 cd.el.set_transient_for(_this.el);
2301 cd.el.set_modal(true);
2303 var project = _this.windowstate.left_projects.getSelectedProject();
2304 if (project == null) {
2305 print("SKIP - no project\n");
2310 if (Gtk.ResponseType.YES != cd.show("Confirm",
2311 "Are you sure you want to delete project %s".printf(project.name))) {
2317 Project.Project.remove(project);
2318 _this.project = null;
2320 _this.windowstate.left_projects.is_loaded = false;
2321 _this.windowstate.left_projects.load();
2322 _this.windowstate.clutterfiles.clearFiles();
2327 // user defined functions
2329 public class Xcls_Image69 : Object
2331 public Gtk.Image el;
2332 private Xcls_MainWindow _this;
2338 public Xcls_Image69(Xcls_MainWindow _owner )
2341 this.el = new Gtk.Image();
2345 // set gobject values
2346 this.el.icon_name = "user-trash";
2349 // user defined functions
2359 public class Xcls_Box70 : Object
2362 private Xcls_MainWindow _this;
2368 public Xcls_Box70(Xcls_MainWindow _owner )
2371 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2375 // set gobject values
2376 this.el.homogeneous = false;
2377 var child_0 = new Xcls_Label71( _this );
2379 this.el.pack_start ( child_0.el , true,true,0 );
2380 var child_1 = new Xcls_statusbar( _this );
2382 this.el.pack_start ( child_1.el , true,true,0 );
2383 var child_2 = new Xcls_search_entry( _this );
2385 this.el.pack_start ( child_2.el , false,true,0 );
2386 var child_3 = new Xcls_MenuBar74( _this );
2388 this.el.pack_end ( child_3.el , false,true,0 );
2391 // user defined functions
2393 public class Xcls_Label71 : Object
2395 public Gtk.Label el;
2396 private Xcls_MainWindow _this;
2402 public Xcls_Label71(Xcls_MainWindow _owner )
2405 this.el = new Gtk.Label( " " );
2409 // set gobject values
2412 // user defined functions
2415 public class Xcls_statusbar : Object
2417 public Gtk.ProgressBar el;
2418 private Xcls_MainWindow _this;
2422 public ulong handler_id;
2425 public Xcls_statusbar(Xcls_MainWindow _owner )
2428 _this.statusbar = this;
2429 this.el = new Gtk.ProgressBar();
2432 this.handler_id = -1;
2434 // set gobject values
2435 this.el.show_text = true;
2440 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2443 _this.mainpane.el.set_sensitive(true);
2447 _this.mainpane.el.set_sensitive(false);
2449 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2450 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2456 // user defined functions
2459 public class Xcls_search_entry : Object
2461 public Gtk.SearchEntry el;
2462 private Xcls_MainWindow _this;
2468 public Xcls_search_entry(Xcls_MainWindow _owner )
2471 _this.search_entry = this;
2472 this.el = new Gtk.SearchEntry();
2476 // set gobject values
2480 var description = Pango.FontDescription.from_string("monospace");
2481 description.set_size(8000);
2482 this.el.override_font(description);
2485 this.el.key_press_event.connect( (event) => {
2487 if (event.keyval == Gdk.Key.Return) {
2488 this.forwardSearch(false);
2492 // print(event.key.keyval)
2497 this.el.changed.connect( () => {
2498 if (this.el.text == "") {
2499 _this.search_results.el.hide();
2503 switch(_this.windowstate.state) {
2504 case WindowState.State.CODEONLY:
2505 case WindowState.State.CODE:
2506 // search the code being edited..
2507 res = _this.windowstate.code_editor.search(this.el.text);
2510 case WindowState.State.PREVIEW:
2511 if (_this.windowstate.file.xtype == "Gtk") {
2512 res = _this.windowstate.window_gladeview.search(this.el.text);
2514 res = _this.windowstate.window_rooview.search(this.el.text);
2520 _this.search_results.el.show();
2522 _this.search_results.el.label = "%d Matches".printf(res);
2524 _this.search_results.el.label = "No Matches";
2532 // user defined functions
2533 public void forwardSearch (bool change_focus) {
2534 switch(_this.windowstate.state) {
2535 case WindowState.State.CODEONLY:
2536 case WindowState.State.CODE:
2537 // search the code being edited..
2538 _this.windowstate.code_editor.forwardSearch(change_focus);
2541 case WindowState.State.PREVIEW:
2542 if (_this.windowstate.file.xtype == "Gtk") {
2543 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2545 _this.windowstate.window_rooview.forwardSearch(change_focus);
2554 public class Xcls_MenuBar74 : Object
2556 public Gtk.MenuBar el;
2557 private Xcls_MainWindow _this;
2563 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2566 this.el = new Gtk.MenuBar();
2570 // set gobject values
2571 var child_0 = new Xcls_search_results( _this );
2573 this.el.add ( child_0.el );
2574 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2576 this.el.add ( child_1.el );
2577 var child_2 = new Xcls_statusbar_errors( _this );
2579 this.el.add ( child_2.el );
2580 var child_3 = new Xcls_statusbar_warnings( _this );
2582 this.el.add ( child_3.el );
2583 var child_4 = new Xcls_statusbar_depricated( _this );
2585 this.el.add ( child_4.el );
2586 var child_5 = new Xcls_statusbar_run( _this );
2588 this.el.add ( child_5.el );
2591 // user defined functions
2593 public class Xcls_search_results : Object
2595 public Gtk.ImageMenuItem el;
2596 private Xcls_MainWindow _this;
2600 public Xcls_ValaCompileErrors popup;
2603 public Xcls_search_results(Xcls_MainWindow _owner )
2606 _this.search_results = this;
2607 this.el = new Gtk.ImageMenuItem();
2611 // set gobject values
2612 this.el.always_show_image = true;
2613 this.el.label = "Matches";
2614 var child_0 = new Xcls_Image76( _this );
2616 this.el.set_image ( child_0.el );
2619 this.el.button_press_event.connect( () => {
2621 if (this.popup == null) {
2622 this.popup = new Xcls_ValaCompileErrors();
2623 this.popup.window = _this;
2627 this.popup.show(this.notices, this.el);
2633 // user defined functions
2635 public class Xcls_Image76 : Object
2637 public Gtk.Image el;
2638 private Xcls_MainWindow _this;
2644 public Xcls_Image76(Xcls_MainWindow _owner )
2647 this.el = new Gtk.Image();
2651 // set gobject values
2652 this.el.icon_name = "system-search";
2653 this.el.sensitive = false;
2656 // user defined functions
2660 public class Xcls_statusbar_compilestatus_label : Object
2662 public Gtk.MenuItem el;
2663 private Xcls_MainWindow _this;
2669 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2672 _this.statusbar_compilestatus_label = this;
2673 this.el = new Gtk.MenuItem();
2677 // set gobject values
2678 this.el.label = "Compile Status:";
2681 // user defined functions
2684 public class Xcls_statusbar_errors : Object
2686 public Gtk.ImageMenuItem el;
2687 private Xcls_MainWindow _this;
2691 public Xcls_ValaCompileErrors popup;
2692 public Json.Object notices;
2695 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2698 _this.statusbar_errors = this;
2699 this.el = new Gtk.ImageMenuItem();
2702 this.notices = new Json.Object() ;
2704 // set gobject values
2705 this.el.always_show_image = true;
2706 this.el.label = "Errors";
2707 var child_0 = new Xcls_Image79( _this );
2709 this.el.set_image ( child_0.el );
2712 this.el.button_press_event.connect( () => {
2713 if (this.popup == null) {
2714 this.popup = new Xcls_ValaCompileErrors();
2715 this.popup.window = _this;
2719 this.popup.show(this.notices, this.el);
2724 // user defined functions
2725 public void setNotices (Json.Object nots, int qty) {
2727 this.el.label = qty.to_string() + " Errors";
2728 this.notices = nots;
2732 public class Xcls_Image79 : Object
2734 public Gtk.Image el;
2735 private Xcls_MainWindow _this;
2741 public Xcls_Image79(Xcls_MainWindow _owner )
2744 this.el = new Gtk.Image();
2748 // set gobject values
2749 this.el.icon_name = "dialog-error";
2752 // user defined functions
2756 public class Xcls_statusbar_warnings : Object
2758 public Gtk.ImageMenuItem el;
2759 private Xcls_MainWindow _this;
2763 public Xcls_ValaCompileErrors popup;
2764 public Json.Object notices;
2767 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2770 _this.statusbar_warnings = this;
2771 this.el = new Gtk.ImageMenuItem();
2774 this.notices = new Json.Object();
2776 // set gobject values
2777 this.el.always_show_image = true;
2778 this.el.label = "Warnings";
2779 var child_0 = new Xcls_Image81( _this );
2781 this.el.set_image ( child_0.el );
2784 this.el.button_press_event.connect( () => {
2785 if (this.popup == null) {
2786 this.popup = new Xcls_ValaCompileErrors();
2787 this.popup.window = _this;
2790 this.popup.show(this.notices, this.el);
2795 // user defined functions
2796 public void setNotices (Json.Object nots, int qty) {
2798 this.el.label = qty.to_string() + " Warnings";
2799 this.notices = nots;
2803 public class Xcls_Image81 : Object
2805 public Gtk.Image el;
2806 private Xcls_MainWindow _this;
2812 public Xcls_Image81(Xcls_MainWindow _owner )
2815 this.el = new Gtk.Image();
2819 // set gobject values
2820 this.el.icon_name = "dialog-warning";
2823 // user defined functions
2827 public class Xcls_statusbar_depricated : Object
2829 public Gtk.ImageMenuItem el;
2830 private Xcls_MainWindow _this;
2834 public Xcls_ValaCompileErrors popup;
2835 public Json.Object notices;
2838 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2841 _this.statusbar_depricated = this;
2842 this.el = new Gtk.ImageMenuItem();
2845 this.notices = new Json.Object();
2847 // set gobject values
2848 this.el.always_show_image = true;
2849 this.el.label = "Depricated";
2850 var child_0 = new Xcls_Image83( _this );
2852 this.el.set_image ( child_0.el );
2855 this.el.button_press_event.connect( () => {
2856 if (this.popup == null) {
2857 this.popup = new Xcls_ValaCompileErrors();
2858 this.popup.window = _this;
2862 this.popup.show(this.notices, this.el);
2867 // user defined functions
2868 public void setNotices (Json.Object nots, int qty) {
2870 this.el.label = qty.to_string() + " Depricated";
2871 this.notices = nots;
2875 public class Xcls_Image83 : Object
2877 public Gtk.Image el;
2878 private Xcls_MainWindow _this;
2884 public Xcls_Image83(Xcls_MainWindow _owner )
2887 this.el = new Gtk.Image();
2891 // set gobject values
2892 this.el.icon_name = "dialog-information";
2895 // user defined functions
2899 public class Xcls_statusbar_run : Object
2901 public Gtk.ImageMenuItem el;
2902 private Xcls_MainWindow _this;
2906 public Xcls_ValaCompileErrors popup;
2909 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2912 _this.statusbar_run = this;
2913 this.el = new Gtk.ImageMenuItem();
2917 // set gobject values
2918 this.el.always_show_image = true;
2919 this.el.label = "Run";
2920 var child_0 = new Xcls_Image85( _this );
2922 this.el.set_image ( child_0.el );
2925 this.el.button_press_event.connect( () => {
2926 if (_this.windowstate.file == null) {
2929 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2931 _this.windowstate.compile_results.show(this.el,true);
2937 // user defined functions
2939 public class Xcls_Image85 : Object
2941 public Gtk.Image el;
2942 private Xcls_MainWindow _this;
2948 public Xcls_Image85(Xcls_MainWindow _owner )
2951 this.el = new Gtk.Image();
2955 // set gobject values
2956 this.el.icon_name = "media-playback-start";
2959 // user defined functions