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_new_window new_window;
39 public Xcls_statusbar statusbar;
42 public Project.Project project;
44 public int no_windows;
45 public WindowState windowstate;
48 public Xcls_MainWindow()
51 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
55 this.title = "Application Builder";
57 this.windowstate = null;
60 this.el.border_width = 0;
61 this.el.default_height = 500;
62 this.el.default_width = 800;
63 var child_0 = new Xcls_vbox( _this );
65 this.el.add ( child_0.el );
72 this.el.delete_event.connect( ( event) => {
75 this.el.destroy.connect( () => {
76 Xcls_MainWindow.singleton().no_windows--;
78 if (Xcls_MainWindow.singleton().no_windows < 1) {
83 this.el.show.connect( ( ) => {
84 // hide the file editing..
86 //this.hideViewEditing();
90 // user defined functions
91 public void initChildren () {
92 // this needs putting in a better place..
93 this.windowstate = new WindowState(this);
97 var tl = new Clutter.Timeline(6000);
98 tl.set_repeat_count(-1);
107 public void show () {
112 public void setTitle (string str) {
113 this.el.set_title(this.title + " - " + str);
115 public class Xcls_vbox : Object
118 private Xcls_MainWindow _this;
124 public Xcls_vbox(Xcls_MainWindow _owner )
128 this.el = new Gtk.VBox( false, 0 );
132 // set gobject values
133 var child_0 = new Xcls_mainpane( _this );
135 this.el.pack_end ( child_0.el , true,true,0 );
136 var child_1 = new Xcls_statusbar( _this );
138 this.el.pack_end ( child_1.el , false,true,0 );
141 // user defined functions
143 public class Xcls_mainpane : Object
145 public Gtk.HPaned el;
146 private Xcls_MainWindow _this;
150 public int lastWidth;
153 public Xcls_mainpane(Xcls_MainWindow _owner )
156 _this.mainpane = this;
157 this.el = new Gtk.HPaned();
162 // set gobject values
163 this.el.position = 400;
164 var child_0 = new Xcls_leftpane( _this );
166 this.el.add1 ( child_0.el );
167 var child_1 = new Xcls_VBox8( _this );
169 this.el.add2 ( child_1.el );
172 // user defined functions
174 public class Xcls_leftpane : Object
177 private Xcls_MainWindow _this;
183 public Xcls_leftpane(Xcls_MainWindow _owner )
186 _this.leftpane = this;
187 this.el = new Gtk.VBox( true, 0 );
191 // set gobject values
192 var child_0 = new Xcls_editpane( _this );
194 this.el.pack_start ( child_0.el , false,true,0 );
197 // user defined functions
199 public class Xcls_editpane : Object
201 public Gtk.VPaned el;
202 private Xcls_MainWindow _this;
208 public Xcls_editpane(Xcls_MainWindow _owner )
211 _this.editpane = this;
212 this.el = new Gtk.VPaned();
216 // set gobject values
217 var child_0 = new Xcls_tree( _this );
219 this.el.add1 ( child_0.el );
220 var child_1 = new Xcls_props( _this );
222 this.el.add2 ( child_1.el );
225 // user defined functions
227 public class Xcls_tree : Object
230 private Xcls_MainWindow _this;
236 public Xcls_tree(Xcls_MainWindow _owner )
240 this.el = new Gtk.VBox( true, 0 );
244 // set gobject values
247 // user defined functions
249 public class Xcls_props : Object
252 private Xcls_MainWindow _this;
258 public Xcls_props(Xcls_MainWindow _owner )
262 this.el = new Gtk.VBox( true, 0 );
266 // set gobject values
269 // user defined functions
271 public class Xcls_VBox8 : Object
274 private Xcls_MainWindow _this;
280 public Xcls_VBox8(Xcls_MainWindow _owner )
283 this.el = new Gtk.VBox( true, 0 );
287 // set gobject values
288 var child_0 = new Xcls_clutterembed( _this );
290 this.el.pack_start ( child_0.el , true,true,0 );
293 // user defined functions
295 public class Xcls_clutterembed : Object
297 public GtkClutter.Embed el;
298 private Xcls_MainWindow _this;
304 public Xcls_clutterembed(Xcls_MainWindow _owner )
307 _this.clutterembed = this;
308 this.el = new GtkClutter.Embed();
312 // set gobject values
313 var child_0 = new Xcls_rooview( _this );
315 this.el.get_stage().add_child ( child_0.el );
316 var child_1 = new Xcls_objectview( _this );
318 this.el.get_stage().add_child ( child_1.el );
319 var child_2 = new Xcls_codeeditview( _this );
321 this.el.get_stage().add_child ( child_2.el );
322 var child_3 = new Xcls_addpropsview( _this );
324 this.el.get_stage().add_child ( child_3.el );
325 var child_4 = new Xcls_projecteditview( _this );
327 this.el.get_stage().add_child ( child_4.el );
328 var child_5 = new Xcls_buttonlayout( _this );
330 this.el.get_stage().add_child ( child_5.el );
334 var stage = this.el.get_stage();
335 stage.set_background_color( Clutter.Color.from_string("#000"));
338 this.el.size_allocate.connect( ( alloc) => {
339 if (_this.windowstate == null) {
342 _this.windowstate.resizeCanvas();
347 // user defined functions
349 public class Xcls_rooview : Object
351 public GtkClutter.Actor el;
352 private Xcls_MainWindow _this;
358 public Xcls_rooview(Xcls_MainWindow _owner )
361 _this.rooview = this;
362 this.el = new GtkClutter.Actor();
366 // set gobject values
373 this.el.add_constraint(
374 new Clutter.AlignConstraint(
375 _this.clutterembed.el.get_stage(),
376 Clutter.AlignAxis.X_AXIS,
381 //this.el.set_position(100,100);
382 this.el.set_pivot_point(1.0f,1.0f);
384 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
385 _this.clutterembed.el.get_stage().height);
390 // user defined functions
392 public class Xcls_objectview : Object
394 public GtkClutter.Actor el;
395 private Xcls_MainWindow _this;
401 public Xcls_objectview(Xcls_MainWindow _owner )
404 _this.objectview = this;
405 this.el = new GtkClutter.Actor();
409 // set gobject values
416 this.el.add_constraint(
417 new Clutter.AlignConstraint(
418 _this.clutterembed.el.get_stage(),
419 Clutter.AlignAxis.X_AXIS,
424 this.el.fixed_x = 50.0f;
425 this.el.fixed_y = 0.0f;
426 //this.el.set_position(100,100);
427 this.el.set_pivot_point(0.0f,0.0f);
428 this.el.set_scale(0.0f,1.0f);
429 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
430 _this.clutterembed.el.get_stage().height);
435 // user defined functions
437 public class Xcls_codeeditview : Object
439 public GtkClutter.Actor el;
440 private Xcls_MainWindow _this;
446 public Xcls_codeeditview(Xcls_MainWindow _owner )
449 _this.codeeditview = this;
450 this.el = new GtkClutter.Actor();
454 // set gobject values
461 this.el.add_constraint(
462 new Clutter.AlignConstraint(
463 _this.clutterembed.el.get_stage(),
464 Clutter.AlignAxis.X_AXIS,
469 this.el.fixed_x = 50.0f;
470 this.el.fixed_y = 0.0f;
471 //this.el.set_position(100,100);
472 this.el.set_pivot_point(0.0f,0.0f);
473 this.el.set_scale(0.0f,1.0f);
474 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
475 _this.clutterembed.el.get_stage().height);
480 // user defined functions
482 public class Xcls_addpropsview : Object
484 public GtkClutter.Actor el;
485 private Xcls_MainWindow _this;
491 public Xcls_addpropsview(Xcls_MainWindow _owner )
494 _this.addpropsview = this;
495 this.el = new GtkClutter.Actor();
499 // set gobject values
506 this.el.add_constraint(
507 new Clutter.AlignConstraint(
508 _this.clutterembed.el.get_stage(),
509 Clutter.AlignAxis.X_AXIS,
514 this.el.fixed_x = 50.0f;
515 this.el.fixed_y = 0.0f;
516 //this.el.set_position(100,100);
517 this.el.set_pivot_point(0.0f,0.0f);
518 this.el.set_scale(0.0f,1.0f);
519 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
520 _this.clutterembed.el.get_stage().height);
525 // user defined functions
527 public class Xcls_projecteditview : Object
529 public GtkClutter.Actor el;
530 private Xcls_MainWindow _this;
536 public Xcls_projecteditview(Xcls_MainWindow _owner )
539 _this.projecteditview = this;
540 this.el = new GtkClutter.Actor();
544 // set gobject values
551 this.el.add_constraint(
552 new Clutter.AlignConstraint(
553 _this.clutterembed.el.get_stage(),
554 Clutter.AlignAxis.X_AXIS,
559 //this.el.set_position(100,100);
560 this.el.set_pivot_point(0.0f,0.0f);
561 this.el.set_scale(1.0f,0.0f);
562 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
563 _this.clutterembed.el.get_stage().height /2);
568 // user defined functions
570 public class Xcls_buttonlayout : Object
572 public Clutter.Actor el;
573 private Xcls_MainWindow _this;
579 public Xcls_buttonlayout(Xcls_MainWindow _owner )
582 _this.buttonlayout = this;
583 this.el = new Clutter.Actor();
587 // set gobject values
588 var child_0 = new Xcls_BoxLayout16( _this );
590 this.el.layout_manager = child_0.el;
591 var child_1 = new Xcls_backbutton( _this );
593 this.el.add_child ( child_1.el );
594 var child_2 = new Xcls_projectbutton( _this );
596 this.el.add_child ( child_2.el );
597 var child_3 = new Xcls_editfilebutton( _this );
599 this.el.add_child ( child_3.el );
600 var child_4 = new Xcls_projecteditbutton( _this );
602 this.el.add_child ( child_4.el );
603 var child_5 = new Xcls_objectshowbutton( _this );
605 this.el.add_child ( child_5.el );
606 var child_6 = new Xcls_addpropbutton( _this );
608 this.el.add_child ( child_6.el );
609 var child_7 = new Xcls_addlistenerbutton( _this );
611 this.el.add_child ( child_7.el );
612 var child_8 = new Xcls_addprojectbutton( _this );
614 this.el.add_child ( child_8.el );
615 var child_9 = new Xcls_addfilebutton( _this );
617 this.el.add_child ( child_9.el );
618 var child_10 = new Xcls_delprojectbutton( _this );
620 this.el.add_child ( child_10.el );
621 var child_11 = new Xcls_new_window( _this );
623 this.el.add_child ( child_11.el );
629 this.el.add_constraint(
630 new Clutter.AlignConstraint(
631 _this.clutterembed.el.get_stage(),
632 Clutter.AlignAxis.X_AXIS,
638 //this.el.set_position(100,100);
639 this.el.set_pivot_point(0.5f,0.5f);
641 _this.clutterembed.el.get_stage().height);
646 // user defined functions
648 public class Xcls_BoxLayout16 : Object
650 public Clutter.BoxLayout el;
651 private Xcls_MainWindow _this;
657 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
660 this.el = new Clutter.BoxLayout();
664 // set gobject values
665 this.el.orientation = Clutter.Orientation.VERTICAL;
668 // user defined functions
670 public class Xcls_backbutton : Object
672 public Clutter.Actor el;
673 private Xcls_MainWindow _this;
679 public Xcls_backbutton(Xcls_MainWindow _owner )
682 _this.backbutton = this;
683 this.el = new Clutter.Actor();
687 // set gobject values
688 var child_0 = new Xcls_Actor18( _this );
690 this.el.add_child ( child_0.el );
694 this.el.set_size(50,50);
697 // user defined functions
699 public class Xcls_Actor18 : Object
701 public GtkClutter.Actor el;
702 private Xcls_MainWindow _this;
708 public Xcls_Actor18(Xcls_MainWindow _owner )
711 this.el = new GtkClutter.Actor();
715 // set gobject values
716 var child_0 = new Xcls_Button19( _this );
721 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
724 // user defined functions
726 public class Xcls_Button19 : Object
728 public Gtk.Button el;
729 private Xcls_MainWindow _this;
735 public Xcls_Button19(Xcls_MainWindow _owner )
738 this.el = new Gtk.Button();
742 // set gobject values
743 this.el.width_request = 50;
744 this.el.height_request = 50;
745 this.el.tooltip_text = "Back";
746 var child_0 = new Xcls_Image20( _this );
748 this.el.set_image ( child_0.el );
751 this.el.clicked.connect( ( ) => {
753 _this.windowstate.switchState(WindowState.State.PREVIEW);
759 // user defined functions
761 public class Xcls_Image20 : Object
764 private Xcls_MainWindow _this;
770 public Xcls_Image20(Xcls_MainWindow _owner )
773 this.el = new Gtk.Image();
777 // set gobject values
778 this.el.icon_name = "go-previous";
781 // user defined functions
783 public class Xcls_projectbutton : Object
785 public Clutter.Actor el;
786 private Xcls_MainWindow _this;
792 public Xcls_projectbutton(Xcls_MainWindow _owner )
795 _this.projectbutton = this;
796 this.el = new Clutter.Actor();
800 // set gobject values
801 var child_0 = new Xcls_Actor22( _this );
803 this.el.add_child ( child_0.el );
807 this.el.set_size(50,50);
810 // user defined functions
812 public class Xcls_Actor22 : Object
814 public GtkClutter.Actor el;
815 private Xcls_MainWindow _this;
821 public Xcls_Actor22(Xcls_MainWindow _owner )
824 this.el = new GtkClutter.Actor();
828 // set gobject values
829 var child_0 = new Xcls_Button23( _this );
834 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
837 // user defined functions
839 public class Xcls_Button23 : Object
841 public Gtk.Button el;
842 private Xcls_MainWindow _this;
848 public Xcls_Button23(Xcls_MainWindow _owner )
851 this.el = new Gtk.Button();
855 // set gobject values
856 this.el.width_request = 50;
857 this.el.height_request = 50;
858 var child_0 = new Xcls_Image24( _this );
860 this.el.set_image ( child_0.el );
863 this.el.clicked.connect( ( ) => {
864 _this.windowstate.switchState(WindowState.State.FILES);
870 // user defined functions
872 public class Xcls_Image24 : Object
875 private Xcls_MainWindow _this;
881 public Xcls_Image24(Xcls_MainWindow _owner )
884 this.el = new Gtk.Image();
888 // set gobject values
889 this.el.icon_name = "document-open";
892 // user defined functions
894 public class Xcls_editfilebutton : Object
896 public Clutter.Actor el;
897 private Xcls_MainWindow _this;
903 public Xcls_editfilebutton(Xcls_MainWindow _owner )
906 _this.editfilebutton = this;
907 this.el = new Clutter.Actor();
911 // set gobject values
912 var child_0 = new Xcls_Actor26( _this );
914 this.el.add_child ( child_0.el );
918 this.el.set_size(50.0f,50.0f);
921 // user defined functions
923 public class Xcls_Actor26 : Object
925 public GtkClutter.Actor el;
926 private Xcls_MainWindow _this;
932 public Xcls_Actor26(Xcls_MainWindow _owner )
935 this.el = new GtkClutter.Actor();
939 // set gobject values
940 var child_0 = new Xcls_Button27( _this );
945 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
948 // user defined functions
950 public class Xcls_Button27 : Object
952 public Gtk.Button el;
953 private Xcls_MainWindow _this;
959 public Xcls_Button27(Xcls_MainWindow _owner )
962 this.el = new Gtk.Button();
966 // set gobject values
967 this.el.width_request = 50;
968 this.el.height_request = 50;
969 this.el.tooltip_text = "File Details";
970 var child_0 = new Xcls_Image28( _this );
972 this.el.set_image ( child_0.el );
975 this.el.clicked.connect( ( ) => {
977 // create a new file in project..
978 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
981 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
989 // user defined functions
991 public class Xcls_Image28 : Object
994 private Xcls_MainWindow _this;
1000 public Xcls_Image28(Xcls_MainWindow _owner )
1003 this.el = new Gtk.Image();
1007 // set gobject values
1008 this.el.icon_name = "document-properties";
1011 // user defined functions
1013 public class Xcls_projecteditbutton : Object
1015 public Clutter.Actor el;
1016 private Xcls_MainWindow _this;
1022 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1025 _this.projecteditbutton = this;
1026 this.el = new Clutter.Actor();
1030 // set gobject values
1031 var child_0 = new Xcls_Actor30( _this );
1033 this.el.add_child ( child_0.el );
1037 this.el.set_size(50,50);
1040 // user defined functions
1042 public class Xcls_Actor30 : Object
1044 public GtkClutter.Actor el;
1045 private Xcls_MainWindow _this;
1051 public Xcls_Actor30(Xcls_MainWindow _owner )
1054 this.el = new GtkClutter.Actor();
1058 // set gobject values
1059 var child_0 = new Xcls_Button31( _this );
1064 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1067 // user defined functions
1069 public class Xcls_Button31 : Object
1071 public Gtk.Button el;
1072 private Xcls_MainWindow _this;
1078 public Xcls_Button31(Xcls_MainWindow _owner )
1081 this.el = new Gtk.Button();
1085 // set gobject values
1086 this.el.width_request = 50;
1087 this.el.height_request = 50;
1088 this.el.tooltip_text = "Project Details";
1089 var child_0 = new Xcls_Image32( _this );
1091 this.el.set_image ( child_0.el );
1094 this.el.clicked.connect( ( ) => {
1095 _this.windowstate.switchState(WindowState.State.PROJECT);
1102 // user defined functions
1104 public class Xcls_Image32 : Object
1106 public Gtk.Image el;
1107 private Xcls_MainWindow _this;
1113 public Xcls_Image32(Xcls_MainWindow _owner )
1116 this.el = new Gtk.Image();
1120 // set gobject values
1121 this.el.icon_name = "emblem-system";
1124 // user defined functions
1126 public class Xcls_objectshowbutton : Object
1128 public Clutter.Actor el;
1129 private Xcls_MainWindow _this;
1135 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1138 _this.objectshowbutton = this;
1139 this.el = new Clutter.Actor();
1143 // set gobject values
1144 var child_0 = new Xcls_Actor34( _this );
1146 this.el.add_child ( child_0.el );
1150 this.el.set_size(50,50);
1153 this.el.enter_event.connect( ( event) => {
1154 this.el.background_color = new Clutter.Color.from_string("#333");
1157 this.el.leave_event.connect( ( event) => {
1158 this.el.background_color = new Clutter.Color.from_string("#000");
1163 // user defined functions
1165 public class Xcls_Actor34 : Object
1167 public GtkClutter.Actor el;
1168 private Xcls_MainWindow _this;
1174 public Xcls_Actor34(Xcls_MainWindow _owner )
1177 this.el = new GtkClutter.Actor();
1181 // set gobject values
1182 var child_0 = new Xcls_Button35( _this );
1187 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1190 // user defined functions
1192 public class Xcls_Button35 : Object
1194 public Gtk.Button el;
1195 private Xcls_MainWindow _this;
1201 public Xcls_Button35(Xcls_MainWindow _owner )
1204 this.el = new Gtk.Button();
1208 // set gobject values
1209 this.el.width_request = 50;
1210 this.el.height_request = 50;
1211 this.el.tooltip_text = "Add Child Element";
1212 var child_0 = new Xcls_Image36( _this );
1214 this.el.set_image ( child_0.el );
1217 this.el.clicked.connect( ( ) => {
1219 _this.windowstate.switchState(WindowState.State.OBJECT);
1225 // user defined functions
1227 public class Xcls_Image36 : Object
1229 public Gtk.Image el;
1230 private Xcls_MainWindow _this;
1236 public Xcls_Image36(Xcls_MainWindow _owner )
1239 this.el = new Gtk.Image();
1243 // set gobject values
1244 this.el.icon_name = "list-add";
1247 // user defined functions
1249 public class Xcls_addpropbutton : Object
1251 public Clutter.Actor el;
1252 private Xcls_MainWindow _this;
1258 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1261 _this.addpropbutton = this;
1262 this.el = new Clutter.Actor();
1266 // set gobject values
1267 var child_0 = new Xcls_Actor38( _this );
1269 this.el.add_child ( child_0.el );
1273 this.el.set_size(50,50);
1276 // user defined functions
1278 public class Xcls_Actor38 : Object
1280 public GtkClutter.Actor el;
1281 private Xcls_MainWindow _this;
1287 public Xcls_Actor38(Xcls_MainWindow _owner )
1290 this.el = new GtkClutter.Actor();
1294 // set gobject values
1295 var child_0 = new Xcls_Button39( _this );
1300 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1303 // user defined functions
1305 public class Xcls_Button39 : Object
1307 public Gtk.Button el;
1308 private Xcls_MainWindow _this;
1314 public Xcls_Button39(Xcls_MainWindow _owner )
1317 this.el = new Gtk.Button();
1321 // set gobject values
1322 this.el.width_request = 50;
1323 this.el.height_request = 50;
1324 this.el.tooltip_text = "Add Property";
1325 var child_0 = new Xcls_Image40( _this );
1327 this.el.set_image ( child_0.el );
1330 this.el.clicked.connect( ( ) => {
1332 _this.windowstate.switchState(WindowState.State.PROP);
1338 // user defined functions
1340 public class Xcls_Image40 : Object
1342 public Gtk.Image el;
1343 private Xcls_MainWindow _this;
1349 public Xcls_Image40(Xcls_MainWindow _owner )
1352 this.el = new Gtk.Image();
1356 // set gobject values
1357 this.el.icon_name = "format-justify-left";
1360 // user defined functions
1362 public class Xcls_addlistenerbutton : Object
1364 public Clutter.Actor el;
1365 private Xcls_MainWindow _this;
1371 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1374 _this.addlistenerbutton = this;
1375 this.el = new Clutter.Actor();
1379 // set gobject values
1380 var child_0 = new Xcls_Actor42( _this );
1382 this.el.add_child ( child_0.el );
1386 this.el.set_size(50,50);
1389 // user defined functions
1391 public class Xcls_Actor42 : Object
1393 public GtkClutter.Actor el;
1394 private Xcls_MainWindow _this;
1400 public Xcls_Actor42(Xcls_MainWindow _owner )
1403 this.el = new GtkClutter.Actor();
1407 // set gobject values
1408 var child_0 = new Xcls_Button43( _this );
1413 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1416 // user defined functions
1418 public class Xcls_Button43 : Object
1420 public Gtk.Button el;
1421 private Xcls_MainWindow _this;
1427 public Xcls_Button43(Xcls_MainWindow _owner )
1430 this.el = new Gtk.Button();
1434 // set gobject values
1435 this.el.width_request = 50;
1436 this.el.height_request = 50;
1437 this.el.tooltip_text = "Add Event Code";
1438 var child_0 = new Xcls_Image44( _this );
1440 this.el.set_image ( child_0.el );
1443 this.el.clicked.connect( ( ) => {
1445 _this.windowstate.switchState(WindowState.State.LISTENER);
1452 // user defined functions
1454 public class Xcls_Image44 : Object
1456 public Gtk.Image el;
1457 private Xcls_MainWindow _this;
1463 public Xcls_Image44(Xcls_MainWindow _owner )
1466 this.el = new Gtk.Image();
1470 // set gobject values
1471 this.el.icon_name = "appointment-new";
1474 // user defined functions
1476 public class Xcls_addprojectbutton : Object
1478 public Clutter.Actor el;
1479 private Xcls_MainWindow _this;
1485 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1488 _this.addprojectbutton = this;
1489 this.el = new Clutter.Actor();
1493 // set gobject values
1494 var child_0 = new Xcls_Actor46( _this );
1496 this.el.add_child ( child_0.el );
1500 this.el.set_size(50.0f,50.0f);
1503 // user defined functions
1505 public class Xcls_Actor46 : Object
1507 public GtkClutter.Actor el;
1508 private Xcls_MainWindow _this;
1514 public Xcls_Actor46(Xcls_MainWindow _owner )
1517 this.el = new GtkClutter.Actor();
1521 // set gobject values
1522 var child_0 = new Xcls_Button47( _this );
1527 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1530 // user defined functions
1532 public class Xcls_Button47 : Object
1534 public Gtk.Button el;
1535 private Xcls_MainWindow _this;
1541 public Xcls_Button47(Xcls_MainWindow _owner )
1544 this.el = new Gtk.Button();
1548 // set gobject values
1549 this.el.width_request = 50;
1550 this.el.height_request = 50;
1551 this.el.tooltip_text = "New\nProj.";
1552 var child_0 = new Xcls_Image48( _this );
1554 this.el.set_image ( child_0.el );
1557 this.el.clicked.connect( ( ) => {
1559 // create a new file in project..
1560 //Xcls_DialogNewComponent.singleton().show(
1561 var pe = Xcls_EditProject.singleton();
1562 pe.el.set_transient_for(_this.el);
1563 pe.el.set_modal(true);
1572 _this.windowstate.left_projects.is_loaded = false;
1573 _this.windowstate.left_projects.load();
1574 _this.windowstate.left_projects.selectProject(p);
1581 // user defined functions
1583 public class Xcls_Image48 : Object
1585 public Gtk.Image el;
1586 private Xcls_MainWindow _this;
1592 public Xcls_Image48(Xcls_MainWindow _owner )
1595 this.el = new Gtk.Image();
1599 // set gobject values
1600 this.el.icon_name = "folder-new";
1603 // user defined functions
1605 public class Xcls_addfilebutton : Object
1607 public Clutter.Actor el;
1608 private Xcls_MainWindow _this;
1614 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1617 _this.addfilebutton = this;
1618 this.el = new Clutter.Actor();
1622 // set gobject values
1623 var child_0 = new Xcls_Actor50( _this );
1625 this.el.add_child ( child_0.el );
1629 this.el.set_size(50.0f,50.0f);
1632 // user defined functions
1634 public class Xcls_Actor50 : Object
1636 public GtkClutter.Actor el;
1637 private Xcls_MainWindow _this;
1643 public Xcls_Actor50(Xcls_MainWindow _owner )
1646 this.el = new GtkClutter.Actor();
1650 // set gobject values
1651 var child_0 = new Xcls_Button51( _this );
1656 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1659 // user defined functions
1661 public class Xcls_Button51 : Object
1663 public Gtk.Button el;
1664 private Xcls_MainWindow _this;
1670 public Xcls_Button51(Xcls_MainWindow _owner )
1673 this.el = new Gtk.Button();
1677 // set gobject values
1678 this.el.width_request = 50;
1679 this.el.height_request = 50;
1680 this.el.tooltip_text = "Add File";
1681 var child_0 = new Xcls_Image52( _this );
1683 this.el.set_image ( child_0.el );
1686 this.el.clicked.connect( () => {
1687 // create a new file in project..
1689 // what's the currently selected project...
1690 var proj = _this.windowstate.left_projects.getSelectedProject();
1698 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1699 _this.project = proj;
1700 _this.windowstate.new_file_dialog.show(f);
1706 // user defined functions
1708 public class Xcls_Image52 : Object
1710 public Gtk.Image el;
1711 private Xcls_MainWindow _this;
1717 public Xcls_Image52(Xcls_MainWindow _owner )
1720 this.el = new Gtk.Image();
1724 // set gobject values
1725 this.el.icon_name = "document-new";
1728 // user defined functions
1730 public class Xcls_delprojectbutton : Object
1732 public Clutter.Actor el;
1733 private Xcls_MainWindow _this;
1739 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1742 _this.delprojectbutton = this;
1743 this.el = new Clutter.Actor();
1747 // set gobject values
1748 var child_0 = new Xcls_Actor54( _this );
1750 this.el.add_child ( child_0.el );
1754 this.el.set_size(50,50);
1757 // user defined functions
1759 public class Xcls_Actor54 : Object
1761 public GtkClutter.Actor el;
1762 private Xcls_MainWindow _this;
1768 public Xcls_Actor54(Xcls_MainWindow _owner )
1771 this.el = new GtkClutter.Actor();
1775 // set gobject values
1776 var child_0 = new Xcls_Button55( _this );
1781 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1784 // user defined functions
1786 public class Xcls_Button55 : Object
1788 public Gtk.Button el;
1789 private Xcls_MainWindow _this;
1795 public Xcls_Button55(Xcls_MainWindow _owner )
1798 this.el = new Gtk.Button();
1802 // set gobject values
1803 this.el.width_request = 50;
1804 this.el.height_request = 50;
1805 this.el.tooltip_text = "Delelte Project";
1806 var child_0 = new Xcls_Image56( _this );
1808 this.el.set_image ( child_0.el );
1811 this.el.clicked.connect( ( ) => {
1813 var cd = DialogConfirm.singleton();
1814 cd.el.set_transient_for(_this.el);
1815 cd.el.set_modal(true);
1817 var project = _this.windowstate.left_projects.getSelectedProject();
1818 if (project == null) {
1819 print("SKIP - no project\n");
1824 if (Gtk.ResponseType.YES != cd.show("Confirm",
1825 "Are you sure you want to delete project %s".printf(project.name))) {
1831 Project.Project.remove(project);
1832 _this.project = null;
1834 _this.windowstate.left_projects.is_loaded = false;
1835 _this.windowstate.left_projects.load();
1836 _this.windowstate.clutterfiles.clearFiles();
1841 // user defined functions
1843 public class Xcls_Image56 : Object
1845 public Gtk.Image el;
1846 private Xcls_MainWindow _this;
1852 public Xcls_Image56(Xcls_MainWindow _owner )
1855 this.el = new Gtk.Image();
1859 // set gobject values
1860 this.el.icon_name = "user-trash";
1863 // user defined functions
1865 public class Xcls_new_window : Object
1867 public Clutter.Actor el;
1868 private Xcls_MainWindow _this;
1874 public Xcls_new_window(Xcls_MainWindow _owner )
1877 _this.new_window = this;
1878 this.el = new Clutter.Actor();
1882 // set gobject values
1883 var child_0 = new Xcls_Actor58( _this );
1885 this.el.add_child ( child_0.el );
1889 this.el.set_size(50,50);
1892 // user defined functions
1894 public class Xcls_Actor58 : Object
1896 public GtkClutter.Actor el;
1897 private Xcls_MainWindow _this;
1903 public Xcls_Actor58(Xcls_MainWindow _owner )
1906 this.el = new GtkClutter.Actor();
1910 // set gobject values
1911 var child_0 = new Xcls_Button59( _this );
1916 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1919 // user defined functions
1921 public class Xcls_Button59 : Object
1923 public Gtk.Button el;
1924 private Xcls_MainWindow _this;
1930 public Xcls_Button59(Xcls_MainWindow _owner )
1933 this.el = new Gtk.Button();
1937 // set gobject values
1938 this.el.width_request = 50;
1939 this.el.height_request = 50;
1940 this.el.tooltip_text = "Open New Window";
1941 var child_0 = new Xcls_Image60( _this );
1943 this.el.set_image ( child_0.el );
1946 this.el.clicked.connect( ( ) => {
1947 Xcls_MainWindow.singleton().no_windows++;
1948 var w = new Xcls_MainWindow();
1953 w.windowstate.switchState(WindowState.State.FILES);
1957 // user defined functions
1959 public class Xcls_Image60 : Object
1961 public Gtk.Image el;
1962 private Xcls_MainWindow _this;
1968 public Xcls_Image60(Xcls_MainWindow _owner )
1971 this.el = new Gtk.Image();
1975 // set gobject values
1976 this.el.icon_name = "window-new";
1979 // user defined functions
1981 public class Xcls_statusbar : Object
1983 public Gtk.Statusbar el;
1984 private Xcls_MainWindow _this;
1990 public Xcls_statusbar(Xcls_MainWindow _owner )
1993 _this.statusbar = this;
1994 this.el = new Gtk.Statusbar();
1998 // set gobject values
2001 // user defined functions