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 this.el.add ( child_1.el );
226 var child_2 = new Xcls_openbackbtn( _this );
228 this.el.add ( child_2.el );
231 // user defined functions
233 public class Xcls_MenuButton4 : Object
235 public Gtk.MenuButton el;
236 private Xcls_MainWindow _this;
242 public Xcls_MenuButton4(Xcls_MainWindow _owner )
245 this.el = new Gtk.MenuButton();
249 // set gobject values
250 this.el.use_popover = false;
251 var child_0 = new Xcls_topbarmenu( _this );
253 this.el.set_popup ( child_0.el );
254 var child_1 = new Xcls_Image10( _this );
256 this.el.set_image ( child_1.el );
259 // user defined functions
261 public class Xcls_topbarmenu : Object
264 private Xcls_MainWindow _this;
270 public Xcls_topbarmenu(Xcls_MainWindow _owner )
273 _this.topbarmenu = this;
274 this.el = new Gtk.Menu();
278 // set gobject values
279 var child_0 = new Xcls_MenuItem6( _this );
281 this.el.append ( child_0.el );
282 var child_1 = new Xcls_SeparatorMenuItem7( _this );
284 this.el.append ( child_1.el );
285 var child_2 = new Xcls_MenuItem8( _this );
287 this.el.append ( child_2.el );
288 var child_3 = new Xcls_MenuItem9( _this );
290 this.el.append ( child_3.el );
299 // user defined functions
301 public class Xcls_MenuItem6 : Object
303 public Gtk.MenuItem el;
304 private Xcls_MainWindow _this;
310 public Xcls_MenuItem6(Xcls_MainWindow _owner )
313 this.el = new Gtk.MenuItem();
317 // set gobject values
318 this.el.label = "Open a new Window";
321 this.el.activate.connect( ( ) => {
322 _this.openNewWindow();
326 // user defined functions
329 public class Xcls_SeparatorMenuItem7 : Object
331 public Gtk.SeparatorMenuItem el;
332 private Xcls_MainWindow _this;
338 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
341 this.el = new Gtk.SeparatorMenuItem();
345 // set gobject values
348 // user defined functions
351 public class Xcls_MenuItem8 : Object
353 public Gtk.MenuItem el;
354 private Xcls_MainWindow _this;
360 public Xcls_MenuItem8(Xcls_MainWindow _owner )
363 this.el = new Gtk.MenuItem();
367 // set gobject values
368 this.el.label = "Download updated Resources";
371 this.el.activate.connect( ( ) => {
372 Resources.singleton().fetchStart();
376 // user defined functions
379 public class Xcls_MenuItem9 : Object
381 public Gtk.MenuItem el;
382 private Xcls_MainWindow _this;
388 public Xcls_MenuItem9(Xcls_MainWindow _owner )
391 this.el = new Gtk.MenuItem();
395 // set gobject values
396 this.el.label = "About the Builder";
399 this.el.activate.connect( () => {
400 About.singleton().el.show();
404 // user defined functions
408 public class Xcls_Image10 : Object
411 private Xcls_MainWindow _this;
417 public Xcls_Image10(Xcls_MainWindow _owner )
420 this.el = new Gtk.Image();
424 // set gobject values
425 this.el.icon_name = "help-about";
428 // user defined functions
432 public class Xcls_openbtn : Object
434 public Gtk.Button el;
435 private Xcls_MainWindow _this;
441 public Xcls_openbtn(Xcls_MainWindow _owner )
444 _this.openbtn = this;
445 this.el = new Gtk.Button();
449 // set gobject values
450 this.el.width_request = 50;
451 this.el.height_request = 50;
452 var child_0 = new Xcls_Image12( _this );
454 this.el.set_image ( child_0.el );
457 this.el.clicked.connect( ( ) => {
458 _this.windowstate.switchState(WindowState.State.FILES);
464 // user defined functions
466 public class Xcls_Image12 : Object
469 private Xcls_MainWindow _this;
475 public Xcls_Image12(Xcls_MainWindow _owner )
478 this.el = new Gtk.Image();
482 // set gobject values
483 this.el.icon_name = "document-open";
486 // user defined functions
490 public class Xcls_openbackbtn : Object
492 public Gtk.Button el;
493 private Xcls_MainWindow _this;
499 public Xcls_openbackbtn(Xcls_MainWindow _owner )
502 _this.openbackbtn = this;
503 this.el = new Gtk.Button();
507 // set gobject values
508 this.el.width_request = 50;
509 this.el.height_request = 50;
510 this.el.tooltip_text = "Back";
511 this.el.visible = false;
512 var child_0 = new Xcls_Image14( _this );
514 this.el.set_image ( child_0.el );
517 this.el.clicked.connect( ( ) => {
519 _this.windowstate.switchState(WindowState.State.PREVIEW);
525 // user defined functions
527 public class Xcls_Image14 : Object
530 private Xcls_MainWindow _this;
536 public Xcls_Image14(Xcls_MainWindow _owner )
539 this.el = new Gtk.Image();
543 // set gobject values
544 this.el.icon_name = "go-previous";
547 // user defined functions
553 public class Xcls_vbox : Object
556 private Xcls_MainWindow _this;
562 public Xcls_vbox(Xcls_MainWindow _owner )
566 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
570 // set gobject values
571 this.el.homogeneous = false;
572 var child_0 = new Xcls_mainpane( _this );
574 this.el.pack_start ( child_0.el , true,true,0 );
575 var child_1 = new Xcls_Box70( _this );
577 this.el.pack_end ( child_1.el , false,true,0 );
580 // user defined functions
582 public class Xcls_mainpane : Object
585 private Xcls_MainWindow _this;
589 public int lastWidth;
592 public Xcls_mainpane(Xcls_MainWindow _owner )
595 _this.mainpane = this;
596 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
601 // set gobject values
602 this.el.position = 400;
603 var child_0 = new Xcls_leftpane( _this );
605 this.el.add1 ( child_0.el );
606 var child_1 = new Xcls_Box21( _this );
608 this.el.add2 ( child_1.el );
611 // user defined functions
613 public class Xcls_leftpane : Object
616 private Xcls_MainWindow _this;
622 public Xcls_leftpane(Xcls_MainWindow _owner )
625 _this.leftpane = this;
626 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
630 // set gobject values
631 var child_0 = new Xcls_editpane( _this );
633 this.el.pack_start ( child_0.el , true,true,0 );
636 // user defined functions
638 public class Xcls_editpane : Object
641 private Xcls_MainWindow _this;
647 public Xcls_editpane(Xcls_MainWindow _owner )
650 _this.editpane = this;
651 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
655 // set gobject values
656 var child_0 = new Xcls_tree( _this );
658 this.el.add1 ( child_0.el );
659 var child_1 = new Xcls_props( _this );
661 this.el.add2 ( child_1.el );
664 // user defined functions
666 public class Xcls_tree : Object
669 private Xcls_MainWindow _this;
675 public Xcls_tree(Xcls_MainWindow _owner )
679 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
683 // set gobject values
686 // user defined functions
689 public class Xcls_props : Object
692 private Xcls_MainWindow _this;
698 public Xcls_props(Xcls_MainWindow _owner )
702 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
706 // set gobject values
709 // user defined functions
714 public class Xcls_Box21 : Object
717 private Xcls_MainWindow _this;
723 public Xcls_Box21(Xcls_MainWindow _owner )
726 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
730 // set gobject values
731 var child_0 = new Xcls_clutterembed( _this );
733 this.el.pack_start ( child_0.el , true,true,0 );
736 // user defined functions
738 public class Xcls_clutterembed : Object
740 public GtkClutter.Embed el;
741 private Xcls_MainWindow _this;
747 public Xcls_clutterembed(Xcls_MainWindow _owner )
750 _this.clutterembed = this;
751 this.el = new GtkClutter.Embed();
755 // set gobject values
756 var child_0 = new Xcls_rooview( _this );
758 this.el.get_stage().add_child ( child_0.el );
759 var child_1 = new Xcls_objectview( _this );
761 this.el.get_stage().add_child ( child_1.el );
762 var child_2 = new Xcls_codeeditview( _this );
764 this.el.get_stage().add_child ( child_2.el );
765 var child_3 = new Xcls_addpropsview( _this );
767 this.el.get_stage().add_child ( child_3.el );
768 var child_4 = new Xcls_projecteditview( _this );
770 this.el.get_stage().add_child ( child_4.el );
771 var child_5 = new Xcls_buttonlayout( _this );
773 this.el.get_stage().add_child ( child_5.el );
777 var stage = this.el.get_stage();
778 stage.set_background_color( Clutter.Color.from_string("#000"));
781 this.el.size_allocate.connect( ( alloc) => {
782 if (_this.windowstate == null) {
785 _this.windowstate.resizeCanvas();
790 // user defined functions
792 public class Xcls_rooview : Object
794 public GtkClutter.Actor el;
795 private Xcls_MainWindow _this;
801 public Xcls_rooview(Xcls_MainWindow _owner )
804 _this.rooview = this;
805 this.el = new GtkClutter.Actor();
809 // set gobject values
816 this.el.add_constraint(
817 new Clutter.AlignConstraint(
818 _this.clutterembed.el.get_stage(),
819 Clutter.AlignAxis.X_AXIS,
824 //this.el.set_position(100,100);
825 this.el.set_pivot_point(1.0f,1.0f);
827 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
828 _this.clutterembed.el.get_stage().height);
833 // user defined functions
836 public class Xcls_objectview : Object
838 public GtkClutter.Actor el;
839 private Xcls_MainWindow _this;
845 public Xcls_objectview(Xcls_MainWindow _owner )
848 _this.objectview = this;
849 this.el = new GtkClutter.Actor();
853 // set gobject values
860 this.el.add_constraint(
861 new Clutter.AlignConstraint(
862 _this.clutterembed.el.get_stage(),
863 Clutter.AlignAxis.X_AXIS,
868 this.el.fixed_x = 50.0f;
869 this.el.fixed_y = 0.0f;
870 //this.el.set_position(100,100);
871 this.el.set_pivot_point(0.0f,0.0f);
872 this.el.set_scale(0.0f,1.0f);
873 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
874 _this.clutterembed.el.get_stage().height);
879 // user defined functions
882 public class Xcls_codeeditview : Object
884 public GtkClutter.Actor el;
885 private Xcls_MainWindow _this;
891 public Xcls_codeeditview(Xcls_MainWindow _owner )
894 _this.codeeditview = this;
895 this.el = new GtkClutter.Actor();
899 // set gobject values
906 this.el.add_constraint(
907 new Clutter.AlignConstraint(
908 _this.clutterembed.el.get_stage(),
909 Clutter.AlignAxis.X_AXIS,
914 this.el.fixed_x = 50.0f;
915 this.el.fixed_y = 0.0f;
916 //this.el.set_position(100,100);
917 this.el.set_pivot_point(0.0f,0.0f);
918 this.el.set_scale(0.0f,1.0f);
919 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
920 _this.clutterembed.el.get_stage().height);
925 // user defined functions
928 public class Xcls_addpropsview : Object
930 public GtkClutter.Actor el;
931 private Xcls_MainWindow _this;
937 public Xcls_addpropsview(Xcls_MainWindow _owner )
940 _this.addpropsview = this;
941 this.el = new GtkClutter.Actor();
945 // set gobject values
952 this.el.add_constraint(
953 new Clutter.AlignConstraint(
954 _this.clutterembed.el.get_stage(),
955 Clutter.AlignAxis.X_AXIS,
960 this.el.fixed_x = 50.0f;
961 this.el.fixed_y = 0.0f;
962 //this.el.set_position(100,100);
963 this.el.set_pivot_point(0.0f,0.0f);
964 this.el.set_scale(0.0f,1.0f);
965 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
966 _this.clutterembed.el.get_stage().height);
971 // user defined functions
974 public class Xcls_projecteditview : Object
976 public GtkClutter.Actor el;
977 private Xcls_MainWindow _this;
983 public Xcls_projecteditview(Xcls_MainWindow _owner )
986 _this.projecteditview = this;
987 this.el = new GtkClutter.Actor();
991 // set gobject values
998 this.el.add_constraint(
999 new Clutter.AlignConstraint(
1000 _this.clutterembed.el.get_stage(),
1001 Clutter.AlignAxis.X_AXIS,
1006 //this.el.set_position(100,100);
1007 this.el.set_pivot_point(0.0f,0.0f);
1008 this.el.set_scale(1.0f,0.0f);
1009 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1010 _this.clutterembed.el.get_stage().height /2);
1015 // user defined functions
1018 public class Xcls_buttonlayout : Object
1020 public Clutter.Actor el;
1021 private Xcls_MainWindow _this;
1027 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1030 _this.buttonlayout = this;
1031 this.el = new Clutter.Actor();
1035 // set gobject values
1036 var child_0 = new Xcls_BoxLayout29( _this );
1038 this.el.layout_manager = child_0.el;
1039 var child_1 = new Xcls_backbutton( _this );
1041 this.el.add_child ( child_1.el );
1042 var child_2 = new Xcls_projectbutton( _this );
1044 this.el.add_child ( child_2.el );
1045 var child_3 = new Xcls_editfilebutton( _this );
1047 this.el.add_child ( child_3.el );
1048 var child_4 = new Xcls_projecteditbutton( _this );
1050 this.el.add_child ( child_4.el );
1051 var child_5 = new Xcls_objectshowbutton( _this );
1053 this.el.add_child ( child_5.el );
1054 var child_6 = new Xcls_addpropbutton( _this );
1056 this.el.add_child ( child_6.el );
1057 var child_7 = new Xcls_addlistenerbutton( _this );
1059 this.el.add_child ( child_7.el );
1060 var child_8 = new Xcls_addprojectbutton( _this );
1062 this.el.add_child ( child_8.el );
1063 var child_9 = new Xcls_addfilebutton( _this );
1065 this.el.add_child ( child_9.el );
1066 var child_10 = new Xcls_delprojectbutton( _this );
1068 this.el.add_child ( child_10.el );
1074 this.el.add_constraint(
1075 new Clutter.AlignConstraint(
1076 _this.clutterembed.el.get_stage(),
1077 Clutter.AlignAxis.X_AXIS,
1083 //this.el.set_position(100,100);
1084 this.el.set_pivot_point(0.5f,0.5f);
1085 this.el.set_size(50,
1086 _this.clutterembed.el.get_stage().height);
1091 // user defined functions
1093 public class Xcls_BoxLayout29 : Object
1095 public Clutter.BoxLayout el;
1096 private Xcls_MainWindow _this;
1102 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1105 this.el = new Clutter.BoxLayout();
1109 // set gobject values
1110 this.el.orientation = Clutter.Orientation.VERTICAL;
1113 // user defined functions
1116 public class Xcls_backbutton : Object
1118 public Clutter.Actor el;
1119 private Xcls_MainWindow _this;
1125 public Xcls_backbutton(Xcls_MainWindow _owner )
1128 _this.backbutton = this;
1129 this.el = new Clutter.Actor();
1133 // set gobject values
1134 var child_0 = new Xcls_Actor31( _this );
1136 this.el.add_child ( child_0.el );
1140 this.el.set_size(50,50);
1143 // user defined functions
1145 public class Xcls_Actor31 : Object
1147 public GtkClutter.Actor el;
1148 private Xcls_MainWindow _this;
1154 public Xcls_Actor31(Xcls_MainWindow _owner )
1157 this.el = new GtkClutter.Actor();
1161 // set gobject values
1162 var child_0 = new Xcls_Button32( _this );
1167 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1170 // user defined functions
1172 public class Xcls_Button32 : Object
1174 public Gtk.Button el;
1175 private Xcls_MainWindow _this;
1181 public Xcls_Button32(Xcls_MainWindow _owner )
1184 this.el = new Gtk.Button();
1188 // set gobject values
1189 this.el.width_request = 50;
1190 this.el.height_request = 50;
1191 this.el.tooltip_text = "Back";
1192 var child_0 = new Xcls_Image33( _this );
1194 this.el.set_image ( child_0.el );
1197 this.el.clicked.connect( ( ) => {
1199 _this.windowstate.switchState(WindowState.State.PREVIEW);
1205 // user defined functions
1207 public class Xcls_Image33 : Object
1209 public Gtk.Image el;
1210 private Xcls_MainWindow _this;
1216 public Xcls_Image33(Xcls_MainWindow _owner )
1219 this.el = new Gtk.Image();
1223 // set gobject values
1224 this.el.icon_name = "go-previous";
1227 // user defined functions
1233 public class Xcls_projectbutton : Object
1235 public Clutter.Actor el;
1236 private Xcls_MainWindow _this;
1242 public Xcls_projectbutton(Xcls_MainWindow _owner )
1245 _this.projectbutton = this;
1246 this.el = new Clutter.Actor();
1250 // set gobject values
1251 var child_0 = new Xcls_Actor35( _this );
1253 this.el.add_child ( child_0.el );
1257 this.el.set_size(50,50);
1260 // user defined functions
1262 public class Xcls_Actor35 : Object
1264 public GtkClutter.Actor el;
1265 private Xcls_MainWindow _this;
1271 public Xcls_Actor35(Xcls_MainWindow _owner )
1274 this.el = new GtkClutter.Actor();
1278 // set gobject values
1279 var child_0 = new Xcls_Button36( _this );
1284 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1287 // user defined functions
1289 public class Xcls_Button36 : Object
1291 public Gtk.Button el;
1292 private Xcls_MainWindow _this;
1298 public Xcls_Button36(Xcls_MainWindow _owner )
1301 this.el = new Gtk.Button();
1305 // set gobject values
1306 this.el.width_request = 50;
1307 this.el.height_request = 50;
1308 var child_0 = new Xcls_Image37( _this );
1310 this.el.set_image ( child_0.el );
1313 this.el.clicked.connect( ( ) => {
1314 _this.windowstate.switchState(WindowState.State.FILES);
1320 // user defined functions
1322 public class Xcls_Image37 : Object
1324 public Gtk.Image el;
1325 private Xcls_MainWindow _this;
1331 public Xcls_Image37(Xcls_MainWindow _owner )
1334 this.el = new Gtk.Image();
1338 // set gobject values
1339 this.el.icon_name = "document-open";
1342 // user defined functions
1348 public class Xcls_editfilebutton : Object
1350 public Clutter.Actor el;
1351 private Xcls_MainWindow _this;
1357 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1360 _this.editfilebutton = this;
1361 this.el = new Clutter.Actor();
1365 // set gobject values
1366 var child_0 = new Xcls_Actor39( _this );
1368 this.el.add_child ( child_0.el );
1372 this.el.set_size(50.0f,50.0f);
1375 // user defined functions
1377 public class Xcls_Actor39 : Object
1379 public GtkClutter.Actor el;
1380 private Xcls_MainWindow _this;
1386 public Xcls_Actor39(Xcls_MainWindow _owner )
1389 this.el = new GtkClutter.Actor();
1393 // set gobject values
1394 var child_0 = new Xcls_Button40( _this );
1399 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1402 // user defined functions
1404 public class Xcls_Button40 : Object
1406 public Gtk.Button el;
1407 private Xcls_MainWindow _this;
1413 public Xcls_Button40(Xcls_MainWindow _owner )
1416 this.el = new Gtk.Button();
1420 // set gobject values
1421 this.el.width_request = 50;
1422 this.el.height_request = 50;
1423 this.el.tooltip_text = "File Details";
1424 var child_0 = new Xcls_Image41( _this );
1426 this.el.set_image ( child_0.el );
1429 this.el.clicked.connect( ( ) => {
1431 // create a new file in project..
1432 if (_this.project == null || _this.windowstate.file == null) {
1435 _this.windowstate.file_details.show(
1436 _this.windowstate.file, this.el
1445 // user defined functions
1447 public class Xcls_Image41 : Object
1449 public Gtk.Image el;
1450 private Xcls_MainWindow _this;
1456 public Xcls_Image41(Xcls_MainWindow _owner )
1459 this.el = new Gtk.Image();
1463 // set gobject values
1464 this.el.icon_name = "document-properties";
1467 // user defined functions
1473 public class Xcls_projecteditbutton : Object
1475 public Clutter.Actor el;
1476 private Xcls_MainWindow _this;
1482 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1485 _this.projecteditbutton = this;
1486 this.el = new Clutter.Actor();
1490 // set gobject values
1491 var child_0 = new Xcls_Actor43( _this );
1493 this.el.add_child ( child_0.el );
1497 this.el.set_size(50,50);
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 = "Project Details";
1549 var child_0 = new Xcls_Image45( _this );
1551 this.el.set_image ( child_0.el );
1554 this.el.clicked.connect( ( ) => {
1555 _this.windowstate.switchState(WindowState.State.PROJECT);
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 = "emblem-system";
1584 // user defined functions
1590 public class Xcls_objectshowbutton : Object
1592 public Clutter.Actor el;
1593 private Xcls_MainWindow _this;
1599 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1602 _this.objectshowbutton = 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 this.el.enter_event.connect( ( event) => {
1618 this.el.background_color = Clutter.Color.from_string("#333");
1621 this.el.leave_event.connect( ( event) => {
1622 this.el.background_color = Clutter.Color.from_string("#000");
1627 // user defined functions
1629 public class Xcls_Actor47 : Object
1631 public GtkClutter.Actor el;
1632 private Xcls_MainWindow _this;
1638 public Xcls_Actor47(Xcls_MainWindow _owner )
1641 this.el = new GtkClutter.Actor();
1645 // set gobject values
1646 var child_0 = new Xcls_Button48( _this );
1651 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1654 // user defined functions
1656 public class Xcls_Button48 : Object
1658 public Gtk.Button el;
1659 private Xcls_MainWindow _this;
1665 public Xcls_Button48(Xcls_MainWindow _owner )
1668 this.el = new Gtk.Button();
1672 // set gobject values
1673 this.el.width_request = 50;
1674 this.el.height_request = 50;
1675 this.el.tooltip_text = "Add Child Element";
1676 var child_0 = new Xcls_Image49( _this );
1678 this.el.set_image ( child_0.el );
1681 this.el.clicked.connect( ( ) => {
1683 _this.windowstate.switchState(WindowState.State.OBJECT);
1689 // user defined functions
1691 public class Xcls_Image49 : Object
1693 public Gtk.Image el;
1694 private Xcls_MainWindow _this;
1700 public Xcls_Image49(Xcls_MainWindow _owner )
1703 this.el = new Gtk.Image();
1707 // set gobject values
1708 this.el.icon_name = "list-add";
1711 // user defined functions
1717 public class Xcls_addpropbutton : Object
1719 public Clutter.Actor el;
1720 private Xcls_MainWindow _this;
1726 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1729 _this.addpropbutton = this;
1730 this.el = new Clutter.Actor();
1734 // set gobject values
1735 var child_0 = new Xcls_Actor51( _this );
1737 this.el.add_child ( child_0.el );
1741 this.el.set_size(50,50);
1744 // user defined functions
1746 public class Xcls_Actor51 : Object
1748 public GtkClutter.Actor el;
1749 private Xcls_MainWindow _this;
1755 public Xcls_Actor51(Xcls_MainWindow _owner )
1758 this.el = new GtkClutter.Actor();
1762 // set gobject values
1763 var child_0 = new Xcls_Button52( _this );
1768 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1771 // user defined functions
1773 public class Xcls_Button52 : Object
1775 public Gtk.Button el;
1776 private Xcls_MainWindow _this;
1782 public Xcls_Button52(Xcls_MainWindow _owner )
1785 this.el = new Gtk.Button();
1789 // set gobject values
1790 this.el.width_request = 50;
1791 this.el.height_request = 50;
1792 this.el.tooltip_text = "Add Property";
1793 var child_0 = new Xcls_Image53( _this );
1795 this.el.set_image ( child_0.el );
1798 this.el.clicked.connect( ( ) => {
1800 _this.windowstate.switchState(WindowState.State.PROP);
1806 // user defined functions
1808 public class Xcls_Image53 : Object
1810 public Gtk.Image el;
1811 private Xcls_MainWindow _this;
1817 public Xcls_Image53(Xcls_MainWindow _owner )
1820 this.el = new Gtk.Image();
1824 // set gobject values
1825 this.el.icon_name = "format-justify-left";
1828 // user defined functions
1834 public class Xcls_addlistenerbutton : Object
1836 public Clutter.Actor el;
1837 private Xcls_MainWindow _this;
1843 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1846 _this.addlistenerbutton = this;
1847 this.el = new Clutter.Actor();
1851 // set gobject values
1852 var child_0 = new Xcls_Actor55( _this );
1854 this.el.add_child ( child_0.el );
1858 this.el.set_size(50,50);
1861 // user defined functions
1863 public class Xcls_Actor55 : Object
1865 public GtkClutter.Actor el;
1866 private Xcls_MainWindow _this;
1872 public Xcls_Actor55(Xcls_MainWindow _owner )
1875 this.el = new GtkClutter.Actor();
1879 // set gobject values
1880 var child_0 = new Xcls_Button56( _this );
1885 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1888 // user defined functions
1890 public class Xcls_Button56 : Object
1892 public Gtk.Button el;
1893 private Xcls_MainWindow _this;
1899 public Xcls_Button56(Xcls_MainWindow _owner )
1902 this.el = new Gtk.Button();
1906 // set gobject values
1907 this.el.width_request = 50;
1908 this.el.height_request = 50;
1909 this.el.tooltip_text = "Add Event Code";
1910 var child_0 = new Xcls_Image57( _this );
1912 this.el.set_image ( child_0.el );
1915 this.el.clicked.connect( ( ) => {
1917 _this.windowstate.switchState(WindowState.State.LISTENER);
1924 // user defined functions
1926 public class Xcls_Image57 : Object
1928 public Gtk.Image el;
1929 private Xcls_MainWindow _this;
1935 public Xcls_Image57(Xcls_MainWindow _owner )
1938 this.el = new Gtk.Image();
1942 // set gobject values
1943 this.el.icon_name = "appointment-new";
1946 // user defined functions
1952 public class Xcls_addprojectbutton : Object
1954 public Clutter.Actor el;
1955 private Xcls_MainWindow _this;
1961 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1964 _this.addprojectbutton = this;
1965 this.el = new Clutter.Actor();
1969 // set gobject values
1970 var child_0 = new Xcls_Actor59( _this );
1972 this.el.add_child ( child_0.el );
1976 this.el.set_size(50.0f,50.0f);
1979 // user defined functions
1981 public class Xcls_Actor59 : Object
1983 public GtkClutter.Actor el;
1984 private Xcls_MainWindow _this;
1990 public Xcls_Actor59(Xcls_MainWindow _owner )
1993 this.el = new GtkClutter.Actor();
1997 // set gobject values
1998 var child_0 = new Xcls_Button60( _this );
2003 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2006 // user defined functions
2008 public class Xcls_Button60 : Object
2010 public Gtk.Button el;
2011 private Xcls_MainWindow _this;
2017 public Xcls_Button60(Xcls_MainWindow _owner )
2020 this.el = new Gtk.Button();
2024 // set gobject values
2025 this.el.width_request = 50;
2026 this.el.height_request = 50;
2027 this.el.tooltip_text = "New\nProj.";
2028 var child_0 = new Xcls_Image61( _this );
2030 this.el.set_image ( child_0.el );
2033 this.el.clicked.connect( ( ) => {
2035 // create a new file in project..
2036 //Xcls_DialogNewComponent.singleton().show(
2037 var pe = EditProject.singleton();
2038 pe.el.set_transient_for(_this.el);
2039 pe.el.set_modal(true);
2048 _this.windowstate.left_projects.is_loaded = false;
2049 _this.windowstate.left_projects.load();
2050 _this.windowstate.left_projects.selectProject(p);
2057 // user defined functions
2059 public class Xcls_Image61 : Object
2061 public Gtk.Image el;
2062 private Xcls_MainWindow _this;
2068 public Xcls_Image61(Xcls_MainWindow _owner )
2071 this.el = new Gtk.Image();
2075 // set gobject values
2076 this.el.icon_name = "folder-new";
2079 // user defined functions
2085 public class Xcls_addfilebutton : Object
2087 public Clutter.Actor el;
2088 private Xcls_MainWindow _this;
2094 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2097 _this.addfilebutton = this;
2098 this.el = new Clutter.Actor();
2102 // set gobject values
2103 var child_0 = new Xcls_Actor63( _this );
2105 this.el.add_child ( child_0.el );
2109 this.el.set_size(50.0f,50.0f);
2112 // user defined functions
2114 public class Xcls_Actor63 : Object
2116 public GtkClutter.Actor el;
2117 private Xcls_MainWindow _this;
2123 public Xcls_Actor63(Xcls_MainWindow _owner )
2126 this.el = new GtkClutter.Actor();
2130 // set gobject values
2131 var child_0 = new Xcls_Button64( _this );
2136 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2139 // user defined functions
2141 public class Xcls_Button64 : Object
2143 public Gtk.Button el;
2144 private Xcls_MainWindow _this;
2150 public Xcls_Button64(Xcls_MainWindow _owner )
2153 this.el = new Gtk.Button();
2157 // set gobject values
2158 this.el.width_request = 50;
2159 this.el.height_request = 50;
2160 this.el.tooltip_text = "Add File";
2161 var child_0 = new Xcls_Image65( _this );
2163 this.el.set_image ( child_0.el );
2166 this.el.clicked.connect( () => {
2167 // create a new file in project..
2168 print("add file selected\n");
2169 // what's the currently selected project...
2170 var proj = _this.windowstate.left_projects.getSelectedProject();
2173 print("no project selected?\n");
2177 print("creating file?");
2179 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2180 _this.project = proj;
2181 print("showing popup?");
2182 _this.windowstate.file_details.show(
2191 // user defined functions
2193 public class Xcls_Image65 : Object
2195 public Gtk.Image el;
2196 private Xcls_MainWindow _this;
2202 public Xcls_Image65(Xcls_MainWindow _owner )
2205 this.el = new Gtk.Image();
2209 // set gobject values
2210 this.el.icon_name = "document-new";
2213 // user defined functions
2219 public class Xcls_delprojectbutton : Object
2221 public Clutter.Actor el;
2222 private Xcls_MainWindow _this;
2228 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2231 _this.delprojectbutton = this;
2232 this.el = new Clutter.Actor();
2236 // set gobject values
2237 var child_0 = new Xcls_Actor67( _this );
2239 this.el.add_child ( child_0.el );
2243 this.el.set_size(50,50);
2246 // user defined functions
2248 public class Xcls_Actor67 : Object
2250 public GtkClutter.Actor el;
2251 private Xcls_MainWindow _this;
2257 public Xcls_Actor67(Xcls_MainWindow _owner )
2260 this.el = new GtkClutter.Actor();
2264 // set gobject values
2265 var child_0 = new Xcls_Button68( _this );
2270 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2273 // user defined functions
2275 public class Xcls_Button68 : Object
2277 public Gtk.Button el;
2278 private Xcls_MainWindow _this;
2284 public Xcls_Button68(Xcls_MainWindow _owner )
2287 this.el = new Gtk.Button();
2291 // set gobject values
2292 this.el.width_request = 50;
2293 this.el.height_request = 50;
2294 this.el.tooltip_text = "Delete Project";
2295 var child_0 = new Xcls_Image69( _this );
2297 this.el.set_image ( child_0.el );
2300 this.el.clicked.connect( ( ) => {
2302 var cd = DialogConfirm.singleton();
2303 cd.el.set_transient_for(_this.el);
2304 cd.el.set_modal(true);
2306 var project = _this.windowstate.left_projects.getSelectedProject();
2307 if (project == null) {
2308 print("SKIP - no project\n");
2313 if (Gtk.ResponseType.YES != cd.show("Confirm",
2314 "Are you sure you want to delete project %s".printf(project.name))) {
2320 Project.Project.remove(project);
2321 _this.project = null;
2323 _this.windowstate.left_projects.is_loaded = false;
2324 _this.windowstate.left_projects.load();
2325 _this.windowstate.clutterfiles.clearFiles();
2330 // user defined functions
2332 public class Xcls_Image69 : Object
2334 public Gtk.Image el;
2335 private Xcls_MainWindow _this;
2341 public Xcls_Image69(Xcls_MainWindow _owner )
2344 this.el = new Gtk.Image();
2348 // set gobject values
2349 this.el.icon_name = "user-trash";
2352 // user defined functions
2362 public class Xcls_Box70 : Object
2365 private Xcls_MainWindow _this;
2371 public Xcls_Box70(Xcls_MainWindow _owner )
2374 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2378 // set gobject values
2379 this.el.homogeneous = false;
2380 var child_0 = new Xcls_Label71( _this );
2382 this.el.pack_start ( child_0.el , true,true,0 );
2383 var child_1 = new Xcls_statusbar( _this );
2385 this.el.pack_start ( child_1.el , true,true,0 );
2386 var child_2 = new Xcls_search_entry( _this );
2388 this.el.pack_start ( child_2.el , false,true,0 );
2389 var child_3 = new Xcls_MenuBar74( _this );
2391 this.el.pack_end ( child_3.el , false,true,0 );
2394 // user defined functions
2396 public class Xcls_Label71 : Object
2398 public Gtk.Label el;
2399 private Xcls_MainWindow _this;
2405 public Xcls_Label71(Xcls_MainWindow _owner )
2408 this.el = new Gtk.Label( " " );
2412 // set gobject values
2415 // user defined functions
2418 public class Xcls_statusbar : Object
2420 public Gtk.ProgressBar el;
2421 private Xcls_MainWindow _this;
2425 public ulong handler_id;
2428 public Xcls_statusbar(Xcls_MainWindow _owner )
2431 _this.statusbar = this;
2432 this.el = new Gtk.ProgressBar();
2435 this.handler_id = -1;
2437 // set gobject values
2438 this.el.show_text = true;
2443 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2446 _this.mainpane.el.set_sensitive(true);
2450 _this.mainpane.el.set_sensitive(false);
2452 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2453 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2459 // user defined functions
2462 public class Xcls_search_entry : Object
2464 public Gtk.SearchEntry el;
2465 private Xcls_MainWindow _this;
2471 public Xcls_search_entry(Xcls_MainWindow _owner )
2474 _this.search_entry = this;
2475 this.el = new Gtk.SearchEntry();
2479 // set gobject values
2483 var description = Pango.FontDescription.from_string("monospace");
2484 description.set_size(8000);
2485 this.el.override_font(description);
2488 this.el.key_press_event.connect( (event) => {
2490 if (event.keyval == Gdk.Key.Return) {
2491 this.forwardSearch(false);
2495 // print(event.key.keyval)
2500 this.el.changed.connect( () => {
2501 if (this.el.text == "") {
2502 _this.search_results.el.hide();
2506 switch(_this.windowstate.state) {
2507 case WindowState.State.CODEONLY:
2508 case WindowState.State.CODE:
2509 // search the code being edited..
2510 res = _this.windowstate.code_editor.search(this.el.text);
2513 case WindowState.State.PREVIEW:
2514 if (_this.windowstate.file.xtype == "Gtk") {
2515 res = _this.windowstate.window_gladeview.search(this.el.text);
2517 res = _this.windowstate.window_rooview.search(this.el.text);
2523 _this.search_results.el.show();
2525 _this.search_results.el.label = "%d Matches".printf(res);
2527 _this.search_results.el.label = "No Matches";
2535 // user defined functions
2536 public void forwardSearch (bool change_focus) {
2537 switch(_this.windowstate.state) {
2538 case WindowState.State.CODEONLY:
2539 case WindowState.State.CODE:
2540 // search the code being edited..
2541 _this.windowstate.code_editor.forwardSearch(change_focus);
2544 case WindowState.State.PREVIEW:
2545 if (_this.windowstate.file.xtype == "Gtk") {
2546 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2548 _this.windowstate.window_rooview.forwardSearch(change_focus);
2557 public class Xcls_MenuBar74 : Object
2559 public Gtk.MenuBar el;
2560 private Xcls_MainWindow _this;
2566 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2569 this.el = new Gtk.MenuBar();
2573 // set gobject values
2574 var child_0 = new Xcls_search_results( _this );
2576 this.el.add ( child_0.el );
2577 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2579 this.el.add ( child_1.el );
2580 var child_2 = new Xcls_statusbar_errors( _this );
2582 this.el.add ( child_2.el );
2583 var child_3 = new Xcls_statusbar_warnings( _this );
2585 this.el.add ( child_3.el );
2586 var child_4 = new Xcls_statusbar_depricated( _this );
2588 this.el.add ( child_4.el );
2589 var child_5 = new Xcls_statusbar_run( _this );
2591 this.el.add ( child_5.el );
2594 // user defined functions
2596 public class Xcls_search_results : Object
2598 public Gtk.ImageMenuItem el;
2599 private Xcls_MainWindow _this;
2603 public Xcls_ValaCompileErrors popup;
2606 public Xcls_search_results(Xcls_MainWindow _owner )
2609 _this.search_results = this;
2610 this.el = new Gtk.ImageMenuItem();
2614 // set gobject values
2615 this.el.always_show_image = true;
2616 this.el.label = "Matches";
2617 var child_0 = new Xcls_Image76( _this );
2619 this.el.set_image ( child_0.el );
2622 this.el.button_press_event.connect( () => {
2624 if (this.popup == null) {
2625 this.popup = new Xcls_ValaCompileErrors();
2626 this.popup.window = _this;
2630 this.popup.show(this.notices, this.el);
2636 // user defined functions
2638 public class Xcls_Image76 : Object
2640 public Gtk.Image el;
2641 private Xcls_MainWindow _this;
2647 public Xcls_Image76(Xcls_MainWindow _owner )
2650 this.el = new Gtk.Image();
2654 // set gobject values
2655 this.el.icon_name = "system-search";
2656 this.el.sensitive = false;
2659 // user defined functions
2663 public class Xcls_statusbar_compilestatus_label : Object
2665 public Gtk.MenuItem el;
2666 private Xcls_MainWindow _this;
2672 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2675 _this.statusbar_compilestatus_label = this;
2676 this.el = new Gtk.MenuItem();
2680 // set gobject values
2681 this.el.label = "Compile Status:";
2684 // user defined functions
2687 public class Xcls_statusbar_errors : Object
2689 public Gtk.ImageMenuItem el;
2690 private Xcls_MainWindow _this;
2694 public Xcls_ValaCompileErrors popup;
2695 public Json.Object notices;
2698 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2701 _this.statusbar_errors = this;
2702 this.el = new Gtk.ImageMenuItem();
2705 this.notices = new Json.Object() ;
2707 // set gobject values
2708 this.el.always_show_image = true;
2709 this.el.label = "Errors";
2710 var child_0 = new Xcls_Image79( _this );
2712 this.el.set_image ( child_0.el );
2715 this.el.button_press_event.connect( () => {
2716 if (this.popup == null) {
2717 this.popup = new Xcls_ValaCompileErrors();
2718 this.popup.window = _this;
2722 this.popup.show(this.notices, this.el);
2727 // user defined functions
2728 public void setNotices (Json.Object nots, int qty) {
2730 this.el.label = qty.to_string() + " Errors";
2731 this.notices = nots;
2735 public class Xcls_Image79 : Object
2737 public Gtk.Image el;
2738 private Xcls_MainWindow _this;
2744 public Xcls_Image79(Xcls_MainWindow _owner )
2747 this.el = new Gtk.Image();
2751 // set gobject values
2752 this.el.icon_name = "dialog-error";
2755 // user defined functions
2759 public class Xcls_statusbar_warnings : Object
2761 public Gtk.ImageMenuItem el;
2762 private Xcls_MainWindow _this;
2766 public Xcls_ValaCompileErrors popup;
2767 public Json.Object notices;
2770 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2773 _this.statusbar_warnings = this;
2774 this.el = new Gtk.ImageMenuItem();
2777 this.notices = new Json.Object();
2779 // set gobject values
2780 this.el.always_show_image = true;
2781 this.el.label = "Warnings";
2782 var child_0 = new Xcls_Image81( _this );
2784 this.el.set_image ( child_0.el );
2787 this.el.button_press_event.connect( () => {
2788 if (this.popup == null) {
2789 this.popup = new Xcls_ValaCompileErrors();
2790 this.popup.window = _this;
2793 this.popup.show(this.notices, this.el);
2798 // user defined functions
2799 public void setNotices (Json.Object nots, int qty) {
2801 this.el.label = qty.to_string() + " Warnings";
2802 this.notices = nots;
2806 public class Xcls_Image81 : Object
2808 public Gtk.Image el;
2809 private Xcls_MainWindow _this;
2815 public Xcls_Image81(Xcls_MainWindow _owner )
2818 this.el = new Gtk.Image();
2822 // set gobject values
2823 this.el.icon_name = "dialog-warning";
2826 // user defined functions
2830 public class Xcls_statusbar_depricated : Object
2832 public Gtk.ImageMenuItem el;
2833 private Xcls_MainWindow _this;
2837 public Xcls_ValaCompileErrors popup;
2838 public Json.Object notices;
2841 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2844 _this.statusbar_depricated = this;
2845 this.el = new Gtk.ImageMenuItem();
2848 this.notices = new Json.Object();
2850 // set gobject values
2851 this.el.always_show_image = true;
2852 this.el.label = "Depricated";
2853 var child_0 = new Xcls_Image83( _this );
2855 this.el.set_image ( child_0.el );
2858 this.el.button_press_event.connect( () => {
2859 if (this.popup == null) {
2860 this.popup = new Xcls_ValaCompileErrors();
2861 this.popup.window = _this;
2865 this.popup.show(this.notices, this.el);
2870 // user defined functions
2871 public void setNotices (Json.Object nots, int qty) {
2873 this.el.label = qty.to_string() + " Depricated";
2874 this.notices = nots;
2878 public class Xcls_Image83 : Object
2880 public Gtk.Image el;
2881 private Xcls_MainWindow _this;
2887 public Xcls_Image83(Xcls_MainWindow _owner )
2890 this.el = new Gtk.Image();
2894 // set gobject values
2895 this.el.icon_name = "dialog-information";
2898 // user defined functions
2902 public class Xcls_statusbar_run : Object
2904 public Gtk.ImageMenuItem el;
2905 private Xcls_MainWindow _this;
2909 public Xcls_ValaCompileErrors popup;
2912 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2915 _this.statusbar_run = this;
2916 this.el = new Gtk.ImageMenuItem();
2920 // set gobject values
2921 this.el.always_show_image = true;
2922 this.el.label = "Run";
2923 var child_0 = new Xcls_Image85( _this );
2925 this.el.set_image ( child_0.el );
2928 this.el.button_press_event.connect( () => {
2929 if (_this.windowstate.file == null) {
2932 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2934 _this.windowstate.compile_results.show(this.el,true);
2940 // user defined functions
2942 public class Xcls_Image85 : Object
2944 public Gtk.Image el;
2945 private Xcls_MainWindow _this;
2951 public Xcls_Image85(Xcls_MainWindow _owner )
2954 this.el = new Gtk.Image();
2958 // set gobject values
2959 this.el.icon_name = "media-playback-start";
2962 // user defined functions