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_vbox vbox;
16 public Xcls_mainpane mainpane;
17 public Xcls_leftpane leftpane;
18 public Xcls_editpane editpane;
19 public Xcls_tree tree;
20 public Xcls_props props;
21 public Xcls_clutterembed clutterembed;
22 public Xcls_rooview rooview;
23 public Xcls_objectview objectview;
24 public Xcls_codeeditview codeeditview;
25 public Xcls_addpropsview addpropsview;
26 public Xcls_projecteditview projecteditview;
27 public Xcls_buttonlayout buttonlayout;
28 public Xcls_backbutton backbutton;
29 public Xcls_projectbutton projectbutton;
30 public Xcls_editfilebutton editfilebutton;
31 public Xcls_projecteditbutton projecteditbutton;
32 public Xcls_objectshowbutton objectshowbutton;
33 public Xcls_addpropbutton addpropbutton;
34 public Xcls_addlistenerbutton addlistenerbutton;
35 public Xcls_addprojectbutton addprojectbutton;
36 public Xcls_addfilebutton addfilebutton;
37 public Xcls_delprojectbutton delprojectbutton;
38 public Xcls_reload_resources reload_resources;
39 public Xcls_new_window new_window;
40 public Xcls_about about;
41 public Xcls_statusbar statusbar;
44 public Project.Project project;
46 public int no_windows;
47 public WindowState windowstate;
50 public Xcls_MainWindow()
53 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
57 this.title = "Application Builder";
59 this.windowstate = null;
62 this.el.border_width = 0;
63 this.el.default_height = 500;
64 this.el.default_width = 800;
65 var child_0 = new Xcls_vbox( _this );
67 this.el.add ( child_0.el );
74 this.el.delete_event.connect( ( event) => {
77 this.el.destroy.connect( () => {
78 Xcls_MainWindow.singleton().no_windows--;
80 if (Xcls_MainWindow.singleton().no_windows < 1) {
85 this.el.show.connect( ( ) => {
86 // hide the file editing..
88 //this.hideViewEditing();
89 _this.statusbar.el.hide();
90 Resources.singleton().checkResources();
95 // user defined functions
96 public void initChildren () {
97 // this needs putting in a better place..
98 this.windowstate = new WindowState(this);
102 var tl = new Clutter.Timeline(6000);
103 tl.set_repeat_count(-1);
112 public void show () {
117 public void setTitle (string str) {
118 this.el.set_title(this.title + " - " + str);
120 public class Xcls_vbox : Object
123 private Xcls_MainWindow _this;
129 public Xcls_vbox(Xcls_MainWindow _owner )
133 this.el = new Gtk.VBox( false, 0 );
137 // set gobject values
138 var child_0 = new Xcls_mainpane( _this );
140 this.el.pack_start ( child_0.el , true,true,0 );
141 var child_1 = new Xcls_statusbar( _this );
143 this.el.pack_end ( child_1.el , false,true,0 );
146 // user defined functions
148 public class Xcls_mainpane : Object
150 public Gtk.HPaned el;
151 private Xcls_MainWindow _this;
155 public int lastWidth;
158 public Xcls_mainpane(Xcls_MainWindow _owner )
161 _this.mainpane = this;
162 this.el = new Gtk.HPaned();
167 // set gobject values
168 this.el.position = 400;
169 var child_0 = new Xcls_leftpane( _this );
171 this.el.add1 ( child_0.el );
172 var child_1 = new Xcls_VBox8( _this );
174 this.el.add2 ( child_1.el );
177 // user defined functions
179 public class Xcls_leftpane : Object
182 private Xcls_MainWindow _this;
188 public Xcls_leftpane(Xcls_MainWindow _owner )
191 _this.leftpane = this;
192 this.el = new Gtk.VBox( true, 0 );
196 // set gobject values
197 var child_0 = new Xcls_editpane( _this );
199 this.el.pack_start ( child_0.el , false,true,0 );
202 // user defined functions
204 public class Xcls_editpane : Object
206 public Gtk.VPaned el;
207 private Xcls_MainWindow _this;
213 public Xcls_editpane(Xcls_MainWindow _owner )
216 _this.editpane = this;
217 this.el = new Gtk.VPaned();
221 // set gobject values
222 var child_0 = new Xcls_tree( _this );
224 this.el.add1 ( child_0.el );
225 var child_1 = new Xcls_props( _this );
227 this.el.add2 ( child_1.el );
230 // user defined functions
232 public class Xcls_tree : Object
235 private Xcls_MainWindow _this;
241 public Xcls_tree(Xcls_MainWindow _owner )
245 this.el = new Gtk.VBox( true, 0 );
249 // set gobject values
252 // user defined functions
254 public class Xcls_props : Object
257 private Xcls_MainWindow _this;
263 public Xcls_props(Xcls_MainWindow _owner )
267 this.el = new Gtk.VBox( true, 0 );
271 // set gobject values
274 // user defined functions
276 public class Xcls_VBox8 : Object
279 private Xcls_MainWindow _this;
285 public Xcls_VBox8(Xcls_MainWindow _owner )
288 this.el = new Gtk.VBox( true, 0 );
292 // set gobject values
293 var child_0 = new Xcls_clutterembed( _this );
295 this.el.pack_start ( child_0.el , true,true,0 );
298 // user defined functions
300 public class Xcls_clutterembed : Object
302 public GtkClutter.Embed el;
303 private Xcls_MainWindow _this;
309 public Xcls_clutterembed(Xcls_MainWindow _owner )
312 _this.clutterembed = this;
313 this.el = new GtkClutter.Embed();
317 // set gobject values
318 var child_0 = new Xcls_rooview( _this );
320 this.el.get_stage().add_child ( child_0.el );
321 var child_1 = new Xcls_objectview( _this );
323 this.el.get_stage().add_child ( child_1.el );
324 var child_2 = new Xcls_codeeditview( _this );
326 this.el.get_stage().add_child ( child_2.el );
327 var child_3 = new Xcls_addpropsview( _this );
329 this.el.get_stage().add_child ( child_3.el );
330 var child_4 = new Xcls_projecteditview( _this );
332 this.el.get_stage().add_child ( child_4.el );
333 var child_5 = new Xcls_buttonlayout( _this );
335 this.el.get_stage().add_child ( child_5.el );
339 var stage = this.el.get_stage();
340 stage.set_background_color( Clutter.Color.from_string("#000"));
343 this.el.size_allocate.connect( ( alloc) => {
344 if (_this.windowstate == null) {
347 _this.windowstate.resizeCanvas();
352 // user defined functions
354 public class Xcls_rooview : Object
356 public GtkClutter.Actor el;
357 private Xcls_MainWindow _this;
363 public Xcls_rooview(Xcls_MainWindow _owner )
366 _this.rooview = this;
367 this.el = new GtkClutter.Actor();
371 // set gobject values
378 this.el.add_constraint(
379 new Clutter.AlignConstraint(
380 _this.clutterembed.el.get_stage(),
381 Clutter.AlignAxis.X_AXIS,
386 //this.el.set_position(100,100);
387 this.el.set_pivot_point(1.0f,1.0f);
389 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
390 _this.clutterembed.el.get_stage().height);
395 // user defined functions
397 public class Xcls_objectview : Object
399 public GtkClutter.Actor el;
400 private Xcls_MainWindow _this;
406 public Xcls_objectview(Xcls_MainWindow _owner )
409 _this.objectview = this;
410 this.el = new GtkClutter.Actor();
414 // set gobject values
421 this.el.add_constraint(
422 new Clutter.AlignConstraint(
423 _this.clutterembed.el.get_stage(),
424 Clutter.AlignAxis.X_AXIS,
429 this.el.fixed_x = 50.0f;
430 this.el.fixed_y = 0.0f;
431 //this.el.set_position(100,100);
432 this.el.set_pivot_point(0.0f,0.0f);
433 this.el.set_scale(0.0f,1.0f);
434 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
435 _this.clutterembed.el.get_stage().height);
440 // user defined functions
442 public class Xcls_codeeditview : Object
444 public GtkClutter.Actor el;
445 private Xcls_MainWindow _this;
451 public Xcls_codeeditview(Xcls_MainWindow _owner )
454 _this.codeeditview = this;
455 this.el = new GtkClutter.Actor();
459 // set gobject values
466 this.el.add_constraint(
467 new Clutter.AlignConstraint(
468 _this.clutterembed.el.get_stage(),
469 Clutter.AlignAxis.X_AXIS,
474 this.el.fixed_x = 50.0f;
475 this.el.fixed_y = 0.0f;
476 //this.el.set_position(100,100);
477 this.el.set_pivot_point(0.0f,0.0f);
478 this.el.set_scale(0.0f,1.0f);
479 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
480 _this.clutterembed.el.get_stage().height);
485 // user defined functions
487 public class Xcls_addpropsview : Object
489 public GtkClutter.Actor el;
490 private Xcls_MainWindow _this;
496 public Xcls_addpropsview(Xcls_MainWindow _owner )
499 _this.addpropsview = this;
500 this.el = new GtkClutter.Actor();
504 // set gobject values
511 this.el.add_constraint(
512 new Clutter.AlignConstraint(
513 _this.clutterembed.el.get_stage(),
514 Clutter.AlignAxis.X_AXIS,
519 this.el.fixed_x = 50.0f;
520 this.el.fixed_y = 0.0f;
521 //this.el.set_position(100,100);
522 this.el.set_pivot_point(0.0f,0.0f);
523 this.el.set_scale(0.0f,1.0f);
524 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
525 _this.clutterembed.el.get_stage().height);
530 // user defined functions
532 public class Xcls_projecteditview : Object
534 public GtkClutter.Actor el;
535 private Xcls_MainWindow _this;
541 public Xcls_projecteditview(Xcls_MainWindow _owner )
544 _this.projecteditview = this;
545 this.el = new GtkClutter.Actor();
549 // set gobject values
556 this.el.add_constraint(
557 new Clutter.AlignConstraint(
558 _this.clutterembed.el.get_stage(),
559 Clutter.AlignAxis.X_AXIS,
564 //this.el.set_position(100,100);
565 this.el.set_pivot_point(0.0f,0.0f);
566 this.el.set_scale(1.0f,0.0f);
567 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
568 _this.clutterembed.el.get_stage().height /2);
573 // user defined functions
575 public class Xcls_buttonlayout : Object
577 public Clutter.Actor el;
578 private Xcls_MainWindow _this;
584 public Xcls_buttonlayout(Xcls_MainWindow _owner )
587 _this.buttonlayout = this;
588 this.el = new Clutter.Actor();
592 // set gobject values
593 var child_0 = new Xcls_BoxLayout16( _this );
595 this.el.layout_manager = child_0.el;
596 var child_1 = new Xcls_backbutton( _this );
598 this.el.add_child ( child_1.el );
599 var child_2 = new Xcls_projectbutton( _this );
601 this.el.add_child ( child_2.el );
602 var child_3 = new Xcls_editfilebutton( _this );
604 this.el.add_child ( child_3.el );
605 var child_4 = new Xcls_projecteditbutton( _this );
607 this.el.add_child ( child_4.el );
608 var child_5 = new Xcls_objectshowbutton( _this );
610 this.el.add_child ( child_5.el );
611 var child_6 = new Xcls_addpropbutton( _this );
613 this.el.add_child ( child_6.el );
614 var child_7 = new Xcls_addlistenerbutton( _this );
616 this.el.add_child ( child_7.el );
617 var child_8 = new Xcls_addprojectbutton( _this );
619 this.el.add_child ( child_8.el );
620 var child_9 = new Xcls_addfilebutton( _this );
622 this.el.add_child ( child_9.el );
623 var child_10 = new Xcls_delprojectbutton( _this );
625 this.el.add_child ( child_10.el );
626 var child_11 = new Xcls_reload_resources( _this );
628 this.el.add_child ( child_11.el );
629 var child_12 = new Xcls_new_window( _this );
631 this.el.add_child ( child_12.el );
632 var child_13 = new Xcls_about( _this );
634 this.el.add_child ( child_13.el );
640 this.el.add_constraint(
641 new Clutter.AlignConstraint(
642 _this.clutterembed.el.get_stage(),
643 Clutter.AlignAxis.X_AXIS,
649 //this.el.set_position(100,100);
650 this.el.set_pivot_point(0.5f,0.5f);
652 _this.clutterembed.el.get_stage().height);
657 // user defined functions
659 public class Xcls_BoxLayout16 : Object
661 public Clutter.BoxLayout el;
662 private Xcls_MainWindow _this;
668 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
671 this.el = new Clutter.BoxLayout();
675 // set gobject values
676 this.el.orientation = Clutter.Orientation.VERTICAL;
679 // user defined functions
681 public class Xcls_backbutton : Object
683 public Clutter.Actor el;
684 private Xcls_MainWindow _this;
690 public Xcls_backbutton(Xcls_MainWindow _owner )
693 _this.backbutton = this;
694 this.el = new Clutter.Actor();
698 // set gobject values
699 var child_0 = new Xcls_Actor18( _this );
701 this.el.add_child ( child_0.el );
705 this.el.set_size(50,50);
708 // user defined functions
710 public class Xcls_Actor18 : Object
712 public GtkClutter.Actor el;
713 private Xcls_MainWindow _this;
719 public Xcls_Actor18(Xcls_MainWindow _owner )
722 this.el = new GtkClutter.Actor();
726 // set gobject values
727 var child_0 = new Xcls_Button19( _this );
732 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
735 // user defined functions
737 public class Xcls_Button19 : Object
739 public Gtk.Button el;
740 private Xcls_MainWindow _this;
746 public Xcls_Button19(Xcls_MainWindow _owner )
749 this.el = new Gtk.Button();
753 // set gobject values
754 this.el.width_request = 50;
755 this.el.height_request = 50;
756 this.el.tooltip_text = "Back";
757 var child_0 = new Xcls_Image20( _this );
759 this.el.set_image ( child_0.el );
762 this.el.clicked.connect( ( ) => {
764 _this.windowstate.switchState(WindowState.State.PREVIEW);
770 // user defined functions
772 public class Xcls_Image20 : Object
775 private Xcls_MainWindow _this;
781 public Xcls_Image20(Xcls_MainWindow _owner )
784 this.el = new Gtk.Image();
788 // set gobject values
789 this.el.icon_name = "go-previous";
792 // user defined functions
794 public class Xcls_projectbutton : Object
796 public Clutter.Actor el;
797 private Xcls_MainWindow _this;
803 public Xcls_projectbutton(Xcls_MainWindow _owner )
806 _this.projectbutton = this;
807 this.el = new Clutter.Actor();
811 // set gobject values
812 var child_0 = new Xcls_Actor22( _this );
814 this.el.add_child ( child_0.el );
818 this.el.set_size(50,50);
821 // user defined functions
823 public class Xcls_Actor22 : Object
825 public GtkClutter.Actor el;
826 private Xcls_MainWindow _this;
832 public Xcls_Actor22(Xcls_MainWindow _owner )
835 this.el = new GtkClutter.Actor();
839 // set gobject values
840 var child_0 = new Xcls_Button23( _this );
845 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
848 // user defined functions
850 public class Xcls_Button23 : Object
852 public Gtk.Button el;
853 private Xcls_MainWindow _this;
859 public Xcls_Button23(Xcls_MainWindow _owner )
862 this.el = new Gtk.Button();
866 // set gobject values
867 this.el.width_request = 50;
868 this.el.height_request = 50;
869 var child_0 = new Xcls_Image24( _this );
871 this.el.set_image ( child_0.el );
874 this.el.clicked.connect( ( ) => {
875 _this.windowstate.switchState(WindowState.State.FILES);
881 // user defined functions
883 public class Xcls_Image24 : Object
886 private Xcls_MainWindow _this;
892 public Xcls_Image24(Xcls_MainWindow _owner )
895 this.el = new Gtk.Image();
899 // set gobject values
900 this.el.icon_name = "document-open";
903 // user defined functions
905 public class Xcls_editfilebutton : Object
907 public Clutter.Actor el;
908 private Xcls_MainWindow _this;
914 public Xcls_editfilebutton(Xcls_MainWindow _owner )
917 _this.editfilebutton = this;
918 this.el = new Clutter.Actor();
922 // set gobject values
923 var child_0 = new Xcls_Actor26( _this );
925 this.el.add_child ( child_0.el );
929 this.el.set_size(50.0f,50.0f);
932 // user defined functions
934 public class Xcls_Actor26 : Object
936 public GtkClutter.Actor el;
937 private Xcls_MainWindow _this;
943 public Xcls_Actor26(Xcls_MainWindow _owner )
946 this.el = new GtkClutter.Actor();
950 // set gobject values
951 var child_0 = new Xcls_Button27( _this );
956 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
959 // user defined functions
961 public class Xcls_Button27 : Object
963 public Gtk.Button el;
964 private Xcls_MainWindow _this;
970 public Xcls_Button27(Xcls_MainWindow _owner )
973 this.el = new Gtk.Button();
977 // set gobject values
978 this.el.width_request = 50;
979 this.el.height_request = 50;
980 this.el.tooltip_text = "File Details";
981 var child_0 = new Xcls_Image28( _this );
983 this.el.set_image ( child_0.el );
986 this.el.clicked.connect( ( ) => {
988 // create a new file in project..
989 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
992 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
1000 // user defined functions
1002 public class Xcls_Image28 : Object
1004 public Gtk.Image el;
1005 private Xcls_MainWindow _this;
1011 public Xcls_Image28(Xcls_MainWindow _owner )
1014 this.el = new Gtk.Image();
1018 // set gobject values
1019 this.el.icon_name = "document-properties";
1022 // user defined functions
1024 public class Xcls_projecteditbutton : Object
1026 public Clutter.Actor el;
1027 private Xcls_MainWindow _this;
1033 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1036 _this.projecteditbutton = this;
1037 this.el = new Clutter.Actor();
1041 // set gobject values
1042 var child_0 = new Xcls_Actor30( _this );
1044 this.el.add_child ( child_0.el );
1048 this.el.set_size(50,50);
1051 // user defined functions
1053 public class Xcls_Actor30 : Object
1055 public GtkClutter.Actor el;
1056 private Xcls_MainWindow _this;
1062 public Xcls_Actor30(Xcls_MainWindow _owner )
1065 this.el = new GtkClutter.Actor();
1069 // set gobject values
1070 var child_0 = new Xcls_Button31( _this );
1075 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1078 // user defined functions
1080 public class Xcls_Button31 : Object
1082 public Gtk.Button el;
1083 private Xcls_MainWindow _this;
1089 public Xcls_Button31(Xcls_MainWindow _owner )
1092 this.el = new Gtk.Button();
1096 // set gobject values
1097 this.el.width_request = 50;
1098 this.el.height_request = 50;
1099 this.el.tooltip_text = "Project Details";
1100 var child_0 = new Xcls_Image32( _this );
1102 this.el.set_image ( child_0.el );
1105 this.el.clicked.connect( ( ) => {
1106 _this.windowstate.switchState(WindowState.State.PROJECT);
1113 // user defined functions
1115 public class Xcls_Image32 : Object
1117 public Gtk.Image el;
1118 private Xcls_MainWindow _this;
1124 public Xcls_Image32(Xcls_MainWindow _owner )
1127 this.el = new Gtk.Image();
1131 // set gobject values
1132 this.el.icon_name = "emblem-system";
1135 // user defined functions
1137 public class Xcls_objectshowbutton : Object
1139 public Clutter.Actor el;
1140 private Xcls_MainWindow _this;
1146 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1149 _this.objectshowbutton = this;
1150 this.el = new Clutter.Actor();
1154 // set gobject values
1155 var child_0 = new Xcls_Actor34( _this );
1157 this.el.add_child ( child_0.el );
1161 this.el.set_size(50,50);
1164 this.el.enter_event.connect( ( event) => {
1165 this.el.background_color = new Clutter.Color.from_string("#333");
1168 this.el.leave_event.connect( ( event) => {
1169 this.el.background_color = new Clutter.Color.from_string("#000");
1174 // user defined functions
1176 public class Xcls_Actor34 : Object
1178 public GtkClutter.Actor el;
1179 private Xcls_MainWindow _this;
1185 public Xcls_Actor34(Xcls_MainWindow _owner )
1188 this.el = new GtkClutter.Actor();
1192 // set gobject values
1193 var child_0 = new Xcls_Button35( _this );
1198 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1201 // user defined functions
1203 public class Xcls_Button35 : Object
1205 public Gtk.Button el;
1206 private Xcls_MainWindow _this;
1212 public Xcls_Button35(Xcls_MainWindow _owner )
1215 this.el = new Gtk.Button();
1219 // set gobject values
1220 this.el.width_request = 50;
1221 this.el.height_request = 50;
1222 this.el.tooltip_text = "Add Child Element";
1223 var child_0 = new Xcls_Image36( _this );
1225 this.el.set_image ( child_0.el );
1228 this.el.clicked.connect( ( ) => {
1230 _this.windowstate.switchState(WindowState.State.OBJECT);
1236 // user defined functions
1238 public class Xcls_Image36 : Object
1240 public Gtk.Image el;
1241 private Xcls_MainWindow _this;
1247 public Xcls_Image36(Xcls_MainWindow _owner )
1250 this.el = new Gtk.Image();
1254 // set gobject values
1255 this.el.icon_name = "list-add";
1258 // user defined functions
1260 public class Xcls_addpropbutton : Object
1262 public Clutter.Actor el;
1263 private Xcls_MainWindow _this;
1269 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1272 _this.addpropbutton = this;
1273 this.el = new Clutter.Actor();
1277 // set gobject values
1278 var child_0 = new Xcls_Actor38( _this );
1280 this.el.add_child ( child_0.el );
1284 this.el.set_size(50,50);
1287 // user defined functions
1289 public class Xcls_Actor38 : Object
1291 public GtkClutter.Actor el;
1292 private Xcls_MainWindow _this;
1298 public Xcls_Actor38(Xcls_MainWindow _owner )
1301 this.el = new GtkClutter.Actor();
1305 // set gobject values
1306 var child_0 = new Xcls_Button39( _this );
1311 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1314 // user defined functions
1316 public class Xcls_Button39 : Object
1318 public Gtk.Button el;
1319 private Xcls_MainWindow _this;
1325 public Xcls_Button39(Xcls_MainWindow _owner )
1328 this.el = new Gtk.Button();
1332 // set gobject values
1333 this.el.width_request = 50;
1334 this.el.height_request = 50;
1335 this.el.tooltip_text = "Add Property";
1336 var child_0 = new Xcls_Image40( _this );
1338 this.el.set_image ( child_0.el );
1341 this.el.clicked.connect( ( ) => {
1343 _this.windowstate.switchState(WindowState.State.PROP);
1349 // user defined functions
1351 public class Xcls_Image40 : Object
1353 public Gtk.Image el;
1354 private Xcls_MainWindow _this;
1360 public Xcls_Image40(Xcls_MainWindow _owner )
1363 this.el = new Gtk.Image();
1367 // set gobject values
1368 this.el.icon_name = "format-justify-left";
1371 // user defined functions
1373 public class Xcls_addlistenerbutton : Object
1375 public Clutter.Actor el;
1376 private Xcls_MainWindow _this;
1382 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1385 _this.addlistenerbutton = this;
1386 this.el = new Clutter.Actor();
1390 // set gobject values
1391 var child_0 = new Xcls_Actor42( _this );
1393 this.el.add_child ( child_0.el );
1397 this.el.set_size(50,50);
1400 // user defined functions
1402 public class Xcls_Actor42 : Object
1404 public GtkClutter.Actor el;
1405 private Xcls_MainWindow _this;
1411 public Xcls_Actor42(Xcls_MainWindow _owner )
1414 this.el = new GtkClutter.Actor();
1418 // set gobject values
1419 var child_0 = new Xcls_Button43( _this );
1424 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1427 // user defined functions
1429 public class Xcls_Button43 : Object
1431 public Gtk.Button el;
1432 private Xcls_MainWindow _this;
1438 public Xcls_Button43(Xcls_MainWindow _owner )
1441 this.el = new Gtk.Button();
1445 // set gobject values
1446 this.el.width_request = 50;
1447 this.el.height_request = 50;
1448 this.el.tooltip_text = "Add Event Code";
1449 var child_0 = new Xcls_Image44( _this );
1451 this.el.set_image ( child_0.el );
1454 this.el.clicked.connect( ( ) => {
1456 _this.windowstate.switchState(WindowState.State.LISTENER);
1463 // user defined functions
1465 public class Xcls_Image44 : Object
1467 public Gtk.Image el;
1468 private Xcls_MainWindow _this;
1474 public Xcls_Image44(Xcls_MainWindow _owner )
1477 this.el = new Gtk.Image();
1481 // set gobject values
1482 this.el.icon_name = "appointment-new";
1485 // user defined functions
1487 public class Xcls_addprojectbutton : Object
1489 public Clutter.Actor el;
1490 private Xcls_MainWindow _this;
1496 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1499 _this.addprojectbutton = this;
1500 this.el = new Clutter.Actor();
1504 // set gobject values
1505 var child_0 = new Xcls_Actor46( _this );
1507 this.el.add_child ( child_0.el );
1511 this.el.set_size(50.0f,50.0f);
1514 // user defined functions
1516 public class Xcls_Actor46 : Object
1518 public GtkClutter.Actor el;
1519 private Xcls_MainWindow _this;
1525 public Xcls_Actor46(Xcls_MainWindow _owner )
1528 this.el = new GtkClutter.Actor();
1532 // set gobject values
1533 var child_0 = new Xcls_Button47( _this );
1538 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1541 // user defined functions
1543 public class Xcls_Button47 : Object
1545 public Gtk.Button el;
1546 private Xcls_MainWindow _this;
1552 public Xcls_Button47(Xcls_MainWindow _owner )
1555 this.el = new Gtk.Button();
1559 // set gobject values
1560 this.el.width_request = 50;
1561 this.el.height_request = 50;
1562 this.el.tooltip_text = "New\nProj.";
1563 var child_0 = new Xcls_Image48( _this );
1565 this.el.set_image ( child_0.el );
1568 this.el.clicked.connect( ( ) => {
1570 // create a new file in project..
1571 //Xcls_DialogNewComponent.singleton().show(
1572 var pe = Xcls_EditProject.singleton();
1573 pe.el.set_transient_for(_this.el);
1574 pe.el.set_modal(true);
1583 _this.windowstate.left_projects.is_loaded = false;
1584 _this.windowstate.left_projects.load();
1585 _this.windowstate.left_projects.selectProject(p);
1592 // user defined functions
1594 public class Xcls_Image48 : Object
1596 public Gtk.Image el;
1597 private Xcls_MainWindow _this;
1603 public Xcls_Image48(Xcls_MainWindow _owner )
1606 this.el = new Gtk.Image();
1610 // set gobject values
1611 this.el.icon_name = "folder-new";
1614 // user defined functions
1616 public class Xcls_addfilebutton : Object
1618 public Clutter.Actor el;
1619 private Xcls_MainWindow _this;
1625 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1628 _this.addfilebutton = this;
1629 this.el = new Clutter.Actor();
1633 // set gobject values
1634 var child_0 = new Xcls_Actor50( _this );
1636 this.el.add_child ( child_0.el );
1640 this.el.set_size(50.0f,50.0f);
1643 // user defined functions
1645 public class Xcls_Actor50 : Object
1647 public GtkClutter.Actor el;
1648 private Xcls_MainWindow _this;
1654 public Xcls_Actor50(Xcls_MainWindow _owner )
1657 this.el = new GtkClutter.Actor();
1661 // set gobject values
1662 var child_0 = new Xcls_Button51( _this );
1667 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1670 // user defined functions
1672 public class Xcls_Button51 : Object
1674 public Gtk.Button el;
1675 private Xcls_MainWindow _this;
1681 public Xcls_Button51(Xcls_MainWindow _owner )
1684 this.el = new Gtk.Button();
1688 // set gobject values
1689 this.el.width_request = 50;
1690 this.el.height_request = 50;
1691 this.el.tooltip_text = "Add File";
1692 var child_0 = new Xcls_Image52( _this );
1694 this.el.set_image ( child_0.el );
1697 this.el.clicked.connect( () => {
1698 // create a new file in project..
1700 // what's the currently selected project...
1701 var proj = _this.windowstate.left_projects.getSelectedProject();
1709 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1710 _this.project = proj;
1711 _this.windowstate.new_file_dialog.show(f);
1717 // user defined functions
1719 public class Xcls_Image52 : Object
1721 public Gtk.Image el;
1722 private Xcls_MainWindow _this;
1728 public Xcls_Image52(Xcls_MainWindow _owner )
1731 this.el = new Gtk.Image();
1735 // set gobject values
1736 this.el.icon_name = "document-new";
1739 // user defined functions
1741 public class Xcls_delprojectbutton : Object
1743 public Clutter.Actor el;
1744 private Xcls_MainWindow _this;
1750 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1753 _this.delprojectbutton = this;
1754 this.el = new Clutter.Actor();
1758 // set gobject values
1759 var child_0 = new Xcls_Actor54( _this );
1761 this.el.add_child ( child_0.el );
1765 this.el.set_size(50,50);
1768 // user defined functions
1770 public class Xcls_Actor54 : Object
1772 public GtkClutter.Actor el;
1773 private Xcls_MainWindow _this;
1779 public Xcls_Actor54(Xcls_MainWindow _owner )
1782 this.el = new GtkClutter.Actor();
1786 // set gobject values
1787 var child_0 = new Xcls_Button55( _this );
1792 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1795 // user defined functions
1797 public class Xcls_Button55 : Object
1799 public Gtk.Button el;
1800 private Xcls_MainWindow _this;
1806 public Xcls_Button55(Xcls_MainWindow _owner )
1809 this.el = new Gtk.Button();
1813 // set gobject values
1814 this.el.width_request = 50;
1815 this.el.height_request = 50;
1816 this.el.tooltip_text = "Delete Project";
1817 var child_0 = new Xcls_Image56( _this );
1819 this.el.set_image ( child_0.el );
1822 this.el.clicked.connect( ( ) => {
1824 var cd = DialogConfirm.singleton();
1825 cd.el.set_transient_for(_this.el);
1826 cd.el.set_modal(true);
1828 var project = _this.windowstate.left_projects.getSelectedProject();
1829 if (project == null) {
1830 print("SKIP - no project\n");
1835 if (Gtk.ResponseType.YES != cd.show("Confirm",
1836 "Are you sure you want to delete project %s".printf(project.name))) {
1842 Project.Project.remove(project);
1843 _this.project = null;
1845 _this.windowstate.left_projects.is_loaded = false;
1846 _this.windowstate.left_projects.load();
1847 _this.windowstate.clutterfiles.clearFiles();
1852 // user defined functions
1854 public class Xcls_Image56 : Object
1856 public Gtk.Image el;
1857 private Xcls_MainWindow _this;
1863 public Xcls_Image56(Xcls_MainWindow _owner )
1866 this.el = new Gtk.Image();
1870 // set gobject values
1871 this.el.icon_name = "user-trash";
1874 // user defined functions
1876 public class Xcls_reload_resources : Object
1878 public Clutter.Actor el;
1879 private Xcls_MainWindow _this;
1885 public Xcls_reload_resources(Xcls_MainWindow _owner )
1888 _this.reload_resources = this;
1889 this.el = new Clutter.Actor();
1893 // set gobject values
1894 var child_0 = new Xcls_Actor58( _this );
1896 this.el.add_child ( child_0.el );
1900 this.el.set_size(50,50);
1903 // user defined functions
1905 public class Xcls_Actor58 : Object
1907 public GtkClutter.Actor el;
1908 private Xcls_MainWindow _this;
1914 public Xcls_Actor58(Xcls_MainWindow _owner )
1917 this.el = new GtkClutter.Actor();
1921 // set gobject values
1922 var child_0 = new Xcls_Button59( _this );
1927 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1930 // user defined functions
1932 public class Xcls_Button59 : Object
1934 public Gtk.Button el;
1935 private Xcls_MainWindow _this;
1941 public Xcls_Button59(Xcls_MainWindow _owner )
1944 this.el = new Gtk.Button();
1948 // set gobject values
1949 this.el.width_request = 50;
1950 this.el.height_request = 50;
1951 this.el.tooltip_text = "Download latest resourse files\nlike the object tree and object properties";
1952 var child_0 = new Xcls_Image60( _this );
1954 this.el.set_image ( child_0.el );
1957 this.el.clicked.connect( ( ) => {
1958 Resources.singleton().fetchStart();
1962 // user defined functions
1964 public class Xcls_Image60 : Object
1966 public Gtk.Image el;
1967 private Xcls_MainWindow _this;
1973 public Xcls_Image60(Xcls_MainWindow _owner )
1976 this.el = new Gtk.Image();
1980 // set gobject values
1981 this.el.icon_name = "go-bottom";
1984 // user defined functions
1986 public class Xcls_new_window : Object
1988 public Clutter.Actor el;
1989 private Xcls_MainWindow _this;
1995 public Xcls_new_window(Xcls_MainWindow _owner )
1998 _this.new_window = this;
1999 this.el = new Clutter.Actor();
2003 // set gobject values
2004 var child_0 = new Xcls_Actor62( _this );
2006 this.el.add_child ( child_0.el );
2010 this.el.set_size(50,50);
2013 // user defined functions
2015 public class Xcls_Actor62 : Object
2017 public GtkClutter.Actor el;
2018 private Xcls_MainWindow _this;
2024 public Xcls_Actor62(Xcls_MainWindow _owner )
2027 this.el = new GtkClutter.Actor();
2031 // set gobject values
2032 var child_0 = new Xcls_Button63( _this );
2037 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2040 // user defined functions
2042 public class Xcls_Button63 : Object
2044 public Gtk.Button el;
2045 private Xcls_MainWindow _this;
2051 public Xcls_Button63(Xcls_MainWindow _owner )
2054 this.el = new Gtk.Button();
2058 // set gobject values
2059 this.el.width_request = 50;
2060 this.el.height_request = 50;
2061 this.el.tooltip_text = "Open New Window";
2062 var child_0 = new Xcls_Image64( _this );
2064 this.el.set_image ( child_0.el );
2067 this.el.clicked.connect( ( ) => {
2068 Xcls_MainWindow.singleton().no_windows++;
2069 var w = new Xcls_MainWindow();
2074 w.windowstate.switchState(WindowState.State.FILES);
2078 // user defined functions
2080 public class Xcls_Image64 : Object
2082 public Gtk.Image el;
2083 private Xcls_MainWindow _this;
2089 public Xcls_Image64(Xcls_MainWindow _owner )
2092 this.el = new Gtk.Image();
2096 // set gobject values
2097 this.el.icon_name = "window-new";
2100 // user defined functions
2102 public class Xcls_about : Object
2104 public Clutter.Actor el;
2105 private Xcls_MainWindow _this;
2111 public Xcls_about(Xcls_MainWindow _owner )
2115 this.el = new Clutter.Actor();
2119 // set gobject values
2120 var child_0 = new Xcls_Actor66( _this );
2122 this.el.add_child ( child_0.el );
2126 this.el.set_size(50,50);
2129 // user defined functions
2131 public class Xcls_Actor66 : Object
2133 public GtkClutter.Actor el;
2134 private Xcls_MainWindow _this;
2140 public Xcls_Actor66(Xcls_MainWindow _owner )
2143 this.el = new GtkClutter.Actor();
2147 // set gobject values
2148 var child_0 = new Xcls_Button67( _this );
2153 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2156 // user defined functions
2158 public class Xcls_Button67 : Object
2160 public Gtk.Button el;
2161 private Xcls_MainWindow _this;
2167 public Xcls_Button67(Xcls_MainWindow _owner )
2170 this.el = new Gtk.Button();
2174 // set gobject values
2175 this.el.width_request = 50;
2176 this.el.height_request = 50;
2177 this.el.tooltip_text = "About the builder";
2178 var child_0 = new Xcls_Image68( _this );
2180 this.el.set_image ( child_0.el );
2183 this.el.clicked.connect( ( ) => {
2184 About.singleton().el.show();
2188 // user defined functions
2190 public class Xcls_Image68 : Object
2192 public Gtk.Image el;
2193 private Xcls_MainWindow _this;
2199 public Xcls_Image68(Xcls_MainWindow _owner )
2202 this.el = new Gtk.Image();
2206 // set gobject values
2207 this.el.icon_name = "help-about";
2210 // user defined functions
2212 public class Xcls_statusbar : Object
2214 public Gtk.Statusbar el;
2215 private Xcls_MainWindow _this;
2221 public Xcls_statusbar(Xcls_MainWindow _owner )
2224 _this.statusbar = this;
2225 this.el = new Gtk.Statusbar();
2229 // set gobject values
2234 Resources.singleton().updateProgress.connect((pos) => {
2237 _this.mainpane.el.set_sensitive(true);
2241 _this.mainpane.el.set_sensitive(false);
2244 var cid = this.el.get_context_id("resources");
2245 this.el.remove_all(cid);
2246 this.el.push(cid,"Fetching Resource : %s/7".printf(pos.to_string()));
2251 // user defined functions