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 );
84 this.el.delete_event.connect( ( event) => {
87 this.el.destroy.connect( () => {
88 Xcls_MainWindow.singleton().no_windows--;
90 Resources.singleton().disconnect(_this.statusbar.handler_id);
93 if (Xcls_MainWindow.singleton().no_windows < 1) {
98 this.el.show.connect( ( ) => {
99 // hide the file editing..
101 //this.hideViewEditing();
102 _this.statusbar.el.hide();
103 _this.statusbar_errors.el.hide();
104 _this.statusbar_warnings.el.hide();
105 _this.statusbar_depricated.el.hide();
108 Resources.singleton().checkResources();
111 this.el.key_release_event.connect( (event) => {
113 if (this.search_entry.el.is_visible()) {
114 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
115 print("SAVE: ctrl-f pressed");
116 this.search_entry.el.grab_focus();
120 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
121 print("SAVE: ctrl-g pressed");
122 this.search_entry.forwardSearch(true);
128 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
129 print("SAVE: ctrl-n pressed");
130 this.openNewWindow();
134 // print(event.key.keyval)
141 // user defined functions
142 public void openNewWindow () {
143 Xcls_MainWindow.singleton().no_windows++;
144 var w = new Xcls_MainWindow();
149 w.windowstate.switchState(WindowState.State.FILES);
151 public void initChildren () {
152 // this needs putting in a better place..
153 this.windowstate = new WindowState(this);
157 var tl = new Clutter.Timeline(6000);
158 tl.set_repeat_count(-1);
167 public void show () {
172 public void setTitle (string str) {
173 this.headerbar.el.set_title(this.title + " - " + str);
175 public class Xcls_headerbar : Object
177 public Gtk.HeaderBar el;
178 private Xcls_MainWindow _this;
184 public Xcls_headerbar(Xcls_MainWindow _owner )
187 _this.headerbar = this;
188 this.el = new Gtk.HeaderBar();
192 // set gobject values
193 this.el.title = "Application Builder";
194 this.el.show_close_button = true;
195 var child_0 = new Xcls_Box3( _this );
197 this.el.pack_start ( child_0.el );
200 // user defined functions
202 public class Xcls_Box3 : Object
205 private Xcls_MainWindow _this;
211 public Xcls_Box3(Xcls_MainWindow _owner )
214 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
218 // set gobject values
219 var child_0 = new Xcls_MenuButton4( _this );
221 this.el.add ( child_0.el );
222 var child_1 = new Xcls_openbtn( _this );
224 this.el.add ( child_1.el );
225 var child_2 = new Xcls_openbackbtn( _this );
227 this.el.add ( child_2.el );
230 // user defined functions
232 public class Xcls_MenuButton4 : Object
234 public Gtk.MenuButton el;
235 private Xcls_MainWindow _this;
241 public Xcls_MenuButton4(Xcls_MainWindow _owner )
244 this.el = new Gtk.MenuButton();
248 // set gobject values
249 this.el.use_popover = false;
250 var child_0 = new Xcls_topbarmenu( _this );
252 this.el.set_popup ( child_0.el );
253 var child_1 = new Xcls_Image10( _this );
255 this.el.set_image ( child_1.el );
258 // user defined functions
260 public class Xcls_topbarmenu : Object
263 private Xcls_MainWindow _this;
269 public Xcls_topbarmenu(Xcls_MainWindow _owner )
272 _this.topbarmenu = this;
273 this.el = new Gtk.Menu();
277 // set gobject values
278 var child_0 = new Xcls_MenuItem6( _this );
280 this.el.append ( child_0.el );
281 var child_1 = new Xcls_SeparatorMenuItem7( _this );
283 this.el.append ( child_1.el );
284 var child_2 = new Xcls_MenuItem8( _this );
286 this.el.append ( child_2.el );
287 var child_3 = new Xcls_MenuItem9( _this );
289 this.el.append ( child_3.el );
298 // user defined functions
300 public class Xcls_MenuItem6 : Object
302 public Gtk.MenuItem el;
303 private Xcls_MainWindow _this;
309 public Xcls_MenuItem6(Xcls_MainWindow _owner )
312 this.el = new Gtk.MenuItem();
316 // set gobject values
317 this.el.label = "Open a new Window";
320 this.el.activate.connect( ( ) => {
321 _this.openNewWindow();
325 // user defined functions
328 public class Xcls_SeparatorMenuItem7 : Object
330 public Gtk.SeparatorMenuItem el;
331 private Xcls_MainWindow _this;
337 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
340 this.el = new Gtk.SeparatorMenuItem();
344 // set gobject values
347 // user defined functions
350 public class Xcls_MenuItem8 : Object
352 public Gtk.MenuItem el;
353 private Xcls_MainWindow _this;
359 public Xcls_MenuItem8(Xcls_MainWindow _owner )
362 this.el = new Gtk.MenuItem();
366 // set gobject values
367 this.el.label = "Download updated Resources";
370 this.el.activate.connect( ( ) => {
371 Resources.singleton().fetchStart();
375 // user defined functions
378 public class Xcls_MenuItem9 : Object
380 public Gtk.MenuItem el;
381 private Xcls_MainWindow _this;
387 public Xcls_MenuItem9(Xcls_MainWindow _owner )
390 this.el = new Gtk.MenuItem();
394 // set gobject values
395 this.el.label = "About the Builder";
398 this.el.activate.connect( () => {
399 About.singleton().el.show();
403 // user defined functions
407 public class Xcls_Image10 : Object
410 private Xcls_MainWindow _this;
416 public Xcls_Image10(Xcls_MainWindow _owner )
419 this.el = new Gtk.Image();
423 // set gobject values
424 this.el.icon_name = "help-about";
427 // user defined functions
431 public class Xcls_openbtn : Object
433 public Gtk.Button el;
434 private Xcls_MainWindow _this;
440 public Xcls_openbtn(Xcls_MainWindow _owner )
443 _this.openbtn = this;
444 this.el = new Gtk.Button();
448 // set gobject values
449 var child_0 = new Xcls_Image12( _this );
451 this.el.set_image ( child_0.el );
454 this.el.clicked.connect( ( ) => {
455 _this.windowstate.switchState(WindowState.State.FILES);
461 // user defined functions
463 public class Xcls_Image12 : Object
466 private Xcls_MainWindow _this;
472 public Xcls_Image12(Xcls_MainWindow _owner )
475 this.el = new Gtk.Image();
479 // set gobject values
480 this.el.icon_name = "document-open";
483 // user defined functions
487 public class Xcls_openbackbtn : Object
489 public Gtk.Button el;
490 private Xcls_MainWindow _this;
496 public Xcls_openbackbtn(Xcls_MainWindow _owner )
499 _this.openbackbtn = this;
500 this.el = new Gtk.Button();
504 // set gobject values
505 this.el.tooltip_text = "Back";
506 this.el.visible = false;
507 var child_0 = new Xcls_Image14( _this );
509 this.el.set_image ( child_0.el );
512 this.el.clicked.connect( ( ) => {
514 _this.windowstate.switchState(WindowState.State.PREVIEW);
520 // user defined functions
522 public class Xcls_Image14 : Object
525 private Xcls_MainWindow _this;
531 public Xcls_Image14(Xcls_MainWindow _owner )
534 this.el = new Gtk.Image();
538 // set gobject values
539 this.el.icon_name = "go-previous";
542 // user defined functions
548 public class Xcls_vbox : Object
551 private Xcls_MainWindow _this;
557 public Xcls_vbox(Xcls_MainWindow _owner )
561 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
565 // set gobject values
566 this.el.homogeneous = false;
567 var child_0 = new Xcls_mainpane( _this );
569 this.el.pack_start ( child_0.el , true,true,0 );
570 var child_1 = new Xcls_Box66( _this );
572 this.el.pack_end ( child_1.el , false,true,0 );
575 // user defined functions
577 public class Xcls_mainpane : Object
580 private Xcls_MainWindow _this;
584 public int lastWidth;
587 public Xcls_mainpane(Xcls_MainWindow _owner )
590 _this.mainpane = this;
591 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
596 // set gobject values
597 this.el.position = 400;
598 var child_0 = new Xcls_leftpane( _this );
600 this.el.add1 ( child_0.el );
601 var child_1 = new Xcls_Box21( _this );
603 this.el.add2 ( child_1.el );
606 // user defined functions
608 public class Xcls_leftpane : Object
611 private Xcls_MainWindow _this;
617 public Xcls_leftpane(Xcls_MainWindow _owner )
620 _this.leftpane = this;
621 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
625 // set gobject values
626 var child_0 = new Xcls_editpane( _this );
628 this.el.pack_start ( child_0.el , true,true,0 );
631 // user defined functions
633 public class Xcls_editpane : Object
636 private Xcls_MainWindow _this;
642 public Xcls_editpane(Xcls_MainWindow _owner )
645 _this.editpane = this;
646 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
650 // set gobject values
651 var child_0 = new Xcls_tree( _this );
653 this.el.add1 ( child_0.el );
654 var child_1 = new Xcls_props( _this );
656 this.el.add2 ( child_1.el );
659 // user defined functions
661 public class Xcls_tree : Object
664 private Xcls_MainWindow _this;
670 public Xcls_tree(Xcls_MainWindow _owner )
674 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
678 // set gobject values
681 // user defined functions
684 public class Xcls_props : Object
687 private Xcls_MainWindow _this;
693 public Xcls_props(Xcls_MainWindow _owner )
697 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
701 // set gobject values
704 // user defined functions
709 public class Xcls_Box21 : Object
712 private Xcls_MainWindow _this;
718 public Xcls_Box21(Xcls_MainWindow _owner )
721 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
725 // set gobject values
726 var child_0 = new Xcls_clutterembed( _this );
728 this.el.pack_start ( child_0.el , true,true,0 );
731 // user defined functions
733 public class Xcls_clutterembed : Object
735 public GtkClutter.Embed el;
736 private Xcls_MainWindow _this;
742 public Xcls_clutterembed(Xcls_MainWindow _owner )
745 _this.clutterembed = this;
746 this.el = new GtkClutter.Embed();
750 // set gobject values
751 var child_0 = new Xcls_rooview( _this );
753 this.el.get_stage().add_child ( child_0.el );
754 var child_1 = new Xcls_objectview( _this );
756 this.el.get_stage().add_child ( child_1.el );
757 var child_2 = new Xcls_codeeditview( _this );
759 this.el.get_stage().add_child ( child_2.el );
760 var child_3 = new Xcls_addpropsview( _this );
762 this.el.get_stage().add_child ( child_3.el );
763 var child_4 = new Xcls_projecteditview( _this );
765 this.el.get_stage().add_child ( child_4.el );
766 var child_5 = new Xcls_buttonlayout( _this );
768 this.el.get_stage().add_child ( child_5.el );
772 var stage = this.el.get_stage();
773 stage.set_background_color( Clutter.Color.from_string("#000"));
776 this.el.size_allocate.connect( ( alloc) => {
777 if (_this.windowstate == null) {
780 _this.windowstate.resizeCanvas();
785 // user defined functions
787 public class Xcls_rooview : Object
789 public GtkClutter.Actor el;
790 private Xcls_MainWindow _this;
796 public Xcls_rooview(Xcls_MainWindow _owner )
799 _this.rooview = this;
800 this.el = new GtkClutter.Actor();
804 // set gobject values
811 this.el.add_constraint(
812 new Clutter.AlignConstraint(
813 _this.clutterembed.el.get_stage(),
814 Clutter.AlignAxis.X_AXIS,
819 //this.el.set_position(100,100);
820 this.el.set_pivot_point(1.0f,1.0f);
822 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
823 _this.clutterembed.el.get_stage().height);
828 // user defined functions
831 public class Xcls_objectview : Object
833 public GtkClutter.Actor el;
834 private Xcls_MainWindow _this;
840 public Xcls_objectview(Xcls_MainWindow _owner )
843 _this.objectview = this;
844 this.el = new GtkClutter.Actor();
848 // set gobject values
855 this.el.add_constraint(
856 new Clutter.AlignConstraint(
857 _this.clutterembed.el.get_stage(),
858 Clutter.AlignAxis.X_AXIS,
863 this.el.fixed_x = 50.0f;
864 this.el.fixed_y = 0.0f;
865 //this.el.set_position(100,100);
866 this.el.set_pivot_point(0.0f,0.0f);
867 this.el.set_scale(0.0f,1.0f);
868 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
869 _this.clutterembed.el.get_stage().height);
874 // user defined functions
877 public class Xcls_codeeditview : Object
879 public GtkClutter.Actor el;
880 private Xcls_MainWindow _this;
886 public Xcls_codeeditview(Xcls_MainWindow _owner )
889 _this.codeeditview = this;
890 this.el = new GtkClutter.Actor();
894 // set gobject values
901 this.el.add_constraint(
902 new Clutter.AlignConstraint(
903 _this.clutterembed.el.get_stage(),
904 Clutter.AlignAxis.X_AXIS,
909 this.el.fixed_x = 50.0f;
910 this.el.fixed_y = 0.0f;
911 //this.el.set_position(100,100);
912 this.el.set_pivot_point(0.0f,0.0f);
913 this.el.set_scale(0.0f,1.0f);
914 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
915 _this.clutterembed.el.get_stage().height);
920 // user defined functions
923 public class Xcls_addpropsview : Object
925 public GtkClutter.Actor el;
926 private Xcls_MainWindow _this;
932 public Xcls_addpropsview(Xcls_MainWindow _owner )
935 _this.addpropsview = this;
936 this.el = new GtkClutter.Actor();
940 // set gobject values
947 this.el.add_constraint(
948 new Clutter.AlignConstraint(
949 _this.clutterembed.el.get_stage(),
950 Clutter.AlignAxis.X_AXIS,
955 this.el.fixed_x = 50.0f;
956 this.el.fixed_y = 0.0f;
957 //this.el.set_position(100,100);
958 this.el.set_pivot_point(0.0f,0.0f);
959 this.el.set_scale(0.0f,1.0f);
960 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
961 _this.clutterembed.el.get_stage().height);
966 // user defined functions
969 public class Xcls_projecteditview : Object
971 public GtkClutter.Actor el;
972 private Xcls_MainWindow _this;
978 public Xcls_projecteditview(Xcls_MainWindow _owner )
981 _this.projecteditview = this;
982 this.el = new GtkClutter.Actor();
986 // set gobject values
993 this.el.add_constraint(
994 new Clutter.AlignConstraint(
995 _this.clutterembed.el.get_stage(),
996 Clutter.AlignAxis.X_AXIS,
1001 //this.el.set_position(100,100);
1002 this.el.set_pivot_point(0.0f,0.0f);
1003 this.el.set_scale(1.0f,0.0f);
1004 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
1005 _this.clutterembed.el.get_stage().height /2);
1010 // user defined functions
1013 public class Xcls_buttonlayout : Object
1015 public Clutter.Actor el;
1016 private Xcls_MainWindow _this;
1022 public Xcls_buttonlayout(Xcls_MainWindow _owner )
1025 _this.buttonlayout = this;
1026 this.el = new Clutter.Actor();
1030 // set gobject values
1031 var child_0 = new Xcls_BoxLayout29( _this );
1033 this.el.layout_manager = child_0.el;
1034 var child_1 = new Xcls_backbutton( _this );
1036 this.el.add_child ( child_1.el );
1037 var child_2 = new Xcls_editfilebutton( _this );
1039 this.el.add_child ( child_2.el );
1040 var child_3 = new Xcls_projecteditbutton( _this );
1042 this.el.add_child ( child_3.el );
1043 var child_4 = new Xcls_objectshowbutton( _this );
1045 this.el.add_child ( child_4.el );
1046 var child_5 = new Xcls_addpropbutton( _this );
1048 this.el.add_child ( child_5.el );
1049 var child_6 = new Xcls_addlistenerbutton( _this );
1051 this.el.add_child ( child_6.el );
1052 var child_7 = new Xcls_addprojectbutton( _this );
1054 this.el.add_child ( child_7.el );
1055 var child_8 = new Xcls_addfilebutton( _this );
1057 this.el.add_child ( child_8.el );
1058 var child_9 = new Xcls_delprojectbutton( _this );
1060 this.el.add_child ( child_9.el );
1066 this.el.add_constraint(
1067 new Clutter.AlignConstraint(
1068 _this.clutterembed.el.get_stage(),
1069 Clutter.AlignAxis.X_AXIS,
1075 //this.el.set_position(100,100);
1076 this.el.set_pivot_point(0.5f,0.5f);
1077 this.el.set_size(50,
1078 _this.clutterembed.el.get_stage().height);
1083 // user defined functions
1085 public class Xcls_BoxLayout29 : Object
1087 public Clutter.BoxLayout el;
1088 private Xcls_MainWindow _this;
1094 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1097 this.el = new Clutter.BoxLayout();
1101 // set gobject values
1102 this.el.orientation = Clutter.Orientation.VERTICAL;
1105 // user defined functions
1108 public class Xcls_backbutton : Object
1110 public Clutter.Actor el;
1111 private Xcls_MainWindow _this;
1117 public Xcls_backbutton(Xcls_MainWindow _owner )
1120 _this.backbutton = this;
1121 this.el = new Clutter.Actor();
1125 // set gobject values
1126 var child_0 = new Xcls_Actor31( _this );
1128 this.el.add_child ( child_0.el );
1132 this.el.set_size(50,50);
1135 // user defined functions
1137 public class Xcls_Actor31 : Object
1139 public GtkClutter.Actor el;
1140 private Xcls_MainWindow _this;
1146 public Xcls_Actor31(Xcls_MainWindow _owner )
1149 this.el = new GtkClutter.Actor();
1153 // set gobject values
1154 var child_0 = new Xcls_Button32( _this );
1159 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1162 // user defined functions
1164 public class Xcls_Button32 : Object
1166 public Gtk.Button el;
1167 private Xcls_MainWindow _this;
1173 public Xcls_Button32(Xcls_MainWindow _owner )
1176 this.el = new Gtk.Button();
1180 // set gobject values
1181 this.el.width_request = 50;
1182 this.el.height_request = 50;
1183 this.el.tooltip_text = "Back";
1184 var child_0 = new Xcls_Image33( _this );
1186 this.el.set_image ( child_0.el );
1189 this.el.clicked.connect( ( ) => {
1190 if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
1192 _this.windowstate.switchState(WindowState.State.FILES);
1194 _this.windowstate.switchState(WindowState.State.PREVIEW);
1201 // user defined functions
1203 public class Xcls_Image33 : Object
1205 public Gtk.Image el;
1206 private Xcls_MainWindow _this;
1212 public Xcls_Image33(Xcls_MainWindow _owner )
1215 this.el = new Gtk.Image();
1219 // set gobject values
1220 this.el.icon_name = "go-previous";
1223 // user defined functions
1229 public class Xcls_editfilebutton : Object
1231 public Clutter.Actor el;
1232 private Xcls_MainWindow _this;
1238 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1241 _this.editfilebutton = this;
1242 this.el = new Clutter.Actor();
1246 // set gobject values
1247 var child_0 = new Xcls_Actor35( _this );
1249 this.el.add_child ( child_0.el );
1253 this.el.set_size(50.0f,50.0f);
1256 // user defined functions
1258 public class Xcls_Actor35 : Object
1260 public GtkClutter.Actor el;
1261 private Xcls_MainWindow _this;
1267 public Xcls_Actor35(Xcls_MainWindow _owner )
1270 this.el = new GtkClutter.Actor();
1274 // set gobject values
1275 var child_0 = new Xcls_Button36( _this );
1280 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1283 // user defined functions
1285 public class Xcls_Button36 : Object
1287 public Gtk.Button el;
1288 private Xcls_MainWindow _this;
1294 public Xcls_Button36(Xcls_MainWindow _owner )
1297 this.el = new Gtk.Button();
1301 // set gobject values
1302 this.el.width_request = 50;
1303 this.el.height_request = 50;
1304 this.el.tooltip_text = "File Details";
1305 var child_0 = new Xcls_Image37( _this );
1307 this.el.set_image ( child_0.el );
1310 this.el.clicked.connect( ( ) => {
1312 // create a new file in project..
1313 if (_this.project == null || _this.windowstate.file == null) {
1316 _this.windowstate.file_details.show(
1317 _this.windowstate.file, this.el
1326 // user defined functions
1328 public class Xcls_Image37 : Object
1330 public Gtk.Image el;
1331 private Xcls_MainWindow _this;
1337 public Xcls_Image37(Xcls_MainWindow _owner )
1340 this.el = new Gtk.Image();
1344 // set gobject values
1345 this.el.icon_name = "document-properties";
1348 // user defined functions
1354 public class Xcls_projecteditbutton : Object
1356 public Clutter.Actor el;
1357 private Xcls_MainWindow _this;
1363 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1366 _this.projecteditbutton = this;
1367 this.el = new Clutter.Actor();
1371 // set gobject values
1372 var child_0 = new Xcls_Actor39( _this );
1374 this.el.add_child ( child_0.el );
1378 this.el.set_size(50,50);
1381 // user defined functions
1383 public class Xcls_Actor39 : Object
1385 public GtkClutter.Actor el;
1386 private Xcls_MainWindow _this;
1392 public Xcls_Actor39(Xcls_MainWindow _owner )
1395 this.el = new GtkClutter.Actor();
1399 // set gobject values
1400 var child_0 = new Xcls_Button40( _this );
1405 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1408 // user defined functions
1410 public class Xcls_Button40 : Object
1412 public Gtk.Button el;
1413 private Xcls_MainWindow _this;
1419 public Xcls_Button40(Xcls_MainWindow _owner )
1422 this.el = new Gtk.Button();
1426 // set gobject values
1427 this.el.width_request = 50;
1428 this.el.height_request = 50;
1429 this.el.tooltip_text = "Project Details";
1430 var child_0 = new Xcls_Image41( _this );
1432 this.el.set_image ( child_0.el );
1435 this.el.clicked.connect( ( ) => {
1437 switch(_this.windowstate.state) {
1438 case WindowState.State.FILES:
1439 _this.windowstate.switchState(WindowState.State.FILEPROJECT);
1441 case WindowState.State.CODEONLY:
1442 _this.windowstate.switchState(WindowState.State.PROJECTCODEONLY);
1445 _this.windowstate.switchState(WindowState.State.PROJECT);
1452 // user defined functions
1454 public class Xcls_Image41 : Object
1456 public Gtk.Image el;
1457 private Xcls_MainWindow _this;
1463 public Xcls_Image41(Xcls_MainWindow _owner )
1466 this.el = new Gtk.Image();
1470 // set gobject values
1471 this.el.icon_name = "emblem-system";
1474 // user defined functions
1480 public class Xcls_objectshowbutton : Object
1482 public Clutter.Actor el;
1483 private Xcls_MainWindow _this;
1489 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1492 _this.objectshowbutton = this;
1493 this.el = new Clutter.Actor();
1497 // set gobject values
1498 var child_0 = new Xcls_Actor43( _this );
1500 this.el.add_child ( child_0.el );
1504 this.el.set_size(50,50);
1507 this.el.enter_event.connect( ( event) => {
1508 this.el.background_color = Clutter.Color.from_string("#333");
1511 this.el.leave_event.connect( ( event) => {
1512 this.el.background_color = Clutter.Color.from_string("#000");
1517 // user defined functions
1519 public class Xcls_Actor43 : Object
1521 public GtkClutter.Actor el;
1522 private Xcls_MainWindow _this;
1528 public Xcls_Actor43(Xcls_MainWindow _owner )
1531 this.el = new GtkClutter.Actor();
1535 // set gobject values
1536 var child_0 = new Xcls_Button44( _this );
1541 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1544 // user defined functions
1546 public class Xcls_Button44 : Object
1548 public Gtk.Button el;
1549 private Xcls_MainWindow _this;
1555 public Xcls_Button44(Xcls_MainWindow _owner )
1558 this.el = new Gtk.Button();
1562 // set gobject values
1563 this.el.width_request = 50;
1564 this.el.height_request = 50;
1565 this.el.tooltip_text = "Add Child Element";
1566 var child_0 = new Xcls_Image45( _this );
1568 this.el.set_image ( child_0.el );
1571 this.el.clicked.connect( ( ) => {
1573 _this.windowstate.switchState(WindowState.State.OBJECT);
1579 // user defined functions
1581 public class Xcls_Image45 : Object
1583 public Gtk.Image el;
1584 private Xcls_MainWindow _this;
1590 public Xcls_Image45(Xcls_MainWindow _owner )
1593 this.el = new Gtk.Image();
1597 // set gobject values
1598 this.el.icon_name = "list-add";
1601 // user defined functions
1607 public class Xcls_addpropbutton : Object
1609 public Clutter.Actor el;
1610 private Xcls_MainWindow _this;
1616 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1619 _this.addpropbutton = this;
1620 this.el = new Clutter.Actor();
1624 // set gobject values
1625 var child_0 = new Xcls_Actor47( _this );
1627 this.el.add_child ( child_0.el );
1631 this.el.set_size(50,50);
1634 // user defined functions
1636 public class Xcls_Actor47 : Object
1638 public GtkClutter.Actor el;
1639 private Xcls_MainWindow _this;
1645 public Xcls_Actor47(Xcls_MainWindow _owner )
1648 this.el = new GtkClutter.Actor();
1652 // set gobject values
1653 var child_0 = new Xcls_Button48( _this );
1658 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1661 // user defined functions
1663 public class Xcls_Button48 : Object
1665 public Gtk.Button el;
1666 private Xcls_MainWindow _this;
1672 public Xcls_Button48(Xcls_MainWindow _owner )
1675 this.el = new Gtk.Button();
1679 // set gobject values
1680 this.el.width_request = 50;
1681 this.el.height_request = 50;
1682 this.el.tooltip_text = "Add Property";
1683 var child_0 = new Xcls_Image49( _this );
1685 this.el.set_image ( child_0.el );
1688 this.el.clicked.connect( ( ) => {
1690 _this.windowstate.switchState(WindowState.State.PROP);
1696 // user defined functions
1698 public class Xcls_Image49 : Object
1700 public Gtk.Image el;
1701 private Xcls_MainWindow _this;
1707 public Xcls_Image49(Xcls_MainWindow _owner )
1710 this.el = new Gtk.Image();
1714 // set gobject values
1715 this.el.icon_name = "format-justify-left";
1718 // user defined functions
1724 public class Xcls_addlistenerbutton : Object
1726 public Clutter.Actor el;
1727 private Xcls_MainWindow _this;
1733 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1736 _this.addlistenerbutton = this;
1737 this.el = new Clutter.Actor();
1741 // set gobject values
1742 var child_0 = new Xcls_Actor51( _this );
1744 this.el.add_child ( child_0.el );
1748 this.el.set_size(50,50);
1751 // user defined functions
1753 public class Xcls_Actor51 : Object
1755 public GtkClutter.Actor el;
1756 private Xcls_MainWindow _this;
1762 public Xcls_Actor51(Xcls_MainWindow _owner )
1765 this.el = new GtkClutter.Actor();
1769 // set gobject values
1770 var child_0 = new Xcls_Button52( _this );
1775 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1778 // user defined functions
1780 public class Xcls_Button52 : Object
1782 public Gtk.Button el;
1783 private Xcls_MainWindow _this;
1789 public Xcls_Button52(Xcls_MainWindow _owner )
1792 this.el = new Gtk.Button();
1796 // set gobject values
1797 this.el.width_request = 50;
1798 this.el.height_request = 50;
1799 this.el.tooltip_text = "Add Event Code";
1800 var child_0 = new Xcls_Image53( _this );
1802 this.el.set_image ( child_0.el );
1805 this.el.clicked.connect( ( ) => {
1807 _this.windowstate.switchState(WindowState.State.LISTENER);
1814 // user defined functions
1816 public class Xcls_Image53 : Object
1818 public Gtk.Image el;
1819 private Xcls_MainWindow _this;
1825 public Xcls_Image53(Xcls_MainWindow _owner )
1828 this.el = new Gtk.Image();
1832 // set gobject values
1833 this.el.icon_name = "appointment-new";
1836 // user defined functions
1842 public class Xcls_addprojectbutton : Object
1844 public Clutter.Actor el;
1845 private Xcls_MainWindow _this;
1851 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1854 _this.addprojectbutton = this;
1855 this.el = new Clutter.Actor();
1859 // set gobject values
1860 var child_0 = new Xcls_Actor55( _this );
1862 this.el.add_child ( child_0.el );
1866 this.el.set_size(50.0f,50.0f);
1869 // user defined functions
1871 public class Xcls_Actor55 : Object
1873 public GtkClutter.Actor el;
1874 private Xcls_MainWindow _this;
1880 public Xcls_Actor55(Xcls_MainWindow _owner )
1883 this.el = new GtkClutter.Actor();
1887 // set gobject values
1888 var child_0 = new Xcls_Button56( _this );
1893 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1896 // user defined functions
1898 public class Xcls_Button56 : Object
1900 public Gtk.Button el;
1901 private Xcls_MainWindow _this;
1907 public Xcls_Button56(Xcls_MainWindow _owner )
1910 this.el = new Gtk.Button();
1914 // set gobject values
1915 this.el.width_request = 50;
1916 this.el.height_request = 50;
1917 this.el.tooltip_text = "New\nProj.";
1918 var child_0 = new Xcls_Image57( _this );
1920 this.el.set_image ( child_0.el );
1923 this.el.clicked.connect( ( ) => {
1925 // create a new file in project..
1926 //Xcls_DialogNewComponent.singleton().show(
1927 var pe = EditProject.singleton();
1928 pe.el.set_transient_for(_this.el);
1929 pe.el.set_modal(true);
1938 _this.windowstate.left_projects.is_loaded = false;
1939 _this.windowstate.left_projects.load();
1940 _this.windowstate.left_projects.selectProject(p);
1947 // user defined functions
1949 public class Xcls_Image57 : Object
1951 public Gtk.Image el;
1952 private Xcls_MainWindow _this;
1958 public Xcls_Image57(Xcls_MainWindow _owner )
1961 this.el = new Gtk.Image();
1965 // set gobject values
1966 this.el.icon_name = "folder-new";
1969 // user defined functions
1975 public class Xcls_addfilebutton : Object
1977 public Clutter.Actor el;
1978 private Xcls_MainWindow _this;
1984 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1987 _this.addfilebutton = this;
1988 this.el = new Clutter.Actor();
1992 // set gobject values
1993 var child_0 = new Xcls_Actor59( _this );
1995 this.el.add_child ( child_0.el );
1999 this.el.set_size(50.0f,50.0f);
2002 // user defined functions
2004 public class Xcls_Actor59 : Object
2006 public GtkClutter.Actor el;
2007 private Xcls_MainWindow _this;
2013 public Xcls_Actor59(Xcls_MainWindow _owner )
2016 this.el = new GtkClutter.Actor();
2020 // set gobject values
2021 var child_0 = new Xcls_Button60( _this );
2026 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2029 // user defined functions
2031 public class Xcls_Button60 : Object
2033 public Gtk.Button el;
2034 private Xcls_MainWindow _this;
2040 public Xcls_Button60(Xcls_MainWindow _owner )
2043 this.el = new Gtk.Button();
2047 // set gobject values
2048 this.el.width_request = 50;
2049 this.el.height_request = 50;
2050 this.el.tooltip_text = "Add File";
2051 var child_0 = new Xcls_Image61( _this );
2053 this.el.set_image ( child_0.el );
2056 this.el.clicked.connect( () => {
2057 // create a new file in project..
2058 print("add file selected\n");
2059 // what's the currently selected project...
2060 var proj = _this.windowstate.left_projects.getSelectedProject();
2063 print("no project selected?\n");
2067 print("creating file?");
2069 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2070 _this.project = proj;
2071 print("showing popup?");
2072 _this.windowstate.file_details.show(
2081 // user defined functions
2083 public class Xcls_Image61 : Object
2085 public Gtk.Image el;
2086 private Xcls_MainWindow _this;
2092 public Xcls_Image61(Xcls_MainWindow _owner )
2095 this.el = new Gtk.Image();
2099 // set gobject values
2100 this.el.icon_name = "document-new";
2103 // user defined functions
2109 public class Xcls_delprojectbutton : Object
2111 public Clutter.Actor el;
2112 private Xcls_MainWindow _this;
2118 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2121 _this.delprojectbutton = this;
2122 this.el = new Clutter.Actor();
2126 // set gobject values
2127 var child_0 = new Xcls_Actor63( _this );
2129 this.el.add_child ( child_0.el );
2133 this.el.set_size(50,50);
2136 // user defined functions
2138 public class Xcls_Actor63 : Object
2140 public GtkClutter.Actor el;
2141 private Xcls_MainWindow _this;
2147 public Xcls_Actor63(Xcls_MainWindow _owner )
2150 this.el = new GtkClutter.Actor();
2154 // set gobject values
2155 var child_0 = new Xcls_Button64( _this );
2160 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2163 // user defined functions
2165 public class Xcls_Button64 : Object
2167 public Gtk.Button el;
2168 private Xcls_MainWindow _this;
2174 public Xcls_Button64(Xcls_MainWindow _owner )
2177 this.el = new Gtk.Button();
2181 // set gobject values
2182 this.el.width_request = 50;
2183 this.el.height_request = 50;
2184 this.el.tooltip_text = "Delete Project";
2185 var child_0 = new Xcls_Image65( _this );
2187 this.el.set_image ( child_0.el );
2190 this.el.clicked.connect( ( ) => {
2192 var cd = DialogConfirm.singleton();
2193 cd.el.set_transient_for(_this.el);
2194 cd.el.set_modal(true);
2196 var project = _this.windowstate.left_projects.getSelectedProject();
2197 if (project == null) {
2198 print("SKIP - no project\n");
2203 if (Gtk.ResponseType.YES != cd.show("Confirm",
2204 "Are you sure you want to delete project %s".printf(project.name))) {
2210 Project.Project.remove(project);
2211 _this.project = null;
2213 _this.windowstate.left_projects.is_loaded = false;
2214 _this.windowstate.left_projects.load();
2215 _this.windowstate.clutterfiles.clearFiles();
2220 // user defined functions
2222 public class Xcls_Image65 : Object
2224 public Gtk.Image el;
2225 private Xcls_MainWindow _this;
2231 public Xcls_Image65(Xcls_MainWindow _owner )
2234 this.el = new Gtk.Image();
2238 // set gobject values
2239 this.el.icon_name = "user-trash";
2242 // user defined functions
2252 public class Xcls_Box66 : Object
2255 private Xcls_MainWindow _this;
2261 public Xcls_Box66(Xcls_MainWindow _owner )
2264 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2268 // set gobject values
2269 this.el.homogeneous = false;
2270 var child_0 = new Xcls_Label67( _this );
2272 this.el.pack_start ( child_0.el , true,true,0 );
2273 var child_1 = new Xcls_statusbar( _this );
2275 this.el.pack_start ( child_1.el , true,true,0 );
2276 var child_2 = new Xcls_search_entry( _this );
2278 this.el.pack_start ( child_2.el , false,true,0 );
2279 var child_3 = new Xcls_MenuBar70( _this );
2281 this.el.pack_end ( child_3.el , false,true,0 );
2284 // user defined functions
2286 public class Xcls_Label67 : Object
2288 public Gtk.Label el;
2289 private Xcls_MainWindow _this;
2295 public Xcls_Label67(Xcls_MainWindow _owner )
2298 this.el = new Gtk.Label( " " );
2302 // set gobject values
2305 // user defined functions
2308 public class Xcls_statusbar : Object
2310 public Gtk.ProgressBar el;
2311 private Xcls_MainWindow _this;
2315 public ulong handler_id;
2318 public Xcls_statusbar(Xcls_MainWindow _owner )
2321 _this.statusbar = this;
2322 this.el = new Gtk.ProgressBar();
2325 this.handler_id = -1;
2327 // set gobject values
2328 this.el.show_text = true;
2333 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2336 _this.mainpane.el.set_sensitive(true);
2340 _this.mainpane.el.set_sensitive(false);
2342 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2343 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2349 // user defined functions
2352 public class Xcls_search_entry : Object
2354 public Gtk.SearchEntry el;
2355 private Xcls_MainWindow _this;
2361 public Xcls_search_entry(Xcls_MainWindow _owner )
2364 _this.search_entry = this;
2365 this.el = new Gtk.SearchEntry();
2369 // set gobject values
2373 var description = Pango.FontDescription.from_string("monospace");
2374 description.set_size(8000);
2375 this.el.override_font(description);
2378 this.el.key_press_event.connect( (event) => {
2380 if (event.keyval == Gdk.Key.Return) {
2381 this.forwardSearch(false);
2385 // print(event.key.keyval)
2390 this.el.changed.connect( () => {
2391 if (this.el.text == "") {
2392 _this.search_results.el.hide();
2396 switch(_this.windowstate.state) {
2397 case WindowState.State.CODEONLY:
2398 case WindowState.State.CODE:
2399 // search the code being edited..
2400 res = _this.windowstate.code_editor.search(this.el.text);
2403 case WindowState.State.PREVIEW:
2404 if (_this.windowstate.file.xtype == "Gtk") {
2405 res = _this.windowstate.window_gladeview.search(this.el.text);
2407 res = _this.windowstate.window_rooview.search(this.el.text);
2413 _this.search_results.el.show();
2415 _this.search_results.el.label = "%d Matches".printf(res);
2417 _this.search_results.el.label = "No Matches";
2425 // user defined functions
2426 public void forwardSearch (bool change_focus) {
2427 switch(_this.windowstate.state) {
2428 case WindowState.State.CODEONLY:
2429 case WindowState.State.CODE:
2430 // search the code being edited..
2431 _this.windowstate.code_editor.forwardSearch(change_focus);
2434 case WindowState.State.PREVIEW:
2435 if (_this.windowstate.file.xtype == "Gtk") {
2436 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2438 _this.windowstate.window_rooview.forwardSearch(change_focus);
2447 public class Xcls_MenuBar70 : Object
2449 public Gtk.MenuBar el;
2450 private Xcls_MainWindow _this;
2456 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2459 this.el = new Gtk.MenuBar();
2463 // set gobject values
2464 var child_0 = new Xcls_search_results( _this );
2466 this.el.add ( child_0.el );
2467 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2469 this.el.add ( child_1.el );
2470 var child_2 = new Xcls_statusbar_errors( _this );
2472 this.el.add ( child_2.el );
2473 var child_3 = new Xcls_statusbar_warnings( _this );
2475 this.el.add ( child_3.el );
2476 var child_4 = new Xcls_statusbar_depricated( _this );
2478 this.el.add ( child_4.el );
2479 var child_5 = new Xcls_statusbar_run( _this );
2481 this.el.add ( child_5.el );
2484 // user defined functions
2486 public class Xcls_search_results : Object
2488 public Gtk.ImageMenuItem el;
2489 private Xcls_MainWindow _this;
2493 public Xcls_ValaCompileErrors popup;
2496 public Xcls_search_results(Xcls_MainWindow _owner )
2499 _this.search_results = this;
2500 this.el = new Gtk.ImageMenuItem();
2504 // set gobject values
2505 this.el.always_show_image = true;
2506 this.el.label = "Matches";
2507 var child_0 = new Xcls_Image72( _this );
2509 this.el.set_image ( child_0.el );
2512 this.el.button_press_event.connect( () => {
2514 if (this.popup == null) {
2515 this.popup = new Xcls_ValaCompileErrors();
2516 this.popup.window = _this;
2520 this.popup.show(this.notices, this.el);
2526 // user defined functions
2528 public class Xcls_Image72 : Object
2530 public Gtk.Image el;
2531 private Xcls_MainWindow _this;
2537 public Xcls_Image72(Xcls_MainWindow _owner )
2540 this.el = new Gtk.Image();
2544 // set gobject values
2545 this.el.icon_name = "system-search";
2546 this.el.sensitive = false;
2549 // user defined functions
2553 public class Xcls_statusbar_compilestatus_label : Object
2555 public Gtk.MenuItem el;
2556 private Xcls_MainWindow _this;
2562 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2565 _this.statusbar_compilestatus_label = this;
2566 this.el = new Gtk.MenuItem();
2570 // set gobject values
2571 this.el.label = "Compile Status:";
2574 // user defined functions
2577 public class Xcls_statusbar_errors : Object
2579 public Gtk.ImageMenuItem el;
2580 private Xcls_MainWindow _this;
2584 public Xcls_ValaCompileErrors popup;
2585 public Json.Object notices;
2588 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2591 _this.statusbar_errors = this;
2592 this.el = new Gtk.ImageMenuItem();
2595 this.notices = new Json.Object() ;
2597 // set gobject values
2598 this.el.always_show_image = true;
2599 this.el.label = "Errors";
2600 var child_0 = new Xcls_Image75( _this );
2602 this.el.set_image ( child_0.el );
2605 this.el.button_press_event.connect( () => {
2606 if (this.popup == null) {
2607 this.popup = new Xcls_ValaCompileErrors();
2608 this.popup.window = _this;
2612 this.popup.show(this.notices, this.el);
2617 // user defined functions
2618 public void setNotices (Json.Object nots, int qty) {
2620 this.el.label = qty.to_string() + " Errors";
2621 this.notices = nots;
2625 public class Xcls_Image75 : Object
2627 public Gtk.Image el;
2628 private Xcls_MainWindow _this;
2634 public Xcls_Image75(Xcls_MainWindow _owner )
2637 this.el = new Gtk.Image();
2641 // set gobject values
2642 this.el.icon_name = "dialog-error";
2645 // user defined functions
2649 public class Xcls_statusbar_warnings : Object
2651 public Gtk.ImageMenuItem el;
2652 private Xcls_MainWindow _this;
2656 public Xcls_ValaCompileErrors popup;
2657 public Json.Object notices;
2660 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2663 _this.statusbar_warnings = this;
2664 this.el = new Gtk.ImageMenuItem();
2667 this.notices = new Json.Object();
2669 // set gobject values
2670 this.el.always_show_image = true;
2671 this.el.label = "Warnings";
2672 var child_0 = new Xcls_Image77( _this );
2674 this.el.set_image ( child_0.el );
2677 this.el.button_press_event.connect( () => {
2678 if (this.popup == null) {
2679 this.popup = new Xcls_ValaCompileErrors();
2680 this.popup.window = _this;
2683 this.popup.show(this.notices, this.el);
2688 // user defined functions
2689 public void setNotices (Json.Object nots, int qty) {
2691 this.el.label = qty.to_string() + " Warnings";
2692 this.notices = nots;
2696 public class Xcls_Image77 : Object
2698 public Gtk.Image el;
2699 private Xcls_MainWindow _this;
2705 public Xcls_Image77(Xcls_MainWindow _owner )
2708 this.el = new Gtk.Image();
2712 // set gobject values
2713 this.el.icon_name = "dialog-warning";
2716 // user defined functions
2720 public class Xcls_statusbar_depricated : Object
2722 public Gtk.ImageMenuItem el;
2723 private Xcls_MainWindow _this;
2727 public Xcls_ValaCompileErrors popup;
2728 public Json.Object notices;
2731 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2734 _this.statusbar_depricated = this;
2735 this.el = new Gtk.ImageMenuItem();
2738 this.notices = new Json.Object();
2740 // set gobject values
2741 this.el.always_show_image = true;
2742 this.el.label = "Depricated";
2743 var child_0 = new Xcls_Image79( _this );
2745 this.el.set_image ( child_0.el );
2748 this.el.button_press_event.connect( () => {
2749 if (this.popup == null) {
2750 this.popup = new Xcls_ValaCompileErrors();
2751 this.popup.window = _this;
2755 this.popup.show(this.notices, this.el);
2760 // user defined functions
2761 public void setNotices (Json.Object nots, int qty) {
2763 this.el.label = qty.to_string() + " Depricated";
2764 this.notices = nots;
2768 public class Xcls_Image79 : Object
2770 public Gtk.Image el;
2771 private Xcls_MainWindow _this;
2777 public Xcls_Image79(Xcls_MainWindow _owner )
2780 this.el = new Gtk.Image();
2784 // set gobject values
2785 this.el.icon_name = "dialog-information";
2788 // user defined functions
2792 public class Xcls_statusbar_run : Object
2794 public Gtk.ImageMenuItem el;
2795 private Xcls_MainWindow _this;
2799 public Xcls_ValaCompileErrors popup;
2802 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2805 _this.statusbar_run = this;
2806 this.el = new Gtk.ImageMenuItem();
2810 // set gobject values
2811 this.el.always_show_image = true;
2812 this.el.label = "Run";
2813 var child_0 = new Xcls_Image81( _this );
2815 this.el.set_image ( child_0.el );
2818 this.el.button_press_event.connect( () => {
2819 if (_this.windowstate.file == null) {
2822 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2824 _this.windowstate.compile_results.show(this.el,true);
2830 // user defined functions
2832 public class Xcls_Image81 : Object
2834 public Gtk.Image el;
2835 private Xcls_MainWindow _this;
2841 public Xcls_Image81(Xcls_MainWindow _owner )
2844 this.el = new Gtk.Image();
2848 // set gobject values
2849 this.el.icon_name = "media-playback-start";
2852 // user defined functions