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_Box66( _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_Box17( _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 , true,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_Box17 : Object
555 private Xcls_MainWindow _this;
561 public Xcls_Box17(Xcls_MainWindow _owner )
564 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
568 // set gobject values
569 var child_0 = new Xcls_clutterembed( _this );
571 this.el.pack_start ( child_0.el , true,true,0 );
574 // user defined functions
576 public class Xcls_clutterembed : Object
578 public GtkClutter.Embed el;
579 private Xcls_MainWindow _this;
585 public Xcls_clutterembed(Xcls_MainWindow _owner )
588 _this.clutterembed = this;
589 this.el = new GtkClutter.Embed();
593 // set gobject values
594 var child_0 = new Xcls_rooview( _this );
596 this.el.get_stage().add_child ( child_0.el );
597 var child_1 = new Xcls_objectview( _this );
599 this.el.get_stage().add_child ( child_1.el );
600 var child_2 = new Xcls_codeeditview( _this );
602 this.el.get_stage().add_child ( child_2.el );
603 var child_3 = new Xcls_addpropsview( _this );
605 this.el.get_stage().add_child ( child_3.el );
606 var child_4 = new Xcls_projecteditview( _this );
608 this.el.get_stage().add_child ( child_4.el );
609 var child_5 = new Xcls_buttonlayout( _this );
611 this.el.get_stage().add_child ( child_5.el );
615 var stage = this.el.get_stage();
616 stage.set_background_color( Clutter.Color.from_string("#000"));
619 this.el.size_allocate.connect( ( alloc) => {
620 if (_this.windowstate == null) {
623 _this.windowstate.resizeCanvas();
628 // user defined functions
630 public class Xcls_rooview : Object
632 public GtkClutter.Actor el;
633 private Xcls_MainWindow _this;
639 public Xcls_rooview(Xcls_MainWindow _owner )
642 _this.rooview = this;
643 this.el = new GtkClutter.Actor();
647 // set gobject values
654 this.el.add_constraint(
655 new Clutter.AlignConstraint(
656 _this.clutterembed.el.get_stage(),
657 Clutter.AlignAxis.X_AXIS,
662 //this.el.set_position(100,100);
663 this.el.set_pivot_point(1.0f,1.0f);
665 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
666 _this.clutterembed.el.get_stage().height);
671 // user defined functions
674 public class Xcls_objectview : Object
676 public GtkClutter.Actor el;
677 private Xcls_MainWindow _this;
683 public Xcls_objectview(Xcls_MainWindow _owner )
686 _this.objectview = this;
687 this.el = new GtkClutter.Actor();
691 // set gobject values
698 this.el.add_constraint(
699 new Clutter.AlignConstraint(
700 _this.clutterembed.el.get_stage(),
701 Clutter.AlignAxis.X_AXIS,
706 this.el.fixed_x = 50.0f;
707 this.el.fixed_y = 0.0f;
708 //this.el.set_position(100,100);
709 this.el.set_pivot_point(0.0f,0.0f);
710 this.el.set_scale(0.0f,1.0f);
711 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
712 _this.clutterembed.el.get_stage().height);
717 // user defined functions
720 public class Xcls_codeeditview : Object
722 public GtkClutter.Actor el;
723 private Xcls_MainWindow _this;
729 public Xcls_codeeditview(Xcls_MainWindow _owner )
732 _this.codeeditview = this;
733 this.el = new GtkClutter.Actor();
737 // set gobject values
744 this.el.add_constraint(
745 new Clutter.AlignConstraint(
746 _this.clutterembed.el.get_stage(),
747 Clutter.AlignAxis.X_AXIS,
752 this.el.fixed_x = 50.0f;
753 this.el.fixed_y = 0.0f;
754 //this.el.set_position(100,100);
755 this.el.set_pivot_point(0.0f,0.0f);
756 this.el.set_scale(0.0f,1.0f);
757 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
758 _this.clutterembed.el.get_stage().height);
763 // user defined functions
766 public class Xcls_addpropsview : Object
768 public GtkClutter.Actor el;
769 private Xcls_MainWindow _this;
775 public Xcls_addpropsview(Xcls_MainWindow _owner )
778 _this.addpropsview = this;
779 this.el = new GtkClutter.Actor();
783 // set gobject values
790 this.el.add_constraint(
791 new Clutter.AlignConstraint(
792 _this.clutterembed.el.get_stage(),
793 Clutter.AlignAxis.X_AXIS,
798 this.el.fixed_x = 50.0f;
799 this.el.fixed_y = 0.0f;
800 //this.el.set_position(100,100);
801 this.el.set_pivot_point(0.0f,0.0f);
802 this.el.set_scale(0.0f,1.0f);
803 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
804 _this.clutterembed.el.get_stage().height);
809 // user defined functions
812 public class Xcls_projecteditview : Object
814 public GtkClutter.Actor el;
815 private Xcls_MainWindow _this;
821 public Xcls_projecteditview(Xcls_MainWindow _owner )
824 _this.projecteditview = this;
825 this.el = new GtkClutter.Actor();
829 // set gobject values
836 this.el.add_constraint(
837 new Clutter.AlignConstraint(
838 _this.clutterembed.el.get_stage(),
839 Clutter.AlignAxis.X_AXIS,
844 //this.el.set_position(100,100);
845 this.el.set_pivot_point(0.0f,0.0f);
846 this.el.set_scale(1.0f,0.0f);
847 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
848 _this.clutterembed.el.get_stage().height /2);
853 // user defined functions
856 public class Xcls_buttonlayout : Object
858 public Clutter.Actor el;
859 private Xcls_MainWindow _this;
865 public Xcls_buttonlayout(Xcls_MainWindow _owner )
868 _this.buttonlayout = this;
869 this.el = new Clutter.Actor();
873 // set gobject values
874 var child_0 = new Xcls_BoxLayout25( _this );
876 this.el.layout_manager = child_0.el;
877 var child_1 = new Xcls_backbutton( _this );
879 this.el.add_child ( child_1.el );
880 var child_2 = new Xcls_projectbutton( _this );
882 this.el.add_child ( child_2.el );
883 var child_3 = new Xcls_editfilebutton( _this );
885 this.el.add_child ( child_3.el );
886 var child_4 = new Xcls_projecteditbutton( _this );
888 this.el.add_child ( child_4.el );
889 var child_5 = new Xcls_objectshowbutton( _this );
891 this.el.add_child ( child_5.el );
892 var child_6 = new Xcls_addpropbutton( _this );
894 this.el.add_child ( child_6.el );
895 var child_7 = new Xcls_addlistenerbutton( _this );
897 this.el.add_child ( child_7.el );
898 var child_8 = new Xcls_addprojectbutton( _this );
900 this.el.add_child ( child_8.el );
901 var child_9 = new Xcls_addfilebutton( _this );
903 this.el.add_child ( child_9.el );
904 var child_10 = new Xcls_delprojectbutton( _this );
906 this.el.add_child ( child_10.el );
912 this.el.add_constraint(
913 new Clutter.AlignConstraint(
914 _this.clutterembed.el.get_stage(),
915 Clutter.AlignAxis.X_AXIS,
921 //this.el.set_position(100,100);
922 this.el.set_pivot_point(0.5f,0.5f);
924 _this.clutterembed.el.get_stage().height);
929 // user defined functions
931 public class Xcls_BoxLayout25 : Object
933 public Clutter.BoxLayout el;
934 private Xcls_MainWindow _this;
940 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
943 this.el = new Clutter.BoxLayout();
947 // set gobject values
948 this.el.orientation = Clutter.Orientation.VERTICAL;
951 // user defined functions
954 public class Xcls_backbutton : Object
956 public Clutter.Actor el;
957 private Xcls_MainWindow _this;
963 public Xcls_backbutton(Xcls_MainWindow _owner )
966 _this.backbutton = this;
967 this.el = new Clutter.Actor();
971 // set gobject values
972 var child_0 = new Xcls_Actor27( _this );
974 this.el.add_child ( child_0.el );
978 this.el.set_size(50,50);
981 // user defined functions
983 public class Xcls_Actor27 : Object
985 public GtkClutter.Actor el;
986 private Xcls_MainWindow _this;
992 public Xcls_Actor27(Xcls_MainWindow _owner )
995 this.el = new GtkClutter.Actor();
999 // set gobject values
1000 var child_0 = new Xcls_Button28( _this );
1005 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1008 // user defined functions
1010 public class Xcls_Button28 : Object
1012 public Gtk.Button el;
1013 private Xcls_MainWindow _this;
1019 public Xcls_Button28(Xcls_MainWindow _owner )
1022 this.el = new Gtk.Button();
1026 // set gobject values
1027 this.el.width_request = 50;
1028 this.el.height_request = 50;
1029 this.el.tooltip_text = "Back";
1030 var child_0 = new Xcls_Image29( _this );
1032 this.el.set_image ( child_0.el );
1035 this.el.clicked.connect( ( ) => {
1037 _this.windowstate.switchState(WindowState.State.PREVIEW);
1043 // user defined functions
1045 public class Xcls_Image29 : Object
1047 public Gtk.Image el;
1048 private Xcls_MainWindow _this;
1054 public Xcls_Image29(Xcls_MainWindow _owner )
1057 this.el = new Gtk.Image();
1061 // set gobject values
1062 this.el.icon_name = "go-previous";
1065 // user defined functions
1071 public class Xcls_projectbutton : Object
1073 public Clutter.Actor el;
1074 private Xcls_MainWindow _this;
1080 public Xcls_projectbutton(Xcls_MainWindow _owner )
1083 _this.projectbutton = this;
1084 this.el = new Clutter.Actor();
1088 // set gobject values
1089 var child_0 = new Xcls_Actor31( _this );
1091 this.el.add_child ( child_0.el );
1095 this.el.set_size(50,50);
1098 // user defined functions
1100 public class Xcls_Actor31 : Object
1102 public GtkClutter.Actor el;
1103 private Xcls_MainWindow _this;
1109 public Xcls_Actor31(Xcls_MainWindow _owner )
1112 this.el = new GtkClutter.Actor();
1116 // set gobject values
1117 var child_0 = new Xcls_Button32( _this );
1122 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1125 // user defined functions
1127 public class Xcls_Button32 : Object
1129 public Gtk.Button el;
1130 private Xcls_MainWindow _this;
1136 public Xcls_Button32(Xcls_MainWindow _owner )
1139 this.el = new Gtk.Button();
1143 // set gobject values
1144 this.el.width_request = 50;
1145 this.el.height_request = 50;
1146 var child_0 = new Xcls_Image33( _this );
1148 this.el.set_image ( child_0.el );
1151 this.el.clicked.connect( ( ) => {
1152 _this.windowstate.switchState(WindowState.State.FILES);
1158 // user defined functions
1160 public class Xcls_Image33 : Object
1162 public Gtk.Image el;
1163 private Xcls_MainWindow _this;
1169 public Xcls_Image33(Xcls_MainWindow _owner )
1172 this.el = new Gtk.Image();
1176 // set gobject values
1177 this.el.icon_name = "document-open";
1180 // user defined functions
1186 public class Xcls_editfilebutton : Object
1188 public Clutter.Actor el;
1189 private Xcls_MainWindow _this;
1195 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1198 _this.editfilebutton = this;
1199 this.el = new Clutter.Actor();
1203 // set gobject values
1204 var child_0 = new Xcls_Actor35( _this );
1206 this.el.add_child ( child_0.el );
1210 this.el.set_size(50.0f,50.0f);
1213 // user defined functions
1215 public class Xcls_Actor35 : Object
1217 public GtkClutter.Actor el;
1218 private Xcls_MainWindow _this;
1224 public Xcls_Actor35(Xcls_MainWindow _owner )
1227 this.el = new GtkClutter.Actor();
1231 // set gobject values
1232 var child_0 = new Xcls_Button36( _this );
1237 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1240 // user defined functions
1242 public class Xcls_Button36 : Object
1244 public Gtk.Button el;
1245 private Xcls_MainWindow _this;
1251 public Xcls_Button36(Xcls_MainWindow _owner )
1254 this.el = new Gtk.Button();
1258 // set gobject values
1259 this.el.width_request = 50;
1260 this.el.height_request = 50;
1261 this.el.tooltip_text = "File Details";
1262 var child_0 = new Xcls_Image37( _this );
1264 this.el.set_image ( child_0.el );
1267 this.el.clicked.connect( ( ) => {
1269 // create a new file in project..
1270 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1273 _this.windowstate.file_details.show(
1274 _this.windowstate.left_tree.model.file, this.el
1283 // user defined functions
1285 public class Xcls_Image37 : Object
1287 public Gtk.Image el;
1288 private Xcls_MainWindow _this;
1294 public Xcls_Image37(Xcls_MainWindow _owner )
1297 this.el = new Gtk.Image();
1301 // set gobject values
1302 this.el.icon_name = "document-properties";
1305 // user defined functions
1311 public class Xcls_projecteditbutton : Object
1313 public Clutter.Actor el;
1314 private Xcls_MainWindow _this;
1320 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1323 _this.projecteditbutton = this;
1324 this.el = new Clutter.Actor();
1328 // set gobject values
1329 var child_0 = new Xcls_Actor39( _this );
1331 this.el.add_child ( child_0.el );
1335 this.el.set_size(50,50);
1338 // user defined functions
1340 public class Xcls_Actor39 : Object
1342 public GtkClutter.Actor el;
1343 private Xcls_MainWindow _this;
1349 public Xcls_Actor39(Xcls_MainWindow _owner )
1352 this.el = new GtkClutter.Actor();
1356 // set gobject values
1357 var child_0 = new Xcls_Button40( _this );
1362 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1365 // user defined functions
1367 public class Xcls_Button40 : Object
1369 public Gtk.Button el;
1370 private Xcls_MainWindow _this;
1376 public Xcls_Button40(Xcls_MainWindow _owner )
1379 this.el = new Gtk.Button();
1383 // set gobject values
1384 this.el.width_request = 50;
1385 this.el.height_request = 50;
1386 this.el.tooltip_text = "Project Details";
1387 var child_0 = new Xcls_Image41( _this );
1389 this.el.set_image ( child_0.el );
1392 this.el.clicked.connect( ( ) => {
1393 _this.windowstate.switchState(WindowState.State.PROJECT);
1400 // user defined functions
1402 public class Xcls_Image41 : Object
1404 public Gtk.Image el;
1405 private Xcls_MainWindow _this;
1411 public Xcls_Image41(Xcls_MainWindow _owner )
1414 this.el = new Gtk.Image();
1418 // set gobject values
1419 this.el.icon_name = "emblem-system";
1422 // user defined functions
1428 public class Xcls_objectshowbutton : Object
1430 public Clutter.Actor el;
1431 private Xcls_MainWindow _this;
1437 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1440 _this.objectshowbutton = this;
1441 this.el = new Clutter.Actor();
1445 // set gobject values
1446 var child_0 = new Xcls_Actor43( _this );
1448 this.el.add_child ( child_0.el );
1452 this.el.set_size(50,50);
1455 this.el.enter_event.connect( ( event) => {
1456 this.el.background_color = Clutter.Color.from_string("#333");
1459 this.el.leave_event.connect( ( event) => {
1460 this.el.background_color = Clutter.Color.from_string("#000");
1465 // user defined functions
1467 public class Xcls_Actor43 : Object
1469 public GtkClutter.Actor el;
1470 private Xcls_MainWindow _this;
1476 public Xcls_Actor43(Xcls_MainWindow _owner )
1479 this.el = new GtkClutter.Actor();
1483 // set gobject values
1484 var child_0 = new Xcls_Button44( _this );
1489 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1492 // user defined functions
1494 public class Xcls_Button44 : Object
1496 public Gtk.Button el;
1497 private Xcls_MainWindow _this;
1503 public Xcls_Button44(Xcls_MainWindow _owner )
1506 this.el = new Gtk.Button();
1510 // set gobject values
1511 this.el.width_request = 50;
1512 this.el.height_request = 50;
1513 this.el.tooltip_text = "Add Child Element";
1514 var child_0 = new Xcls_Image45( _this );
1516 this.el.set_image ( child_0.el );
1519 this.el.clicked.connect( ( ) => {
1521 _this.windowstate.switchState(WindowState.State.OBJECT);
1527 // user defined functions
1529 public class Xcls_Image45 : Object
1531 public Gtk.Image el;
1532 private Xcls_MainWindow _this;
1538 public Xcls_Image45(Xcls_MainWindow _owner )
1541 this.el = new Gtk.Image();
1545 // set gobject values
1546 this.el.icon_name = "list-add";
1549 // user defined functions
1555 public class Xcls_addpropbutton : Object
1557 public Clutter.Actor el;
1558 private Xcls_MainWindow _this;
1564 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1567 _this.addpropbutton = this;
1568 this.el = new Clutter.Actor();
1572 // set gobject values
1573 var child_0 = new Xcls_Actor47( _this );
1575 this.el.add_child ( child_0.el );
1579 this.el.set_size(50,50);
1582 // user defined functions
1584 public class Xcls_Actor47 : Object
1586 public GtkClutter.Actor el;
1587 private Xcls_MainWindow _this;
1593 public Xcls_Actor47(Xcls_MainWindow _owner )
1596 this.el = new GtkClutter.Actor();
1600 // set gobject values
1601 var child_0 = new Xcls_Button48( _this );
1606 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1609 // user defined functions
1611 public class Xcls_Button48 : Object
1613 public Gtk.Button el;
1614 private Xcls_MainWindow _this;
1620 public Xcls_Button48(Xcls_MainWindow _owner )
1623 this.el = new Gtk.Button();
1627 // set gobject values
1628 this.el.width_request = 50;
1629 this.el.height_request = 50;
1630 this.el.tooltip_text = "Add Property";
1631 var child_0 = new Xcls_Image49( _this );
1633 this.el.set_image ( child_0.el );
1636 this.el.clicked.connect( ( ) => {
1638 _this.windowstate.switchState(WindowState.State.PROP);
1644 // user defined functions
1646 public class Xcls_Image49 : Object
1648 public Gtk.Image el;
1649 private Xcls_MainWindow _this;
1655 public Xcls_Image49(Xcls_MainWindow _owner )
1658 this.el = new Gtk.Image();
1662 // set gobject values
1663 this.el.icon_name = "format-justify-left";
1666 // user defined functions
1672 public class Xcls_addlistenerbutton : Object
1674 public Clutter.Actor el;
1675 private Xcls_MainWindow _this;
1681 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1684 _this.addlistenerbutton = this;
1685 this.el = new Clutter.Actor();
1689 // set gobject values
1690 var child_0 = new Xcls_Actor51( _this );
1692 this.el.add_child ( child_0.el );
1696 this.el.set_size(50,50);
1699 // user defined functions
1701 public class Xcls_Actor51 : Object
1703 public GtkClutter.Actor el;
1704 private Xcls_MainWindow _this;
1710 public Xcls_Actor51(Xcls_MainWindow _owner )
1713 this.el = new GtkClutter.Actor();
1717 // set gobject values
1718 var child_0 = new Xcls_Button52( _this );
1723 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1726 // user defined functions
1728 public class Xcls_Button52 : Object
1730 public Gtk.Button el;
1731 private Xcls_MainWindow _this;
1737 public Xcls_Button52(Xcls_MainWindow _owner )
1740 this.el = new Gtk.Button();
1744 // set gobject values
1745 this.el.width_request = 50;
1746 this.el.height_request = 50;
1747 this.el.tooltip_text = "Add Event Code";
1748 var child_0 = new Xcls_Image53( _this );
1750 this.el.set_image ( child_0.el );
1753 this.el.clicked.connect( ( ) => {
1755 _this.windowstate.switchState(WindowState.State.LISTENER);
1762 // user defined functions
1764 public class Xcls_Image53 : Object
1766 public Gtk.Image el;
1767 private Xcls_MainWindow _this;
1773 public Xcls_Image53(Xcls_MainWindow _owner )
1776 this.el = new Gtk.Image();
1780 // set gobject values
1781 this.el.icon_name = "appointment-new";
1784 // user defined functions
1790 public class Xcls_addprojectbutton : Object
1792 public Clutter.Actor el;
1793 private Xcls_MainWindow _this;
1799 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1802 _this.addprojectbutton = this;
1803 this.el = new Clutter.Actor();
1807 // set gobject values
1808 var child_0 = new Xcls_Actor55( _this );
1810 this.el.add_child ( child_0.el );
1814 this.el.set_size(50.0f,50.0f);
1817 // user defined functions
1819 public class Xcls_Actor55 : Object
1821 public GtkClutter.Actor el;
1822 private Xcls_MainWindow _this;
1828 public Xcls_Actor55(Xcls_MainWindow _owner )
1831 this.el = new GtkClutter.Actor();
1835 // set gobject values
1836 var child_0 = new Xcls_Button56( _this );
1841 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1844 // user defined functions
1846 public class Xcls_Button56 : Object
1848 public Gtk.Button el;
1849 private Xcls_MainWindow _this;
1855 public Xcls_Button56(Xcls_MainWindow _owner )
1858 this.el = new Gtk.Button();
1862 // set gobject values
1863 this.el.width_request = 50;
1864 this.el.height_request = 50;
1865 this.el.tooltip_text = "New\nProj.";
1866 var child_0 = new Xcls_Image57( _this );
1868 this.el.set_image ( child_0.el );
1871 this.el.clicked.connect( ( ) => {
1873 // create a new file in project..
1874 //Xcls_DialogNewComponent.singleton().show(
1875 var pe = EditProject.singleton();
1876 pe.el.set_transient_for(_this.el);
1877 pe.el.set_modal(true);
1886 _this.windowstate.left_projects.is_loaded = false;
1887 _this.windowstate.left_projects.load();
1888 _this.windowstate.left_projects.selectProject(p);
1895 // user defined functions
1897 public class Xcls_Image57 : Object
1899 public Gtk.Image el;
1900 private Xcls_MainWindow _this;
1906 public Xcls_Image57(Xcls_MainWindow _owner )
1909 this.el = new Gtk.Image();
1913 // set gobject values
1914 this.el.icon_name = "folder-new";
1917 // user defined functions
1923 public class Xcls_addfilebutton : Object
1925 public Clutter.Actor el;
1926 private Xcls_MainWindow _this;
1932 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1935 _this.addfilebutton = this;
1936 this.el = new Clutter.Actor();
1940 // set gobject values
1941 var child_0 = new Xcls_Actor59( _this );
1943 this.el.add_child ( child_0.el );
1947 this.el.set_size(50.0f,50.0f);
1950 // user defined functions
1952 public class Xcls_Actor59 : Object
1954 public GtkClutter.Actor el;
1955 private Xcls_MainWindow _this;
1961 public Xcls_Actor59(Xcls_MainWindow _owner )
1964 this.el = new GtkClutter.Actor();
1968 // set gobject values
1969 var child_0 = new Xcls_Button60( _this );
1974 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1977 // user defined functions
1979 public class Xcls_Button60 : Object
1981 public Gtk.Button el;
1982 private Xcls_MainWindow _this;
1988 public Xcls_Button60(Xcls_MainWindow _owner )
1991 this.el = new Gtk.Button();
1995 // set gobject values
1996 this.el.width_request = 50;
1997 this.el.height_request = 50;
1998 this.el.tooltip_text = "Add File";
1999 var child_0 = new Xcls_Image61( _this );
2001 this.el.set_image ( child_0.el );
2004 this.el.clicked.connect( () => {
2005 // create a new file in project..
2007 // what's the currently selected project...
2008 var proj = _this.windowstate.left_projects.getSelectedProject();
2016 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2017 _this.project = proj;
2019 _this.windowstate.file_details.show(
2028 // user defined functions
2030 public class Xcls_Image61 : Object
2032 public Gtk.Image el;
2033 private Xcls_MainWindow _this;
2039 public Xcls_Image61(Xcls_MainWindow _owner )
2042 this.el = new Gtk.Image();
2046 // set gobject values
2047 this.el.icon_name = "document-new";
2050 // user defined functions
2056 public class Xcls_delprojectbutton : Object
2058 public Clutter.Actor el;
2059 private Xcls_MainWindow _this;
2065 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2068 _this.delprojectbutton = this;
2069 this.el = new Clutter.Actor();
2073 // set gobject values
2074 var child_0 = new Xcls_Actor63( _this );
2076 this.el.add_child ( child_0.el );
2080 this.el.set_size(50,50);
2083 // user defined functions
2085 public class Xcls_Actor63 : Object
2087 public GtkClutter.Actor el;
2088 private Xcls_MainWindow _this;
2094 public Xcls_Actor63(Xcls_MainWindow _owner )
2097 this.el = new GtkClutter.Actor();
2101 // set gobject values
2102 var child_0 = new Xcls_Button64( _this );
2107 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2110 // user defined functions
2112 public class Xcls_Button64 : Object
2114 public Gtk.Button el;
2115 private Xcls_MainWindow _this;
2121 public Xcls_Button64(Xcls_MainWindow _owner )
2124 this.el = new Gtk.Button();
2128 // set gobject values
2129 this.el.width_request = 50;
2130 this.el.height_request = 50;
2131 this.el.tooltip_text = "Delete Project";
2132 var child_0 = new Xcls_Image65( _this );
2134 this.el.set_image ( child_0.el );
2137 this.el.clicked.connect( ( ) => {
2139 var cd = DialogConfirm.singleton();
2140 cd.el.set_transient_for(_this.el);
2141 cd.el.set_modal(true);
2143 var project = _this.windowstate.left_projects.getSelectedProject();
2144 if (project == null) {
2145 print("SKIP - no project\n");
2150 if (Gtk.ResponseType.YES != cd.show("Confirm",
2151 "Are you sure you want to delete project %s".printf(project.name))) {
2157 Project.Project.remove(project);
2158 _this.project = null;
2160 _this.windowstate.left_projects.is_loaded = false;
2161 _this.windowstate.left_projects.load();
2162 _this.windowstate.clutterfiles.clearFiles();
2167 // user defined functions
2169 public class Xcls_Image65 : Object
2171 public Gtk.Image el;
2172 private Xcls_MainWindow _this;
2178 public Xcls_Image65(Xcls_MainWindow _owner )
2181 this.el = new Gtk.Image();
2185 // set gobject values
2186 this.el.icon_name = "user-trash";
2189 // user defined functions
2199 public class Xcls_Box66 : Object
2202 private Xcls_MainWindow _this;
2208 public Xcls_Box66(Xcls_MainWindow _owner )
2211 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2215 // set gobject values
2216 this.el.homogeneous = false;
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