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;
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 = "Application Builder";
61 this.windowstate = null;
64 this.el.border_width = 0;
65 this.el.default_height = 500;
66 this.el.default_width = 800;
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 );
79 this.el.delete_event.connect( ( event) => {
82 this.el.destroy.connect( () => {
83 Xcls_MainWindow.singleton().no_windows--;
85 Resources.singleton().disconnect(_this.statusbar.handler_id);
88 if (Xcls_MainWindow.singleton().no_windows < 1) {
93 this.el.show.connect( ( ) => {
94 // hide the file editing..
96 //this.hideViewEditing();
97 _this.statusbar.el.hide();
98 _this.statusbar_errors.el.hide();
99 _this.statusbar_warnings.el.hide();
100 _this.statusbar_depricated.el.hide();
103 Resources.singleton().checkResources();
108 // user defined functions
109 public void initChildren () {
110 // this needs putting in a better place..
111 this.windowstate = new WindowState(this);
115 var tl = new Clutter.Timeline(6000);
116 tl.set_repeat_count(-1);
125 public void show () {
130 public void setTitle (string str) {
131 this.headerbar.el.set_title(this.title + " - " + str);
133 public class Xcls_headerbar : Object
135 public Gtk.HeaderBar el;
136 private Xcls_MainWindow _this;
142 public Xcls_headerbar(Xcls_MainWindow _owner )
145 _this.headerbar = this;
146 this.el = new Gtk.HeaderBar();
150 // set gobject values
151 this.el.title = "Application Builder";
152 this.el.show_close_button = true;
153 var child_0 = new Xcls_Box3( _this );
155 this.el.pack_start ( child_0.el );
158 // user defined functions
160 public class Xcls_Box3 : Object
163 private Xcls_MainWindow _this;
169 public Xcls_Box3(Xcls_MainWindow _owner )
172 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
176 // set gobject values
177 var child_0 = new Xcls_MenuButton4( _this );
179 this.el.add ( child_0.el );
182 // user defined functions
184 public class Xcls_MenuButton4 : Object
186 public Gtk.MenuButton el;
187 private Xcls_MainWindow _this;
193 public Xcls_MenuButton4(Xcls_MainWindow _owner )
196 this.el = new Gtk.MenuButton();
200 // set gobject values
201 this.el.use_popover = false;
202 var child_0 = new Xcls_topbarmenu( _this );
204 this.el.set_popup ( child_0.el );
205 var child_1 = new Xcls_Image10( _this );
207 this.el.set_image ( child_1.el );
210 // user defined functions
212 public class Xcls_topbarmenu : Object
215 private Xcls_MainWindow _this;
221 public Xcls_topbarmenu(Xcls_MainWindow _owner )
224 _this.topbarmenu = this;
225 this.el = new Gtk.Menu();
229 // set gobject values
230 var child_0 = new Xcls_MenuItem6( _this );
232 this.el.append ( child_0.el );
233 var child_1 = new Xcls_SeparatorMenuItem7( _this );
235 this.el.append ( child_1.el );
236 var child_2 = new Xcls_MenuItem8( _this );
238 this.el.append ( child_2.el );
239 var child_3 = new Xcls_MenuItem9( _this );
241 this.el.append ( child_3.el );
250 // user defined functions
252 public class Xcls_MenuItem6 : Object
254 public Gtk.MenuItem el;
255 private Xcls_MainWindow _this;
261 public Xcls_MenuItem6(Xcls_MainWindow _owner )
264 this.el = new Gtk.MenuItem();
268 // set gobject values
269 this.el.label = "Open a new Window";
272 this.el.activate.connect( ( ) => {
273 Xcls_MainWindow.singleton().no_windows++;
274 var w = new Xcls_MainWindow();
279 w.windowstate.switchState(WindowState.State.FILES);
283 // user defined functions
286 public class Xcls_SeparatorMenuItem7 : Object
288 public Gtk.SeparatorMenuItem el;
289 private Xcls_MainWindow _this;
295 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
298 this.el = new Gtk.SeparatorMenuItem();
302 // set gobject values
305 // user defined functions
308 public class Xcls_MenuItem8 : Object
310 public Gtk.MenuItem el;
311 private Xcls_MainWindow _this;
317 public Xcls_MenuItem8(Xcls_MainWindow _owner )
320 this.el = new Gtk.MenuItem();
324 // set gobject values
325 this.el.label = "Download updated Resources";
328 this.el.activate.connect( ( ) => {
329 Resources.singleton().fetchStart();
333 // user defined functions
336 public class Xcls_MenuItem9 : Object
338 public Gtk.MenuItem el;
339 private Xcls_MainWindow _this;
345 public Xcls_MenuItem9(Xcls_MainWindow _owner )
348 this.el = new Gtk.MenuItem();
352 // set gobject values
353 this.el.label = "About the Builder";
356 this.el.activate.connect( () => {
357 About.singleton().el.show();
361 // user defined functions
365 public class Xcls_Image10 : Object
368 private Xcls_MainWindow _this;
374 public Xcls_Image10(Xcls_MainWindow _owner )
377 this.el = new Gtk.Image();
381 // set gobject values
382 this.el.icon_name = "help-about";
385 // user defined functions
391 public class Xcls_vbox : Object
394 private Xcls_MainWindow _this;
400 public Xcls_vbox(Xcls_MainWindow _owner )
404 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
408 // set gobject values
409 this.el.homogeneous = false;
410 var child_0 = new Xcls_mainpane( _this );
412 this.el.pack_start ( child_0.el , true,true,0 );
413 var child_1 = new Xcls_HBox66( _this );
415 this.el.pack_end ( child_1.el , false,true,0 );
418 // user defined functions
420 public class Xcls_mainpane : Object
423 private Xcls_MainWindow _this;
427 public int lastWidth;
430 public Xcls_mainpane(Xcls_MainWindow _owner )
433 _this.mainpane = this;
434 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
439 // set gobject values
440 this.el.position = 400;
441 var child_0 = new Xcls_leftpane( _this );
443 this.el.add1 ( child_0.el );
444 var child_1 = new Xcls_VBox17( _this );
446 this.el.add2 ( child_1.el );
449 // user defined functions
451 public class Xcls_leftpane : Object
454 private Xcls_MainWindow _this;
460 public Xcls_leftpane(Xcls_MainWindow _owner )
463 _this.leftpane = this;
464 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
468 // set gobject values
469 var child_0 = new Xcls_editpane( _this );
471 this.el.pack_start ( child_0.el , false,true,0 );
474 // user defined functions
476 public class Xcls_editpane : Object
479 private Xcls_MainWindow _this;
485 public Xcls_editpane(Xcls_MainWindow _owner )
488 _this.editpane = this;
489 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
493 // set gobject values
494 var child_0 = new Xcls_tree( _this );
496 this.el.add1 ( child_0.el );
497 var child_1 = new Xcls_props( _this );
499 this.el.add2 ( child_1.el );
502 // user defined functions
504 public class Xcls_tree : Object
507 private Xcls_MainWindow _this;
513 public Xcls_tree(Xcls_MainWindow _owner )
517 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
521 // set gobject values
524 // user defined functions
527 public class Xcls_props : Object
530 private Xcls_MainWindow _this;
536 public Xcls_props(Xcls_MainWindow _owner )
540 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
544 // set gobject values
547 // user defined functions
552 public class Xcls_VBox17 : Object
555 private Xcls_MainWindow _this;
561 public Xcls_VBox17(Xcls_MainWindow _owner )
564 this.el = new Gtk.VBox( true, 0 );
568 // set gobject values
569 this.el.orientation = Gtk.Orientation.VERTICAL;
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.left_tree.model.file == null) {
1274 _this.windowstate.file_details.show(
1275 _this.windowstate.left_tree.model.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 = new Clutter.Color.from_string("#333");
1460 this.el.leave_event.connect( ( event) => {
1461 this.el.background_color = new 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..
2008 // what's the currently selected project...
2009 var proj = _this.windowstate.left_projects.getSelectedProject();
2017 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2018 _this.project = proj;
2020 _this.windowstate.file_details.show(
2029 // user defined functions
2031 public class Xcls_Image61 : Object
2033 public Gtk.Image el;
2034 private Xcls_MainWindow _this;
2040 public Xcls_Image61(Xcls_MainWindow _owner )
2043 this.el = new Gtk.Image();
2047 // set gobject values
2048 this.el.icon_name = "document-new";
2051 // user defined functions
2057 public class Xcls_delprojectbutton : Object
2059 public Clutter.Actor el;
2060 private Xcls_MainWindow _this;
2066 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2069 _this.delprojectbutton = this;
2070 this.el = new Clutter.Actor();
2074 // set gobject values
2075 var child_0 = new Xcls_Actor63( _this );
2077 this.el.add_child ( child_0.el );
2081 this.el.set_size(50,50);
2084 // user defined functions
2086 public class Xcls_Actor63 : Object
2088 public GtkClutter.Actor el;
2089 private Xcls_MainWindow _this;
2095 public Xcls_Actor63(Xcls_MainWindow _owner )
2098 this.el = new GtkClutter.Actor();
2102 // set gobject values
2103 var child_0 = new Xcls_Button64( _this );
2108 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2111 // user defined functions
2113 public class Xcls_Button64 : Object
2115 public Gtk.Button el;
2116 private Xcls_MainWindow _this;
2122 public Xcls_Button64(Xcls_MainWindow _owner )
2125 this.el = new Gtk.Button();
2129 // set gobject values
2130 this.el.width_request = 50;
2131 this.el.height_request = 50;
2132 this.el.tooltip_text = "Delete Project";
2133 var child_0 = new Xcls_Image65( _this );
2135 this.el.set_image ( child_0.el );
2138 this.el.clicked.connect( ( ) => {
2140 var cd = DialogConfirm.singleton();
2141 cd.el.set_transient_for(_this.el);
2142 cd.el.set_modal(true);
2144 var project = _this.windowstate.left_projects.getSelectedProject();
2145 if (project == null) {
2146 print("SKIP - no project\n");
2151 if (Gtk.ResponseType.YES != cd.show("Confirm",
2152 "Are you sure you want to delete project %s".printf(project.name))) {
2158 Project.Project.remove(project);
2159 _this.project = null;
2161 _this.windowstate.left_projects.is_loaded = false;
2162 _this.windowstate.left_projects.load();
2163 _this.windowstate.clutterfiles.clearFiles();
2168 // user defined functions
2170 public class Xcls_Image65 : Object
2172 public Gtk.Image el;
2173 private Xcls_MainWindow _this;
2179 public Xcls_Image65(Xcls_MainWindow _owner )
2182 this.el = new Gtk.Image();
2186 // set gobject values
2187 this.el.icon_name = "user-trash";
2190 // user defined functions
2200 public class Xcls_HBox66 : Object
2203 private Xcls_MainWindow _this;
2209 public Xcls_HBox66(Xcls_MainWindow _owner )
2212 this.el = new Gtk.HBox( false, 0 );
2216 // set gobject values
2217 var child_0 = new Xcls_Label67( _this );
2219 this.el.pack_start ( child_0.el , true,true,0 );
2220 var child_1 = new Xcls_statusbar( _this );
2222 this.el.pack_start ( child_1.el , true,true,0 );
2223 var child_2 = new Xcls_MenuBar69( _this );
2225 this.el.pack_end ( child_2.el , false,true,0 );
2228 // user defined functions
2230 public class Xcls_Label67 : Object
2232 public Gtk.Label el;
2233 private Xcls_MainWindow _this;
2239 public Xcls_Label67(Xcls_MainWindow _owner )
2242 this.el = new Gtk.Label( " " );
2246 // set gobject values
2249 // user defined functions
2252 public class Xcls_statusbar : Object
2254 public Gtk.ProgressBar el;
2255 private Xcls_MainWindow _this;
2259 public ulong handler_id;
2262 public Xcls_statusbar(Xcls_MainWindow _owner )
2265 _this.statusbar = this;
2266 this.el = new Gtk.ProgressBar();
2269 this.handler_id = -1;
2271 // set gobject values
2272 this.el.show_text = true;
2277 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2280 _this.mainpane.el.set_sensitive(true);
2284 _this.mainpane.el.set_sensitive(false);
2286 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2287 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2293 // user defined functions
2296 public class Xcls_MenuBar69 : Object
2298 public Gtk.MenuBar el;
2299 private Xcls_MainWindow _this;
2305 public Xcls_MenuBar69(Xcls_MainWindow _owner )
2308 this.el = new Gtk.MenuBar();
2312 // set gobject values
2313 var child_0 = new Xcls_MenuItem70( _this );
2315 this.el.add ( child_0.el );
2316 var child_1 = new Xcls_statusbar_errors( _this );
2318 this.el.add ( child_1.el );
2319 var child_2 = new Xcls_statusbar_warnings( _this );
2321 this.el.add ( child_2.el );
2322 var child_3 = new Xcls_statusbar_depricated( _this );
2324 this.el.add ( child_3.el );
2327 // user defined functions
2329 public class Xcls_MenuItem70 : Object
2331 public Gtk.MenuItem el;
2332 private Xcls_MainWindow _this;
2338 public Xcls_MenuItem70(Xcls_MainWindow _owner )
2341 this.el = new Gtk.MenuItem();
2345 // set gobject values
2346 this.el.label = "Compile Status:";
2349 // user defined functions
2352 public class Xcls_statusbar_errors : Object
2354 public Gtk.ImageMenuItem el;
2355 private Xcls_MainWindow _this;
2359 public Xcls_ValaCompileErrors popup;
2360 public Json.Object notices;
2363 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2366 _this.statusbar_errors = this;
2367 this.el = new Gtk.ImageMenuItem();
2370 this.notices = new Json.Object() ;
2372 // set gobject values
2373 this.el.always_show_image = true;
2374 this.el.label = "Errors";
2375 var child_0 = new Xcls_Image72( _this );
2377 this.el.set_image ( child_0.el );
2380 this.el.button_press_event.connect( () => {
2381 if (this.popup == null) {
2382 this.popup = new Xcls_ValaCompileErrors();
2383 this.popup.window = _this;
2387 this.popup.show(this.notices, this.el);
2392 // user defined functions
2393 public void setNotices (Json.Object nots, int qty) {
2395 this.el.label = qty.to_string() + " Errors";
2396 this.notices = nots;
2400 public class Xcls_Image72 : Object
2402 public Gtk.Image el;
2403 private Xcls_MainWindow _this;
2409 public Xcls_Image72(Xcls_MainWindow _owner )
2412 this.el = new Gtk.Image();
2416 // set gobject values
2417 this.el.icon_name = "dialog-error";
2420 // user defined functions
2424 public class Xcls_statusbar_warnings : Object
2426 public Gtk.ImageMenuItem el;
2427 private Xcls_MainWindow _this;
2431 public Xcls_ValaCompileErrors popup;
2432 public Json.Object notices;
2435 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2438 _this.statusbar_warnings = this;
2439 this.el = new Gtk.ImageMenuItem();
2442 this.notices = new Json.Object();
2444 // set gobject values
2445 this.el.always_show_image = true;
2446 this.el.label = "Warnings";
2447 var child_0 = new Xcls_Image74( _this );
2449 this.el.set_image ( child_0.el );
2452 this.el.button_press_event.connect( () => {
2453 if (this.popup == null) {
2454 this.popup = new Xcls_ValaCompileErrors();
2455 this.popup.window = _this;
2458 this.popup.show(this.notices, this.el);
2463 // user defined functions
2464 public void setNotices (Json.Object nots, int qty) {
2466 this.el.label = qty.to_string() + " Warnings";
2467 this.notices = nots;
2471 public class Xcls_Image74 : Object
2473 public Gtk.Image el;
2474 private Xcls_MainWindow _this;
2480 public Xcls_Image74(Xcls_MainWindow _owner )
2483 this.el = new Gtk.Image();
2487 // set gobject values
2488 this.el.icon_name = "dialog-warning";
2491 // user defined functions
2495 public class Xcls_statusbar_depricated : Object
2497 public Gtk.ImageMenuItem el;
2498 private Xcls_MainWindow _this;
2502 public Xcls_ValaCompileErrors popup;
2503 public Json.Object notices;
2506 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2509 _this.statusbar_depricated = this;
2510 this.el = new Gtk.ImageMenuItem();
2513 this.notices = new Json.Object();
2515 // set gobject values
2516 this.el.always_show_image = true;
2517 this.el.label = "Depricated";
2518 var child_0 = new Xcls_Image76( _this );
2520 this.el.set_image ( child_0.el );
2523 this.el.button_press_event.connect( () => {
2524 if (this.popup == null) {
2525 this.popup = new Xcls_ValaCompileErrors();
2526 this.popup.window = _this;
2530 this.popup.show(this.notices, this.el);
2535 // user defined functions
2536 public void setNotices (Json.Object nots, int qty) {
2538 this.el.label = qty.to_string() + " Depricated";
2539 this.notices = nots;
2543 public class Xcls_Image76 : Object
2545 public Gtk.Image el;
2546 private Xcls_MainWindow _this;
2552 public Xcls_Image76(Xcls_MainWindow _owner )
2555 this.el = new Gtk.Image();
2559 // set gobject values
2560 this.el.icon_name = "dialog-information";
2563 // user defined functions