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_statusbar_errors statusbar_errors;
42 public Xcls_statusbar_warnings statusbar_warnings;
43 public Xcls_statusbar_depricated statusbar_depricated;
44 public Xcls_statusbar_run statusbar_run;
47 public Project.Project project;
49 public int no_windows;
50 public WindowState windowstate;
53 public Xcls_MainWindow()
56 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
60 this.title = "Application Builder";
62 this.windowstate = null;
65 this.el.border_width = 0;
66 this.el.default_height = 500;
67 this.el.default_width = 800;
68 var child_0 = new Xcls_headerbar( _this );
70 this.el.set_titlebar ( child_0.el );
71 var child_1 = new Xcls_vbox( _this );
73 this.el.add ( child_1.el );
80 this.el.delete_event.connect( ( event) => {
83 this.el.destroy.connect( () => {
84 Xcls_MainWindow.singleton().no_windows--;
86 Resources.singleton().disconnect(_this.statusbar.handler_id);
89 if (Xcls_MainWindow.singleton().no_windows < 1) {
94 this.el.show.connect( ( ) => {
95 // hide the file editing..
97 //this.hideViewEditing();
98 _this.statusbar.el.hide();
99 _this.statusbar_errors.el.hide();
100 _this.statusbar_warnings.el.hide();
101 _this.statusbar_depricated.el.hide();
104 Resources.singleton().checkResources();
109 // user defined functions
110 public void initChildren () {
111 // this needs putting in a better place..
112 this.windowstate = new WindowState(this);
116 var tl = new Clutter.Timeline(6000);
117 tl.set_repeat_count(-1);
126 public void show () {
131 public void setTitle (string str) {
132 this.headerbar.el.set_title(this.title + " - " + str);
134 public class Xcls_headerbar : Object
136 public Gtk.HeaderBar el;
137 private Xcls_MainWindow _this;
143 public Xcls_headerbar(Xcls_MainWindow _owner )
146 _this.headerbar = this;
147 this.el = new Gtk.HeaderBar();
151 // set gobject values
152 this.el.title = "Application Builder";
153 this.el.show_close_button = true;
154 var child_0 = new Xcls_Box3( _this );
156 this.el.pack_start ( child_0.el );
159 // user defined functions
161 public class Xcls_Box3 : Object
164 private Xcls_MainWindow _this;
170 public Xcls_Box3(Xcls_MainWindow _owner )
173 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
177 // set gobject values
178 var child_0 = new Xcls_MenuButton4( _this );
180 this.el.add ( child_0.el );
183 // user defined functions
185 public class Xcls_MenuButton4 : Object
187 public Gtk.MenuButton el;
188 private Xcls_MainWindow _this;
194 public Xcls_MenuButton4(Xcls_MainWindow _owner )
197 this.el = new Gtk.MenuButton();
201 // set gobject values
202 this.el.use_popover = false;
203 var child_0 = new Xcls_topbarmenu( _this );
205 this.el.set_popup ( child_0.el );
206 var child_1 = new Xcls_Image10( _this );
208 this.el.set_image ( child_1.el );
211 // user defined functions
213 public class Xcls_topbarmenu : Object
216 private Xcls_MainWindow _this;
222 public Xcls_topbarmenu(Xcls_MainWindow _owner )
225 _this.topbarmenu = this;
226 this.el = new Gtk.Menu();
230 // set gobject values
231 var child_0 = new Xcls_MenuItem6( _this );
233 this.el.append ( child_0.el );
234 var child_1 = new Xcls_SeparatorMenuItem7( _this );
236 this.el.append ( child_1.el );
237 var child_2 = new Xcls_MenuItem8( _this );
239 this.el.append ( child_2.el );
240 var child_3 = new Xcls_MenuItem9( _this );
242 this.el.append ( child_3.el );
251 // user defined functions
253 public class Xcls_MenuItem6 : Object
255 public Gtk.MenuItem el;
256 private Xcls_MainWindow _this;
262 public Xcls_MenuItem6(Xcls_MainWindow _owner )
265 this.el = new Gtk.MenuItem();
269 // set gobject values
270 this.el.label = "Open a new Window";
273 this.el.activate.connect( ( ) => {
274 Xcls_MainWindow.singleton().no_windows++;
275 var w = new Xcls_MainWindow();
280 w.windowstate.switchState(WindowState.State.FILES);
284 // user defined functions
287 public class Xcls_SeparatorMenuItem7 : Object
289 public Gtk.SeparatorMenuItem el;
290 private Xcls_MainWindow _this;
296 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
299 this.el = new Gtk.SeparatorMenuItem();
303 // set gobject values
306 // user defined functions
309 public class Xcls_MenuItem8 : Object
311 public Gtk.MenuItem el;
312 private Xcls_MainWindow _this;
318 public Xcls_MenuItem8(Xcls_MainWindow _owner )
321 this.el = new Gtk.MenuItem();
325 // set gobject values
326 this.el.label = "Download updated Resources";
329 this.el.activate.connect( ( ) => {
330 Resources.singleton().fetchStart();
334 // user defined functions
337 public class Xcls_MenuItem9 : Object
339 public Gtk.MenuItem el;
340 private Xcls_MainWindow _this;
346 public Xcls_MenuItem9(Xcls_MainWindow _owner )
349 this.el = new Gtk.MenuItem();
353 // set gobject values
354 this.el.label = "About the Builder";
357 this.el.activate.connect( () => {
358 About.singleton().el.show();
362 // user defined functions
366 public class Xcls_Image10 : Object
369 private Xcls_MainWindow _this;
375 public Xcls_Image10(Xcls_MainWindow _owner )
378 this.el = new Gtk.Image();
382 // set gobject values
383 this.el.icon_name = "help-about";
386 // user defined functions
392 public class Xcls_vbox : Object
395 private Xcls_MainWindow _this;
401 public Xcls_vbox(Xcls_MainWindow _owner )
405 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
409 // set gobject values
410 this.el.homogeneous = false;
411 var child_0 = new Xcls_mainpane( _this );
413 this.el.pack_start ( child_0.el , true,true,0 );
414 var child_1 = new Xcls_Box66( _this );
416 this.el.pack_end ( child_1.el , false,true,0 );
419 // user defined functions
421 public class Xcls_mainpane : Object
424 private Xcls_MainWindow _this;
428 public int lastWidth;
431 public Xcls_mainpane(Xcls_MainWindow _owner )
434 _this.mainpane = this;
435 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
440 // set gobject values
441 this.el.position = 400;
442 var child_0 = new Xcls_leftpane( _this );
444 this.el.add1 ( child_0.el );
445 var child_1 = new Xcls_Box17( _this );
447 this.el.add2 ( child_1.el );
450 // user defined functions
452 public class Xcls_leftpane : Object
455 private Xcls_MainWindow _this;
461 public Xcls_leftpane(Xcls_MainWindow _owner )
464 _this.leftpane = this;
465 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
469 // set gobject values
470 var child_0 = new Xcls_editpane( _this );
472 this.el.pack_start ( child_0.el , true,true,0 );
475 // user defined functions
477 public class Xcls_editpane : Object
480 private Xcls_MainWindow _this;
486 public Xcls_editpane(Xcls_MainWindow _owner )
489 _this.editpane = this;
490 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
494 // set gobject values
495 var child_0 = new Xcls_tree( _this );
497 this.el.add1 ( child_0.el );
498 var child_1 = new Xcls_props( _this );
500 this.el.add2 ( child_1.el );
503 // user defined functions
505 public class Xcls_tree : Object
508 private Xcls_MainWindow _this;
514 public Xcls_tree(Xcls_MainWindow _owner )
518 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
522 // set gobject values
525 // user defined functions
528 public class Xcls_props : Object
531 private Xcls_MainWindow _this;
537 public Xcls_props(Xcls_MainWindow _owner )
541 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
545 // set gobject values
548 // user defined functions
553 public class Xcls_Box17 : Object
556 private Xcls_MainWindow _this;
562 public Xcls_Box17(Xcls_MainWindow _owner )
565 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
569 // set gobject values
570 var child_0 = new Xcls_clutterembed( _this );
572 this.el.pack_start ( child_0.el , true,true,0 );
575 // user defined functions
577 public class Xcls_clutterembed : Object
579 public GtkClutter.Embed el;
580 private Xcls_MainWindow _this;
586 public Xcls_clutterembed(Xcls_MainWindow _owner )
589 _this.clutterembed = this;
590 this.el = new GtkClutter.Embed();
594 // set gobject values
595 var child_0 = new Xcls_rooview( _this );
597 this.el.get_stage().add_child ( child_0.el );
598 var child_1 = new Xcls_objectview( _this );
600 this.el.get_stage().add_child ( child_1.el );
601 var child_2 = new Xcls_codeeditview( _this );
603 this.el.get_stage().add_child ( child_2.el );
604 var child_3 = new Xcls_addpropsview( _this );
606 this.el.get_stage().add_child ( child_3.el );
607 var child_4 = new Xcls_projecteditview( _this );
609 this.el.get_stage().add_child ( child_4.el );
610 var child_5 = new Xcls_buttonlayout( _this );
612 this.el.get_stage().add_child ( child_5.el );
616 var stage = this.el.get_stage();
617 stage.set_background_color( Clutter.Color.from_string("#000"));
620 this.el.size_allocate.connect( ( alloc) => {
621 if (_this.windowstate == null) {
624 _this.windowstate.resizeCanvas();
629 // user defined functions
631 public class Xcls_rooview : Object
633 public GtkClutter.Actor el;
634 private Xcls_MainWindow _this;
640 public Xcls_rooview(Xcls_MainWindow _owner )
643 _this.rooview = this;
644 this.el = new GtkClutter.Actor();
648 // set gobject values
655 this.el.add_constraint(
656 new Clutter.AlignConstraint(
657 _this.clutterembed.el.get_stage(),
658 Clutter.AlignAxis.X_AXIS,
663 //this.el.set_position(100,100);
664 this.el.set_pivot_point(1.0f,1.0f);
666 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
667 _this.clutterembed.el.get_stage().height);
672 // user defined functions
675 public class Xcls_objectview : Object
677 public GtkClutter.Actor el;
678 private Xcls_MainWindow _this;
684 public Xcls_objectview(Xcls_MainWindow _owner )
687 _this.objectview = this;
688 this.el = new GtkClutter.Actor();
692 // set gobject values
699 this.el.add_constraint(
700 new Clutter.AlignConstraint(
701 _this.clutterembed.el.get_stage(),
702 Clutter.AlignAxis.X_AXIS,
707 this.el.fixed_x = 50.0f;
708 this.el.fixed_y = 0.0f;
709 //this.el.set_position(100,100);
710 this.el.set_pivot_point(0.0f,0.0f);
711 this.el.set_scale(0.0f,1.0f);
712 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
713 _this.clutterembed.el.get_stage().height);
718 // user defined functions
721 public class Xcls_codeeditview : Object
723 public GtkClutter.Actor el;
724 private Xcls_MainWindow _this;
730 public Xcls_codeeditview(Xcls_MainWindow _owner )
733 _this.codeeditview = this;
734 this.el = new GtkClutter.Actor();
738 // set gobject values
745 this.el.add_constraint(
746 new Clutter.AlignConstraint(
747 _this.clutterembed.el.get_stage(),
748 Clutter.AlignAxis.X_AXIS,
753 this.el.fixed_x = 50.0f;
754 this.el.fixed_y = 0.0f;
755 //this.el.set_position(100,100);
756 this.el.set_pivot_point(0.0f,0.0f);
757 this.el.set_scale(0.0f,1.0f);
758 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
759 _this.clutterembed.el.get_stage().height);
764 // user defined functions
767 public class Xcls_addpropsview : Object
769 public GtkClutter.Actor el;
770 private Xcls_MainWindow _this;
776 public Xcls_addpropsview(Xcls_MainWindow _owner )
779 _this.addpropsview = this;
780 this.el = new GtkClutter.Actor();
784 // set gobject values
791 this.el.add_constraint(
792 new Clutter.AlignConstraint(
793 _this.clutterembed.el.get_stage(),
794 Clutter.AlignAxis.X_AXIS,
799 this.el.fixed_x = 50.0f;
800 this.el.fixed_y = 0.0f;
801 //this.el.set_position(100,100);
802 this.el.set_pivot_point(0.0f,0.0f);
803 this.el.set_scale(0.0f,1.0f);
804 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
805 _this.clutterembed.el.get_stage().height);
810 // user defined functions
813 public class Xcls_projecteditview : Object
815 public GtkClutter.Actor el;
816 private Xcls_MainWindow _this;
822 public Xcls_projecteditview(Xcls_MainWindow _owner )
825 _this.projecteditview = this;
826 this.el = new GtkClutter.Actor();
830 // set gobject values
837 this.el.add_constraint(
838 new Clutter.AlignConstraint(
839 _this.clutterembed.el.get_stage(),
840 Clutter.AlignAxis.X_AXIS,
845 //this.el.set_position(100,100);
846 this.el.set_pivot_point(0.0f,0.0f);
847 this.el.set_scale(1.0f,0.0f);
848 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
849 _this.clutterembed.el.get_stage().height /2);
854 // user defined functions
857 public class Xcls_buttonlayout : Object
859 public Clutter.Actor el;
860 private Xcls_MainWindow _this;
866 public Xcls_buttonlayout(Xcls_MainWindow _owner )
869 _this.buttonlayout = this;
870 this.el = new Clutter.Actor();
874 // set gobject values
875 var child_0 = new Xcls_BoxLayout25( _this );
877 this.el.layout_manager = child_0.el;
878 var child_1 = new Xcls_backbutton( _this );
880 this.el.add_child ( child_1.el );
881 var child_2 = new Xcls_projectbutton( _this );
883 this.el.add_child ( child_2.el );
884 var child_3 = new Xcls_editfilebutton( _this );
886 this.el.add_child ( child_3.el );
887 var child_4 = new Xcls_projecteditbutton( _this );
889 this.el.add_child ( child_4.el );
890 var child_5 = new Xcls_objectshowbutton( _this );
892 this.el.add_child ( child_5.el );
893 var child_6 = new Xcls_addpropbutton( _this );
895 this.el.add_child ( child_6.el );
896 var child_7 = new Xcls_addlistenerbutton( _this );
898 this.el.add_child ( child_7.el );
899 var child_8 = new Xcls_addprojectbutton( _this );
901 this.el.add_child ( child_8.el );
902 var child_9 = new Xcls_addfilebutton( _this );
904 this.el.add_child ( child_9.el );
905 var child_10 = new Xcls_delprojectbutton( _this );
907 this.el.add_child ( child_10.el );
913 this.el.add_constraint(
914 new Clutter.AlignConstraint(
915 _this.clutterembed.el.get_stage(),
916 Clutter.AlignAxis.X_AXIS,
922 //this.el.set_position(100,100);
923 this.el.set_pivot_point(0.5f,0.5f);
925 _this.clutterembed.el.get_stage().height);
930 // user defined functions
932 public class Xcls_BoxLayout25 : Object
934 public Clutter.BoxLayout el;
935 private Xcls_MainWindow _this;
941 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
944 this.el = new Clutter.BoxLayout();
948 // set gobject values
949 this.el.orientation = Clutter.Orientation.VERTICAL;
952 // user defined functions
955 public class Xcls_backbutton : Object
957 public Clutter.Actor el;
958 private Xcls_MainWindow _this;
964 public Xcls_backbutton(Xcls_MainWindow _owner )
967 _this.backbutton = this;
968 this.el = new Clutter.Actor();
972 // set gobject values
973 var child_0 = new Xcls_Actor27( _this );
975 this.el.add_child ( child_0.el );
979 this.el.set_size(50,50);
982 // user defined functions
984 public class Xcls_Actor27 : Object
986 public GtkClutter.Actor el;
987 private Xcls_MainWindow _this;
993 public Xcls_Actor27(Xcls_MainWindow _owner )
996 this.el = new GtkClutter.Actor();
1000 // set gobject values
1001 var child_0 = new Xcls_Button28( _this );
1006 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1009 // user defined functions
1011 public class Xcls_Button28 : Object
1013 public Gtk.Button el;
1014 private Xcls_MainWindow _this;
1020 public Xcls_Button28(Xcls_MainWindow _owner )
1023 this.el = new Gtk.Button();
1027 // set gobject values
1028 this.el.width_request = 50;
1029 this.el.height_request = 50;
1030 this.el.tooltip_text = "Back";
1031 var child_0 = new Xcls_Image29( _this );
1033 this.el.set_image ( child_0.el );
1036 this.el.clicked.connect( ( ) => {
1038 _this.windowstate.switchState(WindowState.State.PREVIEW);
1044 // user defined functions
1046 public class Xcls_Image29 : Object
1048 public Gtk.Image el;
1049 private Xcls_MainWindow _this;
1055 public Xcls_Image29(Xcls_MainWindow _owner )
1058 this.el = new Gtk.Image();
1062 // set gobject values
1063 this.el.icon_name = "go-previous";
1066 // user defined functions
1072 public class Xcls_projectbutton : Object
1074 public Clutter.Actor el;
1075 private Xcls_MainWindow _this;
1081 public Xcls_projectbutton(Xcls_MainWindow _owner )
1084 _this.projectbutton = this;
1085 this.el = new Clutter.Actor();
1089 // set gobject values
1090 var child_0 = new Xcls_Actor31( _this );
1092 this.el.add_child ( child_0.el );
1096 this.el.set_size(50,50);
1099 // user defined functions
1101 public class Xcls_Actor31 : Object
1103 public GtkClutter.Actor el;
1104 private Xcls_MainWindow _this;
1110 public Xcls_Actor31(Xcls_MainWindow _owner )
1113 this.el = new GtkClutter.Actor();
1117 // set gobject values
1118 var child_0 = new Xcls_Button32( _this );
1123 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1126 // user defined functions
1128 public class Xcls_Button32 : Object
1130 public Gtk.Button el;
1131 private Xcls_MainWindow _this;
1137 public Xcls_Button32(Xcls_MainWindow _owner )
1140 this.el = new Gtk.Button();
1144 // set gobject values
1145 this.el.width_request = 50;
1146 this.el.height_request = 50;
1147 var child_0 = new Xcls_Image33( _this );
1149 this.el.set_image ( child_0.el );
1152 this.el.clicked.connect( ( ) => {
1153 _this.windowstate.switchState(WindowState.State.FILES);
1159 // user defined functions
1161 public class Xcls_Image33 : Object
1163 public Gtk.Image el;
1164 private Xcls_MainWindow _this;
1170 public Xcls_Image33(Xcls_MainWindow _owner )
1173 this.el = new Gtk.Image();
1177 // set gobject values
1178 this.el.icon_name = "document-open";
1181 // user defined functions
1187 public class Xcls_editfilebutton : Object
1189 public Clutter.Actor el;
1190 private Xcls_MainWindow _this;
1196 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1199 _this.editfilebutton = this;
1200 this.el = new Clutter.Actor();
1204 // set gobject values
1205 var child_0 = new Xcls_Actor35( _this );
1207 this.el.add_child ( child_0.el );
1211 this.el.set_size(50.0f,50.0f);
1214 // user defined functions
1216 public class Xcls_Actor35 : Object
1218 public GtkClutter.Actor el;
1219 private Xcls_MainWindow _this;
1225 public Xcls_Actor35(Xcls_MainWindow _owner )
1228 this.el = new GtkClutter.Actor();
1232 // set gobject values
1233 var child_0 = new Xcls_Button36( _this );
1238 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1241 // user defined functions
1243 public class Xcls_Button36 : Object
1245 public Gtk.Button el;
1246 private Xcls_MainWindow _this;
1252 public Xcls_Button36(Xcls_MainWindow _owner )
1255 this.el = new Gtk.Button();
1259 // set gobject values
1260 this.el.width_request = 50;
1261 this.el.height_request = 50;
1262 this.el.tooltip_text = "File Details";
1263 var child_0 = new Xcls_Image37( _this );
1265 this.el.set_image ( child_0.el );
1268 this.el.clicked.connect( ( ) => {
1270 // create a new file in project..
1271 if (_this.project == null || _this.windowstate.file == null) {
1274 _this.windowstate.file_details.show(
1275 _this.windowstate.file, this.el
1284 // user defined functions
1286 public class Xcls_Image37 : Object
1288 public Gtk.Image el;
1289 private Xcls_MainWindow _this;
1295 public Xcls_Image37(Xcls_MainWindow _owner )
1298 this.el = new Gtk.Image();
1302 // set gobject values
1303 this.el.icon_name = "document-properties";
1306 // user defined functions
1312 public class Xcls_projecteditbutton : Object
1314 public Clutter.Actor el;
1315 private Xcls_MainWindow _this;
1321 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1324 _this.projecteditbutton = this;
1325 this.el = new Clutter.Actor();
1329 // set gobject values
1330 var child_0 = new Xcls_Actor39( _this );
1332 this.el.add_child ( child_0.el );
1336 this.el.set_size(50,50);
1339 // user defined functions
1341 public class Xcls_Actor39 : Object
1343 public GtkClutter.Actor el;
1344 private Xcls_MainWindow _this;
1350 public Xcls_Actor39(Xcls_MainWindow _owner )
1353 this.el = new GtkClutter.Actor();
1357 // set gobject values
1358 var child_0 = new Xcls_Button40( _this );
1363 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1366 // user defined functions
1368 public class Xcls_Button40 : Object
1370 public Gtk.Button el;
1371 private Xcls_MainWindow _this;
1377 public Xcls_Button40(Xcls_MainWindow _owner )
1380 this.el = new Gtk.Button();
1384 // set gobject values
1385 this.el.width_request = 50;
1386 this.el.height_request = 50;
1387 this.el.tooltip_text = "Project Details";
1388 var child_0 = new Xcls_Image41( _this );
1390 this.el.set_image ( child_0.el );
1393 this.el.clicked.connect( ( ) => {
1394 _this.windowstate.switchState(WindowState.State.PROJECT);
1401 // user defined functions
1403 public class Xcls_Image41 : Object
1405 public Gtk.Image el;
1406 private Xcls_MainWindow _this;
1412 public Xcls_Image41(Xcls_MainWindow _owner )
1415 this.el = new Gtk.Image();
1419 // set gobject values
1420 this.el.icon_name = "emblem-system";
1423 // user defined functions
1429 public class Xcls_objectshowbutton : Object
1431 public Clutter.Actor el;
1432 private Xcls_MainWindow _this;
1438 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1441 _this.objectshowbutton = this;
1442 this.el = new Clutter.Actor();
1446 // set gobject values
1447 var child_0 = new Xcls_Actor43( _this );
1449 this.el.add_child ( child_0.el );
1453 this.el.set_size(50,50);
1456 this.el.enter_event.connect( ( event) => {
1457 this.el.background_color = Clutter.Color.from_string("#333");
1460 this.el.leave_event.connect( ( event) => {
1461 this.el.background_color = Clutter.Color.from_string("#000");
1466 // user defined functions
1468 public class Xcls_Actor43 : Object
1470 public GtkClutter.Actor el;
1471 private Xcls_MainWindow _this;
1477 public Xcls_Actor43(Xcls_MainWindow _owner )
1480 this.el = new GtkClutter.Actor();
1484 // set gobject values
1485 var child_0 = new Xcls_Button44( _this );
1490 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1493 // user defined functions
1495 public class Xcls_Button44 : Object
1497 public Gtk.Button el;
1498 private Xcls_MainWindow _this;
1504 public Xcls_Button44(Xcls_MainWindow _owner )
1507 this.el = new Gtk.Button();
1511 // set gobject values
1512 this.el.width_request = 50;
1513 this.el.height_request = 50;
1514 this.el.tooltip_text = "Add Child Element";
1515 var child_0 = new Xcls_Image45( _this );
1517 this.el.set_image ( child_0.el );
1520 this.el.clicked.connect( ( ) => {
1522 _this.windowstate.switchState(WindowState.State.OBJECT);
1528 // user defined functions
1530 public class Xcls_Image45 : Object
1532 public Gtk.Image el;
1533 private Xcls_MainWindow _this;
1539 public Xcls_Image45(Xcls_MainWindow _owner )
1542 this.el = new Gtk.Image();
1546 // set gobject values
1547 this.el.icon_name = "list-add";
1550 // user defined functions
1556 public class Xcls_addpropbutton : Object
1558 public Clutter.Actor el;
1559 private Xcls_MainWindow _this;
1565 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1568 _this.addpropbutton = this;
1569 this.el = new Clutter.Actor();
1573 // set gobject values
1574 var child_0 = new Xcls_Actor47( _this );
1576 this.el.add_child ( child_0.el );
1580 this.el.set_size(50,50);
1583 // user defined functions
1585 public class Xcls_Actor47 : Object
1587 public GtkClutter.Actor el;
1588 private Xcls_MainWindow _this;
1594 public Xcls_Actor47(Xcls_MainWindow _owner )
1597 this.el = new GtkClutter.Actor();
1601 // set gobject values
1602 var child_0 = new Xcls_Button48( _this );
1607 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1610 // user defined functions
1612 public class Xcls_Button48 : Object
1614 public Gtk.Button el;
1615 private Xcls_MainWindow _this;
1621 public Xcls_Button48(Xcls_MainWindow _owner )
1624 this.el = new Gtk.Button();
1628 // set gobject values
1629 this.el.width_request = 50;
1630 this.el.height_request = 50;
1631 this.el.tooltip_text = "Add Property";
1632 var child_0 = new Xcls_Image49( _this );
1634 this.el.set_image ( child_0.el );
1637 this.el.clicked.connect( ( ) => {
1639 _this.windowstate.switchState(WindowState.State.PROP);
1645 // user defined functions
1647 public class Xcls_Image49 : Object
1649 public Gtk.Image el;
1650 private Xcls_MainWindow _this;
1656 public Xcls_Image49(Xcls_MainWindow _owner )
1659 this.el = new Gtk.Image();
1663 // set gobject values
1664 this.el.icon_name = "format-justify-left";
1667 // user defined functions
1673 public class Xcls_addlistenerbutton : Object
1675 public Clutter.Actor el;
1676 private Xcls_MainWindow _this;
1682 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1685 _this.addlistenerbutton = this;
1686 this.el = new Clutter.Actor();
1690 // set gobject values
1691 var child_0 = new Xcls_Actor51( _this );
1693 this.el.add_child ( child_0.el );
1697 this.el.set_size(50,50);
1700 // user defined functions
1702 public class Xcls_Actor51 : Object
1704 public GtkClutter.Actor el;
1705 private Xcls_MainWindow _this;
1711 public Xcls_Actor51(Xcls_MainWindow _owner )
1714 this.el = new GtkClutter.Actor();
1718 // set gobject values
1719 var child_0 = new Xcls_Button52( _this );
1724 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1727 // user defined functions
1729 public class Xcls_Button52 : Object
1731 public Gtk.Button el;
1732 private Xcls_MainWindow _this;
1738 public Xcls_Button52(Xcls_MainWindow _owner )
1741 this.el = new Gtk.Button();
1745 // set gobject values
1746 this.el.width_request = 50;
1747 this.el.height_request = 50;
1748 this.el.tooltip_text = "Add Event Code";
1749 var child_0 = new Xcls_Image53( _this );
1751 this.el.set_image ( child_0.el );
1754 this.el.clicked.connect( ( ) => {
1756 _this.windowstate.switchState(WindowState.State.LISTENER);
1763 // user defined functions
1765 public class Xcls_Image53 : Object
1767 public Gtk.Image el;
1768 private Xcls_MainWindow _this;
1774 public Xcls_Image53(Xcls_MainWindow _owner )
1777 this.el = new Gtk.Image();
1781 // set gobject values
1782 this.el.icon_name = "appointment-new";
1785 // user defined functions
1791 public class Xcls_addprojectbutton : Object
1793 public Clutter.Actor el;
1794 private Xcls_MainWindow _this;
1800 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1803 _this.addprojectbutton = this;
1804 this.el = new Clutter.Actor();
1808 // set gobject values
1809 var child_0 = new Xcls_Actor55( _this );
1811 this.el.add_child ( child_0.el );
1815 this.el.set_size(50.0f,50.0f);
1818 // user defined functions
1820 public class Xcls_Actor55 : Object
1822 public GtkClutter.Actor el;
1823 private Xcls_MainWindow _this;
1829 public Xcls_Actor55(Xcls_MainWindow _owner )
1832 this.el = new GtkClutter.Actor();
1836 // set gobject values
1837 var child_0 = new Xcls_Button56( _this );
1842 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1845 // user defined functions
1847 public class Xcls_Button56 : Object
1849 public Gtk.Button el;
1850 private Xcls_MainWindow _this;
1856 public Xcls_Button56(Xcls_MainWindow _owner )
1859 this.el = new Gtk.Button();
1863 // set gobject values
1864 this.el.width_request = 50;
1865 this.el.height_request = 50;
1866 this.el.tooltip_text = "New\nProj.";
1867 var child_0 = new Xcls_Image57( _this );
1869 this.el.set_image ( child_0.el );
1872 this.el.clicked.connect( ( ) => {
1874 // create a new file in project..
1875 //Xcls_DialogNewComponent.singleton().show(
1876 var pe = EditProject.singleton();
1877 pe.el.set_transient_for(_this.el);
1878 pe.el.set_modal(true);
1887 _this.windowstate.left_projects.is_loaded = false;
1888 _this.windowstate.left_projects.load();
1889 _this.windowstate.left_projects.selectProject(p);
1896 // user defined functions
1898 public class Xcls_Image57 : Object
1900 public Gtk.Image el;
1901 private Xcls_MainWindow _this;
1907 public Xcls_Image57(Xcls_MainWindow _owner )
1910 this.el = new Gtk.Image();
1914 // set gobject values
1915 this.el.icon_name = "folder-new";
1918 // user defined functions
1924 public class Xcls_addfilebutton : Object
1926 public Clutter.Actor el;
1927 private Xcls_MainWindow _this;
1933 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1936 _this.addfilebutton = this;
1937 this.el = new Clutter.Actor();
1941 // set gobject values
1942 var child_0 = new Xcls_Actor59( _this );
1944 this.el.add_child ( child_0.el );
1948 this.el.set_size(50.0f,50.0f);
1951 // user defined functions
1953 public class Xcls_Actor59 : Object
1955 public GtkClutter.Actor el;
1956 private Xcls_MainWindow _this;
1962 public Xcls_Actor59(Xcls_MainWindow _owner )
1965 this.el = new GtkClutter.Actor();
1969 // set gobject values
1970 var child_0 = new Xcls_Button60( _this );
1975 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1978 // user defined functions
1980 public class Xcls_Button60 : Object
1982 public Gtk.Button el;
1983 private Xcls_MainWindow _this;
1989 public Xcls_Button60(Xcls_MainWindow _owner )
1992 this.el = new Gtk.Button();
1996 // set gobject values
1997 this.el.width_request = 50;
1998 this.el.height_request = 50;
1999 this.el.tooltip_text = "Add File";
2000 var child_0 = new Xcls_Image61( _this );
2002 this.el.set_image ( child_0.el );
2005 this.el.clicked.connect( () => {
2006 // create a new file in project..
2007 print("add file selected\n");
2008 // what's the currently selected project...
2009 var proj = _this.windowstate.left_projects.getSelectedProject();
2012 print("no project selected?\n");
2016 print("creating file?");
2018 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2019 _this.project = proj;
2020 print("showing popup?");
2021 _this.windowstate.file_details.show(
2030 // user defined functions
2032 public class Xcls_Image61 : Object
2034 public Gtk.Image el;
2035 private Xcls_MainWindow _this;
2041 public Xcls_Image61(Xcls_MainWindow _owner )
2044 this.el = new Gtk.Image();
2048 // set gobject values
2049 this.el.icon_name = "document-new";
2052 // user defined functions
2058 public class Xcls_delprojectbutton : Object
2060 public Clutter.Actor el;
2061 private Xcls_MainWindow _this;
2067 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2070 _this.delprojectbutton = this;
2071 this.el = new Clutter.Actor();
2075 // set gobject values
2076 var child_0 = new Xcls_Actor63( _this );
2078 this.el.add_child ( child_0.el );
2082 this.el.set_size(50,50);
2085 // user defined functions
2087 public class Xcls_Actor63 : Object
2089 public GtkClutter.Actor el;
2090 private Xcls_MainWindow _this;
2096 public Xcls_Actor63(Xcls_MainWindow _owner )
2099 this.el = new GtkClutter.Actor();
2103 // set gobject values
2104 var child_0 = new Xcls_Button64( _this );
2109 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2112 // user defined functions
2114 public class Xcls_Button64 : Object
2116 public Gtk.Button el;
2117 private Xcls_MainWindow _this;
2123 public Xcls_Button64(Xcls_MainWindow _owner )
2126 this.el = new Gtk.Button();
2130 // set gobject values
2131 this.el.width_request = 50;
2132 this.el.height_request = 50;
2133 this.el.tooltip_text = "Delete Project";
2134 var child_0 = new Xcls_Image65( _this );
2136 this.el.set_image ( child_0.el );
2139 this.el.clicked.connect( ( ) => {
2141 var cd = DialogConfirm.singleton();
2142 cd.el.set_transient_for(_this.el);
2143 cd.el.set_modal(true);
2145 var project = _this.windowstate.left_projects.getSelectedProject();
2146 if (project == null) {
2147 print("SKIP - no project\n");
2152 if (Gtk.ResponseType.YES != cd.show("Confirm",
2153 "Are you sure you want to delete project %s".printf(project.name))) {
2159 Project.Project.remove(project);
2160 _this.project = null;
2162 _this.windowstate.left_projects.is_loaded = false;
2163 _this.windowstate.left_projects.load();
2164 _this.windowstate.clutterfiles.clearFiles();
2169 // user defined functions
2171 public class Xcls_Image65 : Object
2173 public Gtk.Image el;
2174 private Xcls_MainWindow _this;
2180 public Xcls_Image65(Xcls_MainWindow _owner )
2183 this.el = new Gtk.Image();
2187 // set gobject values
2188 this.el.icon_name = "user-trash";
2191 // user defined functions
2201 public class Xcls_Box66 : Object
2204 private Xcls_MainWindow _this;
2210 public Xcls_Box66(Xcls_MainWindow _owner )
2213 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2217 // set gobject values
2218 this.el.homogeneous = false;
2219 var child_0 = new Xcls_Label67( _this );
2221 this.el.pack_start ( child_0.el , true,true,0 );
2222 var child_1 = new Xcls_statusbar( _this );
2224 this.el.pack_start ( child_1.el , true,true,0 );
2225 var child_2 = new Xcls_Entry69( _this );
2227 this.el.pack_start ( child_2.el , ?bool?,?bool?,?uint? );
2228 var child_3 = new Xcls_MenuBar70( _this );
2230 this.el.pack_end ( child_3.el , false,true,0 );
2233 // user defined functions
2235 public class Xcls_Label67 : Object
2237 public Gtk.Label el;
2238 private Xcls_MainWindow _this;
2244 public Xcls_Label67(Xcls_MainWindow _owner )
2247 this.el = new Gtk.Label( " " );
2251 // set gobject values
2254 // user defined functions
2257 public class Xcls_statusbar : Object
2259 public Gtk.ProgressBar el;
2260 private Xcls_MainWindow _this;
2264 public ulong handler_id;
2267 public Xcls_statusbar(Xcls_MainWindow _owner )
2270 _this.statusbar = this;
2271 this.el = new Gtk.ProgressBar();
2274 this.handler_id = -1;
2276 // set gobject values
2277 this.el.show_text = true;
2282 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2285 _this.mainpane.el.set_sensitive(true);
2289 _this.mainpane.el.set_sensitive(false);
2291 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2292 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2298 // user defined functions
2301 public class Xcls_Entry69 : Object
2303 public Gtk.Entry el;
2304 private Xcls_MainWindow _this;
2310 public Xcls_Entry69(Xcls_MainWindow _owner )
2313 this.el = new Gtk.Entry();
2317 // set gobject values
2320 // user defined functions
2323 public class Xcls_MenuBar70 : Object
2325 public Gtk.MenuBar el;
2326 private Xcls_MainWindow _this;
2332 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2335 this.el = new Gtk.MenuBar();
2339 // set gobject values
2340 var child_0 = new Xcls_MenuItem71( _this );
2342 this.el.add ( child_0.el );
2343 var child_1 = new Xcls_statusbar_errors( _this );
2345 this.el.add ( child_1.el );
2346 var child_2 = new Xcls_statusbar_warnings( _this );
2348 this.el.add ( child_2.el );
2349 var child_3 = new Xcls_statusbar_depricated( _this );
2351 this.el.add ( child_3.el );
2352 var child_4 = new Xcls_statusbar_run( _this );
2354 this.el.add ( child_4.el );
2357 // user defined functions
2359 public class Xcls_MenuItem71 : Object
2361 public Gtk.MenuItem el;
2362 private Xcls_MainWindow _this;
2368 public Xcls_MenuItem71(Xcls_MainWindow _owner )
2371 this.el = new Gtk.MenuItem();
2375 // set gobject values
2376 this.el.label = "Compile Status:";
2379 // user defined functions
2382 public class Xcls_statusbar_errors : Object
2384 public Gtk.ImageMenuItem el;
2385 private Xcls_MainWindow _this;
2389 public Xcls_ValaCompileErrors popup;
2390 public Json.Object notices;
2393 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2396 _this.statusbar_errors = this;
2397 this.el = new Gtk.ImageMenuItem();
2400 this.notices = new Json.Object() ;
2402 // set gobject values
2403 this.el.always_show_image = true;
2404 this.el.label = "Errors";
2405 var child_0 = new Xcls_Image73( _this );
2407 this.el.set_image ( child_0.el );
2410 this.el.button_press_event.connect( () => {
2411 if (this.popup == null) {
2412 this.popup = new Xcls_ValaCompileErrors();
2413 this.popup.window = _this;
2417 this.popup.show(this.notices, this.el);
2422 // user defined functions
2423 public void setNotices (Json.Object nots, int qty) {
2425 this.el.label = qty.to_string() + " Errors";
2426 this.notices = nots;
2430 public class Xcls_Image73 : Object
2432 public Gtk.Image el;
2433 private Xcls_MainWindow _this;
2439 public Xcls_Image73(Xcls_MainWindow _owner )
2442 this.el = new Gtk.Image();
2446 // set gobject values
2447 this.el.icon_name = "dialog-error";
2450 // user defined functions
2454 public class Xcls_statusbar_warnings : Object
2456 public Gtk.ImageMenuItem el;
2457 private Xcls_MainWindow _this;
2461 public Xcls_ValaCompileErrors popup;
2462 public Json.Object notices;
2465 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2468 _this.statusbar_warnings = this;
2469 this.el = new Gtk.ImageMenuItem();
2472 this.notices = new Json.Object();
2474 // set gobject values
2475 this.el.always_show_image = true;
2476 this.el.label = "Warnings";
2477 var child_0 = new Xcls_Image75( _this );
2479 this.el.set_image ( child_0.el );
2482 this.el.button_press_event.connect( () => {
2483 if (this.popup == null) {
2484 this.popup = new Xcls_ValaCompileErrors();
2485 this.popup.window = _this;
2488 this.popup.show(this.notices, this.el);
2493 // user defined functions
2494 public void setNotices (Json.Object nots, int qty) {
2496 this.el.label = qty.to_string() + " Warnings";
2497 this.notices = nots;
2501 public class Xcls_Image75 : Object
2503 public Gtk.Image el;
2504 private Xcls_MainWindow _this;
2510 public Xcls_Image75(Xcls_MainWindow _owner )
2513 this.el = new Gtk.Image();
2517 // set gobject values
2518 this.el.icon_name = "dialog-warning";
2521 // user defined functions
2525 public class Xcls_statusbar_depricated : Object
2527 public Gtk.ImageMenuItem el;
2528 private Xcls_MainWindow _this;
2532 public Xcls_ValaCompileErrors popup;
2533 public Json.Object notices;
2536 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2539 _this.statusbar_depricated = this;
2540 this.el = new Gtk.ImageMenuItem();
2543 this.notices = new Json.Object();
2545 // set gobject values
2546 this.el.always_show_image = true;
2547 this.el.label = "Depricated";
2548 var child_0 = new Xcls_Image77( _this );
2550 this.el.set_image ( child_0.el );
2553 this.el.button_press_event.connect( () => {
2554 if (this.popup == null) {
2555 this.popup = new Xcls_ValaCompileErrors();
2556 this.popup.window = _this;
2560 this.popup.show(this.notices, this.el);
2565 // user defined functions
2566 public void setNotices (Json.Object nots, int qty) {
2568 this.el.label = qty.to_string() + " Depricated";
2569 this.notices = nots;
2573 public class Xcls_Image77 : Object
2575 public Gtk.Image el;
2576 private Xcls_MainWindow _this;
2582 public Xcls_Image77(Xcls_MainWindow _owner )
2585 this.el = new Gtk.Image();
2589 // set gobject values
2590 this.el.icon_name = "dialog-information";
2593 // user defined functions
2597 public class Xcls_statusbar_run : Object
2599 public Gtk.ImageMenuItem el;
2600 private Xcls_MainWindow _this;
2604 public Xcls_ValaCompileErrors popup;
2607 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2610 _this.statusbar_run = this;
2611 this.el = new Gtk.ImageMenuItem();
2615 // set gobject values
2616 this.el.always_show_image = true;
2617 this.el.label = "Run";
2618 var child_0 = new Xcls_Image79( _this );
2620 this.el.set_image ( child_0.el );
2623 this.el.button_press_event.connect( () => {
2624 if (_this.windowstate.file == null) {
2627 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2629 _this.windowstate.compile_results.show(this.el,true);
2635 // user defined functions
2637 public class Xcls_Image79 : Object
2639 public Gtk.Image el;
2640 private Xcls_MainWindow _this;
2646 public Xcls_Image79(Xcls_MainWindow _owner )
2649 this.el = new Gtk.Image();
2653 // set gobject values
2654 this.el.icon_name = "media-playback-start";
2657 // user defined functions