1 static Xcls_MainWindow _MainWindow;
3 public class Xcls_MainWindow : Object
6 private Xcls_MainWindow _this;
8 public static Xcls_MainWindow singleton()
10 if (_MainWindow == null) {
11 _MainWindow= new Xcls_MainWindow();
15 public Xcls_headerbar headerbar;
16 public Xcls_topbarmenu topbarmenu;
17 public Xcls_vbox vbox;
18 public Xcls_mainpane mainpane;
19 public Xcls_leftpane leftpane;
20 public Xcls_editpane editpane;
21 public Xcls_tree tree;
22 public Xcls_props props;
23 public Xcls_clutterembed clutterembed;
24 public Xcls_rooview rooview;
25 public Xcls_objectview objectview;
26 public Xcls_codeeditview codeeditview;
27 public Xcls_addpropsview addpropsview;
28 public Xcls_projecteditview projecteditview;
29 public Xcls_buttonlayout buttonlayout;
30 public Xcls_backbutton backbutton;
31 public Xcls_projectbutton projectbutton;
32 public Xcls_editfilebutton editfilebutton;
33 public Xcls_projecteditbutton projecteditbutton;
34 public Xcls_objectshowbutton objectshowbutton;
35 public Xcls_addpropbutton addpropbutton;
36 public Xcls_addlistenerbutton addlistenerbutton;
37 public Xcls_addprojectbutton addprojectbutton;
38 public Xcls_addfilebutton addfilebutton;
39 public Xcls_delprojectbutton delprojectbutton;
40 public Xcls_statusbar statusbar;
41 public Xcls_search_entry search_entry;
42 public Xcls_search_results search_results;
43 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
44 public Xcls_statusbar_errors statusbar_errors;
45 public Xcls_statusbar_warnings statusbar_warnings;
46 public Xcls_statusbar_depricated statusbar_depricated;
47 public Xcls_statusbar_run statusbar_run;
50 public Project.Project project;
52 public int no_windows;
53 public WindowState windowstate;
56 public Xcls_MainWindow()
59 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
63 this.title = "Application Builder";
65 this.windowstate = null;
68 this.el.border_width = 0;
69 this.el.default_height = 500;
70 this.el.default_width = 800;
71 var child_0 = new Xcls_headerbar( _this );
73 this.el.set_titlebar ( child_0.el );
74 var child_1 = new Xcls_vbox( _this );
76 this.el.add ( child_1.el );
83 this.el.delete_event.connect( ( event) => {
86 this.el.destroy.connect( () => {
87 Xcls_MainWindow.singleton().no_windows--;
89 Resources.singleton().disconnect(_this.statusbar.handler_id);
92 if (Xcls_MainWindow.singleton().no_windows < 1) {
97 this.el.show.connect( ( ) => {
98 // hide the file editing..
100 //this.hideViewEditing();
101 _this.statusbar.el.hide();
102 _this.statusbar_errors.el.hide();
103 _this.statusbar_warnings.el.hide();
104 _this.statusbar_depricated.el.hide();
107 Resources.singleton().checkResources();
110 this.el.key_release_event.connect( (event) => {
112 if (this.search_entry.el.is_visible()) {
113 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
114 print("SAVE: ctrl-f pressed");
115 this.search_entry.el.grab_focus();
119 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
120 print("SAVE: ctrl-g pressed");
121 this.search_entry.forwardSearch(true);
127 if (event.keyval == Gdk.Key.n && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
128 print("SAVE: ctrl-n pressed");
129 this.openNewWindow();
133 // print(event.key.keyval)
140 // user defined functions
141 public void openNewWindow () {
142 Xcls_MainWindow.singleton().no_windows++;
143 var w = new Xcls_MainWindow();
148 w.windowstate.switchState(WindowState.State.FILES);
150 public void initChildren () {
151 // this needs putting in a better place..
152 this.windowstate = new WindowState(this);
156 var tl = new Clutter.Timeline(6000);
157 tl.set_repeat_count(-1);
166 public void show () {
171 public void setTitle (string str) {
172 this.headerbar.el.set_title(this.title + " - " + str);
174 public class Xcls_headerbar : Object
176 public Gtk.HeaderBar el;
177 private Xcls_MainWindow _this;
183 public Xcls_headerbar(Xcls_MainWindow _owner )
186 _this.headerbar = this;
187 this.el = new Gtk.HeaderBar();
191 // set gobject values
192 this.el.title = "Application Builder";
193 this.el.show_close_button = true;
194 var child_0 = new Xcls_Box3( _this );
196 this.el.pack_start ( child_0.el );
197 var child_1 = new Xcls_Button11( _this );
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 );
225 // user defined functions
227 public class Xcls_MenuButton4 : Object
229 public Gtk.MenuButton el;
230 private Xcls_MainWindow _this;
236 public Xcls_MenuButton4(Xcls_MainWindow _owner )
239 this.el = new Gtk.MenuButton();
243 // set gobject values
244 this.el.use_popover = false;
245 var child_0 = new Xcls_topbarmenu( _this );
247 this.el.set_popup ( child_0.el );
248 var child_1 = new Xcls_Image10( _this );
250 this.el.set_image ( child_1.el );
253 // user defined functions
255 public class Xcls_topbarmenu : Object
258 private Xcls_MainWindow _this;
264 public Xcls_topbarmenu(Xcls_MainWindow _owner )
267 _this.topbarmenu = this;
268 this.el = new Gtk.Menu();
272 // set gobject values
273 var child_0 = new Xcls_MenuItem6( _this );
275 this.el.append ( child_0.el );
276 var child_1 = new Xcls_SeparatorMenuItem7( _this );
278 this.el.append ( child_1.el );
279 var child_2 = new Xcls_MenuItem8( _this );
281 this.el.append ( child_2.el );
282 var child_3 = new Xcls_MenuItem9( _this );
284 this.el.append ( child_3.el );
293 // user defined functions
295 public class Xcls_MenuItem6 : Object
297 public Gtk.MenuItem el;
298 private Xcls_MainWindow _this;
304 public Xcls_MenuItem6(Xcls_MainWindow _owner )
307 this.el = new Gtk.MenuItem();
311 // set gobject values
312 this.el.label = "Open a new Window";
315 this.el.activate.connect( ( ) => {
316 _this.openNewWindow();
320 // user defined functions
323 public class Xcls_SeparatorMenuItem7 : Object
325 public Gtk.SeparatorMenuItem el;
326 private Xcls_MainWindow _this;
332 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
335 this.el = new Gtk.SeparatorMenuItem();
339 // set gobject values
342 // user defined functions
345 public class Xcls_MenuItem8 : Object
347 public Gtk.MenuItem el;
348 private Xcls_MainWindow _this;
354 public Xcls_MenuItem8(Xcls_MainWindow _owner )
357 this.el = new Gtk.MenuItem();
361 // set gobject values
362 this.el.label = "Download updated Resources";
365 this.el.activate.connect( ( ) => {
366 Resources.singleton().fetchStart();
370 // user defined functions
373 public class Xcls_MenuItem9 : Object
375 public Gtk.MenuItem el;
376 private Xcls_MainWindow _this;
382 public Xcls_MenuItem9(Xcls_MainWindow _owner )
385 this.el = new Gtk.MenuItem();
389 // set gobject values
390 this.el.label = "About the Builder";
393 this.el.activate.connect( () => {
394 About.singleton().el.show();
398 // user defined functions
402 public class Xcls_Image10 : Object
405 private Xcls_MainWindow _this;
411 public Xcls_Image10(Xcls_MainWindow _owner )
414 this.el = new Gtk.Image();
418 // set gobject values
419 this.el.icon_name = "help-about";
422 // user defined functions
427 public class Xcls_Button11 : Object
429 public Gtk.Button el;
430 private Xcls_MainWindow _this;
436 public Xcls_Button11(Xcls_MainWindow _owner )
439 this.el = new Gtk.Button();
443 // set gobject values
444 this.el.width_request = 50;
445 this.el.height_request = 50;
446 var child_0 = new Xcls_Image12( _this );
448 this.el.set_image ( child_0.el );
451 this.el.clicked.connect( ( ) => {
452 _this.windowstate.switchState(WindowState.State.FILES);
458 // user defined functions
460 public class Xcls_Image12 : Object
463 private Xcls_MainWindow _this;
469 public Xcls_Image12(Xcls_MainWindow _owner )
472 this.el = new Gtk.Image();
476 // set gobject values
477 this.el.icon_name = "document-open";
480 // user defined functions
485 public class Xcls_vbox : Object
488 private Xcls_MainWindow _this;
494 public Xcls_vbox(Xcls_MainWindow _owner )
498 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
502 // set gobject values
503 this.el.homogeneous = false;
504 var child_0 = new Xcls_mainpane( _this );
506 this.el.pack_start ( child_0.el , true,true,0 );
507 var child_1 = new Xcls_Box68( _this );
509 this.el.pack_end ( child_1.el , false,true,0 );
512 // user defined functions
514 public class Xcls_mainpane : Object
517 private Xcls_MainWindow _this;
521 public int lastWidth;
524 public Xcls_mainpane(Xcls_MainWindow _owner )
527 _this.mainpane = this;
528 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
533 // set gobject values
534 this.el.position = 400;
535 var child_0 = new Xcls_leftpane( _this );
537 this.el.add1 ( child_0.el );
538 var child_1 = new Xcls_Box19( _this );
540 this.el.add2 ( child_1.el );
543 // user defined functions
545 public class Xcls_leftpane : Object
548 private Xcls_MainWindow _this;
554 public Xcls_leftpane(Xcls_MainWindow _owner )
557 _this.leftpane = this;
558 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
562 // set gobject values
563 var child_0 = new Xcls_editpane( _this );
565 this.el.pack_start ( child_0.el , true,true,0 );
568 // user defined functions
570 public class Xcls_editpane : Object
573 private Xcls_MainWindow _this;
579 public Xcls_editpane(Xcls_MainWindow _owner )
582 _this.editpane = this;
583 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
587 // set gobject values
588 var child_0 = new Xcls_tree( _this );
590 this.el.add1 ( child_0.el );
591 var child_1 = new Xcls_props( _this );
593 this.el.add2 ( child_1.el );
596 // user defined functions
598 public class Xcls_tree : Object
601 private Xcls_MainWindow _this;
607 public Xcls_tree(Xcls_MainWindow _owner )
611 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
615 // set gobject values
618 // user defined functions
621 public class Xcls_props : Object
624 private Xcls_MainWindow _this;
630 public Xcls_props(Xcls_MainWindow _owner )
634 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
638 // set gobject values
641 // user defined functions
646 public class Xcls_Box19 : Object
649 private Xcls_MainWindow _this;
655 public Xcls_Box19(Xcls_MainWindow _owner )
658 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
662 // set gobject values
663 var child_0 = new Xcls_clutterembed( _this );
665 this.el.pack_start ( child_0.el , true,true,0 );
668 // user defined functions
670 public class Xcls_clutterembed : Object
672 public GtkClutter.Embed el;
673 private Xcls_MainWindow _this;
679 public Xcls_clutterembed(Xcls_MainWindow _owner )
682 _this.clutterembed = this;
683 this.el = new GtkClutter.Embed();
687 // set gobject values
688 var child_0 = new Xcls_rooview( _this );
690 this.el.get_stage().add_child ( child_0.el );
691 var child_1 = new Xcls_objectview( _this );
693 this.el.get_stage().add_child ( child_1.el );
694 var child_2 = new Xcls_codeeditview( _this );
696 this.el.get_stage().add_child ( child_2.el );
697 var child_3 = new Xcls_addpropsview( _this );
699 this.el.get_stage().add_child ( child_3.el );
700 var child_4 = new Xcls_projecteditview( _this );
702 this.el.get_stage().add_child ( child_4.el );
703 var child_5 = new Xcls_buttonlayout( _this );
705 this.el.get_stage().add_child ( child_5.el );
709 var stage = this.el.get_stage();
710 stage.set_background_color( Clutter.Color.from_string("#000"));
713 this.el.size_allocate.connect( ( alloc) => {
714 if (_this.windowstate == null) {
717 _this.windowstate.resizeCanvas();
722 // user defined functions
724 public class Xcls_rooview : Object
726 public GtkClutter.Actor el;
727 private Xcls_MainWindow _this;
733 public Xcls_rooview(Xcls_MainWindow _owner )
736 _this.rooview = this;
737 this.el = new GtkClutter.Actor();
741 // set gobject values
748 this.el.add_constraint(
749 new Clutter.AlignConstraint(
750 _this.clutterembed.el.get_stage(),
751 Clutter.AlignAxis.X_AXIS,
756 //this.el.set_position(100,100);
757 this.el.set_pivot_point(1.0f,1.0f);
759 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
760 _this.clutterembed.el.get_stage().height);
765 // user defined functions
768 public class Xcls_objectview : Object
770 public GtkClutter.Actor el;
771 private Xcls_MainWindow _this;
777 public Xcls_objectview(Xcls_MainWindow _owner )
780 _this.objectview = this;
781 this.el = new GtkClutter.Actor();
785 // set gobject values
792 this.el.add_constraint(
793 new Clutter.AlignConstraint(
794 _this.clutterembed.el.get_stage(),
795 Clutter.AlignAxis.X_AXIS,
800 this.el.fixed_x = 50.0f;
801 this.el.fixed_y = 0.0f;
802 //this.el.set_position(100,100);
803 this.el.set_pivot_point(0.0f,0.0f);
804 this.el.set_scale(0.0f,1.0f);
805 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
806 _this.clutterembed.el.get_stage().height);
811 // user defined functions
814 public class Xcls_codeeditview : Object
816 public GtkClutter.Actor el;
817 private Xcls_MainWindow _this;
823 public Xcls_codeeditview(Xcls_MainWindow _owner )
826 _this.codeeditview = this;
827 this.el = new GtkClutter.Actor();
831 // set gobject values
838 this.el.add_constraint(
839 new Clutter.AlignConstraint(
840 _this.clutterembed.el.get_stage(),
841 Clutter.AlignAxis.X_AXIS,
846 this.el.fixed_x = 50.0f;
847 this.el.fixed_y = 0.0f;
848 //this.el.set_position(100,100);
849 this.el.set_pivot_point(0.0f,0.0f);
850 this.el.set_scale(0.0f,1.0f);
851 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
852 _this.clutterembed.el.get_stage().height);
857 // user defined functions
860 public class Xcls_addpropsview : Object
862 public GtkClutter.Actor el;
863 private Xcls_MainWindow _this;
869 public Xcls_addpropsview(Xcls_MainWindow _owner )
872 _this.addpropsview = this;
873 this.el = new GtkClutter.Actor();
877 // set gobject values
884 this.el.add_constraint(
885 new Clutter.AlignConstraint(
886 _this.clutterembed.el.get_stage(),
887 Clutter.AlignAxis.X_AXIS,
892 this.el.fixed_x = 50.0f;
893 this.el.fixed_y = 0.0f;
894 //this.el.set_position(100,100);
895 this.el.set_pivot_point(0.0f,0.0f);
896 this.el.set_scale(0.0f,1.0f);
897 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
898 _this.clutterembed.el.get_stage().height);
903 // user defined functions
906 public class Xcls_projecteditview : Object
908 public GtkClutter.Actor el;
909 private Xcls_MainWindow _this;
915 public Xcls_projecteditview(Xcls_MainWindow _owner )
918 _this.projecteditview = this;
919 this.el = new GtkClutter.Actor();
923 // set gobject values
930 this.el.add_constraint(
931 new Clutter.AlignConstraint(
932 _this.clutterembed.el.get_stage(),
933 Clutter.AlignAxis.X_AXIS,
938 //this.el.set_position(100,100);
939 this.el.set_pivot_point(0.0f,0.0f);
940 this.el.set_scale(1.0f,0.0f);
941 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
942 _this.clutterembed.el.get_stage().height /2);
947 // user defined functions
950 public class Xcls_buttonlayout : Object
952 public Clutter.Actor el;
953 private Xcls_MainWindow _this;
959 public Xcls_buttonlayout(Xcls_MainWindow _owner )
962 _this.buttonlayout = this;
963 this.el = new Clutter.Actor();
967 // set gobject values
968 var child_0 = new Xcls_BoxLayout27( _this );
970 this.el.layout_manager = child_0.el;
971 var child_1 = new Xcls_backbutton( _this );
973 this.el.add_child ( child_1.el );
974 var child_2 = new Xcls_projectbutton( _this );
976 this.el.add_child ( child_2.el );
977 var child_3 = new Xcls_editfilebutton( _this );
979 this.el.add_child ( child_3.el );
980 var child_4 = new Xcls_projecteditbutton( _this );
982 this.el.add_child ( child_4.el );
983 var child_5 = new Xcls_objectshowbutton( _this );
985 this.el.add_child ( child_5.el );
986 var child_6 = new Xcls_addpropbutton( _this );
988 this.el.add_child ( child_6.el );
989 var child_7 = new Xcls_addlistenerbutton( _this );
991 this.el.add_child ( child_7.el );
992 var child_8 = new Xcls_addprojectbutton( _this );
994 this.el.add_child ( child_8.el );
995 var child_9 = new Xcls_addfilebutton( _this );
997 this.el.add_child ( child_9.el );
998 var child_10 = new Xcls_delprojectbutton( _this );
1000 this.el.add_child ( child_10.el );
1006 this.el.add_constraint(
1007 new Clutter.AlignConstraint(
1008 _this.clutterembed.el.get_stage(),
1009 Clutter.AlignAxis.X_AXIS,
1015 //this.el.set_position(100,100);
1016 this.el.set_pivot_point(0.5f,0.5f);
1017 this.el.set_size(50,
1018 _this.clutterembed.el.get_stage().height);
1023 // user defined functions
1025 public class Xcls_BoxLayout27 : Object
1027 public Clutter.BoxLayout el;
1028 private Xcls_MainWindow _this;
1034 public Xcls_BoxLayout27(Xcls_MainWindow _owner )
1037 this.el = new Clutter.BoxLayout();
1041 // set gobject values
1042 this.el.orientation = Clutter.Orientation.VERTICAL;
1045 // user defined functions
1048 public class Xcls_backbutton : Object
1050 public Clutter.Actor el;
1051 private Xcls_MainWindow _this;
1057 public Xcls_backbutton(Xcls_MainWindow _owner )
1060 _this.backbutton = this;
1061 this.el = new Clutter.Actor();
1065 // set gobject values
1066 var child_0 = new Xcls_Actor29( _this );
1068 this.el.add_child ( child_0.el );
1072 this.el.set_size(50,50);
1075 // user defined functions
1077 public class Xcls_Actor29 : Object
1079 public GtkClutter.Actor el;
1080 private Xcls_MainWindow _this;
1086 public Xcls_Actor29(Xcls_MainWindow _owner )
1089 this.el = new GtkClutter.Actor();
1093 // set gobject values
1094 var child_0 = new Xcls_Button30( _this );
1099 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1102 // user defined functions
1104 public class Xcls_Button30 : Object
1106 public Gtk.Button el;
1107 private Xcls_MainWindow _this;
1113 public Xcls_Button30(Xcls_MainWindow _owner )
1116 this.el = new Gtk.Button();
1120 // set gobject values
1121 this.el.width_request = 50;
1122 this.el.height_request = 50;
1123 this.el.tooltip_text = "Back";
1124 var child_0 = new Xcls_Image31( _this );
1126 this.el.set_image ( child_0.el );
1129 this.el.clicked.connect( ( ) => {
1131 _this.windowstate.switchState(WindowState.State.PREVIEW);
1137 // user defined functions
1139 public class Xcls_Image31 : Object
1141 public Gtk.Image el;
1142 private Xcls_MainWindow _this;
1148 public Xcls_Image31(Xcls_MainWindow _owner )
1151 this.el = new Gtk.Image();
1155 // set gobject values
1156 this.el.icon_name = "go-previous";
1159 // user defined functions
1165 public class Xcls_projectbutton : Object
1167 public Clutter.Actor el;
1168 private Xcls_MainWindow _this;
1174 public Xcls_projectbutton(Xcls_MainWindow _owner )
1177 _this.projectbutton = this;
1178 this.el = new Clutter.Actor();
1182 // set gobject values
1183 var child_0 = new Xcls_Actor33( _this );
1185 this.el.add_child ( child_0.el );
1189 this.el.set_size(50,50);
1192 // user defined functions
1194 public class Xcls_Actor33 : Object
1196 public GtkClutter.Actor el;
1197 private Xcls_MainWindow _this;
1203 public Xcls_Actor33(Xcls_MainWindow _owner )
1206 this.el = new GtkClutter.Actor();
1210 // set gobject values
1211 var child_0 = new Xcls_Button34( _this );
1216 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1219 // user defined functions
1221 public class Xcls_Button34 : Object
1223 public Gtk.Button el;
1224 private Xcls_MainWindow _this;
1230 public Xcls_Button34(Xcls_MainWindow _owner )
1233 this.el = new Gtk.Button();
1237 // set gobject values
1238 this.el.width_request = 50;
1239 this.el.height_request = 50;
1240 var child_0 = new Xcls_Image35( _this );
1242 this.el.set_image ( child_0.el );
1245 this.el.clicked.connect( ( ) => {
1246 _this.windowstate.switchState(WindowState.State.FILES);
1252 // user defined functions
1254 public class Xcls_Image35 : Object
1256 public Gtk.Image el;
1257 private Xcls_MainWindow _this;
1263 public Xcls_Image35(Xcls_MainWindow _owner )
1266 this.el = new Gtk.Image();
1270 // set gobject values
1271 this.el.icon_name = "document-open";
1274 // user defined functions
1280 public class Xcls_editfilebutton : Object
1282 public Clutter.Actor el;
1283 private Xcls_MainWindow _this;
1289 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1292 _this.editfilebutton = this;
1293 this.el = new Clutter.Actor();
1297 // set gobject values
1298 var child_0 = new Xcls_Actor37( _this );
1300 this.el.add_child ( child_0.el );
1304 this.el.set_size(50.0f,50.0f);
1307 // user defined functions
1309 public class Xcls_Actor37 : Object
1311 public GtkClutter.Actor el;
1312 private Xcls_MainWindow _this;
1318 public Xcls_Actor37(Xcls_MainWindow _owner )
1321 this.el = new GtkClutter.Actor();
1325 // set gobject values
1326 var child_0 = new Xcls_Button38( _this );
1331 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1334 // user defined functions
1336 public class Xcls_Button38 : Object
1338 public Gtk.Button el;
1339 private Xcls_MainWindow _this;
1345 public Xcls_Button38(Xcls_MainWindow _owner )
1348 this.el = new Gtk.Button();
1352 // set gobject values
1353 this.el.width_request = 50;
1354 this.el.height_request = 50;
1355 this.el.tooltip_text = "File Details";
1356 var child_0 = new Xcls_Image39( _this );
1358 this.el.set_image ( child_0.el );
1361 this.el.clicked.connect( ( ) => {
1363 // create a new file in project..
1364 if (_this.project == null || _this.windowstate.file == null) {
1367 _this.windowstate.file_details.show(
1368 _this.windowstate.file, this.el
1377 // user defined functions
1379 public class Xcls_Image39 : Object
1381 public Gtk.Image el;
1382 private Xcls_MainWindow _this;
1388 public Xcls_Image39(Xcls_MainWindow _owner )
1391 this.el = new Gtk.Image();
1395 // set gobject values
1396 this.el.icon_name = "document-properties";
1399 // user defined functions
1405 public class Xcls_projecteditbutton : Object
1407 public Clutter.Actor el;
1408 private Xcls_MainWindow _this;
1414 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1417 _this.projecteditbutton = this;
1418 this.el = new Clutter.Actor();
1422 // set gobject values
1423 var child_0 = new Xcls_Actor41( _this );
1425 this.el.add_child ( child_0.el );
1429 this.el.set_size(50,50);
1432 // user defined functions
1434 public class Xcls_Actor41 : Object
1436 public GtkClutter.Actor el;
1437 private Xcls_MainWindow _this;
1443 public Xcls_Actor41(Xcls_MainWindow _owner )
1446 this.el = new GtkClutter.Actor();
1450 // set gobject values
1451 var child_0 = new Xcls_Button42( _this );
1456 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1459 // user defined functions
1461 public class Xcls_Button42 : Object
1463 public Gtk.Button el;
1464 private Xcls_MainWindow _this;
1470 public Xcls_Button42(Xcls_MainWindow _owner )
1473 this.el = new Gtk.Button();
1477 // set gobject values
1478 this.el.width_request = 50;
1479 this.el.height_request = 50;
1480 this.el.tooltip_text = "Project Details";
1481 var child_0 = new Xcls_Image43( _this );
1483 this.el.set_image ( child_0.el );
1486 this.el.clicked.connect( ( ) => {
1487 _this.windowstate.switchState(WindowState.State.PROJECT);
1494 // user defined functions
1496 public class Xcls_Image43 : Object
1498 public Gtk.Image el;
1499 private Xcls_MainWindow _this;
1505 public Xcls_Image43(Xcls_MainWindow _owner )
1508 this.el = new Gtk.Image();
1512 // set gobject values
1513 this.el.icon_name = "emblem-system";
1516 // user defined functions
1522 public class Xcls_objectshowbutton : Object
1524 public Clutter.Actor el;
1525 private Xcls_MainWindow _this;
1531 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1534 _this.objectshowbutton = this;
1535 this.el = new Clutter.Actor();
1539 // set gobject values
1540 var child_0 = new Xcls_Actor45( _this );
1542 this.el.add_child ( child_0.el );
1546 this.el.set_size(50,50);
1549 this.el.enter_event.connect( ( event) => {
1550 this.el.background_color = Clutter.Color.from_string("#333");
1553 this.el.leave_event.connect( ( event) => {
1554 this.el.background_color = Clutter.Color.from_string("#000");
1559 // user defined functions
1561 public class Xcls_Actor45 : Object
1563 public GtkClutter.Actor el;
1564 private Xcls_MainWindow _this;
1570 public Xcls_Actor45(Xcls_MainWindow _owner )
1573 this.el = new GtkClutter.Actor();
1577 // set gobject values
1578 var child_0 = new Xcls_Button46( _this );
1583 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1586 // user defined functions
1588 public class Xcls_Button46 : Object
1590 public Gtk.Button el;
1591 private Xcls_MainWindow _this;
1597 public Xcls_Button46(Xcls_MainWindow _owner )
1600 this.el = new Gtk.Button();
1604 // set gobject values
1605 this.el.width_request = 50;
1606 this.el.height_request = 50;
1607 this.el.tooltip_text = "Add Child Element";
1608 var child_0 = new Xcls_Image47( _this );
1610 this.el.set_image ( child_0.el );
1613 this.el.clicked.connect( ( ) => {
1615 _this.windowstate.switchState(WindowState.State.OBJECT);
1621 // user defined functions
1623 public class Xcls_Image47 : Object
1625 public Gtk.Image el;
1626 private Xcls_MainWindow _this;
1632 public Xcls_Image47(Xcls_MainWindow _owner )
1635 this.el = new Gtk.Image();
1639 // set gobject values
1640 this.el.icon_name = "list-add";
1643 // user defined functions
1649 public class Xcls_addpropbutton : Object
1651 public Clutter.Actor el;
1652 private Xcls_MainWindow _this;
1658 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1661 _this.addpropbutton = this;
1662 this.el = new Clutter.Actor();
1666 // set gobject values
1667 var child_0 = new Xcls_Actor49( _this );
1669 this.el.add_child ( child_0.el );
1673 this.el.set_size(50,50);
1676 // user defined functions
1678 public class Xcls_Actor49 : Object
1680 public GtkClutter.Actor el;
1681 private Xcls_MainWindow _this;
1687 public Xcls_Actor49(Xcls_MainWindow _owner )
1690 this.el = new GtkClutter.Actor();
1694 // set gobject values
1695 var child_0 = new Xcls_Button50( _this );
1700 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1703 // user defined functions
1705 public class Xcls_Button50 : Object
1707 public Gtk.Button el;
1708 private Xcls_MainWindow _this;
1714 public Xcls_Button50(Xcls_MainWindow _owner )
1717 this.el = new Gtk.Button();
1721 // set gobject values
1722 this.el.width_request = 50;
1723 this.el.height_request = 50;
1724 this.el.tooltip_text = "Add Property";
1725 var child_0 = new Xcls_Image51( _this );
1727 this.el.set_image ( child_0.el );
1730 this.el.clicked.connect( ( ) => {
1732 _this.windowstate.switchState(WindowState.State.PROP);
1738 // user defined functions
1740 public class Xcls_Image51 : Object
1742 public Gtk.Image el;
1743 private Xcls_MainWindow _this;
1749 public Xcls_Image51(Xcls_MainWindow _owner )
1752 this.el = new Gtk.Image();
1756 // set gobject values
1757 this.el.icon_name = "format-justify-left";
1760 // user defined functions
1766 public class Xcls_addlistenerbutton : Object
1768 public Clutter.Actor el;
1769 private Xcls_MainWindow _this;
1775 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1778 _this.addlistenerbutton = this;
1779 this.el = new Clutter.Actor();
1783 // set gobject values
1784 var child_0 = new Xcls_Actor53( _this );
1786 this.el.add_child ( child_0.el );
1790 this.el.set_size(50,50);
1793 // user defined functions
1795 public class Xcls_Actor53 : Object
1797 public GtkClutter.Actor el;
1798 private Xcls_MainWindow _this;
1804 public Xcls_Actor53(Xcls_MainWindow _owner )
1807 this.el = new GtkClutter.Actor();
1811 // set gobject values
1812 var child_0 = new Xcls_Button54( _this );
1817 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1820 // user defined functions
1822 public class Xcls_Button54 : Object
1824 public Gtk.Button el;
1825 private Xcls_MainWindow _this;
1831 public Xcls_Button54(Xcls_MainWindow _owner )
1834 this.el = new Gtk.Button();
1838 // set gobject values
1839 this.el.width_request = 50;
1840 this.el.height_request = 50;
1841 this.el.tooltip_text = "Add Event Code";
1842 var child_0 = new Xcls_Image55( _this );
1844 this.el.set_image ( child_0.el );
1847 this.el.clicked.connect( ( ) => {
1849 _this.windowstate.switchState(WindowState.State.LISTENER);
1856 // user defined functions
1858 public class Xcls_Image55 : Object
1860 public Gtk.Image el;
1861 private Xcls_MainWindow _this;
1867 public Xcls_Image55(Xcls_MainWindow _owner )
1870 this.el = new Gtk.Image();
1874 // set gobject values
1875 this.el.icon_name = "appointment-new";
1878 // user defined functions
1884 public class Xcls_addprojectbutton : Object
1886 public Clutter.Actor el;
1887 private Xcls_MainWindow _this;
1893 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1896 _this.addprojectbutton = this;
1897 this.el = new Clutter.Actor();
1901 // set gobject values
1902 var child_0 = new Xcls_Actor57( _this );
1904 this.el.add_child ( child_0.el );
1908 this.el.set_size(50.0f,50.0f);
1911 // user defined functions
1913 public class Xcls_Actor57 : Object
1915 public GtkClutter.Actor el;
1916 private Xcls_MainWindow _this;
1922 public Xcls_Actor57(Xcls_MainWindow _owner )
1925 this.el = new GtkClutter.Actor();
1929 // set gobject values
1930 var child_0 = new Xcls_Button58( _this );
1935 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1938 // user defined functions
1940 public class Xcls_Button58 : Object
1942 public Gtk.Button el;
1943 private Xcls_MainWindow _this;
1949 public Xcls_Button58(Xcls_MainWindow _owner )
1952 this.el = new Gtk.Button();
1956 // set gobject values
1957 this.el.width_request = 50;
1958 this.el.height_request = 50;
1959 this.el.tooltip_text = "New\nProj.";
1960 var child_0 = new Xcls_Image59( _this );
1962 this.el.set_image ( child_0.el );
1965 this.el.clicked.connect( ( ) => {
1967 // create a new file in project..
1968 //Xcls_DialogNewComponent.singleton().show(
1969 var pe = EditProject.singleton();
1970 pe.el.set_transient_for(_this.el);
1971 pe.el.set_modal(true);
1980 _this.windowstate.left_projects.is_loaded = false;
1981 _this.windowstate.left_projects.load();
1982 _this.windowstate.left_projects.selectProject(p);
1989 // user defined functions
1991 public class Xcls_Image59 : Object
1993 public Gtk.Image el;
1994 private Xcls_MainWindow _this;
2000 public Xcls_Image59(Xcls_MainWindow _owner )
2003 this.el = new Gtk.Image();
2007 // set gobject values
2008 this.el.icon_name = "folder-new";
2011 // user defined functions
2017 public class Xcls_addfilebutton : Object
2019 public Clutter.Actor el;
2020 private Xcls_MainWindow _this;
2026 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2029 _this.addfilebutton = this;
2030 this.el = new Clutter.Actor();
2034 // set gobject values
2035 var child_0 = new Xcls_Actor61( _this );
2037 this.el.add_child ( child_0.el );
2041 this.el.set_size(50.0f,50.0f);
2044 // user defined functions
2046 public class Xcls_Actor61 : Object
2048 public GtkClutter.Actor el;
2049 private Xcls_MainWindow _this;
2055 public Xcls_Actor61(Xcls_MainWindow _owner )
2058 this.el = new GtkClutter.Actor();
2062 // set gobject values
2063 var child_0 = new Xcls_Button62( _this );
2068 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2071 // user defined functions
2073 public class Xcls_Button62 : Object
2075 public Gtk.Button el;
2076 private Xcls_MainWindow _this;
2082 public Xcls_Button62(Xcls_MainWindow _owner )
2085 this.el = new Gtk.Button();
2089 // set gobject values
2090 this.el.width_request = 50;
2091 this.el.height_request = 50;
2092 this.el.tooltip_text = "Add File";
2093 var child_0 = new Xcls_Image63( _this );
2095 this.el.set_image ( child_0.el );
2098 this.el.clicked.connect( () => {
2099 // create a new file in project..
2100 print("add file selected\n");
2101 // what's the currently selected project...
2102 var proj = _this.windowstate.left_projects.getSelectedProject();
2105 print("no project selected?\n");
2109 print("creating file?");
2111 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2112 _this.project = proj;
2113 print("showing popup?");
2114 _this.windowstate.file_details.show(
2123 // user defined functions
2125 public class Xcls_Image63 : Object
2127 public Gtk.Image el;
2128 private Xcls_MainWindow _this;
2134 public Xcls_Image63(Xcls_MainWindow _owner )
2137 this.el = new Gtk.Image();
2141 // set gobject values
2142 this.el.icon_name = "document-new";
2145 // user defined functions
2151 public class Xcls_delprojectbutton : Object
2153 public Clutter.Actor el;
2154 private Xcls_MainWindow _this;
2160 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2163 _this.delprojectbutton = this;
2164 this.el = new Clutter.Actor();
2168 // set gobject values
2169 var child_0 = new Xcls_Actor65( _this );
2171 this.el.add_child ( child_0.el );
2175 this.el.set_size(50,50);
2178 // user defined functions
2180 public class Xcls_Actor65 : Object
2182 public GtkClutter.Actor el;
2183 private Xcls_MainWindow _this;
2189 public Xcls_Actor65(Xcls_MainWindow _owner )
2192 this.el = new GtkClutter.Actor();
2196 // set gobject values
2197 var child_0 = new Xcls_Button66( _this );
2202 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2205 // user defined functions
2207 public class Xcls_Button66 : Object
2209 public Gtk.Button el;
2210 private Xcls_MainWindow _this;
2216 public Xcls_Button66(Xcls_MainWindow _owner )
2219 this.el = new Gtk.Button();
2223 // set gobject values
2224 this.el.width_request = 50;
2225 this.el.height_request = 50;
2226 this.el.tooltip_text = "Delete Project";
2227 var child_0 = new Xcls_Image67( _this );
2229 this.el.set_image ( child_0.el );
2232 this.el.clicked.connect( ( ) => {
2234 var cd = DialogConfirm.singleton();
2235 cd.el.set_transient_for(_this.el);
2236 cd.el.set_modal(true);
2238 var project = _this.windowstate.left_projects.getSelectedProject();
2239 if (project == null) {
2240 print("SKIP - no project\n");
2245 if (Gtk.ResponseType.YES != cd.show("Confirm",
2246 "Are you sure you want to delete project %s".printf(project.name))) {
2252 Project.Project.remove(project);
2253 _this.project = null;
2255 _this.windowstate.left_projects.is_loaded = false;
2256 _this.windowstate.left_projects.load();
2257 _this.windowstate.clutterfiles.clearFiles();
2262 // user defined functions
2264 public class Xcls_Image67 : Object
2266 public Gtk.Image el;
2267 private Xcls_MainWindow _this;
2273 public Xcls_Image67(Xcls_MainWindow _owner )
2276 this.el = new Gtk.Image();
2280 // set gobject values
2281 this.el.icon_name = "user-trash";
2284 // user defined functions
2294 public class Xcls_Box68 : Object
2297 private Xcls_MainWindow _this;
2303 public Xcls_Box68(Xcls_MainWindow _owner )
2306 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2310 // set gobject values
2311 this.el.homogeneous = false;
2312 var child_0 = new Xcls_Label69( _this );
2314 this.el.pack_start ( child_0.el , true,true,0 );
2315 var child_1 = new Xcls_statusbar( _this );
2317 this.el.pack_start ( child_1.el , true,true,0 );
2318 var child_2 = new Xcls_search_entry( _this );
2320 this.el.pack_start ( child_2.el , false,true,0 );
2321 var child_3 = new Xcls_MenuBar72( _this );
2323 this.el.pack_end ( child_3.el , false,true,0 );
2326 // user defined functions
2328 public class Xcls_Label69 : Object
2330 public Gtk.Label el;
2331 private Xcls_MainWindow _this;
2337 public Xcls_Label69(Xcls_MainWindow _owner )
2340 this.el = new Gtk.Label( " " );
2344 // set gobject values
2347 // user defined functions
2350 public class Xcls_statusbar : Object
2352 public Gtk.ProgressBar el;
2353 private Xcls_MainWindow _this;
2357 public ulong handler_id;
2360 public Xcls_statusbar(Xcls_MainWindow _owner )
2363 _this.statusbar = this;
2364 this.el = new Gtk.ProgressBar();
2367 this.handler_id = -1;
2369 // set gobject values
2370 this.el.show_text = true;
2375 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2378 _this.mainpane.el.set_sensitive(true);
2382 _this.mainpane.el.set_sensitive(false);
2384 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2385 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2391 // user defined functions
2394 public class Xcls_search_entry : Object
2396 public Gtk.SearchEntry el;
2397 private Xcls_MainWindow _this;
2403 public Xcls_search_entry(Xcls_MainWindow _owner )
2406 _this.search_entry = this;
2407 this.el = new Gtk.SearchEntry();
2411 // set gobject values
2415 var description = Pango.FontDescription.from_string("monospace");
2416 description.set_size(8000);
2417 this.el.override_font(description);
2420 this.el.key_press_event.connect( (event) => {
2422 if (event.keyval == Gdk.Key.Return) {
2423 this.forwardSearch(false);
2427 // print(event.key.keyval)
2432 this.el.changed.connect( () => {
2433 if (this.el.text == "") {
2434 _this.search_results.el.hide();
2438 switch(_this.windowstate.state) {
2439 case WindowState.State.CODEONLY:
2440 case WindowState.State.CODE:
2441 // search the code being edited..
2442 res = _this.windowstate.code_editor.search(this.el.text);
2445 case WindowState.State.PREVIEW:
2446 if (_this.windowstate.file.xtype == "Gtk") {
2447 res = _this.windowstate.window_gladeview.search(this.el.text);
2449 res = _this.windowstate.window_rooview.search(this.el.text);
2455 _this.search_results.el.show();
2457 _this.search_results.el.label = "%d Matches".printf(res);
2459 _this.search_results.el.label = "No Matches";
2467 // user defined functions
2468 public void forwardSearch (bool change_focus) {
2469 switch(_this.windowstate.state) {
2470 case WindowState.State.CODEONLY:
2471 case WindowState.State.CODE:
2472 // search the code being edited..
2473 _this.windowstate.code_editor.forwardSearch(change_focus);
2476 case WindowState.State.PREVIEW:
2477 if (_this.windowstate.file.xtype == "Gtk") {
2478 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2480 _this.windowstate.window_rooview.forwardSearch(change_focus);
2489 public class Xcls_MenuBar72 : Object
2491 public Gtk.MenuBar el;
2492 private Xcls_MainWindow _this;
2498 public Xcls_MenuBar72(Xcls_MainWindow _owner )
2501 this.el = new Gtk.MenuBar();
2505 // set gobject values
2506 var child_0 = new Xcls_search_results( _this );
2508 this.el.add ( child_0.el );
2509 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2511 this.el.add ( child_1.el );
2512 var child_2 = new Xcls_statusbar_errors( _this );
2514 this.el.add ( child_2.el );
2515 var child_3 = new Xcls_statusbar_warnings( _this );
2517 this.el.add ( child_3.el );
2518 var child_4 = new Xcls_statusbar_depricated( _this );
2520 this.el.add ( child_4.el );
2521 var child_5 = new Xcls_statusbar_run( _this );
2523 this.el.add ( child_5.el );
2526 // user defined functions
2528 public class Xcls_search_results : Object
2530 public Gtk.ImageMenuItem el;
2531 private Xcls_MainWindow _this;
2535 public Xcls_ValaCompileErrors popup;
2538 public Xcls_search_results(Xcls_MainWindow _owner )
2541 _this.search_results = this;
2542 this.el = new Gtk.ImageMenuItem();
2546 // set gobject values
2547 this.el.always_show_image = true;
2548 this.el.label = "Matches";
2549 var child_0 = new Xcls_Image74( _this );
2551 this.el.set_image ( child_0.el );
2554 this.el.button_press_event.connect( () => {
2556 if (this.popup == null) {
2557 this.popup = new Xcls_ValaCompileErrors();
2558 this.popup.window = _this;
2562 this.popup.show(this.notices, this.el);
2568 // user defined functions
2570 public class Xcls_Image74 : Object
2572 public Gtk.Image el;
2573 private Xcls_MainWindow _this;
2579 public Xcls_Image74(Xcls_MainWindow _owner )
2582 this.el = new Gtk.Image();
2586 // set gobject values
2587 this.el.icon_name = "system-search";
2588 this.el.sensitive = false;
2591 // user defined functions
2595 public class Xcls_statusbar_compilestatus_label : Object
2597 public Gtk.MenuItem el;
2598 private Xcls_MainWindow _this;
2604 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2607 _this.statusbar_compilestatus_label = this;
2608 this.el = new Gtk.MenuItem();
2612 // set gobject values
2613 this.el.label = "Compile Status:";
2616 // user defined functions
2619 public class Xcls_statusbar_errors : Object
2621 public Gtk.ImageMenuItem el;
2622 private Xcls_MainWindow _this;
2626 public Xcls_ValaCompileErrors popup;
2627 public Json.Object notices;
2630 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2633 _this.statusbar_errors = this;
2634 this.el = new Gtk.ImageMenuItem();
2637 this.notices = new Json.Object() ;
2639 // set gobject values
2640 this.el.always_show_image = true;
2641 this.el.label = "Errors";
2642 var child_0 = new Xcls_Image77( _this );
2644 this.el.set_image ( child_0.el );
2647 this.el.button_press_event.connect( () => {
2648 if (this.popup == null) {
2649 this.popup = new Xcls_ValaCompileErrors();
2650 this.popup.window = _this;
2654 this.popup.show(this.notices, this.el);
2659 // user defined functions
2660 public void setNotices (Json.Object nots, int qty) {
2662 this.el.label = qty.to_string() + " Errors";
2663 this.notices = nots;
2667 public class Xcls_Image77 : Object
2669 public Gtk.Image el;
2670 private Xcls_MainWindow _this;
2676 public Xcls_Image77(Xcls_MainWindow _owner )
2679 this.el = new Gtk.Image();
2683 // set gobject values
2684 this.el.icon_name = "dialog-error";
2687 // user defined functions
2691 public class Xcls_statusbar_warnings : Object
2693 public Gtk.ImageMenuItem el;
2694 private Xcls_MainWindow _this;
2698 public Xcls_ValaCompileErrors popup;
2699 public Json.Object notices;
2702 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2705 _this.statusbar_warnings = this;
2706 this.el = new Gtk.ImageMenuItem();
2709 this.notices = new Json.Object();
2711 // set gobject values
2712 this.el.always_show_image = true;
2713 this.el.label = "Warnings";
2714 var child_0 = new Xcls_Image79( _this );
2716 this.el.set_image ( child_0.el );
2719 this.el.button_press_event.connect( () => {
2720 if (this.popup == null) {
2721 this.popup = new Xcls_ValaCompileErrors();
2722 this.popup.window = _this;
2725 this.popup.show(this.notices, this.el);
2730 // user defined functions
2731 public void setNotices (Json.Object nots, int qty) {
2733 this.el.label = qty.to_string() + " Warnings";
2734 this.notices = nots;
2738 public class Xcls_Image79 : Object
2740 public Gtk.Image el;
2741 private Xcls_MainWindow _this;
2747 public Xcls_Image79(Xcls_MainWindow _owner )
2750 this.el = new Gtk.Image();
2754 // set gobject values
2755 this.el.icon_name = "dialog-warning";
2758 // user defined functions
2762 public class Xcls_statusbar_depricated : Object
2764 public Gtk.ImageMenuItem el;
2765 private Xcls_MainWindow _this;
2769 public Xcls_ValaCompileErrors popup;
2770 public Json.Object notices;
2773 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2776 _this.statusbar_depricated = this;
2777 this.el = new Gtk.ImageMenuItem();
2780 this.notices = new Json.Object();
2782 // set gobject values
2783 this.el.always_show_image = true;
2784 this.el.label = "Depricated";
2785 var child_0 = new Xcls_Image81( _this );
2787 this.el.set_image ( child_0.el );
2790 this.el.button_press_event.connect( () => {
2791 if (this.popup == null) {
2792 this.popup = new Xcls_ValaCompileErrors();
2793 this.popup.window = _this;
2797 this.popup.show(this.notices, this.el);
2802 // user defined functions
2803 public void setNotices (Json.Object nots, int qty) {
2805 this.el.label = qty.to_string() + " Depricated";
2806 this.notices = nots;
2810 public class Xcls_Image81 : Object
2812 public Gtk.Image el;
2813 private Xcls_MainWindow _this;
2819 public Xcls_Image81(Xcls_MainWindow _owner )
2822 this.el = new Gtk.Image();
2826 // set gobject values
2827 this.el.icon_name = "dialog-information";
2830 // user defined functions
2834 public class Xcls_statusbar_run : Object
2836 public Gtk.ImageMenuItem el;
2837 private Xcls_MainWindow _this;
2841 public Xcls_ValaCompileErrors popup;
2844 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2847 _this.statusbar_run = this;
2848 this.el = new Gtk.ImageMenuItem();
2852 // set gobject values
2853 this.el.always_show_image = true;
2854 this.el.label = "Run";
2855 var child_0 = new Xcls_Image83( _this );
2857 this.el.set_image ( child_0.el );
2860 this.el.button_press_event.connect( () => {
2861 if (_this.windowstate.file == null) {
2864 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2866 _this.windowstate.compile_results.show(this.el,true);
2872 // user defined functions
2874 public class Xcls_Image83 : Object
2876 public Gtk.Image el;
2877 private Xcls_MainWindow _this;
2883 public Xcls_Image83(Xcls_MainWindow _owner )
2886 this.el = new Gtk.Image();
2890 // set gobject values
2891 this.el.icon_name = "media-playback-start";
2894 // user defined functions