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_vbox vbox;
19 public Xcls_mainpane mainpane;
20 public Xcls_leftpane leftpane;
21 public Xcls_editpane editpane;
22 public Xcls_tree tree;
23 public Xcls_props props;
24 public Xcls_clutterembed clutterembed;
25 public Xcls_rooview rooview;
26 public Xcls_objectview objectview;
27 public Xcls_codeeditview codeeditview;
28 public Xcls_addpropsview addpropsview;
29 public Xcls_projecteditview projecteditview;
30 public Xcls_buttonlayout buttonlayout;
31 public Xcls_backbutton backbutton;
32 public Xcls_projectbutton projectbutton;
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 var child_2 = new Xcls_Button13( _this );
228 // user defined functions
230 public class Xcls_MenuButton4 : Object
232 public Gtk.MenuButton el;
233 private Xcls_MainWindow _this;
239 public Xcls_MenuButton4(Xcls_MainWindow _owner )
242 this.el = new Gtk.MenuButton();
246 // set gobject values
247 this.el.use_popover = false;
248 var child_0 = new Xcls_topbarmenu( _this );
250 this.el.set_popup ( child_0.el );
251 var child_1 = new Xcls_Image10( _this );
253 this.el.set_image ( child_1.el );
256 // user defined functions
258 public class Xcls_topbarmenu : Object
261 private Xcls_MainWindow _this;
267 public Xcls_topbarmenu(Xcls_MainWindow _owner )
270 _this.topbarmenu = this;
271 this.el = new Gtk.Menu();
275 // set gobject values
276 var child_0 = new Xcls_MenuItem6( _this );
278 this.el.append ( child_0.el );
279 var child_1 = new Xcls_SeparatorMenuItem7( _this );
281 this.el.append ( child_1.el );
282 var child_2 = new Xcls_MenuItem8( _this );
284 this.el.append ( child_2.el );
285 var child_3 = new Xcls_MenuItem9( _this );
287 this.el.append ( child_3.el );
296 // user defined functions
298 public class Xcls_MenuItem6 : Object
300 public Gtk.MenuItem el;
301 private Xcls_MainWindow _this;
307 public Xcls_MenuItem6(Xcls_MainWindow _owner )
310 this.el = new Gtk.MenuItem();
314 // set gobject values
315 this.el.label = "Open a new Window";
318 this.el.activate.connect( ( ) => {
319 _this.openNewWindow();
323 // user defined functions
326 public class Xcls_SeparatorMenuItem7 : Object
328 public Gtk.SeparatorMenuItem el;
329 private Xcls_MainWindow _this;
335 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
338 this.el = new Gtk.SeparatorMenuItem();
342 // set gobject values
345 // user defined functions
348 public class Xcls_MenuItem8 : Object
350 public Gtk.MenuItem el;
351 private Xcls_MainWindow _this;
357 public Xcls_MenuItem8(Xcls_MainWindow _owner )
360 this.el = new Gtk.MenuItem();
364 // set gobject values
365 this.el.label = "Download updated Resources";
368 this.el.activate.connect( ( ) => {
369 Resources.singleton().fetchStart();
373 // user defined functions
376 public class Xcls_MenuItem9 : Object
378 public Gtk.MenuItem el;
379 private Xcls_MainWindow _this;
385 public Xcls_MenuItem9(Xcls_MainWindow _owner )
388 this.el = new Gtk.MenuItem();
392 // set gobject values
393 this.el.label = "About the Builder";
396 this.el.activate.connect( () => {
397 About.singleton().el.show();
401 // user defined functions
405 public class Xcls_Image10 : Object
408 private Xcls_MainWindow _this;
414 public Xcls_Image10(Xcls_MainWindow _owner )
417 this.el = new Gtk.Image();
421 // set gobject values
422 this.el.icon_name = "help-about";
425 // user defined functions
429 public class Xcls_openbtn : Object
431 public Gtk.Button el;
432 private Xcls_MainWindow _this;
438 public Xcls_openbtn(Xcls_MainWindow _owner )
441 _this.openbtn = this;
442 this.el = new Gtk.Button();
446 // set gobject values
447 this.el.width_request = 50;
448 this.el.height_request = 50;
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_Button13 : Object
489 public Gtk.Button el;
490 private Xcls_MainWindow _this;
496 public Xcls_Button13(Xcls_MainWindow _owner )
499 this.el = new Gtk.Button();
503 // set gobject values
504 this.el.width_request = 50;
505 this.el.height_request = 50;
506 this.el.tooltip_text = "Back";
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_Box70( _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_projectbutton( _this );
1039 this.el.add_child ( child_2.el );
1040 var child_3 = new Xcls_editfilebutton( _this );
1042 this.el.add_child ( child_3.el );
1043 var child_4 = new Xcls_projecteditbutton( _this );
1045 this.el.add_child ( child_4.el );
1046 var child_5 = new Xcls_objectshowbutton( _this );
1048 this.el.add_child ( child_5.el );
1049 var child_6 = new Xcls_addpropbutton( _this );
1051 this.el.add_child ( child_6.el );
1052 var child_7 = new Xcls_addlistenerbutton( _this );
1054 this.el.add_child ( child_7.el );
1055 var child_8 = new Xcls_addprojectbutton( _this );
1057 this.el.add_child ( child_8.el );
1058 var child_9 = new Xcls_addfilebutton( _this );
1060 this.el.add_child ( child_9.el );
1061 var child_10 = new Xcls_delprojectbutton( _this );
1063 this.el.add_child ( child_10.el );
1069 this.el.add_constraint(
1070 new Clutter.AlignConstraint(
1071 _this.clutterembed.el.get_stage(),
1072 Clutter.AlignAxis.X_AXIS,
1078 //this.el.set_position(100,100);
1079 this.el.set_pivot_point(0.5f,0.5f);
1080 this.el.set_size(50,
1081 _this.clutterembed.el.get_stage().height);
1086 // user defined functions
1088 public class Xcls_BoxLayout29 : Object
1090 public Clutter.BoxLayout el;
1091 private Xcls_MainWindow _this;
1097 public Xcls_BoxLayout29(Xcls_MainWindow _owner )
1100 this.el = new Clutter.BoxLayout();
1104 // set gobject values
1105 this.el.orientation = Clutter.Orientation.VERTICAL;
1108 // user defined functions
1111 public class Xcls_backbutton : Object
1113 public Clutter.Actor el;
1114 private Xcls_MainWindow _this;
1120 public Xcls_backbutton(Xcls_MainWindow _owner )
1123 _this.backbutton = this;
1124 this.el = new Clutter.Actor();
1128 // set gobject values
1129 var child_0 = new Xcls_Actor31( _this );
1131 this.el.add_child ( child_0.el );
1135 this.el.set_size(50,50);
1138 // user defined functions
1140 public class Xcls_Actor31 : Object
1142 public GtkClutter.Actor el;
1143 private Xcls_MainWindow _this;
1149 public Xcls_Actor31(Xcls_MainWindow _owner )
1152 this.el = new GtkClutter.Actor();
1156 // set gobject values
1157 var child_0 = new Xcls_Button32( _this );
1162 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1165 // user defined functions
1167 public class Xcls_Button32 : Object
1169 public Gtk.Button el;
1170 private Xcls_MainWindow _this;
1176 public Xcls_Button32(Xcls_MainWindow _owner )
1179 this.el = new Gtk.Button();
1183 // set gobject values
1184 this.el.width_request = 50;
1185 this.el.height_request = 50;
1186 this.el.tooltip_text = "Back";
1187 var child_0 = new Xcls_Image33( _this );
1189 this.el.set_image ( child_0.el );
1192 this.el.clicked.connect( ( ) => {
1194 _this.windowstate.switchState(WindowState.State.PREVIEW);
1200 // user defined functions
1202 public class Xcls_Image33 : Object
1204 public Gtk.Image el;
1205 private Xcls_MainWindow _this;
1211 public Xcls_Image33(Xcls_MainWindow _owner )
1214 this.el = new Gtk.Image();
1218 // set gobject values
1219 this.el.icon_name = "go-previous";
1222 // user defined functions
1228 public class Xcls_projectbutton : Object
1230 public Clutter.Actor el;
1231 private Xcls_MainWindow _this;
1237 public Xcls_projectbutton(Xcls_MainWindow _owner )
1240 _this.projectbutton = this;
1241 this.el = new Clutter.Actor();
1245 // set gobject values
1246 var child_0 = new Xcls_Actor35( _this );
1248 this.el.add_child ( child_0.el );
1252 this.el.set_size(50,50);
1255 // user defined functions
1257 public class Xcls_Actor35 : Object
1259 public GtkClutter.Actor el;
1260 private Xcls_MainWindow _this;
1266 public Xcls_Actor35(Xcls_MainWindow _owner )
1269 this.el = new GtkClutter.Actor();
1273 // set gobject values
1274 var child_0 = new Xcls_Button36( _this );
1279 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1282 // user defined functions
1284 public class Xcls_Button36 : Object
1286 public Gtk.Button el;
1287 private Xcls_MainWindow _this;
1293 public Xcls_Button36(Xcls_MainWindow _owner )
1296 this.el = new Gtk.Button();
1300 // set gobject values
1301 this.el.width_request = 50;
1302 this.el.height_request = 50;
1303 var child_0 = new Xcls_Image37( _this );
1305 this.el.set_image ( child_0.el );
1308 this.el.clicked.connect( ( ) => {
1309 _this.windowstate.switchState(WindowState.State.FILES);
1315 // user defined functions
1317 public class Xcls_Image37 : Object
1319 public Gtk.Image el;
1320 private Xcls_MainWindow _this;
1326 public Xcls_Image37(Xcls_MainWindow _owner )
1329 this.el = new Gtk.Image();
1333 // set gobject values
1334 this.el.icon_name = "document-open";
1337 // user defined functions
1343 public class Xcls_editfilebutton : Object
1345 public Clutter.Actor el;
1346 private Xcls_MainWindow _this;
1352 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1355 _this.editfilebutton = this;
1356 this.el = new Clutter.Actor();
1360 // set gobject values
1361 var child_0 = new Xcls_Actor39( _this );
1363 this.el.add_child ( child_0.el );
1367 this.el.set_size(50.0f,50.0f);
1370 // user defined functions
1372 public class Xcls_Actor39 : Object
1374 public GtkClutter.Actor el;
1375 private Xcls_MainWindow _this;
1381 public Xcls_Actor39(Xcls_MainWindow _owner )
1384 this.el = new GtkClutter.Actor();
1388 // set gobject values
1389 var child_0 = new Xcls_Button40( _this );
1394 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1397 // user defined functions
1399 public class Xcls_Button40 : Object
1401 public Gtk.Button el;
1402 private Xcls_MainWindow _this;
1408 public Xcls_Button40(Xcls_MainWindow _owner )
1411 this.el = new Gtk.Button();
1415 // set gobject values
1416 this.el.width_request = 50;
1417 this.el.height_request = 50;
1418 this.el.tooltip_text = "File Details";
1419 var child_0 = new Xcls_Image41( _this );
1421 this.el.set_image ( child_0.el );
1424 this.el.clicked.connect( ( ) => {
1426 // create a new file in project..
1427 if (_this.project == null || _this.windowstate.file == null) {
1430 _this.windowstate.file_details.show(
1431 _this.windowstate.file, this.el
1440 // user defined functions
1442 public class Xcls_Image41 : Object
1444 public Gtk.Image el;
1445 private Xcls_MainWindow _this;
1451 public Xcls_Image41(Xcls_MainWindow _owner )
1454 this.el = new Gtk.Image();
1458 // set gobject values
1459 this.el.icon_name = "document-properties";
1462 // user defined functions
1468 public class Xcls_projecteditbutton : Object
1470 public Clutter.Actor el;
1471 private Xcls_MainWindow _this;
1477 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1480 _this.projecteditbutton = this;
1481 this.el = new Clutter.Actor();
1485 // set gobject values
1486 var child_0 = new Xcls_Actor43( _this );
1488 this.el.add_child ( child_0.el );
1492 this.el.set_size(50,50);
1495 // user defined functions
1497 public class Xcls_Actor43 : Object
1499 public GtkClutter.Actor el;
1500 private Xcls_MainWindow _this;
1506 public Xcls_Actor43(Xcls_MainWindow _owner )
1509 this.el = new GtkClutter.Actor();
1513 // set gobject values
1514 var child_0 = new Xcls_Button44( _this );
1519 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1522 // user defined functions
1524 public class Xcls_Button44 : Object
1526 public Gtk.Button el;
1527 private Xcls_MainWindow _this;
1533 public Xcls_Button44(Xcls_MainWindow _owner )
1536 this.el = new Gtk.Button();
1540 // set gobject values
1541 this.el.width_request = 50;
1542 this.el.height_request = 50;
1543 this.el.tooltip_text = "Project Details";
1544 var child_0 = new Xcls_Image45( _this );
1546 this.el.set_image ( child_0.el );
1549 this.el.clicked.connect( ( ) => {
1550 _this.windowstate.switchState(WindowState.State.PROJECT);
1557 // user defined functions
1559 public class Xcls_Image45 : Object
1561 public Gtk.Image el;
1562 private Xcls_MainWindow _this;
1568 public Xcls_Image45(Xcls_MainWindow _owner )
1571 this.el = new Gtk.Image();
1575 // set gobject values
1576 this.el.icon_name = "emblem-system";
1579 // user defined functions
1585 public class Xcls_objectshowbutton : Object
1587 public Clutter.Actor el;
1588 private Xcls_MainWindow _this;
1594 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1597 _this.objectshowbutton = this;
1598 this.el = new Clutter.Actor();
1602 // set gobject values
1603 var child_0 = new Xcls_Actor47( _this );
1605 this.el.add_child ( child_0.el );
1609 this.el.set_size(50,50);
1612 this.el.enter_event.connect( ( event) => {
1613 this.el.background_color = Clutter.Color.from_string("#333");
1616 this.el.leave_event.connect( ( event) => {
1617 this.el.background_color = Clutter.Color.from_string("#000");
1622 // user defined functions
1624 public class Xcls_Actor47 : Object
1626 public GtkClutter.Actor el;
1627 private Xcls_MainWindow _this;
1633 public Xcls_Actor47(Xcls_MainWindow _owner )
1636 this.el = new GtkClutter.Actor();
1640 // set gobject values
1641 var child_0 = new Xcls_Button48( _this );
1646 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1649 // user defined functions
1651 public class Xcls_Button48 : Object
1653 public Gtk.Button el;
1654 private Xcls_MainWindow _this;
1660 public Xcls_Button48(Xcls_MainWindow _owner )
1663 this.el = new Gtk.Button();
1667 // set gobject values
1668 this.el.width_request = 50;
1669 this.el.height_request = 50;
1670 this.el.tooltip_text = "Add Child Element";
1671 var child_0 = new Xcls_Image49( _this );
1673 this.el.set_image ( child_0.el );
1676 this.el.clicked.connect( ( ) => {
1678 _this.windowstate.switchState(WindowState.State.OBJECT);
1684 // user defined functions
1686 public class Xcls_Image49 : Object
1688 public Gtk.Image el;
1689 private Xcls_MainWindow _this;
1695 public Xcls_Image49(Xcls_MainWindow _owner )
1698 this.el = new Gtk.Image();
1702 // set gobject values
1703 this.el.icon_name = "list-add";
1706 // user defined functions
1712 public class Xcls_addpropbutton : Object
1714 public Clutter.Actor el;
1715 private Xcls_MainWindow _this;
1721 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1724 _this.addpropbutton = this;
1725 this.el = new Clutter.Actor();
1729 // set gobject values
1730 var child_0 = new Xcls_Actor51( _this );
1732 this.el.add_child ( child_0.el );
1736 this.el.set_size(50,50);
1739 // user defined functions
1741 public class Xcls_Actor51 : Object
1743 public GtkClutter.Actor el;
1744 private Xcls_MainWindow _this;
1750 public Xcls_Actor51(Xcls_MainWindow _owner )
1753 this.el = new GtkClutter.Actor();
1757 // set gobject values
1758 var child_0 = new Xcls_Button52( _this );
1763 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1766 // user defined functions
1768 public class Xcls_Button52 : Object
1770 public Gtk.Button el;
1771 private Xcls_MainWindow _this;
1777 public Xcls_Button52(Xcls_MainWindow _owner )
1780 this.el = new Gtk.Button();
1784 // set gobject values
1785 this.el.width_request = 50;
1786 this.el.height_request = 50;
1787 this.el.tooltip_text = "Add Property";
1788 var child_0 = new Xcls_Image53( _this );
1790 this.el.set_image ( child_0.el );
1793 this.el.clicked.connect( ( ) => {
1795 _this.windowstate.switchState(WindowState.State.PROP);
1801 // user defined functions
1803 public class Xcls_Image53 : Object
1805 public Gtk.Image el;
1806 private Xcls_MainWindow _this;
1812 public Xcls_Image53(Xcls_MainWindow _owner )
1815 this.el = new Gtk.Image();
1819 // set gobject values
1820 this.el.icon_name = "format-justify-left";
1823 // user defined functions
1829 public class Xcls_addlistenerbutton : Object
1831 public Clutter.Actor el;
1832 private Xcls_MainWindow _this;
1838 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1841 _this.addlistenerbutton = this;
1842 this.el = new Clutter.Actor();
1846 // set gobject values
1847 var child_0 = new Xcls_Actor55( _this );
1849 this.el.add_child ( child_0.el );
1853 this.el.set_size(50,50);
1856 // user defined functions
1858 public class Xcls_Actor55 : Object
1860 public GtkClutter.Actor el;
1861 private Xcls_MainWindow _this;
1867 public Xcls_Actor55(Xcls_MainWindow _owner )
1870 this.el = new GtkClutter.Actor();
1874 // set gobject values
1875 var child_0 = new Xcls_Button56( _this );
1880 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1883 // user defined functions
1885 public class Xcls_Button56 : Object
1887 public Gtk.Button el;
1888 private Xcls_MainWindow _this;
1894 public Xcls_Button56(Xcls_MainWindow _owner )
1897 this.el = new Gtk.Button();
1901 // set gobject values
1902 this.el.width_request = 50;
1903 this.el.height_request = 50;
1904 this.el.tooltip_text = "Add Event Code";
1905 var child_0 = new Xcls_Image57( _this );
1907 this.el.set_image ( child_0.el );
1910 this.el.clicked.connect( ( ) => {
1912 _this.windowstate.switchState(WindowState.State.LISTENER);
1919 // user defined functions
1921 public class Xcls_Image57 : Object
1923 public Gtk.Image el;
1924 private Xcls_MainWindow _this;
1930 public Xcls_Image57(Xcls_MainWindow _owner )
1933 this.el = new Gtk.Image();
1937 // set gobject values
1938 this.el.icon_name = "appointment-new";
1941 // user defined functions
1947 public class Xcls_addprojectbutton : Object
1949 public Clutter.Actor el;
1950 private Xcls_MainWindow _this;
1956 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1959 _this.addprojectbutton = this;
1960 this.el = new Clutter.Actor();
1964 // set gobject values
1965 var child_0 = new Xcls_Actor59( _this );
1967 this.el.add_child ( child_0.el );
1971 this.el.set_size(50.0f,50.0f);
1974 // user defined functions
1976 public class Xcls_Actor59 : Object
1978 public GtkClutter.Actor el;
1979 private Xcls_MainWindow _this;
1985 public Xcls_Actor59(Xcls_MainWindow _owner )
1988 this.el = new GtkClutter.Actor();
1992 // set gobject values
1993 var child_0 = new Xcls_Button60( _this );
1998 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2001 // user defined functions
2003 public class Xcls_Button60 : Object
2005 public Gtk.Button el;
2006 private Xcls_MainWindow _this;
2012 public Xcls_Button60(Xcls_MainWindow _owner )
2015 this.el = new Gtk.Button();
2019 // set gobject values
2020 this.el.width_request = 50;
2021 this.el.height_request = 50;
2022 this.el.tooltip_text = "New\nProj.";
2023 var child_0 = new Xcls_Image61( _this );
2025 this.el.set_image ( child_0.el );
2028 this.el.clicked.connect( ( ) => {
2030 // create a new file in project..
2031 //Xcls_DialogNewComponent.singleton().show(
2032 var pe = EditProject.singleton();
2033 pe.el.set_transient_for(_this.el);
2034 pe.el.set_modal(true);
2043 _this.windowstate.left_projects.is_loaded = false;
2044 _this.windowstate.left_projects.load();
2045 _this.windowstate.left_projects.selectProject(p);
2052 // user defined functions
2054 public class Xcls_Image61 : Object
2056 public Gtk.Image el;
2057 private Xcls_MainWindow _this;
2063 public Xcls_Image61(Xcls_MainWindow _owner )
2066 this.el = new Gtk.Image();
2070 // set gobject values
2071 this.el.icon_name = "folder-new";
2074 // user defined functions
2080 public class Xcls_addfilebutton : Object
2082 public Clutter.Actor el;
2083 private Xcls_MainWindow _this;
2089 public Xcls_addfilebutton(Xcls_MainWindow _owner )
2092 _this.addfilebutton = this;
2093 this.el = new Clutter.Actor();
2097 // set gobject values
2098 var child_0 = new Xcls_Actor63( _this );
2100 this.el.add_child ( child_0.el );
2104 this.el.set_size(50.0f,50.0f);
2107 // user defined functions
2109 public class Xcls_Actor63 : Object
2111 public GtkClutter.Actor el;
2112 private Xcls_MainWindow _this;
2118 public Xcls_Actor63(Xcls_MainWindow _owner )
2121 this.el = new GtkClutter.Actor();
2125 // set gobject values
2126 var child_0 = new Xcls_Button64( _this );
2131 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2134 // user defined functions
2136 public class Xcls_Button64 : Object
2138 public Gtk.Button el;
2139 private Xcls_MainWindow _this;
2145 public Xcls_Button64(Xcls_MainWindow _owner )
2148 this.el = new Gtk.Button();
2152 // set gobject values
2153 this.el.width_request = 50;
2154 this.el.height_request = 50;
2155 this.el.tooltip_text = "Add File";
2156 var child_0 = new Xcls_Image65( _this );
2158 this.el.set_image ( child_0.el );
2161 this.el.clicked.connect( () => {
2162 // create a new file in project..
2163 print("add file selected\n");
2164 // what's the currently selected project...
2165 var proj = _this.windowstate.left_projects.getSelectedProject();
2168 print("no project selected?\n");
2172 print("creating file?");
2174 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2175 _this.project = proj;
2176 print("showing popup?");
2177 _this.windowstate.file_details.show(
2186 // user defined functions
2188 public class Xcls_Image65 : Object
2190 public Gtk.Image el;
2191 private Xcls_MainWindow _this;
2197 public Xcls_Image65(Xcls_MainWindow _owner )
2200 this.el = new Gtk.Image();
2204 // set gobject values
2205 this.el.icon_name = "document-new";
2208 // user defined functions
2214 public class Xcls_delprojectbutton : Object
2216 public Clutter.Actor el;
2217 private Xcls_MainWindow _this;
2223 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2226 _this.delprojectbutton = this;
2227 this.el = new Clutter.Actor();
2231 // set gobject values
2232 var child_0 = new Xcls_Actor67( _this );
2234 this.el.add_child ( child_0.el );
2238 this.el.set_size(50,50);
2241 // user defined functions
2243 public class Xcls_Actor67 : Object
2245 public GtkClutter.Actor el;
2246 private Xcls_MainWindow _this;
2252 public Xcls_Actor67(Xcls_MainWindow _owner )
2255 this.el = new GtkClutter.Actor();
2259 // set gobject values
2260 var child_0 = new Xcls_Button68( _this );
2265 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2268 // user defined functions
2270 public class Xcls_Button68 : Object
2272 public Gtk.Button el;
2273 private Xcls_MainWindow _this;
2279 public Xcls_Button68(Xcls_MainWindow _owner )
2282 this.el = new Gtk.Button();
2286 // set gobject values
2287 this.el.width_request = 50;
2288 this.el.height_request = 50;
2289 this.el.tooltip_text = "Delete Project";
2290 var child_0 = new Xcls_Image69( _this );
2292 this.el.set_image ( child_0.el );
2295 this.el.clicked.connect( ( ) => {
2297 var cd = DialogConfirm.singleton();
2298 cd.el.set_transient_for(_this.el);
2299 cd.el.set_modal(true);
2301 var project = _this.windowstate.left_projects.getSelectedProject();
2302 if (project == null) {
2303 print("SKIP - no project\n");
2308 if (Gtk.ResponseType.YES != cd.show("Confirm",
2309 "Are you sure you want to delete project %s".printf(project.name))) {
2315 Project.Project.remove(project);
2316 _this.project = null;
2318 _this.windowstate.left_projects.is_loaded = false;
2319 _this.windowstate.left_projects.load();
2320 _this.windowstate.clutterfiles.clearFiles();
2325 // user defined functions
2327 public class Xcls_Image69 : Object
2329 public Gtk.Image el;
2330 private Xcls_MainWindow _this;
2336 public Xcls_Image69(Xcls_MainWindow _owner )
2339 this.el = new Gtk.Image();
2343 // set gobject values
2344 this.el.icon_name = "user-trash";
2347 // user defined functions
2357 public class Xcls_Box70 : Object
2360 private Xcls_MainWindow _this;
2366 public Xcls_Box70(Xcls_MainWindow _owner )
2369 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2373 // set gobject values
2374 this.el.homogeneous = false;
2375 var child_0 = new Xcls_Label71( _this );
2377 this.el.pack_start ( child_0.el , true,true,0 );
2378 var child_1 = new Xcls_statusbar( _this );
2380 this.el.pack_start ( child_1.el , true,true,0 );
2381 var child_2 = new Xcls_search_entry( _this );
2383 this.el.pack_start ( child_2.el , false,true,0 );
2384 var child_3 = new Xcls_MenuBar74( _this );
2386 this.el.pack_end ( child_3.el , false,true,0 );
2389 // user defined functions
2391 public class Xcls_Label71 : Object
2393 public Gtk.Label el;
2394 private Xcls_MainWindow _this;
2400 public Xcls_Label71(Xcls_MainWindow _owner )
2403 this.el = new Gtk.Label( " " );
2407 // set gobject values
2410 // user defined functions
2413 public class Xcls_statusbar : Object
2415 public Gtk.ProgressBar el;
2416 private Xcls_MainWindow _this;
2420 public ulong handler_id;
2423 public Xcls_statusbar(Xcls_MainWindow _owner )
2426 _this.statusbar = this;
2427 this.el = new Gtk.ProgressBar();
2430 this.handler_id = -1;
2432 // set gobject values
2433 this.el.show_text = true;
2438 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2441 _this.mainpane.el.set_sensitive(true);
2445 _this.mainpane.el.set_sensitive(false);
2447 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2448 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2454 // user defined functions
2457 public class Xcls_search_entry : Object
2459 public Gtk.SearchEntry el;
2460 private Xcls_MainWindow _this;
2466 public Xcls_search_entry(Xcls_MainWindow _owner )
2469 _this.search_entry = this;
2470 this.el = new Gtk.SearchEntry();
2474 // set gobject values
2478 var description = Pango.FontDescription.from_string("monospace");
2479 description.set_size(8000);
2480 this.el.override_font(description);
2483 this.el.key_press_event.connect( (event) => {
2485 if (event.keyval == Gdk.Key.Return) {
2486 this.forwardSearch(false);
2490 // print(event.key.keyval)
2495 this.el.changed.connect( () => {
2496 if (this.el.text == "") {
2497 _this.search_results.el.hide();
2501 switch(_this.windowstate.state) {
2502 case WindowState.State.CODEONLY:
2503 case WindowState.State.CODE:
2504 // search the code being edited..
2505 res = _this.windowstate.code_editor.search(this.el.text);
2508 case WindowState.State.PREVIEW:
2509 if (_this.windowstate.file.xtype == "Gtk") {
2510 res = _this.windowstate.window_gladeview.search(this.el.text);
2512 res = _this.windowstate.window_rooview.search(this.el.text);
2518 _this.search_results.el.show();
2520 _this.search_results.el.label = "%d Matches".printf(res);
2522 _this.search_results.el.label = "No Matches";
2530 // user defined functions
2531 public void forwardSearch (bool change_focus) {
2532 switch(_this.windowstate.state) {
2533 case WindowState.State.CODEONLY:
2534 case WindowState.State.CODE:
2535 // search the code being edited..
2536 _this.windowstate.code_editor.forwardSearch(change_focus);
2539 case WindowState.State.PREVIEW:
2540 if (_this.windowstate.file.xtype == "Gtk") {
2541 _this.windowstate.window_gladeview.forwardSearch(change_focus);
2543 _this.windowstate.window_rooview.forwardSearch(change_focus);
2552 public class Xcls_MenuBar74 : Object
2554 public Gtk.MenuBar el;
2555 private Xcls_MainWindow _this;
2561 public Xcls_MenuBar74(Xcls_MainWindow _owner )
2564 this.el = new Gtk.MenuBar();
2568 // set gobject values
2569 var child_0 = new Xcls_search_results( _this );
2571 this.el.add ( child_0.el );
2572 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
2574 this.el.add ( child_1.el );
2575 var child_2 = new Xcls_statusbar_errors( _this );
2577 this.el.add ( child_2.el );
2578 var child_3 = new Xcls_statusbar_warnings( _this );
2580 this.el.add ( child_3.el );
2581 var child_4 = new Xcls_statusbar_depricated( _this );
2583 this.el.add ( child_4.el );
2584 var child_5 = new Xcls_statusbar_run( _this );
2586 this.el.add ( child_5.el );
2589 // user defined functions
2591 public class Xcls_search_results : Object
2593 public Gtk.ImageMenuItem el;
2594 private Xcls_MainWindow _this;
2598 public Xcls_ValaCompileErrors popup;
2601 public Xcls_search_results(Xcls_MainWindow _owner )
2604 _this.search_results = this;
2605 this.el = new Gtk.ImageMenuItem();
2609 // set gobject values
2610 this.el.always_show_image = true;
2611 this.el.label = "Matches";
2612 var child_0 = new Xcls_Image76( _this );
2614 this.el.set_image ( child_0.el );
2617 this.el.button_press_event.connect( () => {
2619 if (this.popup == null) {
2620 this.popup = new Xcls_ValaCompileErrors();
2621 this.popup.window = _this;
2625 this.popup.show(this.notices, this.el);
2631 // user defined functions
2633 public class Xcls_Image76 : Object
2635 public Gtk.Image el;
2636 private Xcls_MainWindow _this;
2642 public Xcls_Image76(Xcls_MainWindow _owner )
2645 this.el = new Gtk.Image();
2649 // set gobject values
2650 this.el.icon_name = "system-search";
2651 this.el.sensitive = false;
2654 // user defined functions
2658 public class Xcls_statusbar_compilestatus_label : Object
2660 public Gtk.MenuItem el;
2661 private Xcls_MainWindow _this;
2667 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
2670 _this.statusbar_compilestatus_label = this;
2671 this.el = new Gtk.MenuItem();
2675 // set gobject values
2676 this.el.label = "Compile Status:";
2679 // user defined functions
2682 public class Xcls_statusbar_errors : Object
2684 public Gtk.ImageMenuItem el;
2685 private Xcls_MainWindow _this;
2689 public Xcls_ValaCompileErrors popup;
2690 public Json.Object notices;
2693 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2696 _this.statusbar_errors = this;
2697 this.el = new Gtk.ImageMenuItem();
2700 this.notices = new Json.Object() ;
2702 // set gobject values
2703 this.el.always_show_image = true;
2704 this.el.label = "Errors";
2705 var child_0 = new Xcls_Image79( _this );
2707 this.el.set_image ( child_0.el );
2710 this.el.button_press_event.connect( () => {
2711 if (this.popup == null) {
2712 this.popup = new Xcls_ValaCompileErrors();
2713 this.popup.window = _this;
2717 this.popup.show(this.notices, this.el);
2722 // user defined functions
2723 public void setNotices (Json.Object nots, int qty) {
2725 this.el.label = qty.to_string() + " Errors";
2726 this.notices = nots;
2730 public class Xcls_Image79 : Object
2732 public Gtk.Image el;
2733 private Xcls_MainWindow _this;
2739 public Xcls_Image79(Xcls_MainWindow _owner )
2742 this.el = new Gtk.Image();
2746 // set gobject values
2747 this.el.icon_name = "dialog-error";
2750 // user defined functions
2754 public class Xcls_statusbar_warnings : Object
2756 public Gtk.ImageMenuItem el;
2757 private Xcls_MainWindow _this;
2761 public Xcls_ValaCompileErrors popup;
2762 public Json.Object notices;
2765 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2768 _this.statusbar_warnings = this;
2769 this.el = new Gtk.ImageMenuItem();
2772 this.notices = new Json.Object();
2774 // set gobject values
2775 this.el.always_show_image = true;
2776 this.el.label = "Warnings";
2777 var child_0 = new Xcls_Image81( _this );
2779 this.el.set_image ( child_0.el );
2782 this.el.button_press_event.connect( () => {
2783 if (this.popup == null) {
2784 this.popup = new Xcls_ValaCompileErrors();
2785 this.popup.window = _this;
2788 this.popup.show(this.notices, this.el);
2793 // user defined functions
2794 public void setNotices (Json.Object nots, int qty) {
2796 this.el.label = qty.to_string() + " Warnings";
2797 this.notices = nots;
2801 public class Xcls_Image81 : Object
2803 public Gtk.Image el;
2804 private Xcls_MainWindow _this;
2810 public Xcls_Image81(Xcls_MainWindow _owner )
2813 this.el = new Gtk.Image();
2817 // set gobject values
2818 this.el.icon_name = "dialog-warning";
2821 // user defined functions
2825 public class Xcls_statusbar_depricated : Object
2827 public Gtk.ImageMenuItem el;
2828 private Xcls_MainWindow _this;
2832 public Xcls_ValaCompileErrors popup;
2833 public Json.Object notices;
2836 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2839 _this.statusbar_depricated = this;
2840 this.el = new Gtk.ImageMenuItem();
2843 this.notices = new Json.Object();
2845 // set gobject values
2846 this.el.always_show_image = true;
2847 this.el.label = "Depricated";
2848 var child_0 = new Xcls_Image83( _this );
2850 this.el.set_image ( child_0.el );
2853 this.el.button_press_event.connect( () => {
2854 if (this.popup == null) {
2855 this.popup = new Xcls_ValaCompileErrors();
2856 this.popup.window = _this;
2860 this.popup.show(this.notices, this.el);
2865 // user defined functions
2866 public void setNotices (Json.Object nots, int qty) {
2868 this.el.label = qty.to_string() + " Depricated";
2869 this.notices = nots;
2873 public class Xcls_Image83 : Object
2875 public Gtk.Image el;
2876 private Xcls_MainWindow _this;
2882 public Xcls_Image83(Xcls_MainWindow _owner )
2885 this.el = new Gtk.Image();
2889 // set gobject values
2890 this.el.icon_name = "dialog-information";
2893 // user defined functions
2897 public class Xcls_statusbar_run : Object
2899 public Gtk.ImageMenuItem el;
2900 private Xcls_MainWindow _this;
2904 public Xcls_ValaCompileErrors popup;
2907 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2910 _this.statusbar_run = this;
2911 this.el = new Gtk.ImageMenuItem();
2915 // set gobject values
2916 this.el.always_show_image = true;
2917 this.el.label = "Run";
2918 var child_0 = new Xcls_Image85( _this );
2920 this.el.set_image ( child_0.el );
2923 this.el.button_press_event.connect( () => {
2924 if (_this.windowstate.file == null) {
2927 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2929 _this.windowstate.compile_results.show(this.el,true);
2935 // user defined functions
2937 public class Xcls_Image85 : Object
2939 public Gtk.Image el;
2940 private Xcls_MainWindow _this;
2946 public Xcls_Image85(Xcls_MainWindow _owner )
2949 this.el = new Gtk.Image();
2953 // set gobject values
2954 this.el.icon_name = "media-playback-start";
2957 // user defined functions