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_windownew windownew;
17 public Xcls_open_projects_btn open_projects_btn;
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_buttonlayout buttonlayout;
30 public Xcls_backbutton backbutton;
31 public Xcls_objectshowbutton objectshowbutton;
32 public Xcls_addpropbutton addpropbutton;
33 public Xcls_addlistenerbutton addlistenerbutton;
34 public Xcls_topbarmenu topbarmenu;
35 public Xcls_statusbar statusbar;
36 public Xcls_search_entry search_entry;
37 public Xcls_search_results search_results;
38 public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
39 public Xcls_statusbar_errors statusbar_errors;
40 public Xcls_statusbar_warnings statusbar_warnings;
41 public Xcls_statusbar_depricated statusbar_depricated;
42 public Xcls_statusbar_run statusbar_run;
43 public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
46 public Project.Project project;
48 public int no_windows;
49 public WindowState windowstate;
52 public Xcls_MainWindow()
55 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
59 this.title = "Roo Application Builder";
61 this.windowstate = null;
64 this.el.border_width = 0;
65 this.el.default_height = 750;
66 this.el.default_width = 1200;
67 var child_0 = new Xcls_headerbar( _this );
69 this.el.set_titlebar ( child_0.el );
70 var child_1 = new Xcls_vbox( _this );
72 this.el.add ( child_1.el );
78 this.el.set_icon_name("roobuilder");
79 //} catch (Exception e) {
80 // print("no icon found");
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();
106 _this.statusbar_compile_spinner.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.showPopoverFiles(w.open_projects_btn.el, _this.project);
150 // should open the file dialog...
151 //w.windowstate.switchState(WindowState.State.FILES);
153 public void initChildren () {
154 // this needs putting in a better place..
155 this.windowstate = new WindowState(this);
159 var tl = new Clutter.Timeline(6000);
160 tl.set_repeat_count(-1);
169 public void show () {
174 public void setTitle (string str) {
175 this.headerbar.el.set_title(this.title + " - " + str);
177 public class Xcls_headerbar : Object
179 public Gtk.HeaderBar el;
180 private Xcls_MainWindow _this;
186 public Xcls_headerbar(Xcls_MainWindow _owner )
189 _this.headerbar = this;
190 this.el = new Gtk.HeaderBar();
194 // set gobject values
195 this.el.title = "Application Builder";
196 this.el.show_close_button = true;
197 var child_0 = new Xcls_Box3( _this );
199 this.el.pack_start ( child_0.el );
202 // user defined functions
204 public class Xcls_Box3 : Object
207 private Xcls_MainWindow _this;
213 public Xcls_Box3(Xcls_MainWindow _owner )
216 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
220 // set gobject values
221 var child_0 = new Xcls_windownew( _this );
223 this.el.add ( child_0.el );
224 var child_1 = new Xcls_open_projects_btn( _this );
226 this.el.add ( child_1.el );
229 // user defined functions
231 public class Xcls_windownew : Object
233 public Gtk.Button el;
234 private Xcls_MainWindow _this;
240 public Xcls_windownew(Xcls_MainWindow _owner )
243 _this.windownew = this;
244 this.el = new Gtk.Button();
248 // set gobject values
249 this.el.always_show_image = true;
250 this.el.label = "New Window";
251 var child_0 = new Xcls_Image5( _this );
253 this.el.set_image ( child_0.el );
256 this.el.clicked.connect( ( ) => {
257 _this.openNewWindow();
263 // user defined functions
265 public class Xcls_Image5 : Object
268 private Xcls_MainWindow _this;
274 public Xcls_Image5(Xcls_MainWindow _owner )
277 this.el = new Gtk.Image();
281 // set gobject values
282 this.el.icon_name = "window-new";
285 // user defined functions
289 public class Xcls_open_projects_btn : Object
291 public Gtk.Button el;
292 private Xcls_MainWindow _this;
298 public Xcls_open_projects_btn(Xcls_MainWindow _owner )
301 _this.open_projects_btn = this;
302 this.el = new Gtk.Button();
306 // set gobject values
307 this.el.always_show_image = true;
308 this.el.label = "Files / Projects";
309 var child_0 = new Xcls_Image7( _this );
311 this.el.set_image ( child_0.el );
314 this.el.clicked.connect( ( ) => {
315 _this.windowstate.showPopoverFiles(this.el, _this.project);
320 // user defined functions
322 public class Xcls_Image7 : Object
325 private Xcls_MainWindow _this;
331 public Xcls_Image7(Xcls_MainWindow _owner )
334 this.el = new Gtk.Image();
338 // set gobject values
339 this.el.icon_name = "system-file-manager";
342 // user defined functions
348 public class Xcls_vbox : Object
351 private Xcls_MainWindow _this;
357 public Xcls_vbox(Xcls_MainWindow _owner )
361 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
365 // set gobject values
366 this.el.homogeneous = false;
367 var child_0 = new Xcls_mainpane( _this );
369 this.el.pack_start ( child_0.el , true,true,0 );
370 var child_1 = new Xcls_Box38( _this );
372 this.el.pack_end ( child_1.el , false,true,0 );
375 // user defined functions
377 public class Xcls_mainpane : Object
380 private Xcls_MainWindow _this;
384 public int lastWidth;
387 public Xcls_mainpane(Xcls_MainWindow _owner )
390 _this.mainpane = this;
391 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
396 // set gobject values
397 this.el.position = 400;
398 var child_0 = new Xcls_leftpane( _this );
400 this.el.add1 ( child_0.el );
401 var child_1 = new Xcls_Box14( _this );
403 this.el.add2 ( child_1.el );
406 // user defined functions
408 public class Xcls_leftpane : Object
411 private Xcls_MainWindow _this;
417 public Xcls_leftpane(Xcls_MainWindow _owner )
420 _this.leftpane = this;
421 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
425 // set gobject values
426 var child_0 = new Xcls_editpane( _this );
428 this.el.pack_start ( child_0.el , true,true,0 );
431 // user defined functions
433 public class Xcls_editpane : Object
436 private Xcls_MainWindow _this;
442 public Xcls_editpane(Xcls_MainWindow _owner )
445 _this.editpane = this;
446 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
450 // set gobject values
451 var child_0 = new Xcls_tree( _this );
453 this.el.add1 ( child_0.el );
454 var child_1 = new Xcls_props( _this );
456 this.el.add2 ( child_1.el );
459 // user defined functions
461 public class Xcls_tree : Object
464 private Xcls_MainWindow _this;
470 public Xcls_tree(Xcls_MainWindow _owner )
474 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
478 // set gobject values
481 // user defined functions
484 public class Xcls_props : Object
487 private Xcls_MainWindow _this;
493 public Xcls_props(Xcls_MainWindow _owner )
497 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
501 // set gobject values
504 // user defined functions
509 public class Xcls_Box14 : Object
512 private Xcls_MainWindow _this;
518 public Xcls_Box14(Xcls_MainWindow _owner )
521 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
525 // set gobject values
526 var child_0 = new Xcls_clutterembed( _this );
528 this.el.pack_start ( child_0.el , true,true,0 );
531 // user defined functions
533 public class Xcls_clutterembed : Object
535 public GtkClutter.Embed el;
536 private Xcls_MainWindow _this;
542 public Xcls_clutterembed(Xcls_MainWindow _owner )
545 _this.clutterembed = this;
546 this.el = new GtkClutter.Embed();
550 // set gobject values
551 var child_0 = new Xcls_rooview( _this );
553 this.el.get_stage().add_child ( child_0.el );
554 var child_1 = new Xcls_objectview( _this );
556 this.el.get_stage().add_child ( child_1.el );
557 var child_2 = new Xcls_codeeditview( _this );
559 this.el.get_stage().add_child ( child_2.el );
560 var child_3 = new Xcls_addpropsview( _this );
562 this.el.get_stage().add_child ( child_3.el );
563 var child_4 = new Xcls_buttonlayout( _this );
565 this.el.get_stage().add_child ( child_4.el );
569 var stage = this.el.get_stage();
570 stage.set_background_color( Clutter.Color.from_string("#000"));
573 this.el.size_allocate.connect( ( alloc) => {
574 if (_this.windowstate == null) {
577 _this.windowstate.resizeCanvas();
582 // user defined functions
584 public class Xcls_rooview : Object
586 public GtkClutter.Actor el;
587 private Xcls_MainWindow _this;
593 public Xcls_rooview(Xcls_MainWindow _owner )
596 _this.rooview = this;
597 this.el = new GtkClutter.Actor();
601 // set gobject values
608 this.el.add_constraint(
609 new Clutter.AlignConstraint(
610 _this.clutterembed.el.get_stage(),
611 Clutter.AlignAxis.X_AXIS,
616 //this.el.set_position(100,100);
617 this.el.set_pivot_point(1.0f,1.0f);
619 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
620 _this.clutterembed.el.get_stage().height);
625 // user defined functions
628 public class Xcls_objectview : Object
630 public GtkClutter.Actor el;
631 private Xcls_MainWindow _this;
637 public Xcls_objectview(Xcls_MainWindow _owner )
640 _this.objectview = this;
641 this.el = new GtkClutter.Actor();
645 // set gobject values
652 this.el.add_constraint(
653 new Clutter.AlignConstraint(
654 _this.clutterembed.el.get_stage(),
655 Clutter.AlignAxis.X_AXIS,
660 this.el.fixed_x = 50.0f;
661 this.el.fixed_y = 0.0f;
662 //this.el.set_position(100,100);
663 this.el.set_pivot_point(0.0f,0.0f);
664 this.el.set_scale(0.0f,1.0f);
665 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
666 _this.clutterembed.el.get_stage().height);
671 // user defined functions
674 public class Xcls_codeeditview : Object
676 public GtkClutter.Actor el;
677 private Xcls_MainWindow _this;
683 public Xcls_codeeditview(Xcls_MainWindow _owner )
686 _this.codeeditview = this;
687 this.el = new GtkClutter.Actor();
691 // set gobject values
698 this.el.add_constraint(
699 new Clutter.AlignConstraint(
700 _this.clutterembed.el.get_stage(),
701 Clutter.AlignAxis.X_AXIS,
706 this.el.fixed_x = 50.0f;
707 this.el.fixed_y = 0.0f;
708 //this.el.set_position(100,100);
709 this.el.set_pivot_point(0.0f,0.0f);
710 this.el.set_scale(0.0f,1.0f);
711 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
712 _this.clutterembed.el.get_stage().height);
717 // user defined functions
720 public class Xcls_addpropsview : Object
722 public GtkClutter.Actor el;
723 private Xcls_MainWindow _this;
729 public Xcls_addpropsview(Xcls_MainWindow _owner )
732 _this.addpropsview = this;
733 this.el = new GtkClutter.Actor();
737 // set gobject values
744 this.el.add_constraint(
745 new Clutter.AlignConstraint(
746 _this.clutterembed.el.get_stage(),
747 Clutter.AlignAxis.X_AXIS,
752 this.el.fixed_x = 50.0f;
753 this.el.fixed_y = 0.0f;
754 //this.el.set_position(100,100);
755 this.el.set_pivot_point(0.0f,0.0f);
756 this.el.set_scale(0.0f,1.0f);
757 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
758 _this.clutterembed.el.get_stage().height);
763 // user defined functions
766 public class Xcls_buttonlayout : Object
768 public Clutter.Actor el;
769 private Xcls_MainWindow _this;
775 public Xcls_buttonlayout(Xcls_MainWindow _owner )
778 _this.buttonlayout = this;
779 this.el = new Clutter.Actor();
783 // set gobject values
784 var child_0 = new Xcls_BoxLayout21( _this );
786 this.el.layout_manager = child_0.el;
787 var child_1 = new Xcls_backbutton( _this );
789 this.el.add_child ( child_1.el );
790 var child_2 = new Xcls_objectshowbutton( _this );
792 this.el.add_child ( child_2.el );
793 var child_3 = new Xcls_addpropbutton( _this );
795 this.el.add_child ( child_3.el );
796 var child_4 = new Xcls_addlistenerbutton( _this );
798 this.el.add_child ( child_4.el );
804 this.el.add_constraint(
805 new Clutter.AlignConstraint(
806 _this.clutterembed.el.get_stage(),
807 Clutter.AlignAxis.X_AXIS,
813 //this.el.set_position(100,100);
814 this.el.set_pivot_point(0.5f,0.5f);
816 _this.clutterembed.el.get_stage().height);
821 // user defined functions
823 public class Xcls_BoxLayout21 : Object
825 public Clutter.BoxLayout el;
826 private Xcls_MainWindow _this;
832 public Xcls_BoxLayout21(Xcls_MainWindow _owner )
835 this.el = new Clutter.BoxLayout();
839 // set gobject values
840 this.el.orientation = Clutter.Orientation.VERTICAL;
843 // user defined functions
846 public class Xcls_backbutton : Object
848 public Clutter.Actor el;
849 private Xcls_MainWindow _this;
855 public Xcls_backbutton(Xcls_MainWindow _owner )
858 _this.backbutton = this;
859 this.el = new Clutter.Actor();
863 // set gobject values
864 var child_0 = new Xcls_Actor23( _this );
866 this.el.add_child ( child_0.el );
870 this.el.set_size(50,50);
873 // user defined functions
875 public class Xcls_Actor23 : Object
877 public GtkClutter.Actor el;
878 private Xcls_MainWindow _this;
884 public Xcls_Actor23(Xcls_MainWindow _owner )
887 this.el = new GtkClutter.Actor();
891 // set gobject values
892 var child_0 = new Xcls_Button24( _this );
897 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
900 // user defined functions
902 public class Xcls_Button24 : Object
904 public Gtk.Button el;
905 private Xcls_MainWindow _this;
911 public Xcls_Button24(Xcls_MainWindow _owner )
914 this.el = new Gtk.Button();
918 // set gobject values
919 this.el.width_request = 50;
920 this.el.height_request = 50;
921 this.el.tooltip_text = "Back";
922 var child_0 = new Xcls_Image25( _this );
924 this.el.set_image ( child_0.el );
927 this.el.clicked.connect( ( ) => {
928 // if (_this.windowstate.state == WindowState.State.FILEPROJECT) {
930 // _this.windowstate.switchState(WindowState.State.FILES);
932 _this.windowstate.switchState(WindowState.State.PREVIEW);
939 // user defined functions
941 public class Xcls_Image25 : Object
944 private Xcls_MainWindow _this;
950 public Xcls_Image25(Xcls_MainWindow _owner )
953 this.el = new Gtk.Image();
957 // set gobject values
958 this.el.icon_name = "go-previous";
961 // user defined functions
967 public class Xcls_objectshowbutton : Object
969 public Clutter.Actor el;
970 private Xcls_MainWindow _this;
976 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
979 _this.objectshowbutton = this;
980 this.el = new Clutter.Actor();
984 // set gobject values
985 var child_0 = new Xcls_Actor27( _this );
987 this.el.add_child ( child_0.el );
991 this.el.set_size(50,50);
994 this.el.enter_event.connect( ( event) => {
995 this.el.background_color = Clutter.Color.from_string("#333");
998 this.el.leave_event.connect( ( event) => {
999 this.el.background_color = Clutter.Color.from_string("#000");
1004 // user defined functions
1006 public class Xcls_Actor27 : Object
1008 public GtkClutter.Actor el;
1009 private Xcls_MainWindow _this;
1015 public Xcls_Actor27(Xcls_MainWindow _owner )
1018 this.el = new GtkClutter.Actor();
1022 // set gobject values
1023 var child_0 = new Xcls_Button28( _this );
1028 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1031 // user defined functions
1033 public class Xcls_Button28 : Object
1035 public Gtk.Button el;
1036 private Xcls_MainWindow _this;
1042 public Xcls_Button28(Xcls_MainWindow _owner )
1045 this.el = new Gtk.Button();
1049 // set gobject values
1050 this.el.width_request = 50;
1051 this.el.height_request = 50;
1052 this.el.tooltip_text = "Add Child Element";
1053 var child_0 = new Xcls_Image29( _this );
1055 this.el.set_image ( child_0.el );
1058 this.el.clicked.connect( ( ) => {
1061 _this.windowstate.showAddObject(this.el);
1066 // user defined functions
1068 public class Xcls_Image29 : Object
1070 public Gtk.Image el;
1071 private Xcls_MainWindow _this;
1077 public Xcls_Image29(Xcls_MainWindow _owner )
1080 this.el = new Gtk.Image();
1084 // set gobject values
1085 this.el.icon_name = "list-add";
1088 // user defined functions
1094 public class Xcls_addpropbutton : Object
1096 public Clutter.Actor el;
1097 private Xcls_MainWindow _this;
1103 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1106 _this.addpropbutton = this;
1107 this.el = new Clutter.Actor();
1111 // set gobject values
1112 var child_0 = new Xcls_Actor31( _this );
1114 this.el.add_child ( child_0.el );
1118 this.el.set_size(50,50);
1121 // user defined functions
1123 public class Xcls_Actor31 : Object
1125 public GtkClutter.Actor el;
1126 private Xcls_MainWindow _this;
1132 public Xcls_Actor31(Xcls_MainWindow _owner )
1135 this.el = new GtkClutter.Actor();
1139 // set gobject values
1140 var child_0 = new Xcls_Button32( _this );
1145 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1148 // user defined functions
1150 public class Xcls_Button32 : Object
1152 public Gtk.Button el;
1153 private Xcls_MainWindow _this;
1159 public Xcls_Button32(Xcls_MainWindow _owner )
1162 this.el = new Gtk.Button();
1166 // set gobject values
1167 this.el.width_request = 50;
1168 this.el.height_request = 50;
1169 this.el.tooltip_text = "Add Property";
1170 var child_0 = new Xcls_Image33( _this );
1172 this.el.set_image ( child_0.el );
1175 this.el.clicked.connect( ( ) => {
1177 _this.windowstate.showProps(this.el, "props");
1183 // user defined functions
1185 public class Xcls_Image33 : Object
1187 public Gtk.Image el;
1188 private Xcls_MainWindow _this;
1194 public Xcls_Image33(Xcls_MainWindow _owner )
1197 this.el = new Gtk.Image();
1201 // set gobject values
1202 this.el.icon_name = "format-justify-left";
1205 // user defined functions
1211 public class Xcls_addlistenerbutton : Object
1213 public Clutter.Actor el;
1214 private Xcls_MainWindow _this;
1220 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1223 _this.addlistenerbutton = this;
1224 this.el = new Clutter.Actor();
1228 // set gobject values
1229 var child_0 = new Xcls_Actor35( _this );
1231 this.el.add_child ( child_0.el );
1235 this.el.set_size(50,50);
1238 // user defined functions
1240 public class Xcls_Actor35 : Object
1242 public GtkClutter.Actor el;
1243 private Xcls_MainWindow _this;
1249 public Xcls_Actor35(Xcls_MainWindow _owner )
1252 this.el = new GtkClutter.Actor();
1256 // set gobject values
1257 var child_0 = new Xcls_Button36( _this );
1262 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1265 // user defined functions
1267 public class Xcls_Button36 : Object
1269 public Gtk.Button el;
1270 private Xcls_MainWindow _this;
1276 public Xcls_Button36(Xcls_MainWindow _owner )
1279 this.el = new Gtk.Button();
1283 // set gobject values
1284 this.el.width_request = 50;
1285 this.el.height_request = 50;
1286 this.el.tooltip_text = "Add Event Code";
1287 var child_0 = new Xcls_Image37( _this );
1289 this.el.set_image ( child_0.el );
1292 this.el.clicked.connect( ( ) => {
1295 _this.windowstate.showProps(this.el, "signals");
1301 // user defined functions
1303 public class Xcls_Image37 : Object
1305 public Gtk.Image el;
1306 private Xcls_MainWindow _this;
1312 public Xcls_Image37(Xcls_MainWindow _owner )
1315 this.el = new Gtk.Image();
1319 // set gobject values
1320 this.el.icon_name = "appointment-new";
1323 // user defined functions
1333 public class Xcls_Box38 : Object
1336 private Xcls_MainWindow _this;
1342 public Xcls_Box38(Xcls_MainWindow _owner )
1345 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
1349 // set gobject values
1350 this.el.homogeneous = false;
1351 var child_0 = new Xcls_Button39( _this );
1353 this.el.add ( child_0.el );
1354 var child_1 = new Xcls_Button41( _this );
1356 this.el.add ( child_1.el );
1357 var child_2 = new Xcls_MenuButton43( _this );
1359 this.el.add ( child_2.el );
1360 var child_3 = new Xcls_Label48( _this );
1362 this.el.pack_start ( child_3.el , true,true,0 );
1363 var child_4 = new Xcls_statusbar( _this );
1365 this.el.pack_start ( child_4.el , true,true,0 );
1366 var child_5 = new Xcls_search_entry( _this );
1368 this.el.pack_start ( child_5.el , false,true,0 );
1369 var child_6 = new Xcls_MenuBar51( _this );
1371 this.el.add ( child_6.el );
1372 var child_7 = new Xcls_statusbar_compile_spinner( _this );
1374 this.el.add ( child_7.el );
1377 // user defined functions
1379 public class Xcls_Button39 : Object
1381 public Gtk.Button el;
1382 private Xcls_MainWindow _this;
1388 public Xcls_Button39(Xcls_MainWindow _owner )
1391 this.el = new Gtk.Button();
1395 // set gobject values
1396 this.el.width_request = 50;
1397 this.el.height_request = 50;
1398 this.el.always_show_image = true;
1399 this.el.tooltip_text = "Project Details";
1400 this.el.label = "Edit Project Settings";
1401 var child_0 = new Xcls_Image40( _this );
1403 this.el.set_image ( child_0.el );
1406 this.el.clicked.connect( ( ) => {
1408 _this.windowstate.projectPopoverShow(this.el, _this.project);
1414 // user defined functions
1416 public class Xcls_Image40 : Object
1418 public Gtk.Image el;
1419 private Xcls_MainWindow _this;
1425 public Xcls_Image40(Xcls_MainWindow _owner )
1428 this.el = new Gtk.Image();
1432 // set gobject values
1433 this.el.icon_name = "emblem-system";
1436 // user defined functions
1440 public class Xcls_Button41 : Object
1442 public Gtk.Button el;
1443 private Xcls_MainWindow _this;
1449 public Xcls_Button41(Xcls_MainWindow _owner )
1452 this.el = new Gtk.Button();
1456 // set gobject values
1457 this.el.width_request = 50;
1458 this.el.height_request = 50;
1459 this.el.always_show_image = true;
1460 this.el.tooltip_text = "File Details";
1461 this.el.label = "Edit File Properties";
1462 var child_0 = new Xcls_Image42( _this );
1464 this.el.set_image ( child_0.el );
1467 this.el.clicked.connect( ( ) => {
1469 // create a new file in project..
1470 if (_this.project == null || _this.windowstate.file == null) {
1473 _this.windowstate.file_details.show(
1474 _this.windowstate.file, this.el
1483 // user defined functions
1485 public class Xcls_Image42 : Object
1487 public Gtk.Image el;
1488 private Xcls_MainWindow _this;
1494 public Xcls_Image42(Xcls_MainWindow _owner )
1497 this.el = new Gtk.Image();
1501 // set gobject values
1502 this.el.icon_name = "document-properties";
1505 // user defined functions
1509 public class Xcls_MenuButton43 : Object
1511 public Gtk.MenuButton el;
1512 private Xcls_MainWindow _this;
1518 public Xcls_MenuButton43(Xcls_MainWindow _owner )
1521 this.el = new Gtk.MenuButton();
1525 // set gobject values
1526 this.el.always_show_image = true;
1527 this.el.label = "About";
1528 var child_0 = new Xcls_topbarmenu( _this );
1530 this.el.set_popup ( child_0.el );
1531 var child_1 = new Xcls_Image47( _this );
1533 this.el.set_image ( child_1.el );
1536 // user defined functions
1538 public class Xcls_topbarmenu : Object
1541 private Xcls_MainWindow _this;
1547 public Xcls_topbarmenu(Xcls_MainWindow _owner )
1550 _this.topbarmenu = this;
1551 this.el = new Gtk.Menu();
1555 // set gobject values
1556 var child_0 = new Xcls_MenuItem45( _this );
1558 this.el.append ( child_0.el );
1559 var child_1 = new Xcls_MenuItem46( _this );
1561 this.el.append ( child_1.el );
1570 // user defined functions
1572 public class Xcls_MenuItem45 : Object
1574 public Gtk.MenuItem el;
1575 private Xcls_MainWindow _this;
1581 public Xcls_MenuItem45(Xcls_MainWindow _owner )
1584 this.el = new Gtk.MenuItem();
1588 // set gobject values
1589 this.el.label = "Download updated Resources";
1592 this.el.activate.connect( ( ) => {
1593 Resources.singleton().fetchStart();
1597 // user defined functions
1600 public class Xcls_MenuItem46 : Object
1602 public Gtk.MenuItem el;
1603 private Xcls_MainWindow _this;
1609 public Xcls_MenuItem46(Xcls_MainWindow _owner )
1612 this.el = new Gtk.MenuItem();
1616 // set gobject values
1617 this.el.label = "About the Builder";
1620 this.el.activate.connect( () => {
1621 About.singleton().el.show();
1625 // user defined functions
1629 public class Xcls_Image47 : Object
1631 public Gtk.Image el;
1632 private Xcls_MainWindow _this;
1638 public Xcls_Image47(Xcls_MainWindow _owner )
1641 this.el = new Gtk.Image();
1645 // set gobject values
1646 this.el.icon_name = "dialog-information";
1649 // user defined functions
1653 public class Xcls_Label48 : Object
1655 public Gtk.Label el;
1656 private Xcls_MainWindow _this;
1662 public Xcls_Label48(Xcls_MainWindow _owner )
1665 this.el = new Gtk.Label( " " );
1669 // set gobject values
1672 // user defined functions
1675 public class Xcls_statusbar : Object
1677 public Gtk.ProgressBar el;
1678 private Xcls_MainWindow _this;
1682 public ulong handler_id;
1685 public Xcls_statusbar(Xcls_MainWindow _owner )
1688 _this.statusbar = this;
1689 this.el = new Gtk.ProgressBar();
1692 this.handler_id = -1;
1694 // set gobject values
1695 this.el.show_text = true;
1700 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
1703 _this.mainpane.el.set_sensitive(true);
1707 _this.mainpane.el.set_sensitive(false);
1709 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
1710 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
1716 // user defined functions
1719 public class Xcls_search_entry : Object
1721 public Gtk.SearchEntry el;
1722 private Xcls_MainWindow _this;
1728 public Xcls_search_entry(Xcls_MainWindow _owner )
1731 _this.search_entry = this;
1732 this.el = new Gtk.SearchEntry();
1736 // set gobject values
1740 var description = Pango.FontDescription.from_string("monospace");
1741 description.set_size(8000);
1742 this.el.override_font(description);
1745 this.el.key_press_event.connect( (event) => {
1747 if (event.keyval == Gdk.Key.Return) {
1748 this.forwardSearch(false);
1752 // print(event.key.keyval)
1757 this.el.changed.connect( () => {
1758 if (this.el.text == "") {
1759 _this.search_results.el.hide();
1763 switch(_this.windowstate.state) {
1764 case WindowState.State.CODEONLY:
1765 ///case WindowState.State.CODE:
1766 // search the code being edited..
1767 res = _this.windowstate.code_editor_tab.search(this.el.text);
1770 case WindowState.State.PREVIEW:
1771 if (_this.windowstate.file.xtype == "Gtk") {
1772 res = _this.windowstate.window_gladeview.search(this.el.text);
1774 res = _this.windowstate.window_rooview.search(this.el.text);
1780 _this.search_results.el.show();
1782 _this.search_results.el.label = "%d Matches".printf(res);
1784 _this.search_results.el.label = "No Matches";
1792 // user defined functions
1793 public void forwardSearch (bool change_focus) {
1794 switch(_this.windowstate.state) {
1795 case WindowState.State.CODEONLY:
1796 //case WindowState.State.CODE:
1797 // search the code being edited..
1798 _this.windowstate.code_editor_tab.forwardSearch(change_focus);
1801 case WindowState.State.PREVIEW:
1802 if (_this.windowstate.file.xtype == "Gtk") {
1803 _this.windowstate.window_gladeview.forwardSearch(change_focus);
1805 _this.windowstate.window_rooview.forwardSearch(change_focus);
1814 public class Xcls_MenuBar51 : Object
1816 public Gtk.MenuBar el;
1817 private Xcls_MainWindow _this;
1823 public Xcls_MenuBar51(Xcls_MainWindow _owner )
1826 this.el = new Gtk.MenuBar();
1830 // set gobject values
1831 this.el.tooltip_text = "Update Resources / About Roobuilder";
1832 var child_0 = new Xcls_search_results( _this );
1834 this.el.add ( child_0.el );
1835 var child_1 = new Xcls_statusbar_compilestatus_label( _this );
1837 this.el.add ( child_1.el );
1838 var child_2 = new Xcls_statusbar_errors( _this );
1840 this.el.add ( child_2.el );
1841 var child_3 = new Xcls_statusbar_warnings( _this );
1843 this.el.add ( child_3.el );
1844 var child_4 = new Xcls_statusbar_depricated( _this );
1846 this.el.add ( child_4.el );
1847 var child_5 = new Xcls_statusbar_run( _this );
1849 this.el.add ( child_5.el );
1852 // user defined functions
1854 public class Xcls_search_results : Object
1856 public Gtk.ImageMenuItem el;
1857 private Xcls_MainWindow _this;
1861 public Xcls_ValaCompileErrors popup;
1864 public Xcls_search_results(Xcls_MainWindow _owner )
1867 _this.search_results = this;
1868 this.el = new Gtk.ImageMenuItem();
1872 // set gobject values
1873 this.el.always_show_image = true;
1874 this.el.label = "Matches";
1875 var child_0 = new Xcls_Image53( _this );
1877 this.el.set_image ( child_0.el );
1880 this.el.button_press_event.connect( () => {
1882 if (this.popup == null) {
1883 this.popup = new Xcls_ValaCompileErrors();
1884 this.popup.window = _this;
1888 this.popup.show(this.notices, this.el);
1894 // user defined functions
1896 public class Xcls_Image53 : Object
1898 public Gtk.Image el;
1899 private Xcls_MainWindow _this;
1905 public Xcls_Image53(Xcls_MainWindow _owner )
1908 this.el = new Gtk.Image();
1912 // set gobject values
1913 this.el.icon_name = "system-search";
1914 this.el.sensitive = false;
1917 // user defined functions
1921 public class Xcls_statusbar_compilestatus_label : Object
1923 public Gtk.MenuItem el;
1924 private Xcls_MainWindow _this;
1930 public Xcls_statusbar_compilestatus_label(Xcls_MainWindow _owner )
1933 _this.statusbar_compilestatus_label = this;
1934 this.el = new Gtk.MenuItem();
1938 // set gobject values
1939 this.el.label = "Compile Status:";
1942 // user defined functions
1945 public class Xcls_statusbar_errors : Object
1947 public Gtk.ImageMenuItem el;
1948 private Xcls_MainWindow _this;
1952 public Xcls_ValaCompileErrors popup;
1953 public Json.Object notices;
1956 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
1959 _this.statusbar_errors = this;
1960 this.el = new Gtk.ImageMenuItem();
1963 this.notices = new Json.Object() ;
1965 // set gobject values
1966 this.el.always_show_image = true;
1967 this.el.label = "Errors";
1968 var child_0 = new Xcls_Image56( _this );
1970 this.el.set_image ( child_0.el );
1973 this.el.button_press_event.connect( () => {
1974 if (this.popup == null) {
1975 this.popup = new Xcls_ValaCompileErrors();
1976 this.popup.window = _this;
1980 this.popup.show(this.notices, this.el);
1985 // user defined functions
1986 public void setNotices (Json.Object nots, int qty) {
1988 this.el.label = qty.to_string() + " Errors";
1989 this.notices = nots;
1993 public class Xcls_Image56 : Object
1995 public Gtk.Image el;
1996 private Xcls_MainWindow _this;
2002 public Xcls_Image56(Xcls_MainWindow _owner )
2005 this.el = new Gtk.Image();
2009 // set gobject values
2010 this.el.icon_name = "dialog-error";
2013 // user defined functions
2017 public class Xcls_statusbar_warnings : Object
2019 public Gtk.ImageMenuItem el;
2020 private Xcls_MainWindow _this;
2024 public Xcls_ValaCompileErrors popup;
2025 public Json.Object notices;
2028 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2031 _this.statusbar_warnings = this;
2032 this.el = new Gtk.ImageMenuItem();
2035 this.notices = new Json.Object();
2037 // set gobject values
2038 this.el.always_show_image = true;
2039 this.el.label = "Warnings";
2040 var child_0 = new Xcls_Image58( _this );
2042 this.el.set_image ( child_0.el );
2045 this.el.button_press_event.connect( () => {
2046 if (this.popup == null) {
2047 this.popup = new Xcls_ValaCompileErrors();
2048 this.popup.window = _this;
2051 this.popup.show(this.notices, this.el);
2056 // user defined functions
2057 public void setNotices (Json.Object nots, int qty) {
2059 this.el.label = qty.to_string() + " Warnings";
2060 this.notices = nots;
2064 public class Xcls_Image58 : Object
2066 public Gtk.Image el;
2067 private Xcls_MainWindow _this;
2073 public Xcls_Image58(Xcls_MainWindow _owner )
2076 this.el = new Gtk.Image();
2080 // set gobject values
2081 this.el.icon_name = "dialog-warning";
2084 // user defined functions
2088 public class Xcls_statusbar_depricated : Object
2090 public Gtk.ImageMenuItem el;
2091 private Xcls_MainWindow _this;
2095 public Xcls_ValaCompileErrors popup;
2096 public Json.Object notices;
2099 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2102 _this.statusbar_depricated = this;
2103 this.el = new Gtk.ImageMenuItem();
2106 this.notices = new Json.Object();
2108 // set gobject values
2109 this.el.always_show_image = true;
2110 this.el.label = "Depricated";
2111 var child_0 = new Xcls_Image60( _this );
2113 this.el.set_image ( child_0.el );
2116 this.el.button_press_event.connect( () => {
2117 if (this.popup == null) {
2118 this.popup = new Xcls_ValaCompileErrors();
2119 this.popup.window = _this;
2123 this.popup.show(this.notices, this.el);
2128 // user defined functions
2129 public void setNotices (Json.Object nots, int qty) {
2131 this.el.label = qty.to_string() + " Depricated";
2132 this.notices = nots;
2136 public class Xcls_Image60 : Object
2138 public Gtk.Image el;
2139 private Xcls_MainWindow _this;
2145 public Xcls_Image60(Xcls_MainWindow _owner )
2148 this.el = new Gtk.Image();
2152 // set gobject values
2153 this.el.icon_name = "dialog-information";
2156 // user defined functions
2160 public class Xcls_statusbar_run : Object
2162 public Gtk.ImageMenuItem el;
2163 private Xcls_MainWindow _this;
2167 public Xcls_ValaCompileErrors popup;
2170 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2173 _this.statusbar_run = this;
2174 this.el = new Gtk.ImageMenuItem();
2178 // set gobject values
2179 this.el.always_show_image = true;
2180 this.el.label = "Run";
2181 var child_0 = new Xcls_Image62( _this );
2183 this.el.set_image ( child_0.el );
2186 this.el.button_press_event.connect( () => {
2187 if (_this.windowstate.file == null) {
2190 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2192 _this.windowstate.compile_results.show(this.el,true);
2198 // user defined functions
2200 public class Xcls_Image62 : Object
2202 public Gtk.Image el;
2203 private Xcls_MainWindow _this;
2209 public Xcls_Image62(Xcls_MainWindow _owner )
2212 this.el = new Gtk.Image();
2216 // set gobject values
2217 this.el.icon_name = "media-playback-start";
2220 // user defined functions
2225 public class Xcls_statusbar_compile_spinner : Object
2227 public Gtk.Spinner el;
2228 private Xcls_MainWindow _this;
2234 public Xcls_statusbar_compile_spinner(Xcls_MainWindow _owner )
2237 _this.statusbar_compile_spinner = this;
2238 this.el = new Gtk.Spinner();
2242 // set gobject values
2243 this.el.tooltip_text = "Compiling";
2246 // user defined functions
2247 public void stop () {
2251 public void start () {