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_Button13( _this );
76 var child_2 = new Xcls_vbox( _this );
78 this.el.add ( child_2.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 );
199 var child_1 = new Xcls_Button11( _this );
203 // user defined functions
205 public class Xcls_Box3 : Object
208 private Xcls_MainWindow _this;
214 public Xcls_Box3(Xcls_MainWindow _owner )
217 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
221 // set gobject values
222 var child_0 = new Xcls_MenuButton4( _this );
224 this.el.add ( child_0.el );
227 // user defined functions
229 public class Xcls_MenuButton4 : Object
231 public Gtk.MenuButton el;
232 private Xcls_MainWindow _this;
238 public Xcls_MenuButton4(Xcls_MainWindow _owner )
241 this.el = new Gtk.MenuButton();
245 // set gobject values
246 this.el.use_popover = false;
247 var child_0 = new Xcls_topbarmenu( _this );
249 this.el.set_popup ( child_0.el );
250 var child_1 = new Xcls_Image10( _this );
252 this.el.set_image ( child_1.el );
255 // user defined functions
257 public class Xcls_topbarmenu : Object
260 private Xcls_MainWindow _this;
266 public Xcls_topbarmenu(Xcls_MainWindow _owner )
269 _this.topbarmenu = this;
270 this.el = new Gtk.Menu();
274 // set gobject values
275 var child_0 = new Xcls_MenuItem6( _this );
277 this.el.append ( child_0.el );
278 var child_1 = new Xcls_SeparatorMenuItem7( _this );
280 this.el.append ( child_1.el );
281 var child_2 = new Xcls_MenuItem8( _this );
283 this.el.append ( child_2.el );
284 var child_3 = new Xcls_MenuItem9( _this );
286 this.el.append ( child_3.el );
295 // user defined functions
297 public class Xcls_MenuItem6 : Object
299 public Gtk.MenuItem el;
300 private Xcls_MainWindow _this;
306 public Xcls_MenuItem6(Xcls_MainWindow _owner )
309 this.el = new Gtk.MenuItem();
313 // set gobject values
314 this.el.label = "Open a new Window";
317 this.el.activate.connect( ( ) => {
318 _this.openNewWindow();
322 // user defined functions
325 public class Xcls_SeparatorMenuItem7 : Object
327 public Gtk.SeparatorMenuItem el;
328 private Xcls_MainWindow _this;
334 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
337 this.el = new Gtk.SeparatorMenuItem();
341 // set gobject values
344 // user defined functions
347 public class Xcls_MenuItem8 : Object
349 public Gtk.MenuItem el;
350 private Xcls_MainWindow _this;
356 public Xcls_MenuItem8(Xcls_MainWindow _owner )
359 this.el = new Gtk.MenuItem();
363 // set gobject values
364 this.el.label = "Download updated Resources";
367 this.el.activate.connect( ( ) => {
368 Resources.singleton().fetchStart();
372 // user defined functions
375 public class Xcls_MenuItem9 : Object
377 public Gtk.MenuItem el;
378 private Xcls_MainWindow _this;
384 public Xcls_MenuItem9(Xcls_MainWindow _owner )
387 this.el = new Gtk.MenuItem();
391 // set gobject values
392 this.el.label = "About the Builder";
395 this.el.activate.connect( () => {
396 About.singleton().el.show();
400 // user defined functions
404 public class Xcls_Image10 : Object
407 private Xcls_MainWindow _this;
413 public Xcls_Image10(Xcls_MainWindow _owner )
416 this.el = new Gtk.Image();
420 // set gobject values
421 this.el.icon_name = "help-about";
424 // user defined functions
429 public class Xcls_Button11 : Object
431 public Gtk.Button el;
432 private Xcls_MainWindow _this;
438 public Xcls_Button11(Xcls_MainWindow _owner )
441 this.el = new Gtk.Button();
445 // set gobject values
446 this.el.width_request = 50;
447 this.el.height_request = 50;
448 var child_0 = new Xcls_Image12( _this );
450 this.el.set_image ( child_0.el );
453 this.el.clicked.connect( ( ) => {
454 _this.windowstate.switchState(WindowState.State.FILES);
460 // user defined functions
462 public class Xcls_Image12 : Object
465 private Xcls_MainWindow _this;
471 public Xcls_Image12(Xcls_MainWindow _owner )
474 this.el = new Gtk.Image();
478 // set gobject values
479 this.el.icon_name = "document-open";
482 // user defined functions
487 public class Xcls_Button13 : Object
489 public Gtk.Button el;
490 private Xcls_MainWindow _this;
496 public Xcls_Button13(Xcls_MainWindow _owner )
499 this.el = new Gtk.Button();
503 // set gobject values
504 this.el.width_request = 50;
505 this.el.height_request = 50;
506 var child_0 = new Xcls_Image14( _this );
508 this.el.set_image ( child_0.el );
511 this.el.clicked.connect( ( ) => {
512 _this.windowstate.switchState(WindowState.State.FILES);
518 // user defined functions
520 public class Xcls_Image14 : Object
523 private Xcls_MainWindow _this;
529 public Xcls_Image14(Xcls_MainWindow _owner )
532 this.el = new Gtk.Image();
536 // set gobject values
537 this.el.icon_name = "document-open";
540 // user defined functions
544 public class Xcls_vbox : Object
547 private Xcls_MainWindow _this;
553 public Xcls_vbox(Xcls_MainWindow _owner )
557 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
561 // set gobject values
562 this.el.homogeneous = false;
563 var child_0 = new Xcls_mainpane( _this );
565 this.el.pack_start ( child_0.el , true,true,0 );
566 var child_1 = new Xcls_Box70( _this );
568 this.el.pack_end ( child_1.el , false,true,0 );
571 // user defined functions
573 public class Xcls_mainpane : Object
576 private Xcls_MainWindow _this;
580 public int lastWidth;
583 public Xcls_mainpane(Xcls_MainWindow _owner )
586 _this.mainpane = this;
587 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
592 // set gobject values
593 this.el.position = 400;
594 var child_0 = new Xcls_leftpane( _this );
596 this.el.add1 ( child_0.el );
597 var child_1 = new Xcls_Box21( _this );
599 this.el.add2 ( child_1.el );
602 // user defined functions
604 public class Xcls_leftpane : Object
607 private Xcls_MainWindow _this;
613 public Xcls_leftpane(Xcls_MainWindow _owner )
616 _this.leftpane = this;
617 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
621 // set gobject values
622 var child_0 = new Xcls_editpane( _this );
624 this.el.pack_start ( child_0.el , true,true,0 );
627 // user defined functions
629 public class Xcls_editpane : Object
632 private Xcls_MainWindow _this;
638 public Xcls_editpane(Xcls_MainWindow _owner )
641 _this.editpane = this;
642 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
646 // set gobject values
647 var child_0 = new Xcls_tree( _this );
649 this.el.add1 ( child_0.el );
650 var child_1 = new Xcls_props( _this );
652 this.el.add2 ( child_1.el );
655 // user defined functions
657 public class Xcls_tree : Object
660 private Xcls_MainWindow _this;
666 public Xcls_tree(Xcls_MainWindow _owner )
670 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
674 // set gobject values
677 // user defined functions
680 public class Xcls_props : Object
683 private Xcls_MainWindow _this;
689 public Xcls_props(Xcls_MainWindow _owner )
693 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
697 // set gobject values
700 // user defined functions
705 public class Xcls_Box21 : Object
708 private Xcls_MainWindow _this;
714 public Xcls_Box21(Xcls_MainWindow _owner )
717 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
721 // set gobject values
722 var child_0 = new Xcls_clutterembed( _this );
724 this.el.pack_start ( child_0.el , true,true,0 );
727 // user defined functions
729 public class Xcls_clutterembed : Object
731 public GtkClutter.Embed el;
732 private Xcls_MainWindow _this;
738 public Xcls_clutterembed(Xcls_MainWindow _owner )
741 _this.clutterembed = this;
742 this.el = new GtkClutter.Embed();
746 // set gobject values
747 var child_0 = new Xcls_rooview( _this );
749 this.el.get_stage().add_child ( child_0.el );
750 var child_1 = new Xcls_objectview( _this );
752 this.el.get_stage().add_child ( child_1.el );
753 var child_2 = new Xcls_codeeditview( _this );
755 this.el.get_stage().add_child ( child_2.el );
756 var child_3 = new Xcls_addpropsview( _this );
758 this.el.get_stage().add_child ( child_3.el );
759 var child_4 = new Xcls_projecteditview( _this );
761 this.el.get_stage().add_child ( child_4.el );
762 var child_5 = new Xcls_buttonlayout( _this );
764 this.el.get_stage().add_child ( child_5.el );
768 var stage = this.el.get_stage();
769 stage.set_background_color( Clutter.Color.from_string("#000"));
772 this.el.size_allocate.connect( ( alloc) => {
773 if (_this.windowstate == null) {
776 _this.windowstate.resizeCanvas();
781 // user defined functions
783 public class Xcls_rooview : Object
785 public GtkClutter.Actor el;
786 private Xcls_MainWindow _this;
792 public Xcls_rooview(Xcls_MainWindow _owner )
795 _this.rooview = this;
796 this.el = new GtkClutter.Actor();
800 // set gobject values
807 this.el.add_constraint(
808 new Clutter.AlignConstraint(
809 _this.clutterembed.el.get_stage(),
810 Clutter.AlignAxis.X_AXIS,
815 //this.el.set_position(100,100);
816 this.el.set_pivot_point(1.0f,1.0f);
818 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
819 _this.clutterembed.el.get_stage().height);
824 // user defined functions
827 public class Xcls_objectview : Object
829 public GtkClutter.Actor el;
830 private Xcls_MainWindow _this;
836 public Xcls_objectview(Xcls_MainWindow _owner )
839 _this.objectview = this;
840 this.el = new GtkClutter.Actor();
844 // set gobject values
851 this.el.add_constraint(
852 new Clutter.AlignConstraint(
853 _this.clutterembed.el.get_stage(),
854 Clutter.AlignAxis.X_AXIS,
859 this.el.fixed_x = 50.0f;
860 this.el.fixed_y = 0.0f;
861 //this.el.set_position(100,100);
862 this.el.set_pivot_point(0.0f,0.0f);
863 this.el.set_scale(0.0f,1.0f);
864 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
865 _this.clutterembed.el.get_stage().height);
870 // user defined functions
873 public class Xcls_codeeditview : Object
875 public GtkClutter.Actor el;
876 private Xcls_MainWindow _this;
882 public Xcls_codeeditview(Xcls_MainWindow _owner )
885 _this.codeeditview = this;
886 this.el = new GtkClutter.Actor();
890 // set gobject values
897 this.el.add_constraint(
898 new Clutter.AlignConstraint(
899 _this.clutterembed.el.get_stage(),
900 Clutter.AlignAxis.X_AXIS,
905 this.el.fixed_x = 50.0f;
906 this.el.fixed_y = 0.0f;
907 //this.el.set_position(100,100);
908 this.el.set_pivot_point(0.0f,0.0f);
909 this.el.set_scale(0.0f,1.0f);
910 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
911 _this.clutterembed.el.get_stage().height);
916 // user defined functions
919 public class Xcls_addpropsview : Object
921 public GtkClutter.Actor el;
922 private Xcls_MainWindow _this;
928 public Xcls_addpropsview(Xcls_MainWindow _owner )
931 _this.addpropsview = this;
932 this.el = new GtkClutter.Actor();
936 // set gobject values
943 this.el.add_constraint(
944 new Clutter.AlignConstraint(
945 _this.clutterembed.el.get_stage(),
946 Clutter.AlignAxis.X_AXIS,
951 this.el.fixed_x = 50.0f;
952 this.el.fixed_y = 0.0f;
953 //this.el.set_position(100,100);
954 this.el.set_pivot_point(0.0f,0.0f);
955 this.el.set_scale(0.0f,1.0f);
956 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
957 _this.clutterembed.el.get_stage().height);
962 // user defined functions
965 public class Xcls_projecteditview : Object
967 public GtkClutter.Actor el;
968 private Xcls_MainWindow _this;
974 public Xcls_projecteditview(Xcls_MainWindow _owner )
977 _this.projecteditview = this;
978 this.el = new GtkClutter.Actor();
982 // set gobject values
989 this.el.add_constraint(
990 new Clutter.AlignConstraint(
991 _this.clutterembed.el.get_stage(),
992 Clutter.AlignAxis.X_AXIS,
997 //this.el.set_position(100,100);
998 this.el.set_pivot_point(0.0f,0.0f);
999 this.el.set_scale(1.0f,0.0f);
1000 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1001 _this.clutterembed.el.get_stage().height /2);
1006 // user defined functions
1009 public class Xcls_buttonlayout : Object
1011 public Clutter.Actor el;
1012 private Xcls_MainWindow _this;
1018 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1021 _this.buttonlayout = this;
1022 this.el = new Clutter.Actor();
1026 // set gobject values
1027 var child_0 = new Xcls_BoxLayout29( _this );
1029 this.el.layout_manager = child_0.el;
1030 var child_1 = new Xcls_backbutton( _this );
1032 this.el.add_child ( child_1.el );
1033 var child_2 = new Xcls_projectbutton( _this );
1035 this.el.add_child ( child_2.el );
1036 var child_3 = new Xcls_editfilebutton( _this );
1038 this.el.add_child ( child_3.el );
1039 var child_4 = new Xcls_projecteditbutton( _this );
1041 this.el.add_child ( child_4.el );
1042 var child_5 = new Xcls_objectshowbutton( _this );
1044 this.el.add_child ( child_5.el );
1045 var child_6 = new Xcls_addpropbutton( _this );
1047 this.el.add_child ( child_6.el );
1048 var child_7 = new Xcls_addlistenerbutton( _this );
1050 this.el.add_child ( child_7.el );
1051 var child_8 = new Xcls_addprojectbutton( _this );
1053 this.el.add_child ( child_8.el );
1054 var child_9 = new Xcls_addfilebutton( _this );
1056 this.el.add_child ( child_9.el );
1057 var child_10 = new Xcls_delprojectbutton( _this );
1059 this.el.add_child ( child_10.el );
1065 this.el.add_constraint(
1066 new Clutter.AlignConstraint(
1067 _this.clutterembed.el.get_stage(),
1068 Clutter.AlignAxis.X_AXIS,
1074 //this.el.set_position(100,100);
1075 this.el.set_pivot_point(0.5f,0.5f);
1076 this.el.set_size(50,
1077 _this.clutterembed.el.get_stage().height);
1082 // user defined functions
1084 public class Xcls_BoxLayout29 : Object
1086 public Clutter.BoxLayout el;
1087 private Xcls_MainWindow _this;
1093 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1096 this.el = new Clutter.BoxLayout();
1100 // set gobject values
1101 this.el.orientation = Clutter.Orientation.VERTICAL;
1104 // user defined functions
1107 public class Xcls_backbutton : Object
1109 public Clutter.Actor el;
1110 private Xcls_MainWindow _this;
1116 public Xcls_backbutton(Xcls_MainWindow _owner )
1119 _this.backbutton = this;
1120 this.el = new Clutter.Actor();
1124 // set gobject values
1125 var child_0 = new Xcls_Actor31( _this );
1127 this.el.add_child ( child_0.el );
1131 this.el.set_size(50,50);
1134 // user defined functions
1136 public class Xcls_Actor31 : Object
1138 public GtkClutter.Actor el;
1139 private Xcls_MainWindow _this;
1145 public Xcls_Actor31(Xcls_MainWindow _owner )
1148 this.el = new GtkClutter.Actor();
1152 // set gobject values
1153 var child_0 = new Xcls_Button32( _this );
1158 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1161 // user defined functions
1163 public class Xcls_Button32 : Object
1165 public Gtk.Button el;
1166 private Xcls_MainWindow _this;
1172 public Xcls_Button32(Xcls_MainWindow _owner )
1175 this.el = new Gtk.Button();
1179 // set gobject values
1180 this.el.width_request = 50;
1181 this.el.height_request = 50;
1182 this.el.tooltip_text = "Back";
1183 var child_0 = new Xcls_Image33( _this );
1185 this.el.set_image ( child_0.el );
1188 this.el.clicked.connect( ( ) => {
1190 _this.windowstate.switchState(WindowState.State.PREVIEW);
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 = "go-previous";
1218 // user defined functions
1224 public class Xcls_projectbutton : Object
1226 public Clutter.Actor el;
1227 private Xcls_MainWindow _this;
1233 public Xcls_projectbutton(Xcls_MainWindow _owner )
1236 _this.projectbutton = 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,50);
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 var child_0 = new Xcls_Image37( _this );
1301 this.el.set_image ( child_0.el );
1304 this.el.clicked.connect( ( ) => {
1305 _this.windowstate.switchState(WindowState.State.FILES);
1311 // user defined functions
1313 public class Xcls_Image37 : Object
1315 public Gtk.Image el;
1316 private Xcls_MainWindow _this;
1322 public Xcls_Image37(Xcls_MainWindow _owner )
1325 this.el = new Gtk.Image();
1329 // set gobject values
1330 this.el.icon_name = "document-open";
1333 // user defined functions
1339 public class Xcls_editfilebutton : Object
1341 public Clutter.Actor el;
1342 private Xcls_MainWindow _this;
1348 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1351 _this.editfilebutton = this;
1352 this.el = new Clutter.Actor();
1356 // set gobject values
1357 var child_0 = new Xcls_Actor39( _this );
1359 this.el.add_child ( child_0.el );
1363 this.el.set_size(50.0f,50.0f);
1366 // user defined functions
1368 public class Xcls_Actor39 : Object
1370 public GtkClutter.Actor el;
1371 private Xcls_MainWindow _this;
1377 public Xcls_Actor39(Xcls_MainWindow _owner )
1380 this.el = new GtkClutter.Actor();
1384 // set gobject values
1385 var child_0 = new Xcls_Button40( _this );
1390 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1393 // user defined functions
1395 public class Xcls_Button40 : Object
1397 public Gtk.Button el;
1398 private Xcls_MainWindow _this;
1404 public Xcls_Button40(Xcls_MainWindow _owner )
1407 this.el = new Gtk.Button();
1411 // set gobject values
1412 this.el.width_request = 50;
1413 this.el.height_request = 50;
1414 this.el.tooltip_text = "File Details";
1415 var child_0 = new Xcls_Image41( _this );
1417 this.el.set_image ( child_0.el );
1420 this.el.clicked.connect( ( ) => {
1422 // create a new file in project..
1423 if (_this.project == null || _this.windowstate.file == null) {
1426 _this.windowstate.file_details.show(
1427 _this.windowstate.file, this.el
1436 // user defined functions
1438 public class Xcls_Image41 : Object
1440 public Gtk.Image el;
1441 private Xcls_MainWindow _this;
1447 public Xcls_Image41(Xcls_MainWindow _owner )
1450 this.el = new Gtk.Image();
1454 // set gobject values
1455 this.el.icon_name = "document-properties";
1458 // user defined functions
1464 public class Xcls_projecteditbutton : Object
1466 public Clutter.Actor el;
1467 private Xcls_MainWindow _this;
1473 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1476 _this.projecteditbutton = this;
1477 this.el = new Clutter.Actor();
1481 // set gobject values
1482 var child_0 = new Xcls_Actor43( _this );
1484 this.el.add_child ( child_0.el );
1488 this.el.set_size(50,50);
1491 // user defined functions
1493 public class Xcls_Actor43 : Object
1495 public GtkClutter.Actor el;
1496 private Xcls_MainWindow _this;
1502 public Xcls_Actor43(Xcls_MainWindow _owner )
1505 this.el = new GtkClutter.Actor();
1509 // set gobject values
1510 var child_0 = new Xcls_Button44( _this );
1515 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1518 // user defined functions
1520 public class Xcls_Button44 : Object
1522 public Gtk.Button el;
1523 private Xcls_MainWindow _this;
1529 public Xcls_Button44(Xcls_MainWindow _owner )
1532 this.el = new Gtk.Button();
1536 // set gobject values
1537 this.el.width_request = 50;
1538 this.el.height_request = 50;
1539 this.el.tooltip_text = "Project Details";
1540 var child_0 = new Xcls_Image45( _this );
1542 this.el.set_image ( child_0.el );
1545 this.el.clicked.connect( ( ) => {
1546 _this.windowstate.switchState(WindowState.State.PROJECT);
1553 // user defined functions
1555 public class Xcls_Image45 : Object
1557 public Gtk.Image el;
1558 private Xcls_MainWindow _this;
1564 public Xcls_Image45(Xcls_MainWindow _owner )
1567 this.el = new Gtk.Image();
1571 // set gobject values
1572 this.el.icon_name = "emblem-system";
1575 // user defined functions
1581 public class Xcls_objectshowbutton : Object
1583 public Clutter.Actor el;
1584 private Xcls_MainWindow _this;
1590 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1593 _this.objectshowbutton = this;
1594 this.el = new Clutter.Actor();
1598 // set gobject values
1599 var child_0 = new Xcls_Actor47( _this );
1601 this.el.add_child ( child_0.el );
1605 this.el.set_size(50,50);
1608 this.el.enter_event.connect( ( event) => {
1609 this.el.background_color = Clutter.Color.from_string("#333");
1612 this.el.leave_event.connect( ( event) => {
1613 this.el.background_color = Clutter.Color.from_string("#000");
1618 // user defined functions
1620 public class Xcls_Actor47 : Object
1622 public GtkClutter.Actor el;
1623 private Xcls_MainWindow _this;
1629 public Xcls_Actor47(Xcls_MainWindow _owner )
1632 this.el = new GtkClutter.Actor();
1636 // set gobject values
1637 var child_0 = new Xcls_Button48( _this );
1642 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1645 // user defined functions
1647 public class Xcls_Button48 : Object
1649 public Gtk.Button el;
1650 private Xcls_MainWindow _this;
1656 public Xcls_Button48(Xcls_MainWindow _owner )
1659 this.el = new Gtk.Button();
1663 // set gobject values
1664 this.el.width_request = 50;
1665 this.el.height_request = 50;
1666 this.el.tooltip_text = "Add Child Element";
1667 var child_0 = new Xcls_Image49( _this );
1669 this.el.set_image ( child_0.el );
1672 this.el.clicked.connect( ( ) => {
1674 _this.windowstate.switchState(WindowState.State.OBJECT);
1680 // user defined functions
1682 public class Xcls_Image49 : Object
1684 public Gtk.Image el;
1685 private Xcls_MainWindow _this;
1691 public Xcls_Image49(Xcls_MainWindow _owner )
1694 this.el = new Gtk.Image();
1698 // set gobject values
1699 this.el.icon_name = "list-add";
1702 // user defined functions
1708 public class Xcls_addpropbutton : Object
1710 public Clutter.Actor el;
1711 private Xcls_MainWindow _this;
1717 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1720 _this.addpropbutton = this;
1721 this.el = new Clutter.Actor();
1725 // set gobject values
1726 var child_0 = new Xcls_Actor51( _this );
1728 this.el.add_child ( child_0.el );
1732 this.el.set_size(50,50);
1735 // user defined functions
1737 public class Xcls_Actor51 : Object
1739 public GtkClutter.Actor el;
1740 private Xcls_MainWindow _this;
1746 public Xcls_Actor51(Xcls_MainWindow _owner )
1749 this.el = new GtkClutter.Actor();
1753 // set gobject values
1754 var child_0 = new Xcls_Button52( _this );
1759 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1762 // user defined functions
1764 public class Xcls_Button52 : Object
1766 public Gtk.Button el;
1767 private Xcls_MainWindow _this;
1773 public Xcls_Button52(Xcls_MainWindow _owner )
1776 this.el = new Gtk.Button();
1780 // set gobject values
1781 this.el.width_request = 50;
1782 this.el.height_request = 50;
1783 this.el.tooltip_text = "Add Property";
1784 var child_0 = new Xcls_Image53( _this );
1786 this.el.set_image ( child_0.el );
1789 this.el.clicked.connect( ( ) => {
1791 _this.windowstate.switchState(WindowState.State.PROP);
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 = "format-justify-left";
1819 // user defined functions
1825 public class Xcls_addlistenerbutton : Object
1827 public Clutter.Actor el;
1828 private Xcls_MainWindow _this;
1834 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1837 _this.addlistenerbutton = 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,50);
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 = "Add Event Code";
1901 var child_0 = new Xcls_Image57( _this );
1903 this.el.set_image ( child_0.el );
1906 this.el.clicked.connect( ( ) => {
1908 _this.windowstate.switchState(WindowState.State.LISTENER);
1915 // user defined functions
1917 public class Xcls_Image57 : Object
1919 public Gtk.Image el;
1920 private Xcls_MainWindow _this;
1926 public Xcls_Image57(Xcls_MainWindow _owner )
1929 this.el = new Gtk.Image();
1933 // set gobject values
1934 this.el.icon_name = "appointment-new";
1937 // user defined functions
1943 public class Xcls_addprojectbutton : Object
1945 public Clutter.Actor el;
1946 private Xcls_MainWindow _this;
1952 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1955 _this.addprojectbutton = this;
1956 this.el = new Clutter.Actor();
1960 // set gobject values
1961 var child_0 = new Xcls_Actor59( _this );
1963 this.el.add_child ( child_0.el );
1967 this.el.set_size(50.0f,50.0f);
1970 // user defined functions
1972 public class Xcls_Actor59 : Object
1974 public GtkClutter.Actor el;
1975 private Xcls_MainWindow _this;
1981 public Xcls_Actor59(Xcls_MainWindow _owner )
1984 this.el = new GtkClutter.Actor();
1988 // set gobject values
1989 var child_0 = new Xcls_Button60( _this );
1994 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1997 // user defined functions
1999 public class Xcls_Button60 : Object
2001 public Gtk.Button el;
2002 private Xcls_MainWindow _this;
2008 public Xcls_Button60(Xcls_MainWindow _owner )
2011 this.el = new Gtk.Button();
2015 // set gobject values
2016 this.el.width_request = 50;
2017 this.el.height_request = 50;
2018 this.el.tooltip_text = "New\nProj.";
2019 var child_0 = new Xcls_Image61( _this );
2021 this.el.set_image ( child_0.el );
2024 this.el.clicked.connect( ( ) => {
2026 // create a new file in project..
2027 //Xcls_DialogNewComponent.singleton().show(
2028 var pe = EditProject.singleton();
2029 pe.el.set_transient_for(_this.el);
2030 pe.el.set_modal(true);
2039 _this.windowstate.left_projects.is_loaded = false;
2040 _this.windowstate.left_projects.load();
2041 _this.windowstate.left_projects.selectProject(p);
2048 // user defined functions
2050 public class Xcls_Image61 : Object
2052 public Gtk.Image el;
2053 private Xcls_MainWindow _this;
2059 public Xcls_Image61(Xcls_MainWindow _owner )
2062 this.el = new Gtk.Image();
2066 // set gobject values
2067 this.el.icon_name = "folder-new";
2070 // user defined functions
2076 public class Xcls_addfilebutton : Object
2078 public Clutter.Actor el;
2079 private Xcls_MainWindow _this;
2085 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2088 _this.addfilebutton = this;
2089 this.el = new Clutter.Actor();
2093 // set gobject values
2094 var child_0 = new Xcls_Actor63( _this );
2096 this.el.add_child ( child_0.el );
2100 this.el.set_size(50.0f,50.0f);
2103 // user defined functions
2105 public class Xcls_Actor63 : Object
2107 public GtkClutter.Actor el;
2108 private Xcls_MainWindow _this;
2114 public Xcls_Actor63(Xcls_MainWindow _owner )
2117 this.el = new GtkClutter.Actor();
2121 // set gobject values
2122 var child_0 = new Xcls_Button64( _this );
2127 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2130 // user defined functions
2132 public class Xcls_Button64 : Object
2134 public Gtk.Button el;
2135 private Xcls_MainWindow _this;
2141 public Xcls_Button64(Xcls_MainWindow _owner )
2144 this.el = new Gtk.Button();
2148 // set gobject values
2149 this.el.width_request = 50;
2150 this.el.height_request = 50;
2151 this.el.tooltip_text = "Add File";
2152 var child_0 = new Xcls_Image65( _this );
2154 this.el.set_image ( child_0.el );
2157 this.el.clicked.connect( () => {
2158 // create a new file in project..
2159 print("add file selected\n");
2160 // what's the currently selected project...
2161 var proj = _this.windowstate.left_projects.getSelectedProject();
2164 print("no project selected?\n");
2168 print("creating file?");
2170 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2171 _this.project = proj;
2172 print("showing popup?");
2173 _this.windowstate.file_details.show(
2182 // user defined functions
2184 public class Xcls_Image65 : Object
2186 public Gtk.Image el;
2187 private Xcls_MainWindow _this;
2193 public Xcls_Image65(Xcls_MainWindow _owner )
2196 this.el = new Gtk.Image();
2200 // set gobject values
2201 this.el.icon_name = "document-new";
2204 // user defined functions
2210 public class Xcls_delprojectbutton : Object
2212 public Clutter.Actor el;
2213 private Xcls_MainWindow _this;
2219 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2222 _this.delprojectbutton = this;
2223 this.el = new Clutter.Actor();
2227 // set gobject values
2228 var child_0 = new Xcls_Actor67( _this );
2230 this.el.add_child ( child_0.el );
2234 this.el.set_size(50,50);
2237 // user defined functions
2239 public class Xcls_Actor67 : Object
2241 public GtkClutter.Actor el;
2242 private Xcls_MainWindow _this;
2248 public Xcls_Actor67(Xcls_MainWindow _owner )
2251 this.el = new GtkClutter.Actor();
2255 // set gobject values
2256 var child_0 = new Xcls_Button68( _this );
2261 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2264 // user defined functions
2266 public class Xcls_Button68 : Object
2268 public Gtk.Button el;
2269 private Xcls_MainWindow _this;
2275 public Xcls_Button68(Xcls_MainWindow _owner )
2278 this.el = new Gtk.Button();
2282 // set gobject values
2283 this.el.width_request = 50;
2284 this.el.height_request = 50;
2285 this.el.tooltip_text = "Delete Project";
2286 var child_0 = new Xcls_Image69( _this );
2288 this.el.set_image ( child_0.el );
2291 this.el.clicked.connect( ( ) => {
2293 var cd = DialogConfirm.singleton();
2294 cd.el.set_transient_for(_this.el);
2295 cd.el.set_modal(true);
2297 var project = _this.windowstate.left_projects.getSelectedProject();
2298 if (project == null) {
2299 print("SKIP - no project\n");
2304 if (Gtk.ResponseType.YES != cd.show("Confirm",
2305 "Are you sure you want to delete project %s".printf(project.name))) {
2311 Project.Project.remove(project);
2312 _this.project = null;
2314 _this.windowstate.left_projects.is_loaded = false;
2315 _this.windowstate.left_projects.load();
2316 _this.windowstate.clutterfiles.clearFiles();
2321 // user defined functions
2323 public class Xcls_Image69 : Object
2325 public Gtk.Image el;
2326 private Xcls_MainWindow _this;
2332 public Xcls_Image69(Xcls_MainWindow _owner )
2335 this.el = new Gtk.Image();
2339 // set gobject values
2340 this.el.icon_name = "user-trash";
2343 // user defined functions
2353 public class Xcls_Box70 : Object
2356 private Xcls_MainWindow _this;
2362 public Xcls_Box70(Xcls_MainWindow _owner )
2365 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2369 // set gobject values
2370 this.el.homogeneous = false;
2371 var child_0 = new Xcls_Label71( _this );
2373 this.el.pack_start ( child_0.el , true,true,0 );
2374 var child_1 = new Xcls_statusbar( _this );
2376 this.el.pack_start ( child_1.el , true,true,0 );
2377 var child_2 = new Xcls_search_entry( _this );
2379 this.el.pack_start ( child_2.el , false,true,0 );
2380 var child_3 = new Xcls_MenuBar74( _this );
2382 this.el.pack_end ( child_3.el , false,true,0 );
2385 // user defined functions
2387 public class Xcls_Label71 : Object
2389 public Gtk.Label el;
2390 private Xcls_MainWindow _this;
2396 public Xcls_Label71(Xcls_MainWindow _owner )
2399 this.el = new Gtk.Label( " " );
2403 // set gobject values
2406 // user defined functions
2409 public class Xcls_statusbar : Object
2411 public Gtk.ProgressBar el;
2412 private Xcls_MainWindow _this;
2416 public ulong handler_id;
2419 public Xcls_statusbar(Xcls_MainWindow _owner )
2422 _this.statusbar = this;
2423 this.el = new Gtk.ProgressBar();
2426 this.handler_id = -1;
2428 // set gobject values
2429 this.el.show_text = true;
2434 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2437 _this.mainpane.el.set_sensitive(true);
2441 _this.mainpane.el.set_sensitive(false);
2443 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2444 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2450 // user defined functions
2453 public class Xcls_search_entry : Object
2455 public Gtk.SearchEntry el;
2456 private Xcls_MainWindow _this;
2462 public Xcls_search_entry(Xcls_MainWindow _owner )
2465 _this.search_entry = this;
2466 this.el = new Gtk.SearchEntry();
2470 // set gobject values
2474 var description = Pango.FontDescription.from_string("monospace");
2475 description.set_size(8000);
2476 this.el.override_font(description);
2479 this.el.key_press_event.connect( (event) => {
2481 if (event.keyval == Gdk.Key.Return) {
2482 this.forwardSearch(false);
2486 // print(event.key.keyval)
2491 this.el.changed.connect( () => {
2492 if (this.el.text == "") {
2493 _this.search_results.el.hide();
2497 switch(_this.windowstate.state) {
2498 case WindowState.State.CODEONLY:
2499 case WindowState.State.CODE:
2500 // search the code being edited..
2501 res = _this.windowstate.code_editor.search(this.el.text);
2504 case WindowState.State.PREVIEW:
2505 if (_this.windowstate.file.xtype == "Gtk") {
2506 res = _this.windowstate.window_gladeview.search(this.el.text);
2508 res = _this.windowstate.window_rooview.search(this.el.text);
2514 _this.search_results.el.show();
2516 _this.search_results.el.label = "%d Matches".printf(res);
2518 _this.search_results.el.label = "No Matches";
2526 // user defined functions
2527 public void forwardSearch (bool change_focus) {
2528 switch(_this.windowstate.state) {
2529 case WindowState.State.CODEONLY:
2530 case WindowState.State.CODE:
2531 // search the code being edited..
2532 _this.windowstate.code_editor.forwardSearch(change_focus);
2535 case WindowState.State.PREVIEW:
2536 if (_this.windowstate.file.xtype == "Gtk") {
2537 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2539 _this.windowstate.window_rooview.forwardSearch(change_focus);
2548 public class Xcls_MenuBar74 : Object
2550 public Gtk.MenuBar el;
2551 private Xcls_MainWindow _this;
2557 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2560 this.el = new Gtk.MenuBar();
2564 // set gobject values
2565 var child_0 = new Xcls_search_results( _this );
2567 this.el.add ( child_0.el );
2568 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2570 this.el.add ( child_1.el );
2571 var child_2 = new Xcls_statusbar_errors( _this );
2573 this.el.add ( child_2.el );
2574 var child_3 = new Xcls_statusbar_warnings( _this );
2576 this.el.add ( child_3.el );
2577 var child_4 = new Xcls_statusbar_depricated( _this );
2579 this.el.add ( child_4.el );
2580 var child_5 = new Xcls_statusbar_run( _this );
2582 this.el.add ( child_5.el );
2585 // user defined functions
2587 public class Xcls_search_results : Object
2589 public Gtk.ImageMenuItem el;
2590 private Xcls_MainWindow _this;
2594 public Xcls_ValaCompileErrors popup;
2597 public Xcls_search_results(Xcls_MainWindow _owner )
2600 _this.search_results = this;
2601 this.el = new Gtk.ImageMenuItem();
2605 // set gobject values
2606 this.el.always_show_image = true;
2607 this.el.label = "Matches";
2608 var child_0 = new Xcls_Image76( _this );
2610 this.el.set_image ( child_0.el );
2613 this.el.button_press_event.connect( () => {
2615 if (this.popup == null) {
2616 this.popup = new Xcls_ValaCompileErrors();
2617 this.popup.window = _this;
2621 this.popup.show(this.notices, this.el);
2627 // user defined functions
2629 public class Xcls_Image76 : Object
2631 public Gtk.Image el;
2632 private Xcls_MainWindow _this;
2638 public Xcls_Image76(Xcls_MainWindow _owner )
2641 this.el = new Gtk.Image();
2645 // set gobject values
2646 this.el.icon_name = "system-search";
2647 this.el.sensitive = false;
2650 // user defined functions
2654 public class Xcls_statusbar_compilestatus_label : Object
2656 public Gtk.MenuItem el;
2657 private Xcls_MainWindow _this;
2663 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2666 _this.statusbar_compilestatus_label = this;
2667 this.el = new Gtk.MenuItem();
2671 // set gobject values
2672 this.el.label = "Compile Status:";
2675 // user defined functions
2678 public class Xcls_statusbar_errors : Object
2680 public Gtk.ImageMenuItem el;
2681 private Xcls_MainWindow _this;
2685 public Xcls_ValaCompileErrors popup;
2686 public Json.Object notices;
2689 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2692 _this.statusbar_errors = this;
2693 this.el = new Gtk.ImageMenuItem();
2696 this.notices = new Json.Object() ;
2698 // set gobject values
2699 this.el.always_show_image = true;
2700 this.el.label = "Errors";
2701 var child_0 = new Xcls_Image79( _this );
2703 this.el.set_image ( child_0.el );
2706 this.el.button_press_event.connect( () => {
2707 if (this.popup == null) {
2708 this.popup = new Xcls_ValaCompileErrors();
2709 this.popup.window = _this;
2713 this.popup.show(this.notices, this.el);
2718 // user defined functions
2719 public void setNotices (Json.Object nots, int qty) {
2721 this.el.label = qty.to_string() + " Errors";
2722 this.notices = nots;
2726 public class Xcls_Image79 : Object
2728 public Gtk.Image el;
2729 private Xcls_MainWindow _this;
2735 public Xcls_Image79(Xcls_MainWindow _owner )
2738 this.el = new Gtk.Image();
2742 // set gobject values
2743 this.el.icon_name = "dialog-error";
2746 // user defined functions
2750 public class Xcls_statusbar_warnings : Object
2752 public Gtk.ImageMenuItem el;
2753 private Xcls_MainWindow _this;
2757 public Xcls_ValaCompileErrors popup;
2758 public Json.Object notices;
2761 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2764 _this.statusbar_warnings = this;
2765 this.el = new Gtk.ImageMenuItem();
2768 this.notices = new Json.Object();
2770 // set gobject values
2771 this.el.always_show_image = true;
2772 this.el.label = "Warnings";
2773 var child_0 = new Xcls_Image81( _this );
2775 this.el.set_image ( child_0.el );
2778 this.el.button_press_event.connect( () => {
2779 if (this.popup == null) {
2780 this.popup = new Xcls_ValaCompileErrors();
2781 this.popup.window = _this;
2784 this.popup.show(this.notices, this.el);
2789 // user defined functions
2790 public void setNotices (Json.Object nots, int qty) {
2792 this.el.label = qty.to_string() + " Warnings";
2793 this.notices = nots;
2797 public class Xcls_Image81 : Object
2799 public Gtk.Image el;
2800 private Xcls_MainWindow _this;
2806 public Xcls_Image81(Xcls_MainWindow _owner )
2809 this.el = new Gtk.Image();
2813 // set gobject values
2814 this.el.icon_name = "dialog-warning";
2817 // user defined functions
2821 public class Xcls_statusbar_depricated : Object
2823 public Gtk.ImageMenuItem el;
2824 private Xcls_MainWindow _this;
2828 public Xcls_ValaCompileErrors popup;
2829 public Json.Object notices;
2832 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2835 _this.statusbar_depricated = this;
2836 this.el = new Gtk.ImageMenuItem();
2839 this.notices = new Json.Object();
2841 // set gobject values
2842 this.el.always_show_image = true;
2843 this.el.label = "Depricated";
2844 var child_0 = new Xcls_Image83( _this );
2846 this.el.set_image ( child_0.el );
2849 this.el.button_press_event.connect( () => {
2850 if (this.popup == null) {
2851 this.popup = new Xcls_ValaCompileErrors();
2852 this.popup.window = _this;
2856 this.popup.show(this.notices, this.el);
2861 // user defined functions
2862 public void setNotices (Json.Object nots, int qty) {
2864 this.el.label = qty.to_string() + " Depricated";
2865 this.notices = nots;
2869 public class Xcls_Image83 : Object
2871 public Gtk.Image el;
2872 private Xcls_MainWindow _this;
2878 public Xcls_Image83(Xcls_MainWindow _owner )
2881 this.el = new Gtk.Image();
2885 // set gobject values
2886 this.el.icon_name = "dialog-information";
2889 // user defined functions
2893 public class Xcls_statusbar_run : Object
2895 public Gtk.ImageMenuItem el;
2896 private Xcls_MainWindow _this;
2900 public Xcls_ValaCompileErrors popup;
2903 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2906 _this.statusbar_run = this;
2907 this.el = new Gtk.ImageMenuItem();
2911 // set gobject values
2912 this.el.always_show_image = true;
2913 this.el.label = "Run";
2914 var child_0 = new Xcls_Image85( _this );
2916 this.el.set_image ( child_0.el );
2919 this.el.button_press_event.connect( () => {
2920 if (_this.windowstate.file == null) {
2923 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2925 _this.windowstate.compile_results.show(this.el,true);
2931 // user defined functions
2933 public class Xcls_Image85 : Object
2935 public Gtk.Image el;
2936 private Xcls_MainWindow _this;
2942 public Xcls_Image85(Xcls_MainWindow _owner )
2945 this.el = new Gtk.Image();
2949 // set gobject values
2950 this.el.icon_name = "media-playback-start";
2953 // user defined functions