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_editfilebutton editfilebutton;
34 public Xcls_projecteditbutton projecteditbutton;
35 public Xcls_objectshowbutton objectshowbutton;
36 public Xcls_addpropbutton addpropbutton;
37 public Xcls_addlistenerbutton addlistenerbutton;
38 public Xcls_addprojectbutton addprojectbutton;
39 public Xcls_addfilebutton addfilebutton;
40 public Xcls_delprojectbutton delprojectbutton;
41 public Xcls_statusbar statusbar;
42 public Xcls_search_entry search_entry;
43 public Xcls_search_results search_results;
44 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
45 public Xcls_statusbar_errors statusbar_errors;
46 public Xcls_statusbar_warnings statusbar_warnings;
47 public Xcls_statusbar_depricated statusbar_depricated;
48 public Xcls_statusbar_run statusbar_run;
51 public Project.Project project;
53 public int no_windows;
54 public WindowState windowstate;
57 public Xcls_MainWindow()
60 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
64 this.title = "Application Builder";
66 this.windowstate = null;
69 this.el.border_width = 0;
70 this.el.default_height = 500;
71 this.el.default_width = 800;
72 var child_0 = new Xcls_headerbar( _this );
74 this.el.set_titlebar ( child_0.el );
75 var child_1 = new Xcls_vbox( _this );
77 this.el.add ( child_1.el );
83 this.el.set_icon_name("roobuilder");
84 //} catch (Exception e) {
85 // print("no icon found");
89 this.el.delete_event.connect( ( event) => {
92 this.el.destroy.connect( () => {
93 Xcls_MainWindow.singleton().no_windows--;
95 Resources.singleton().disconnect(_this.statusbar.handler_id);
98 if (Xcls_MainWindow.singleton().no_windows < 1) {
103 this.el.show.connect( ( ) => {
104 // hide the file editing..
106 //this.hideViewEditing();
107 _this.statusbar.el.hide();
108 _this.statusbar_errors.el.hide();
109 _this.statusbar_warnings.el.hide();
110 _this.statusbar_depricated.el.hide();
113 Resources.singleton().checkResources();
116 this.el.key_release_event.connect( (event) => {
118 if (this.search_entry.el.is_visible()) {
119 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120 print("SAVE: ctrl-f pressed");
121 this.search_entry.el.grab_focus();
125 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
126 print("SAVE: ctrl-g pressed");
127 this.search_entry.forwardSearch(true);
133 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
134 print("SAVE: ctrl-n pressed");
135 this.openNewWindow();
139 // print(event.key.keyval)
146 // user defined functions
147 public void openNewWindow () {
148 Xcls_MainWindow.singleton().no_windows++;
149 var w = new Xcls_MainWindow();
154 w.windowstate.switchState(WindowState.State.FILES);
156 public void initChildren () {
157 // this needs putting in a better place..
158 this.windowstate = new WindowState(this);
162 var tl = new Clutter.Timeline(6000);
163 tl.set_repeat_count(-1);
172 public void show () {
177 public void setTitle (string str) {
178 this.headerbar.el.set_title(this.title + " - " + str);
180 public class Xcls_headerbar : Object
182 public Gtk.HeaderBar el;
183 private Xcls_MainWindow _this;
189 public Xcls_headerbar(Xcls_MainWindow _owner )
192 _this.headerbar = this;
193 this.el = new Gtk.HeaderBar();
197 // set gobject values
198 this.el.title = "Application Builder";
199 this.el.show_close_button = true;
200 var child_0 = new Xcls_Box3( _this );
202 this.el.pack_start ( child_0.el );
205 // user defined functions
207 public class Xcls_Box3 : Object
210 private Xcls_MainWindow _this;
216 public Xcls_Box3(Xcls_MainWindow _owner )
219 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
223 // set gobject values
224 var child_0 = new Xcls_MenuButton4( _this );
226 this.el.add ( child_0.el );
227 var child_1 = new Xcls_openbtn( _this );
229 this.el.add ( child_1.el );
230 var child_2 = new Xcls_openbackbtn( _this );
232 this.el.add ( child_2.el );
235 // user defined functions
237 public class Xcls_MenuButton4 : Object
239 public Gtk.MenuButton el;
240 private Xcls_MainWindow _this;
246 public Xcls_MenuButton4(Xcls_MainWindow _owner )
249 this.el = new Gtk.MenuButton();
253 // set gobject values
254 this.el.use_popover = false;
255 var child_0 = new Xcls_topbarmenu( _this );
257 this.el.set_popup ( child_0.el );
258 var child_1 = new Xcls_Image10( _this );
260 this.el.set_image ( child_1.el );
263 // user defined functions
265 public class Xcls_topbarmenu : Object
268 private Xcls_MainWindow _this;
274 public Xcls_topbarmenu(Xcls_MainWindow _owner )
277 _this.topbarmenu = this;
278 this.el = new Gtk.Menu();
282 // set gobject values
283 var child_0 = new Xcls_MenuItem6( _this );
285 this.el.append ( child_0.el );
286 var child_1 = new Xcls_SeparatorMenuItem7( _this );
288 this.el.append ( child_1.el );
289 var child_2 = new Xcls_MenuItem8( _this );
291 this.el.append ( child_2.el );
292 var child_3 = new Xcls_MenuItem9( _this );
294 this.el.append ( child_3.el );
303 // user defined functions
305 public class Xcls_MenuItem6 : Object
307 public Gtk.MenuItem el;
308 private Xcls_MainWindow _this;
314 public Xcls_MenuItem6(Xcls_MainWindow _owner )
317 this.el = new Gtk.MenuItem();
321 // set gobject values
322 this.el.label = "Open a new Window";
325 this.el.activate.connect( ( ) => {
326 _this.openNewWindow();
330 // user defined functions
333 public class Xcls_SeparatorMenuItem7 : Object
335 public Gtk.SeparatorMenuItem el;
336 private Xcls_MainWindow _this;
342 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
345 this.el = new Gtk.SeparatorMenuItem();
349 // set gobject values
352 // user defined functions
355 public class Xcls_MenuItem8 : Object
357 public Gtk.MenuItem el;
358 private Xcls_MainWindow _this;
364 public Xcls_MenuItem8(Xcls_MainWindow _owner )
367 this.el = new Gtk.MenuItem();
371 // set gobject values
372 this.el.label = "Download updated Resources";
375 this.el.activate.connect( ( ) => {
376 Resources.singleton().fetchStart();
380 // user defined functions
383 public class Xcls_MenuItem9 : Object
385 public Gtk.MenuItem el;
386 private Xcls_MainWindow _this;
392 public Xcls_MenuItem9(Xcls_MainWindow _owner )
395 this.el = new Gtk.MenuItem();
399 // set gobject values
400 this.el.label = "About the Builder";
403 this.el.activate.connect( () => {
404 About.singleton().el.show();
408 // user defined functions
412 public class Xcls_Image10 : Object
415 private Xcls_MainWindow _this;
421 public Xcls_Image10(Xcls_MainWindow _owner )
424 this.el = new Gtk.Image();
428 // set gobject values
429 this.el.icon_name = "help-about";
432 // user defined functions
436 public class Xcls_openbtn : Object
438 public Gtk.Button el;
439 private Xcls_MainWindow _this;
445 public Xcls_openbtn(Xcls_MainWindow _owner )
448 _this.openbtn = this;
449 this.el = new Gtk.Button();
453 // set gobject values
454 var child_0 = new Xcls_Image12( _this );
456 this.el.set_image ( child_0.el );
459 this.el.clicked.connect( ( ) => {
460 _this.windowstate.switchState(WindowState.State.FILES);
466 // user defined functions
468 public class Xcls_Image12 : Object
471 private Xcls_MainWindow _this;
477 public Xcls_Image12(Xcls_MainWindow _owner )
480 this.el = new Gtk.Image();
484 // set gobject values
485 this.el.icon_name = "document-open";
488 // user defined functions
492 public class Xcls_openbackbtn : Object
494 public Gtk.Button el;
495 private Xcls_MainWindow _this;
501 public Xcls_openbackbtn(Xcls_MainWindow _owner )
504 _this.openbackbtn = this;
505 this.el = new Gtk.Button();
509 // set gobject values
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_Box66( _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_editfilebutton( _this );
1044 this.el.add_child ( child_2.el );
1045 var child_3 = new Xcls_projecteditbutton( _this );
1047 this.el.add_child ( child_3.el );
1048 var child_4 = new Xcls_objectshowbutton( _this );
1050 this.el.add_child ( child_4.el );
1051 var child_5 = new Xcls_addpropbutton( _this );
1053 this.el.add_child ( child_5.el );
1054 var child_6 = new Xcls_addlistenerbutton( _this );
1056 this.el.add_child ( child_6.el );
1057 var child_7 = new Xcls_addprojectbutton( _this );
1059 this.el.add_child ( child_7.el );
1060 var child_8 = new Xcls_addfilebutton( _this );
1062 this.el.add_child ( child_8.el );
1063 var child_9 = new Xcls_delprojectbutton( _this );
1065 this.el.add_child ( child_9.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( ( ) => {
1195 if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
1197 _this.windowstate.switchState(WindowState.State.FILES);
1199 _this.windowstate.switchState(WindowState.State.PREVIEW);
1206 // user defined functions
1208 public class Xcls_Image33 : Object
1210 public Gtk.Image el;
1211 private Xcls_MainWindow _this;
1217 public Xcls_Image33(Xcls_MainWindow _owner )
1220 this.el = new Gtk.Image();
1224 // set gobject values
1225 this.el.icon_name = "go-previous";
1228 // user defined functions
1234 public class Xcls_editfilebutton : Object
1236 public Clutter.Actor el;
1237 private Xcls_MainWindow _this;
1243 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1246 _this.editfilebutton = this;
1247 this.el = new Clutter.Actor();
1251 // set gobject values
1252 var child_0 = new Xcls_Actor35( _this );
1254 this.el.add_child ( child_0.el );
1258 this.el.set_size(50.0f,50.0f);
1261 // user defined functions
1263 public class Xcls_Actor35 : Object
1265 public GtkClutter.Actor el;
1266 private Xcls_MainWindow _this;
1272 public Xcls_Actor35(Xcls_MainWindow _owner )
1275 this.el = new GtkClutter.Actor();
1279 // set gobject values
1280 var child_0 = new Xcls_Button36( _this );
1285 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1288 // user defined functions
1290 public class Xcls_Button36 : Object
1292 public Gtk.Button el;
1293 private Xcls_MainWindow _this;
1299 public Xcls_Button36(Xcls_MainWindow _owner )
1302 this.el = new Gtk.Button();
1306 // set gobject values
1307 this.el.width_request = 50;
1308 this.el.height_request = 50;
1309 this.el.tooltip_text = "File Details";
1310 var child_0 = new Xcls_Image37( _this );
1312 this.el.set_image ( child_0.el );
1315 this.el.clicked.connect( ( ) => {
1317 // create a new file in project..
1318 if (_this.project == null || _this.windowstate.file == null) {
1321 _this.windowstate.file_details.show(
1322 _this.windowstate.file, this.el
1331 // user defined functions
1333 public class Xcls_Image37 : Object
1335 public Gtk.Image el;
1336 private Xcls_MainWindow _this;
1342 public Xcls_Image37(Xcls_MainWindow _owner )
1345 this.el = new Gtk.Image();
1349 // set gobject values
1350 this.el.icon_name = "document-properties";
1353 // user defined functions
1359 public class Xcls_projecteditbutton : Object
1361 public Clutter.Actor el;
1362 private Xcls_MainWindow _this;
1368 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1371 _this.projecteditbutton = this;
1372 this.el = new Clutter.Actor();
1376 // set gobject values
1377 var child_0 = new Xcls_Actor39( _this );
1379 this.el.add_child ( child_0.el );
1383 this.el.set_size(50,50);
1386 // user defined functions
1388 public class Xcls_Actor39 : Object
1390 public GtkClutter.Actor el;
1391 private Xcls_MainWindow _this;
1397 public Xcls_Actor39(Xcls_MainWindow _owner )
1400 this.el = new GtkClutter.Actor();
1404 // set gobject values
1405 var child_0 = new Xcls_Button40( _this );
1410 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1413 // user defined functions
1415 public class Xcls_Button40 : Object
1417 public Gtk.Button el;
1418 private Xcls_MainWindow _this;
1424 public Xcls_Button40(Xcls_MainWindow _owner )
1427 this.el = new Gtk.Button();
1431 // set gobject values
1432 this.el.width_request = 50;
1433 this.el.height_request = 50;
1434 this.el.tooltip_text = "Project Details";
1435 var child_0 = new Xcls_Image41( _this );
1437 this.el.set_image ( child_0.el );
1440 this.el.clicked.connect( ( ) => {
1442 if (_this.windowstate.state == WindowState.State.FILES) {
1444 _this.windowstate.switchState(WindowState.State.FILEPROJECT);
1446 _this.windowstate.switchState(WindowState.State.PROJECT);
1454 // user defined functions
1456 public class Xcls_Image41 : Object
1458 public Gtk.Image el;
1459 private Xcls_MainWindow _this;
1465 public Xcls_Image41(Xcls_MainWindow _owner )
1468 this.el = new Gtk.Image();
1472 // set gobject values
1473 this.el.icon_name = "emblem-system";
1476 // user defined functions
1482 public class Xcls_objectshowbutton : Object
1484 public Clutter.Actor el;
1485 private Xcls_MainWindow _this;
1491 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1494 _this.objectshowbutton = this;
1495 this.el = new Clutter.Actor();
1499 // set gobject values
1500 var child_0 = new Xcls_Actor43( _this );
1502 this.el.add_child ( child_0.el );
1506 this.el.set_size(50,50);
1509 this.el.enter_event.connect( ( event) => {
1510 this.el.background_color = Clutter.Color.from_string("#333");
1513 this.el.leave_event.connect( ( event) => {
1514 this.el.background_color = Clutter.Color.from_string("#000");
1519 // user defined functions
1521 public class Xcls_Actor43 : Object
1523 public GtkClutter.Actor el;
1524 private Xcls_MainWindow _this;
1530 public Xcls_Actor43(Xcls_MainWindow _owner )
1533 this.el = new GtkClutter.Actor();
1537 // set gobject values
1538 var child_0 = new Xcls_Button44( _this );
1543 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1546 // user defined functions
1548 public class Xcls_Button44 : Object
1550 public Gtk.Button el;
1551 private Xcls_MainWindow _this;
1557 public Xcls_Button44(Xcls_MainWindow _owner )
1560 this.el = new Gtk.Button();
1564 // set gobject values
1565 this.el.width_request = 50;
1566 this.el.height_request = 50;
1567 this.el.tooltip_text = "Add Child Element";
1568 var child_0 = new Xcls_Image45( _this );
1570 this.el.set_image ( child_0.el );
1573 this.el.clicked.connect( ( ) => {
1575 _this.windowstate.switchState(WindowState.State.OBJECT);
1581 // user defined functions
1583 public class Xcls_Image45 : Object
1585 public Gtk.Image el;
1586 private Xcls_MainWindow _this;
1592 public Xcls_Image45(Xcls_MainWindow _owner )
1595 this.el = new Gtk.Image();
1599 // set gobject values
1600 this.el.icon_name = "list-add";
1603 // user defined functions
1609 public class Xcls_addpropbutton : Object
1611 public Clutter.Actor el;
1612 private Xcls_MainWindow _this;
1618 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1621 _this.addpropbutton = this;
1622 this.el = new Clutter.Actor();
1626 // set gobject values
1627 var child_0 = new Xcls_Actor47( _this );
1629 this.el.add_child ( child_0.el );
1633 this.el.set_size(50,50);
1636 // user defined functions
1638 public class Xcls_Actor47 : Object
1640 public GtkClutter.Actor el;
1641 private Xcls_MainWindow _this;
1647 public Xcls_Actor47(Xcls_MainWindow _owner )
1650 this.el = new GtkClutter.Actor();
1654 // set gobject values
1655 var child_0 = new Xcls_Button48( _this );
1660 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1663 // user defined functions
1665 public class Xcls_Button48 : Object
1667 public Gtk.Button el;
1668 private Xcls_MainWindow _this;
1674 public Xcls_Button48(Xcls_MainWindow _owner )
1677 this.el = new Gtk.Button();
1681 // set gobject values
1682 this.el.width_request = 50;
1683 this.el.height_request = 50;
1684 this.el.tooltip_text = "Add Property";
1685 var child_0 = new Xcls_Image49( _this );
1687 this.el.set_image ( child_0.el );
1690 this.el.clicked.connect( ( ) => {
1692 _this.windowstate.switchState(WindowState.State.PROP);
1698 // user defined functions
1700 public class Xcls_Image49 : Object
1702 public Gtk.Image el;
1703 private Xcls_MainWindow _this;
1709 public Xcls_Image49(Xcls_MainWindow _owner )
1712 this.el = new Gtk.Image();
1716 // set gobject values
1717 this.el.icon_name = "format-justify-left";
1720 // user defined functions
1726 public class Xcls_addlistenerbutton : Object
1728 public Clutter.Actor el;
1729 private Xcls_MainWindow _this;
1735 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1738 _this.addlistenerbutton = this;
1739 this.el = new Clutter.Actor();
1743 // set gobject values
1744 var child_0 = new Xcls_Actor51( _this );
1746 this.el.add_child ( child_0.el );
1750 this.el.set_size(50,50);
1753 // user defined functions
1755 public class Xcls_Actor51 : Object
1757 public GtkClutter.Actor el;
1758 private Xcls_MainWindow _this;
1764 public Xcls_Actor51(Xcls_MainWindow _owner )
1767 this.el = new GtkClutter.Actor();
1771 // set gobject values
1772 var child_0 = new Xcls_Button52( _this );
1777 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1780 // user defined functions
1782 public class Xcls_Button52 : Object
1784 public Gtk.Button el;
1785 private Xcls_MainWindow _this;
1791 public Xcls_Button52(Xcls_MainWindow _owner )
1794 this.el = new Gtk.Button();
1798 // set gobject values
1799 this.el.width_request = 50;
1800 this.el.height_request = 50;
1801 this.el.tooltip_text = "Add Event Code";
1802 var child_0 = new Xcls_Image53( _this );
1804 this.el.set_image ( child_0.el );
1807 this.el.clicked.connect( ( ) => {
1809 _this.windowstate.switchState(WindowState.State.LISTENER);
1816 // user defined functions
1818 public class Xcls_Image53 : Object
1820 public Gtk.Image el;
1821 private Xcls_MainWindow _this;
1827 public Xcls_Image53(Xcls_MainWindow _owner )
1830 this.el = new Gtk.Image();
1834 // set gobject values
1835 this.el.icon_name = "appointment-new";
1838 // user defined functions
1844 public class Xcls_addprojectbutton : Object
1846 public Clutter.Actor el;
1847 private Xcls_MainWindow _this;
1853 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1856 _this.addprojectbutton = this;
1857 this.el = new Clutter.Actor();
1861 // set gobject values
1862 var child_0 = new Xcls_Actor55( _this );
1864 this.el.add_child ( child_0.el );
1868 this.el.set_size(50.0f,50.0f);
1871 // user defined functions
1873 public class Xcls_Actor55 : Object
1875 public GtkClutter.Actor el;
1876 private Xcls_MainWindow _this;
1882 public Xcls_Actor55(Xcls_MainWindow _owner )
1885 this.el = new GtkClutter.Actor();
1889 // set gobject values
1890 var child_0 = new Xcls_Button56( _this );
1895 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1898 // user defined functions
1900 public class Xcls_Button56 : Object
1902 public Gtk.Button el;
1903 private Xcls_MainWindow _this;
1909 public Xcls_Button56(Xcls_MainWindow _owner )
1912 this.el = new Gtk.Button();
1916 // set gobject values
1917 this.el.width_request = 50;
1918 this.el.height_request = 50;
1919 this.el.tooltip_text = "New\nProj.";
1920 var child_0 = new Xcls_Image57( _this );
1922 this.el.set_image ( child_0.el );
1925 this.el.clicked.connect( ( ) => {
1927 // create a new file in project..
1928 //Xcls_DialogNewComponent.singleton().show(
1929 var pe = EditProject.singleton();
1930 pe.el.set_transient_for(_this.el);
1931 pe.el.set_modal(true);
1940 _this.windowstate.left_projects.is_loaded = false;
1941 _this.windowstate.left_projects.load();
1942 _this.windowstate.left_projects.selectProject(p);
1949 // user defined functions
1951 public class Xcls_Image57 : Object
1953 public Gtk.Image el;
1954 private Xcls_MainWindow _this;
1960 public Xcls_Image57(Xcls_MainWindow _owner )
1963 this.el = new Gtk.Image();
1967 // set gobject values
1968 this.el.icon_name = "folder-new";
1971 // user defined functions
1977 public class Xcls_addfilebutton : Object
1979 public Clutter.Actor el;
1980 private Xcls_MainWindow _this;
1986 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1989 _this.addfilebutton = this;
1990 this.el = new Clutter.Actor();
1994 // set gobject values
1995 var child_0 = new Xcls_Actor59( _this );
1997 this.el.add_child ( child_0.el );
2001 this.el.set_size(50.0f,50.0f);
2004 // user defined functions
2006 public class Xcls_Actor59 : Object
2008 public GtkClutter.Actor el;
2009 private Xcls_MainWindow _this;
2015 public Xcls_Actor59(Xcls_MainWindow _owner )
2018 this.el = new GtkClutter.Actor();
2022 // set gobject values
2023 var child_0 = new Xcls_Button60( _this );
2028 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2031 // user defined functions
2033 public class Xcls_Button60 : Object
2035 public Gtk.Button el;
2036 private Xcls_MainWindow _this;
2042 public Xcls_Button60(Xcls_MainWindow _owner )
2045 this.el = new Gtk.Button();
2049 // set gobject values
2050 this.el.width_request = 50;
2051 this.el.height_request = 50;
2052 this.el.tooltip_text = "Add File";
2053 var child_0 = new Xcls_Image61( _this );
2055 this.el.set_image ( child_0.el );
2058 this.el.clicked.connect( () => {
2059 // create a new file in project..
2060 print("add file selected\n");
2061 // what's the currently selected project...
2062 var proj = _this.windowstate.left_projects.getSelectedProject();
2065 print("no project selected?\n");
2069 print("creating file?");
2071 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2072 _this.project = proj;
2073 print("showing popup?");
2074 _this.windowstate.file_details.show(
2083 // user defined functions
2085 public class Xcls_Image61 : Object
2087 public Gtk.Image el;
2088 private Xcls_MainWindow _this;
2094 public Xcls_Image61(Xcls_MainWindow _owner )
2097 this.el = new Gtk.Image();
2101 // set gobject values
2102 this.el.icon_name = "document-new";
2105 // user defined functions
2111 public class Xcls_delprojectbutton : Object
2113 public Clutter.Actor el;
2114 private Xcls_MainWindow _this;
2120 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2123 _this.delprojectbutton = this;
2124 this.el = new Clutter.Actor();
2128 // set gobject values
2129 var child_0 = new Xcls_Actor63( _this );
2131 this.el.add_child ( child_0.el );
2135 this.el.set_size(50,50);
2138 // user defined functions
2140 public class Xcls_Actor63 : Object
2142 public GtkClutter.Actor el;
2143 private Xcls_MainWindow _this;
2149 public Xcls_Actor63(Xcls_MainWindow _owner )
2152 this.el = new GtkClutter.Actor();
2156 // set gobject values
2157 var child_0 = new Xcls_Button64( _this );
2162 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2165 // user defined functions
2167 public class Xcls_Button64 : Object
2169 public Gtk.Button el;
2170 private Xcls_MainWindow _this;
2176 public Xcls_Button64(Xcls_MainWindow _owner )
2179 this.el = new Gtk.Button();
2183 // set gobject values
2184 this.el.width_request = 50;
2185 this.el.height_request = 50;
2186 this.el.tooltip_text = "Delete Project";
2187 var child_0 = new Xcls_Image65( _this );
2189 this.el.set_image ( child_0.el );
2192 this.el.clicked.connect( ( ) => {
2194 var cd = DialogConfirm.singleton();
2195 cd.el.set_transient_for(_this.el);
2196 cd.el.set_modal(true);
2198 var project = _this.windowstate.left_projects.getSelectedProject();
2199 if (project == null) {
2200 print("SKIP - no project\n");
2205 if (Gtk.ResponseType.YES != cd.show("Confirm",
2206 "Are you sure you want to delete project %s".printf(project.name))) {
2212 Project.Project.remove(project);
2213 _this.project = null;
2215 _this.windowstate.left_projects.is_loaded = false;
2216 _this.windowstate.left_projects.load();
2217 _this.windowstate.clutterfiles.clearFiles();
2222 // user defined functions
2224 public class Xcls_Image65 : Object
2226 public Gtk.Image el;
2227 private Xcls_MainWindow _this;
2233 public Xcls_Image65(Xcls_MainWindow _owner )
2236 this.el = new Gtk.Image();
2240 // set gobject values
2241 this.el.icon_name = "user-trash";
2244 // user defined functions
2254 public class Xcls_Box66 : Object
2257 private Xcls_MainWindow _this;
2263 public Xcls_Box66(Xcls_MainWindow _owner )
2266 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2270 // set gobject values
2271 this.el.homogeneous = false;
2272 var child_0 = new Xcls_Label67( _this );
2274 this.el.pack_start ( child_0.el , true,true,0 );
2275 var child_1 = new Xcls_statusbar( _this );
2277 this.el.pack_start ( child_1.el , true,true,0 );
2278 var child_2 = new Xcls_search_entry( _this );
2280 this.el.pack_start ( child_2.el , false,true,0 );
2281 var child_3 = new Xcls_MenuBar70( _this );
2283 this.el.pack_end ( child_3.el , false,true,0 );
2286 // user defined functions
2288 public class Xcls_Label67 : Object
2290 public Gtk.Label el;
2291 private Xcls_MainWindow _this;
2297 public Xcls_Label67(Xcls_MainWindow _owner )
2300 this.el = new Gtk.Label( " " );
2304 // set gobject values
2307 // user defined functions
2310 public class Xcls_statusbar : Object
2312 public Gtk.ProgressBar el;
2313 private Xcls_MainWindow _this;
2317 public ulong handler_id;
2320 public Xcls_statusbar(Xcls_MainWindow _owner )
2323 _this.statusbar = this;
2324 this.el = new Gtk.ProgressBar();
2327 this.handler_id = -1;
2329 // set gobject values
2330 this.el.show_text = true;
2335 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2338 _this.mainpane.el.set_sensitive(true);
2342 _this.mainpane.el.set_sensitive(false);
2344 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2345 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2351 // user defined functions
2354 public class Xcls_search_entry : Object
2356 public Gtk.SearchEntry el;
2357 private Xcls_MainWindow _this;
2363 public Xcls_search_entry(Xcls_MainWindow _owner )
2366 _this.search_entry = this;
2367 this.el = new Gtk.SearchEntry();
2371 // set gobject values
2375 var description = Pango.FontDescription.from_string("monospace");
2376 description.set_size(8000);
2377 this.el.override_font(description);
2380 this.el.key_press_event.connect( (event) => {
2382 if (event.keyval == Gdk.Key.Return) {
2383 this.forwardSearch(false);
2387 // print(event.key.keyval)
2392 this.el.changed.connect( () => {
2393 if (this.el.text == "") {
2394 _this.search_results.el.hide();
2398 switch(_this.windowstate.state) {
2399 case WindowState.State.CODEONLY:
2400 case WindowState.State.CODE:
2401 // search the code being edited..
2402 res = _this.windowstate.code_editor.search(this.el.text);
2405 case WindowState.State.PREVIEW:
2406 if (_this.windowstate.file.xtype == "Gtk") {
2407 res = _this.windowstate.window_gladeview.search(this.el.text);
2409 res = _this.windowstate.window_rooview.search(this.el.text);
2415 _this.search_results.el.show();
2417 _this.search_results.el.label = "%d Matches".printf(res);
2419 _this.search_results.el.label = "No Matches";
2427 // user defined functions
2428 public void forwardSearch (bool change_focus) {
2429 switch(_this.windowstate.state) {
2430 case WindowState.State.CODEONLY:
2431 case WindowState.State.CODE:
2432 // search the code being edited..
2433 _this.windowstate.code_editor.forwardSearch(change_focus);
2436 case WindowState.State.PREVIEW:
2437 if (_this.windowstate.file.xtype == "Gtk") {
2438 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2440 _this.windowstate.window_rooview.forwardSearch(change_focus);
2449 public class Xcls_MenuBar70 : Object
2451 public Gtk.MenuBar el;
2452 private Xcls_MainWindow _this;
2458 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2461 this.el = new Gtk.MenuBar();
2465 // set gobject values
2466 var child_0 = new Xcls_search_results( _this );
2468 this.el.add ( child_0.el );
2469 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2471 this.el.add ( child_1.el );
2472 var child_2 = new Xcls_statusbar_errors( _this );
2474 this.el.add ( child_2.el );
2475 var child_3 = new Xcls_statusbar_warnings( _this );
2477 this.el.add ( child_3.el );
2478 var child_4 = new Xcls_statusbar_depricated( _this );
2480 this.el.add ( child_4.el );
2481 var child_5 = new Xcls_statusbar_run( _this );
2483 this.el.add ( child_5.el );
2486 // user defined functions
2488 public class Xcls_search_results : Object
2490 public Gtk.ImageMenuItem el;
2491 private Xcls_MainWindow _this;
2495 public Xcls_ValaCompileErrors popup;
2498 public Xcls_search_results(Xcls_MainWindow _owner )
2501 _this.search_results = this;
2502 this.el = new Gtk.ImageMenuItem();
2506 // set gobject values
2507 this.el.always_show_image = true;
2508 this.el.label = "Matches";
2509 var child_0 = new Xcls_Image72( _this );
2511 this.el.set_image ( child_0.el );
2514 this.el.button_press_event.connect( () => {
2516 if (this.popup == null) {
2517 this.popup = new Xcls_ValaCompileErrors();
2518 this.popup.window = _this;
2522 this.popup.show(this.notices, this.el);
2528 // user defined functions
2530 public class Xcls_Image72 : Object
2532 public Gtk.Image el;
2533 private Xcls_MainWindow _this;
2539 public Xcls_Image72(Xcls_MainWindow _owner )
2542 this.el = new Gtk.Image();
2546 // set gobject values
2547 this.el.icon_name = "system-search";
2548 this.el.sensitive = false;
2551 // user defined functions
2555 public class Xcls_statusbar_compilestatus_label : Object
2557 public Gtk.MenuItem el;
2558 private Xcls_MainWindow _this;
2564 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2567 _this.statusbar_compilestatus_label = this;
2568 this.el = new Gtk.MenuItem();
2572 // set gobject values
2573 this.el.label = "Compile Status:";
2576 // user defined functions
2579 public class Xcls_statusbar_errors : Object
2581 public Gtk.ImageMenuItem el;
2582 private Xcls_MainWindow _this;
2586 public Xcls_ValaCompileErrors popup;
2587 public Json.Object notices;
2590 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2593 _this.statusbar_errors = this;
2594 this.el = new Gtk.ImageMenuItem();
2597 this.notices = new Json.Object() ;
2599 // set gobject values
2600 this.el.always_show_image = true;
2601 this.el.label = "Errors";
2602 var child_0 = new Xcls_Image75( _this );
2604 this.el.set_image ( child_0.el );
2607 this.el.button_press_event.connect( () => {
2608 if (this.popup == null) {
2609 this.popup = new Xcls_ValaCompileErrors();
2610 this.popup.window = _this;
2614 this.popup.show(this.notices, this.el);
2619 // user defined functions
2620 public void setNotices (Json.Object nots, int qty) {
2622 this.el.label = qty.to_string() + " Errors";
2623 this.notices = nots;
2627 public class Xcls_Image75 : Object
2629 public Gtk.Image el;
2630 private Xcls_MainWindow _this;
2636 public Xcls_Image75(Xcls_MainWindow _owner )
2639 this.el = new Gtk.Image();
2643 // set gobject values
2644 this.el.icon_name = "dialog-error";
2647 // user defined functions
2651 public class Xcls_statusbar_warnings : Object
2653 public Gtk.ImageMenuItem el;
2654 private Xcls_MainWindow _this;
2658 public Xcls_ValaCompileErrors popup;
2659 public Json.Object notices;
2662 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2665 _this.statusbar_warnings = this;
2666 this.el = new Gtk.ImageMenuItem();
2669 this.notices = new Json.Object();
2671 // set gobject values
2672 this.el.always_show_image = true;
2673 this.el.label = "Warnings";
2674 var child_0 = new Xcls_Image77( _this );
2676 this.el.set_image ( child_0.el );
2679 this.el.button_press_event.connect( () => {
2680 if (this.popup == null) {
2681 this.popup = new Xcls_ValaCompileErrors();
2682 this.popup.window = _this;
2685 this.popup.show(this.notices, this.el);
2690 // user defined functions
2691 public void setNotices (Json.Object nots, int qty) {
2693 this.el.label = qty.to_string() + " Warnings";
2694 this.notices = nots;
2698 public class Xcls_Image77 : Object
2700 public Gtk.Image el;
2701 private Xcls_MainWindow _this;
2707 public Xcls_Image77(Xcls_MainWindow _owner )
2710 this.el = new Gtk.Image();
2714 // set gobject values
2715 this.el.icon_name = "dialog-warning";
2718 // user defined functions
2722 public class Xcls_statusbar_depricated : Object
2724 public Gtk.ImageMenuItem el;
2725 private Xcls_MainWindow _this;
2729 public Xcls_ValaCompileErrors popup;
2730 public Json.Object notices;
2733 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2736 _this.statusbar_depricated = this;
2737 this.el = new Gtk.ImageMenuItem();
2740 this.notices = new Json.Object();
2742 // set gobject values
2743 this.el.always_show_image = true;
2744 this.el.label = "Depricated";
2745 var child_0 = new Xcls_Image79( _this );
2747 this.el.set_image ( child_0.el );
2750 this.el.button_press_event.connect( () => {
2751 if (this.popup == null) {
2752 this.popup = new Xcls_ValaCompileErrors();
2753 this.popup.window = _this;
2757 this.popup.show(this.notices, this.el);
2762 // user defined functions
2763 public void setNotices (Json.Object nots, int qty) {
2765 this.el.label = qty.to_string() + " Depricated";
2766 this.notices = nots;
2770 public class Xcls_Image79 : Object
2772 public Gtk.Image el;
2773 private Xcls_MainWindow _this;
2779 public Xcls_Image79(Xcls_MainWindow _owner )
2782 this.el = new Gtk.Image();
2786 // set gobject values
2787 this.el.icon_name = "dialog-information";
2790 // user defined functions
2794 public class Xcls_statusbar_run : Object
2796 public Gtk.ImageMenuItem el;
2797 private Xcls_MainWindow _this;
2801 public Xcls_ValaCompileErrors popup;
2804 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2807 _this.statusbar_run = this;
2808 this.el = new Gtk.ImageMenuItem();
2812 // set gobject values
2813 this.el.always_show_image = true;
2814 this.el.label = "Run";
2815 var child_0 = new Xcls_Image81( _this );
2817 this.el.set_image ( child_0.el );
2820 this.el.button_press_event.connect( () => {
2821 if (_this.windowstate.file == null) {
2824 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2826 _this.windowstate.compile_results.show(this.el,true);
2832 // user defined functions
2834 public class Xcls_Image81 : Object
2836 public Gtk.Image el;
2837 private Xcls_MainWindow _this;
2843 public Xcls_Image81(Xcls_MainWindow _owner )
2846 this.el = new Gtk.Image();
2850 // set gobject values
2851 this.el.icon_name = "media-playback-start";
2854 // user defined functions