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_errors statusbar_errors;
44 public Xcls_statusbar_warnings statusbar_warnings;
45 public Xcls_statusbar_depricated statusbar_depricated;
46 public Xcls_statusbar_run statusbar_run;
49 public Project.Project project;
51 public int no_windows;
52 public WindowState windowstate;
55 public Xcls_MainWindow()
58 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
62 this.title = "Application Builder";
64 this.windowstate = null;
67 this.el.border_width = 0;
68 this.el.default_height = 500;
69 this.el.default_width = 800;
70 var child_0 = new Xcls_headerbar( _this );
72 this.el.set_titlebar ( child_0.el );
73 var child_1 = new Xcls_vbox( _this );
75 this.el.add ( child_1.el );
82 this.el.delete_event.connect( ( event) => {
85 this.el.destroy.connect( () => {
86 Xcls_MainWindow.singleton().no_windows--;
88 Resources.singleton().disconnect(_this.statusbar.handler_id);
91 if (Xcls_MainWindow.singleton().no_windows < 1) {
96 this.el.show.connect( ( ) => {
97 // hide the file editing..
99 //this.hideViewEditing();
100 _this.statusbar.el.hide();
101 _this.statusbar_errors.el.hide();
102 _this.statusbar_warnings.el.hide();
103 _this.statusbar_depricated.el.hide();
106 Resources.singleton().checkResources();
109 this.el.key_release_event.connect( (event) => {
111 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
112 print("SAVE: ctrl-f pressed");
113 this.search_entry.el.grab_focus();
117 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
118 print("SAVE: ctrl-g pressed");
119 //this.search_entry.el.grab_focus();
123 // print(event.key.keyval)
130 // user defined functions
131 public void initChildren () {
132 // this needs putting in a better place..
133 this.windowstate = new WindowState(this);
137 var tl = new Clutter.Timeline(6000);
138 tl.set_repeat_count(-1);
147 public void show () {
152 public void setTitle (string str) {
153 this.headerbar.el.set_title(this.title + " - " + str);
155 public class Xcls_headerbar : Object
157 public Gtk.HeaderBar el;
158 private Xcls_MainWindow _this;
164 public Xcls_headerbar(Xcls_MainWindow _owner )
167 _this.headerbar = this;
168 this.el = new Gtk.HeaderBar();
172 // set gobject values
173 this.el.title = "Application Builder";
174 this.el.show_close_button = true;
175 var child_0 = new Xcls_Box3( _this );
177 this.el.pack_start ( child_0.el );
180 // user defined functions
182 public class Xcls_Box3 : Object
185 private Xcls_MainWindow _this;
191 public Xcls_Box3(Xcls_MainWindow _owner )
194 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
198 // set gobject values
199 var child_0 = new Xcls_MenuButton4( _this );
201 this.el.add ( child_0.el );
204 // user defined functions
206 public class Xcls_MenuButton4 : Object
208 public Gtk.MenuButton el;
209 private Xcls_MainWindow _this;
215 public Xcls_MenuButton4(Xcls_MainWindow _owner )
218 this.el = new Gtk.MenuButton();
222 // set gobject values
223 this.el.use_popover = false;
224 var child_0 = new Xcls_topbarmenu( _this );
226 this.el.set_popup ( child_0.el );
227 var child_1 = new Xcls_Image10( _this );
229 this.el.set_image ( child_1.el );
232 // user defined functions
234 public class Xcls_topbarmenu : Object
237 private Xcls_MainWindow _this;
243 public Xcls_topbarmenu(Xcls_MainWindow _owner )
246 _this.topbarmenu = this;
247 this.el = new Gtk.Menu();
251 // set gobject values
252 var child_0 = new Xcls_MenuItem6( _this );
254 this.el.append ( child_0.el );
255 var child_1 = new Xcls_SeparatorMenuItem7( _this );
257 this.el.append ( child_1.el );
258 var child_2 = new Xcls_MenuItem8( _this );
260 this.el.append ( child_2.el );
261 var child_3 = new Xcls_MenuItem9( _this );
263 this.el.append ( child_3.el );
272 // user defined functions
274 public class Xcls_MenuItem6 : Object
276 public Gtk.MenuItem el;
277 private Xcls_MainWindow _this;
283 public Xcls_MenuItem6(Xcls_MainWindow _owner )
286 this.el = new Gtk.MenuItem();
290 // set gobject values
291 this.el.label = "Open a new Window";
294 this.el.activate.connect( ( ) => {
295 Xcls_MainWindow.singleton().no_windows++;
296 var w = new Xcls_MainWindow();
301 w.windowstate.switchState(WindowState.State.FILES);
305 // user defined functions
308 public class Xcls_SeparatorMenuItem7 : Object
310 public Gtk.SeparatorMenuItem el;
311 private Xcls_MainWindow _this;
317 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
320 this.el = new Gtk.SeparatorMenuItem();
324 // set gobject values
327 // user defined functions
330 public class Xcls_MenuItem8 : Object
332 public Gtk.MenuItem el;
333 private Xcls_MainWindow _this;
339 public Xcls_MenuItem8(Xcls_MainWindow _owner )
342 this.el = new Gtk.MenuItem();
346 // set gobject values
347 this.el.label = "Download updated Resources";
350 this.el.activate.connect( ( ) => {
351 Resources.singleton().fetchStart();
355 // user defined functions
358 public class Xcls_MenuItem9 : Object
360 public Gtk.MenuItem el;
361 private Xcls_MainWindow _this;
367 public Xcls_MenuItem9(Xcls_MainWindow _owner )
370 this.el = new Gtk.MenuItem();
374 // set gobject values
375 this.el.label = "About the Builder";
378 this.el.activate.connect( () => {
379 About.singleton().el.show();
383 // user defined functions
387 public class Xcls_Image10 : Object
390 private Xcls_MainWindow _this;
396 public Xcls_Image10(Xcls_MainWindow _owner )
399 this.el = new Gtk.Image();
403 // set gobject values
404 this.el.icon_name = "help-about";
407 // user defined functions
413 public class Xcls_vbox : Object
416 private Xcls_MainWindow _this;
422 public Xcls_vbox(Xcls_MainWindow _owner )
426 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
430 // set gobject values
431 this.el.homogeneous = false;
432 var child_0 = new Xcls_mainpane( _this );
434 this.el.pack_start ( child_0.el , true,true,0 );
435 var child_1 = new Xcls_Box66( _this );
437 this.el.pack_end ( child_1.el , false,true,0 );
440 // user defined functions
442 public class Xcls_mainpane : Object
445 private Xcls_MainWindow _this;
449 public int lastWidth;
452 public Xcls_mainpane(Xcls_MainWindow _owner )
455 _this.mainpane = this;
456 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
461 // set gobject values
462 this.el.position = 400;
463 var child_0 = new Xcls_leftpane( _this );
465 this.el.add1 ( child_0.el );
466 var child_1 = new Xcls_Box17( _this );
468 this.el.add2 ( child_1.el );
471 // user defined functions
473 public class Xcls_leftpane : Object
476 private Xcls_MainWindow _this;
482 public Xcls_leftpane(Xcls_MainWindow _owner )
485 _this.leftpane = this;
486 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
490 // set gobject values
491 var child_0 = new Xcls_editpane( _this );
493 this.el.pack_start ( child_0.el , true,true,0 );
496 // user defined functions
498 public class Xcls_editpane : Object
501 private Xcls_MainWindow _this;
507 public Xcls_editpane(Xcls_MainWindow _owner )
510 _this.editpane = this;
511 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
515 // set gobject values
516 var child_0 = new Xcls_tree( _this );
518 this.el.add1 ( child_0.el );
519 var child_1 = new Xcls_props( _this );
521 this.el.add2 ( child_1.el );
524 // user defined functions
526 public class Xcls_tree : Object
529 private Xcls_MainWindow _this;
535 public Xcls_tree(Xcls_MainWindow _owner )
539 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
543 // set gobject values
546 // user defined functions
549 public class Xcls_props : Object
552 private Xcls_MainWindow _this;
558 public Xcls_props(Xcls_MainWindow _owner )
562 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
566 // set gobject values
569 // user defined functions
574 public class Xcls_Box17 : Object
577 private Xcls_MainWindow _this;
583 public Xcls_Box17(Xcls_MainWindow _owner )
586 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
590 // set gobject values
591 var child_0 = new Xcls_clutterembed( _this );
593 this.el.pack_start ( child_0.el , true,true,0 );
596 // user defined functions
598 public class Xcls_clutterembed : Object
600 public GtkClutter.Embed el;
601 private Xcls_MainWindow _this;
607 public Xcls_clutterembed(Xcls_MainWindow _owner )
610 _this.clutterembed = this;
611 this.el = new GtkClutter.Embed();
615 // set gobject values
616 var child_0 = new Xcls_rooview( _this );
618 this.el.get_stage().add_child ( child_0.el );
619 var child_1 = new Xcls_objectview( _this );
621 this.el.get_stage().add_child ( child_1.el );
622 var child_2 = new Xcls_codeeditview( _this );
624 this.el.get_stage().add_child ( child_2.el );
625 var child_3 = new Xcls_addpropsview( _this );
627 this.el.get_stage().add_child ( child_3.el );
628 var child_4 = new Xcls_projecteditview( _this );
630 this.el.get_stage().add_child ( child_4.el );
631 var child_5 = new Xcls_buttonlayout( _this );
633 this.el.get_stage().add_child ( child_5.el );
637 var stage = this.el.get_stage();
638 stage.set_background_color( Clutter.Color.from_string("#000"));
641 this.el.size_allocate.connect( ( alloc) => {
642 if (_this.windowstate == null) {
645 _this.windowstate.resizeCanvas();
650 // user defined functions
652 public class Xcls_rooview : Object
654 public GtkClutter.Actor el;
655 private Xcls_MainWindow _this;
661 public Xcls_rooview(Xcls_MainWindow _owner )
664 _this.rooview = this;
665 this.el = new GtkClutter.Actor();
669 // set gobject values
676 this.el.add_constraint(
677 new Clutter.AlignConstraint(
678 _this.clutterembed.el.get_stage(),
679 Clutter.AlignAxis.X_AXIS,
684 //this.el.set_position(100,100);
685 this.el.set_pivot_point(1.0f,1.0f);
687 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
688 _this.clutterembed.el.get_stage().height);
693 // user defined functions
696 public class Xcls_objectview : Object
698 public GtkClutter.Actor el;
699 private Xcls_MainWindow _this;
705 public Xcls_objectview(Xcls_MainWindow _owner )
708 _this.objectview = this;
709 this.el = new GtkClutter.Actor();
713 // set gobject values
720 this.el.add_constraint(
721 new Clutter.AlignConstraint(
722 _this.clutterembed.el.get_stage(),
723 Clutter.AlignAxis.X_AXIS,
728 this.el.fixed_x = 50.0f;
729 this.el.fixed_y = 0.0f;
730 //this.el.set_position(100,100);
731 this.el.set_pivot_point(0.0f,0.0f);
732 this.el.set_scale(0.0f,1.0f);
733 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
734 _this.clutterembed.el.get_stage().height);
739 // user defined functions
742 public class Xcls_codeeditview : Object
744 public GtkClutter.Actor el;
745 private Xcls_MainWindow _this;
751 public Xcls_codeeditview(Xcls_MainWindow _owner )
754 _this.codeeditview = this;
755 this.el = new GtkClutter.Actor();
759 // set gobject values
766 this.el.add_constraint(
767 new Clutter.AlignConstraint(
768 _this.clutterembed.el.get_stage(),
769 Clutter.AlignAxis.X_AXIS,
774 this.el.fixed_x = 50.0f;
775 this.el.fixed_y = 0.0f;
776 //this.el.set_position(100,100);
777 this.el.set_pivot_point(0.0f,0.0f);
778 this.el.set_scale(0.0f,1.0f);
779 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
780 _this.clutterembed.el.get_stage().height);
785 // user defined functions
788 public class Xcls_addpropsview : Object
790 public GtkClutter.Actor el;
791 private Xcls_MainWindow _this;
797 public Xcls_addpropsview(Xcls_MainWindow _owner )
800 _this.addpropsview = this;
801 this.el = new GtkClutter.Actor();
805 // set gobject values
812 this.el.add_constraint(
813 new Clutter.AlignConstraint(
814 _this.clutterembed.el.get_stage(),
815 Clutter.AlignAxis.X_AXIS,
820 this.el.fixed_x = 50.0f;
821 this.el.fixed_y = 0.0f;
822 //this.el.set_position(100,100);
823 this.el.set_pivot_point(0.0f,0.0f);
824 this.el.set_scale(0.0f,1.0f);
825 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
826 _this.clutterembed.el.get_stage().height);
831 // user defined functions
834 public class Xcls_projecteditview : Object
836 public GtkClutter.Actor el;
837 private Xcls_MainWindow _this;
843 public Xcls_projecteditview(Xcls_MainWindow _owner )
846 _this.projecteditview = this;
847 this.el = new GtkClutter.Actor();
851 // set gobject values
858 this.el.add_constraint(
859 new Clutter.AlignConstraint(
860 _this.clutterembed.el.get_stage(),
861 Clutter.AlignAxis.X_AXIS,
866 //this.el.set_position(100,100);
867 this.el.set_pivot_point(0.0f,0.0f);
868 this.el.set_scale(1.0f,0.0f);
869 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
870 _this.clutterembed.el.get_stage().height /2);
875 // user defined functions
878 public class Xcls_buttonlayout : Object
880 public Clutter.Actor el;
881 private Xcls_MainWindow _this;
887 public Xcls_buttonlayout(Xcls_MainWindow _owner )
890 _this.buttonlayout = this;
891 this.el = new Clutter.Actor();
895 // set gobject values
896 var child_0 = new Xcls_BoxLayout25( _this );
898 this.el.layout_manager = child_0.el;
899 var child_1 = new Xcls_backbutton( _this );
901 this.el.add_child ( child_1.el );
902 var child_2 = new Xcls_projectbutton( _this );
904 this.el.add_child ( child_2.el );
905 var child_3 = new Xcls_editfilebutton( _this );
907 this.el.add_child ( child_3.el );
908 var child_4 = new Xcls_projecteditbutton( _this );
910 this.el.add_child ( child_4.el );
911 var child_5 = new Xcls_objectshowbutton( _this );
913 this.el.add_child ( child_5.el );
914 var child_6 = new Xcls_addpropbutton( _this );
916 this.el.add_child ( child_6.el );
917 var child_7 = new Xcls_addlistenerbutton( _this );
919 this.el.add_child ( child_7.el );
920 var child_8 = new Xcls_addprojectbutton( _this );
922 this.el.add_child ( child_8.el );
923 var child_9 = new Xcls_addfilebutton( _this );
925 this.el.add_child ( child_9.el );
926 var child_10 = new Xcls_delprojectbutton( _this );
928 this.el.add_child ( child_10.el );
934 this.el.add_constraint(
935 new Clutter.AlignConstraint(
936 _this.clutterembed.el.get_stage(),
937 Clutter.AlignAxis.X_AXIS,
943 //this.el.set_position(100,100);
944 this.el.set_pivot_point(0.5f,0.5f);
946 _this.clutterembed.el.get_stage().height);
951 // user defined functions
953 public class Xcls_BoxLayout25 : Object
955 public Clutter.BoxLayout el;
956 private Xcls_MainWindow _this;
962 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
965 this.el = new Clutter.BoxLayout();
969 // set gobject values
970 this.el.orientation = Clutter.Orientation.VERTICAL;
973 // user defined functions
976 public class Xcls_backbutton : Object
978 public Clutter.Actor el;
979 private Xcls_MainWindow _this;
985 public Xcls_backbutton(Xcls_MainWindow _owner )
988 _this.backbutton = this;
989 this.el = new Clutter.Actor();
993 // set gobject values
994 var child_0 = new Xcls_Actor27( _this );
996 this.el.add_child ( child_0.el );
1000 this.el.set_size(50,50);
1003 // user defined functions
1005 public class Xcls_Actor27 : Object
1007 public GtkClutter.Actor el;
1008 private Xcls_MainWindow _this;
1014 public Xcls_Actor27(Xcls_MainWindow _owner )
1017 this.el = new GtkClutter.Actor();
1021 // set gobject values
1022 var child_0 = new Xcls_Button28( _this );
1027 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1030 // user defined functions
1032 public class Xcls_Button28 : Object
1034 public Gtk.Button el;
1035 private Xcls_MainWindow _this;
1041 public Xcls_Button28(Xcls_MainWindow _owner )
1044 this.el = new Gtk.Button();
1048 // set gobject values
1049 this.el.width_request = 50;
1050 this.el.height_request = 50;
1051 this.el.tooltip_text = "Back";
1052 var child_0 = new Xcls_Image29( _this );
1054 this.el.set_image ( child_0.el );
1057 this.el.clicked.connect( ( ) => {
1059 _this.windowstate.switchState(WindowState.State.PREVIEW);
1065 // user defined functions
1067 public class Xcls_Image29 : Object
1069 public Gtk.Image el;
1070 private Xcls_MainWindow _this;
1076 public Xcls_Image29(Xcls_MainWindow _owner )
1079 this.el = new Gtk.Image();
1083 // set gobject values
1084 this.el.icon_name = "go-previous";
1087 // user defined functions
1093 public class Xcls_projectbutton : Object
1095 public Clutter.Actor el;
1096 private Xcls_MainWindow _this;
1102 public Xcls_projectbutton(Xcls_MainWindow _owner )
1105 _this.projectbutton = this;
1106 this.el = new Clutter.Actor();
1110 // set gobject values
1111 var child_0 = new Xcls_Actor31( _this );
1113 this.el.add_child ( child_0.el );
1117 this.el.set_size(50,50);
1120 // user defined functions
1122 public class Xcls_Actor31 : Object
1124 public GtkClutter.Actor el;
1125 private Xcls_MainWindow _this;
1131 public Xcls_Actor31(Xcls_MainWindow _owner )
1134 this.el = new GtkClutter.Actor();
1138 // set gobject values
1139 var child_0 = new Xcls_Button32( _this );
1144 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1147 // user defined functions
1149 public class Xcls_Button32 : Object
1151 public Gtk.Button el;
1152 private Xcls_MainWindow _this;
1158 public Xcls_Button32(Xcls_MainWindow _owner )
1161 this.el = new Gtk.Button();
1165 // set gobject values
1166 this.el.width_request = 50;
1167 this.el.height_request = 50;
1168 var child_0 = new Xcls_Image33( _this );
1170 this.el.set_image ( child_0.el );
1173 this.el.clicked.connect( ( ) => {
1174 _this.windowstate.switchState(WindowState.State.FILES);
1180 // user defined functions
1182 public class Xcls_Image33 : Object
1184 public Gtk.Image el;
1185 private Xcls_MainWindow _this;
1191 public Xcls_Image33(Xcls_MainWindow _owner )
1194 this.el = new Gtk.Image();
1198 // set gobject values
1199 this.el.icon_name = "document-open";
1202 // user defined functions
1208 public class Xcls_editfilebutton : Object
1210 public Clutter.Actor el;
1211 private Xcls_MainWindow _this;
1217 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1220 _this.editfilebutton = this;
1221 this.el = new Clutter.Actor();
1225 // set gobject values
1226 var child_0 = new Xcls_Actor35( _this );
1228 this.el.add_child ( child_0.el );
1232 this.el.set_size(50.0f,50.0f);
1235 // user defined functions
1237 public class Xcls_Actor35 : Object
1239 public GtkClutter.Actor el;
1240 private Xcls_MainWindow _this;
1246 public Xcls_Actor35(Xcls_MainWindow _owner )
1249 this.el = new GtkClutter.Actor();
1253 // set gobject values
1254 var child_0 = new Xcls_Button36( _this );
1259 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1262 // user defined functions
1264 public class Xcls_Button36 : Object
1266 public Gtk.Button el;
1267 private Xcls_MainWindow _this;
1273 public Xcls_Button36(Xcls_MainWindow _owner )
1276 this.el = new Gtk.Button();
1280 // set gobject values
1281 this.el.width_request = 50;
1282 this.el.height_request = 50;
1283 this.el.tooltip_text = "File Details";
1284 var child_0 = new Xcls_Image37( _this );
1286 this.el.set_image ( child_0.el );
1289 this.el.clicked.connect( ( ) => {
1291 // create a new file in project..
1292 if (_this.project == null || _this.windowstate.file == null) {
1295 _this.windowstate.file_details.show(
1296 _this.windowstate.file, this.el
1305 // user defined functions
1307 public class Xcls_Image37 : Object
1309 public Gtk.Image el;
1310 private Xcls_MainWindow _this;
1316 public Xcls_Image37(Xcls_MainWindow _owner )
1319 this.el = new Gtk.Image();
1323 // set gobject values
1324 this.el.icon_name = "document-properties";
1327 // user defined functions
1333 public class Xcls_projecteditbutton : Object
1335 public Clutter.Actor el;
1336 private Xcls_MainWindow _this;
1342 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1345 _this.projecteditbutton = this;
1346 this.el = new Clutter.Actor();
1350 // set gobject values
1351 var child_0 = new Xcls_Actor39( _this );
1353 this.el.add_child ( child_0.el );
1357 this.el.set_size(50,50);
1360 // user defined functions
1362 public class Xcls_Actor39 : Object
1364 public GtkClutter.Actor el;
1365 private Xcls_MainWindow _this;
1371 public Xcls_Actor39(Xcls_MainWindow _owner )
1374 this.el = new GtkClutter.Actor();
1378 // set gobject values
1379 var child_0 = new Xcls_Button40( _this );
1384 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1387 // user defined functions
1389 public class Xcls_Button40 : Object
1391 public Gtk.Button el;
1392 private Xcls_MainWindow _this;
1398 public Xcls_Button40(Xcls_MainWindow _owner )
1401 this.el = new Gtk.Button();
1405 // set gobject values
1406 this.el.width_request = 50;
1407 this.el.height_request = 50;
1408 this.el.tooltip_text = "Project Details";
1409 var child_0 = new Xcls_Image41( _this );
1411 this.el.set_image ( child_0.el );
1414 this.el.clicked.connect( ( ) => {
1415 _this.windowstate.switchState(WindowState.State.PROJECT);
1422 // user defined functions
1424 public class Xcls_Image41 : Object
1426 public Gtk.Image el;
1427 private Xcls_MainWindow _this;
1433 public Xcls_Image41(Xcls_MainWindow _owner )
1436 this.el = new Gtk.Image();
1440 // set gobject values
1441 this.el.icon_name = "emblem-system";
1444 // user defined functions
1450 public class Xcls_objectshowbutton : Object
1452 public Clutter.Actor el;
1453 private Xcls_MainWindow _this;
1459 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1462 _this.objectshowbutton = this;
1463 this.el = new Clutter.Actor();
1467 // set gobject values
1468 var child_0 = new Xcls_Actor43( _this );
1470 this.el.add_child ( child_0.el );
1474 this.el.set_size(50,50);
1477 this.el.enter_event.connect( ( event) => {
1478 this.el.background_color = Clutter.Color.from_string("#333");
1481 this.el.leave_event.connect( ( event) => {
1482 this.el.background_color = Clutter.Color.from_string("#000");
1487 // user defined functions
1489 public class Xcls_Actor43 : Object
1491 public GtkClutter.Actor el;
1492 private Xcls_MainWindow _this;
1498 public Xcls_Actor43(Xcls_MainWindow _owner )
1501 this.el = new GtkClutter.Actor();
1505 // set gobject values
1506 var child_0 = new Xcls_Button44( _this );
1511 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1514 // user defined functions
1516 public class Xcls_Button44 : Object
1518 public Gtk.Button el;
1519 private Xcls_MainWindow _this;
1525 public Xcls_Button44(Xcls_MainWindow _owner )
1528 this.el = new Gtk.Button();
1532 // set gobject values
1533 this.el.width_request = 50;
1534 this.el.height_request = 50;
1535 this.el.tooltip_text = "Add Child Element";
1536 var child_0 = new Xcls_Image45( _this );
1538 this.el.set_image ( child_0.el );
1541 this.el.clicked.connect( ( ) => {
1543 _this.windowstate.switchState(WindowState.State.OBJECT);
1549 // user defined functions
1551 public class Xcls_Image45 : Object
1553 public Gtk.Image el;
1554 private Xcls_MainWindow _this;
1560 public Xcls_Image45(Xcls_MainWindow _owner )
1563 this.el = new Gtk.Image();
1567 // set gobject values
1568 this.el.icon_name = "list-add";
1571 // user defined functions
1577 public class Xcls_addpropbutton : Object
1579 public Clutter.Actor el;
1580 private Xcls_MainWindow _this;
1586 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1589 _this.addpropbutton = this;
1590 this.el = new Clutter.Actor();
1594 // set gobject values
1595 var child_0 = new Xcls_Actor47( _this );
1597 this.el.add_child ( child_0.el );
1601 this.el.set_size(50,50);
1604 // user defined functions
1606 public class Xcls_Actor47 : Object
1608 public GtkClutter.Actor el;
1609 private Xcls_MainWindow _this;
1615 public Xcls_Actor47(Xcls_MainWindow _owner )
1618 this.el = new GtkClutter.Actor();
1622 // set gobject values
1623 var child_0 = new Xcls_Button48( _this );
1628 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1631 // user defined functions
1633 public class Xcls_Button48 : Object
1635 public Gtk.Button el;
1636 private Xcls_MainWindow _this;
1642 public Xcls_Button48(Xcls_MainWindow _owner )
1645 this.el = new Gtk.Button();
1649 // set gobject values
1650 this.el.width_request = 50;
1651 this.el.height_request = 50;
1652 this.el.tooltip_text = "Add Property";
1653 var child_0 = new Xcls_Image49( _this );
1655 this.el.set_image ( child_0.el );
1658 this.el.clicked.connect( ( ) => {
1660 _this.windowstate.switchState(WindowState.State.PROP);
1666 // user defined functions
1668 public class Xcls_Image49 : Object
1670 public Gtk.Image el;
1671 private Xcls_MainWindow _this;
1677 public Xcls_Image49(Xcls_MainWindow _owner )
1680 this.el = new Gtk.Image();
1684 // set gobject values
1685 this.el.icon_name = "format-justify-left";
1688 // user defined functions
1694 public class Xcls_addlistenerbutton : Object
1696 public Clutter.Actor el;
1697 private Xcls_MainWindow _this;
1703 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1706 _this.addlistenerbutton = this;
1707 this.el = new Clutter.Actor();
1711 // set gobject values
1712 var child_0 = new Xcls_Actor51( _this );
1714 this.el.add_child ( child_0.el );
1718 this.el.set_size(50,50);
1721 // user defined functions
1723 public class Xcls_Actor51 : Object
1725 public GtkClutter.Actor el;
1726 private Xcls_MainWindow _this;
1732 public Xcls_Actor51(Xcls_MainWindow _owner )
1735 this.el = new GtkClutter.Actor();
1739 // set gobject values
1740 var child_0 = new Xcls_Button52( _this );
1745 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1748 // user defined functions
1750 public class Xcls_Button52 : Object
1752 public Gtk.Button el;
1753 private Xcls_MainWindow _this;
1759 public Xcls_Button52(Xcls_MainWindow _owner )
1762 this.el = new Gtk.Button();
1766 // set gobject values
1767 this.el.width_request = 50;
1768 this.el.height_request = 50;
1769 this.el.tooltip_text = "Add Event Code";
1770 var child_0 = new Xcls_Image53( _this );
1772 this.el.set_image ( child_0.el );
1775 this.el.clicked.connect( ( ) => {
1777 _this.windowstate.switchState(WindowState.State.LISTENER);
1784 // user defined functions
1786 public class Xcls_Image53 : Object
1788 public Gtk.Image el;
1789 private Xcls_MainWindow _this;
1795 public Xcls_Image53(Xcls_MainWindow _owner )
1798 this.el = new Gtk.Image();
1802 // set gobject values
1803 this.el.icon_name = "appointment-new";
1806 // user defined functions
1812 public class Xcls_addprojectbutton : Object
1814 public Clutter.Actor el;
1815 private Xcls_MainWindow _this;
1821 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1824 _this.addprojectbutton = this;
1825 this.el = new Clutter.Actor();
1829 // set gobject values
1830 var child_0 = new Xcls_Actor55( _this );
1832 this.el.add_child ( child_0.el );
1836 this.el.set_size(50.0f,50.0f);
1839 // user defined functions
1841 public class Xcls_Actor55 : Object
1843 public GtkClutter.Actor el;
1844 private Xcls_MainWindow _this;
1850 public Xcls_Actor55(Xcls_MainWindow _owner )
1853 this.el = new GtkClutter.Actor();
1857 // set gobject values
1858 var child_0 = new Xcls_Button56( _this );
1863 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1866 // user defined functions
1868 public class Xcls_Button56 : Object
1870 public Gtk.Button el;
1871 private Xcls_MainWindow _this;
1877 public Xcls_Button56(Xcls_MainWindow _owner )
1880 this.el = new Gtk.Button();
1884 // set gobject values
1885 this.el.width_request = 50;
1886 this.el.height_request = 50;
1887 this.el.tooltip_text = "New\nProj.";
1888 var child_0 = new Xcls_Image57( _this );
1890 this.el.set_image ( child_0.el );
1893 this.el.clicked.connect( ( ) => {
1895 // create a new file in project..
1896 //Xcls_DialogNewComponent.singleton().show(
1897 var pe = EditProject.singleton();
1898 pe.el.set_transient_for(_this.el);
1899 pe.el.set_modal(true);
1908 _this.windowstate.left_projects.is_loaded = false;
1909 _this.windowstate.left_projects.load();
1910 _this.windowstate.left_projects.selectProject(p);
1917 // user defined functions
1919 public class Xcls_Image57 : Object
1921 public Gtk.Image el;
1922 private Xcls_MainWindow _this;
1928 public Xcls_Image57(Xcls_MainWindow _owner )
1931 this.el = new Gtk.Image();
1935 // set gobject values
1936 this.el.icon_name = "folder-new";
1939 // user defined functions
1945 public class Xcls_addfilebutton : Object
1947 public Clutter.Actor el;
1948 private Xcls_MainWindow _this;
1954 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1957 _this.addfilebutton = this;
1958 this.el = new Clutter.Actor();
1962 // set gobject values
1963 var child_0 = new Xcls_Actor59( _this );
1965 this.el.add_child ( child_0.el );
1969 this.el.set_size(50.0f,50.0f);
1972 // user defined functions
1974 public class Xcls_Actor59 : Object
1976 public GtkClutter.Actor el;
1977 private Xcls_MainWindow _this;
1983 public Xcls_Actor59(Xcls_MainWindow _owner )
1986 this.el = new GtkClutter.Actor();
1990 // set gobject values
1991 var child_0 = new Xcls_Button60( _this );
1996 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1999 // user defined functions
2001 public class Xcls_Button60 : Object
2003 public Gtk.Button el;
2004 private Xcls_MainWindow _this;
2010 public Xcls_Button60(Xcls_MainWindow _owner )
2013 this.el = new Gtk.Button();
2017 // set gobject values
2018 this.el.width_request = 50;
2019 this.el.height_request = 50;
2020 this.el.tooltip_text = "Add File";
2021 var child_0 = new Xcls_Image61( _this );
2023 this.el.set_image ( child_0.el );
2026 this.el.clicked.connect( () => {
2027 // create a new file in project..
2028 print("add file selected\n");
2029 // what's the currently selected project...
2030 var proj = _this.windowstate.left_projects.getSelectedProject();
2033 print("no project selected?\n");
2037 print("creating file?");
2039 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2040 _this.project = proj;
2041 print("showing popup?");
2042 _this.windowstate.file_details.show(
2051 // user defined functions
2053 public class Xcls_Image61 : Object
2055 public Gtk.Image el;
2056 private Xcls_MainWindow _this;
2062 public Xcls_Image61(Xcls_MainWindow _owner )
2065 this.el = new Gtk.Image();
2069 // set gobject values
2070 this.el.icon_name = "document-new";
2073 // user defined functions
2079 public class Xcls_delprojectbutton : Object
2081 public Clutter.Actor el;
2082 private Xcls_MainWindow _this;
2088 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2091 _this.delprojectbutton = this;
2092 this.el = new Clutter.Actor();
2096 // set gobject values
2097 var child_0 = new Xcls_Actor63( _this );
2099 this.el.add_child ( child_0.el );
2103 this.el.set_size(50,50);
2106 // user defined functions
2108 public class Xcls_Actor63 : Object
2110 public GtkClutter.Actor el;
2111 private Xcls_MainWindow _this;
2117 public Xcls_Actor63(Xcls_MainWindow _owner )
2120 this.el = new GtkClutter.Actor();
2124 // set gobject values
2125 var child_0 = new Xcls_Button64( _this );
2130 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2133 // user defined functions
2135 public class Xcls_Button64 : Object
2137 public Gtk.Button el;
2138 private Xcls_MainWindow _this;
2144 public Xcls_Button64(Xcls_MainWindow _owner )
2147 this.el = new Gtk.Button();
2151 // set gobject values
2152 this.el.width_request = 50;
2153 this.el.height_request = 50;
2154 this.el.tooltip_text = "Delete Project";
2155 var child_0 = new Xcls_Image65( _this );
2157 this.el.set_image ( child_0.el );
2160 this.el.clicked.connect( ( ) => {
2162 var cd = DialogConfirm.singleton();
2163 cd.el.set_transient_for(_this.el);
2164 cd.el.set_modal(true);
2166 var project = _this.windowstate.left_projects.getSelectedProject();
2167 if (project == null) {
2168 print("SKIP - no project\n");
2173 if (Gtk.ResponseType.YES != cd.show("Confirm",
2174 "Are you sure you want to delete project %s".printf(project.name))) {
2180 Project.Project.remove(project);
2181 _this.project = null;
2183 _this.windowstate.left_projects.is_loaded = false;
2184 _this.windowstate.left_projects.load();
2185 _this.windowstate.clutterfiles.clearFiles();
2190 // user defined functions
2192 public class Xcls_Image65 : Object
2194 public Gtk.Image el;
2195 private Xcls_MainWindow _this;
2201 public Xcls_Image65(Xcls_MainWindow _owner )
2204 this.el = new Gtk.Image();
2208 // set gobject values
2209 this.el.icon_name = "user-trash";
2212 // user defined functions
2222 public class Xcls_Box66 : Object
2225 private Xcls_MainWindow _this;
2231 public Xcls_Box66(Xcls_MainWindow _owner )
2234 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2238 // set gobject values
2239 this.el.homogeneous = false;
2240 var child_0 = new Xcls_Label67( _this );
2242 this.el.pack_start ( child_0.el , true,true,0 );
2243 var child_1 = new Xcls_statusbar( _this );
2245 this.el.pack_start ( child_1.el , true,true,0 );
2246 var child_2 = new Xcls_search_entry( _this );
2248 this.el.pack_start ( child_2.el , false,true,0 );
2249 var child_3 = new Xcls_MenuBar70( _this );
2251 this.el.pack_end ( child_3.el , false,true,0 );
2254 // user defined functions
2256 public class Xcls_Label67 : Object
2258 public Gtk.Label el;
2259 private Xcls_MainWindow _this;
2265 public Xcls_Label67(Xcls_MainWindow _owner )
2268 this.el = new Gtk.Label( " " );
2272 // set gobject values
2275 // user defined functions
2278 public class Xcls_statusbar : Object
2280 public Gtk.ProgressBar el;
2281 private Xcls_MainWindow _this;
2285 public ulong handler_id;
2288 public Xcls_statusbar(Xcls_MainWindow _owner )
2291 _this.statusbar = this;
2292 this.el = new Gtk.ProgressBar();
2295 this.handler_id = -1;
2297 // set gobject values
2298 this.el.show_text = true;
2303 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2306 _this.mainpane.el.set_sensitive(true);
2310 _this.mainpane.el.set_sensitive(false);
2312 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2313 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2319 // user defined functions
2322 public class Xcls_search_entry : Object
2324 public Gtk.Entry el;
2325 private Xcls_MainWindow _this;
2331 public Xcls_search_entry(Xcls_MainWindow _owner )
2334 _this.search_entry = this;
2335 this.el = new Gtk.Entry();
2339 // set gobject values
2343 var description = Pango.FontDescription.from_string("monospace");
2344 description.set_size(8000);
2345 this.el.override_font(description);
2348 this.el.changed.connect( () => {
2349 if (this.el.text == "") {
2352 Gee.ArrayList<int> res = new Gee.ArrayList<int>();
2353 switch(_this.windowstate.state) {
2354 case WindowState.State.CODEONLY:
2355 case WindowState.State.CODE:
2356 // search the code being edited..
2357 res = _this.windowstate.code_editor.search(this.el.text);
2360 case WindowState.State.PREVIEW:
2361 if (_this.windowstate.file.xtype == "Gtk") {
2362 res = _this.windowstate.window_gladeview.search(this.el.text);
2369 _this.search_results.el.label = "%d Matches".printf(res.size);
2371 _this.search_results.el.label = "No Matches";
2379 // user defined functions
2382 public class Xcls_MenuBar70 : Object
2384 public Gtk.MenuBar el;
2385 private Xcls_MainWindow _this;
2391 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2394 this.el = new Gtk.MenuBar();
2398 // set gobject values
2399 var child_0 = new Xcls_search_results( _this );
2401 this.el.add ( child_0.el );
2402 var child_1 = new Xcls_MenuItem73( _this );
2404 this.el.add ( child_1.el );
2405 var child_2 = new Xcls_statusbar_errors( _this );
2407 this.el.add ( child_2.el );
2408 var child_3 = new Xcls_statusbar_warnings( _this );
2410 this.el.add ( child_3.el );
2411 var child_4 = new Xcls_statusbar_depricated( _this );
2413 this.el.add ( child_4.el );
2414 var child_5 = new Xcls_statusbar_run( _this );
2416 this.el.add ( child_5.el );
2419 // user defined functions
2421 public class Xcls_search_results : Object
2423 public Gtk.ImageMenuItem el;
2424 private Xcls_MainWindow _this;
2428 public Xcls_ValaCompileErrors popup;
2431 public Xcls_search_results(Xcls_MainWindow _owner )
2434 _this.search_results = this;
2435 this.el = new Gtk.ImageMenuItem();
2439 // set gobject values
2440 this.el.always_show_image = true;
2441 this.el.label = "Matches";
2442 var child_0 = new Xcls_Image72( _this );
2444 this.el.set_image ( child_0.el );
2447 this.el.button_press_event.connect( () => {
2449 if (this.popup == null) {
2450 this.popup = new Xcls_ValaCompileErrors();
2451 this.popup.window = _this;
2455 this.popup.show(this.notices, this.el);
2461 // user defined functions
2463 public class Xcls_Image72 : Object
2465 public Gtk.Image el;
2466 private Xcls_MainWindow _this;
2472 public Xcls_Image72(Xcls_MainWindow _owner )
2475 this.el = new Gtk.Image();
2479 // set gobject values
2480 this.el.icon_name = "system-search";
2481 this.el.sensitive = false;
2484 // user defined functions
2488 public class Xcls_MenuItem73 : Object
2490 public Gtk.MenuItem el;
2491 private Xcls_MainWindow _this;
2497 public Xcls_MenuItem73(Xcls_MainWindow _owner )
2500 this.el = new Gtk.MenuItem();
2504 // set gobject values
2505 this.el.label = "Compile Status:";
2508 // user defined functions
2511 public class Xcls_statusbar_errors : Object
2513 public Gtk.ImageMenuItem el;
2514 private Xcls_MainWindow _this;
2518 public Xcls_ValaCompileErrors popup;
2519 public Json.Object notices;
2522 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2525 _this.statusbar_errors = this;
2526 this.el = new Gtk.ImageMenuItem();
2529 this.notices = new Json.Object() ;
2531 // set gobject values
2532 this.el.always_show_image = true;
2533 this.el.label = "Errors";
2534 var child_0 = new Xcls_Image75( _this );
2536 this.el.set_image ( child_0.el );
2539 this.el.button_press_event.connect( () => {
2540 if (this.popup == null) {
2541 this.popup = new Xcls_ValaCompileErrors();
2542 this.popup.window = _this;
2546 this.popup.show(this.notices, this.el);
2551 // user defined functions
2552 public void setNotices (Json.Object nots, int qty) {
2554 this.el.label = qty.to_string() + " Errors";
2555 this.notices = nots;
2559 public class Xcls_Image75 : Object
2561 public Gtk.Image el;
2562 private Xcls_MainWindow _this;
2568 public Xcls_Image75(Xcls_MainWindow _owner )
2571 this.el = new Gtk.Image();
2575 // set gobject values
2576 this.el.icon_name = "dialog-error";
2579 // user defined functions
2583 public class Xcls_statusbar_warnings : Object
2585 public Gtk.ImageMenuItem el;
2586 private Xcls_MainWindow _this;
2590 public Xcls_ValaCompileErrors popup;
2591 public Json.Object notices;
2594 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2597 _this.statusbar_warnings = this;
2598 this.el = new Gtk.ImageMenuItem();
2601 this.notices = new Json.Object();
2603 // set gobject values
2604 this.el.always_show_image = true;
2605 this.el.label = "Warnings";
2606 var child_0 = new Xcls_Image77( _this );
2608 this.el.set_image ( child_0.el );
2611 this.el.button_press_event.connect( () => {
2612 if (this.popup == null) {
2613 this.popup = new Xcls_ValaCompileErrors();
2614 this.popup.window = _this;
2617 this.popup.show(this.notices, this.el);
2622 // user defined functions
2623 public void setNotices (Json.Object nots, int qty) {
2625 this.el.label = qty.to_string() + " Warnings";
2626 this.notices = nots;
2630 public class Xcls_Image77 : Object
2632 public Gtk.Image el;
2633 private Xcls_MainWindow _this;
2639 public Xcls_Image77(Xcls_MainWindow _owner )
2642 this.el = new Gtk.Image();
2646 // set gobject values
2647 this.el.icon_name = "dialog-warning";
2650 // user defined functions
2654 public class Xcls_statusbar_depricated : Object
2656 public Gtk.ImageMenuItem el;
2657 private Xcls_MainWindow _this;
2661 public Xcls_ValaCompileErrors popup;
2662 public Json.Object notices;
2665 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2668 _this.statusbar_depricated = this;
2669 this.el = new Gtk.ImageMenuItem();
2672 this.notices = new Json.Object();
2674 // set gobject values
2675 this.el.always_show_image = true;
2676 this.el.label = "Depricated";
2677 var child_0 = new Xcls_Image79( _this );
2679 this.el.set_image ( child_0.el );
2682 this.el.button_press_event.connect( () => {
2683 if (this.popup == null) {
2684 this.popup = new Xcls_ValaCompileErrors();
2685 this.popup.window = _this;
2689 this.popup.show(this.notices, this.el);
2694 // user defined functions
2695 public void setNotices (Json.Object nots, int qty) {
2697 this.el.label = qty.to_string() + " Depricated";
2698 this.notices = nots;
2702 public class Xcls_Image79 : Object
2704 public Gtk.Image el;
2705 private Xcls_MainWindow _this;
2711 public Xcls_Image79(Xcls_MainWindow _owner )
2714 this.el = new Gtk.Image();
2718 // set gobject values
2719 this.el.icon_name = "dialog-information";
2722 // user defined functions
2726 public class Xcls_statusbar_run : Object
2728 public Gtk.ImageMenuItem el;
2729 private Xcls_MainWindow _this;
2733 public Xcls_ValaCompileErrors popup;
2736 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2739 _this.statusbar_run = this;
2740 this.el = new Gtk.ImageMenuItem();
2744 // set gobject values
2745 this.el.always_show_image = true;
2746 this.el.label = "Run";
2747 var child_0 = new Xcls_Image81( _this );
2749 this.el.set_image ( child_0.el );
2752 this.el.button_press_event.connect( () => {
2753 if (_this.windowstate.file == null) {
2756 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2758 _this.windowstate.compile_results.show(this.el,true);
2764 // user defined functions
2766 public class Xcls_Image81 : Object
2768 public Gtk.Image el;
2769 private Xcls_MainWindow _this;
2775 public Xcls_Image81(Xcls_MainWindow _owner )
2778 this.el = new Gtk.Image();
2782 // set gobject values
2783 this.el.icon_name = "media-playback-start";
2786 // user defined functions