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;
41 public Project.Project project;
43 public int no_windows;
44 public WindowState windowstate;
47 public Xcls_MainWindow()
50 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
54 this.title = "Application Builder";
56 this.windowstate = null;
59 this.el.border_width = 0;
60 this.el.default_height = 500;
61 this.el.default_width = 800;
62 var child_0 = new Xcls_vbox( _this );
64 this.el.add ( child_0.el );
71 this.el.delete_event.connect( ( event) => {
74 this.el.destroy.connect( () => {
75 Xcls_MainWindow.singleton().no_windows--;
77 if (Xcls_MainWindow.singleton().no_windows < 1) {
82 this.el.show.connect( ( ) => {
83 // hide the file editing..
85 //this.hideViewEditing();
89 // user defined functions
90 public void initChildren () {
91 // this needs putting in a better place..
92 this.windowstate = new WindowState(this);
96 var tl = new Clutter.Timeline(6000);
97 tl.set_repeat_count(-1);
106 public void show () {
111 public void setTitle (string str) {
112 this.el.set_title(this.title + " - " + str);
114 public class Xcls_vbox : Object
117 private Xcls_MainWindow _this;
123 public Xcls_vbox(Xcls_MainWindow _owner )
127 this.el = new Gtk.VBox( false, 0 );
131 // set gobject values
132 var child_0 = new Xcls_mainpane( _this );
134 this.el.pack_end ( child_0.el , true,true,0 );
135 var child_1 = new Xcls_Statusbar61( _this );
137 this.el.pack_start ( child_1.el , true,true,0 );
140 // user defined functions
142 public class Xcls_mainpane : Object
144 public Gtk.HPaned el;
145 private Xcls_MainWindow _this;
149 public int lastWidth;
152 public Xcls_mainpane(Xcls_MainWindow _owner )
155 _this.mainpane = this;
156 this.el = new Gtk.HPaned();
161 // set gobject values
162 this.el.position = 400;
163 var child_0 = new Xcls_leftpane( _this );
165 this.el.add1 ( child_0.el );
166 var child_1 = new Xcls_VBox8( _this );
168 this.el.add2 ( child_1.el );
171 // user defined functions
173 public class Xcls_leftpane : Object
176 private Xcls_MainWindow _this;
182 public Xcls_leftpane(Xcls_MainWindow _owner )
185 _this.leftpane = this;
186 this.el = new Gtk.VBox( true, 0 );
190 // set gobject values
191 var child_0 = new Xcls_editpane( _this );
193 this.el.pack_start ( child_0.el , false,true,0 );
196 // user defined functions
198 public class Xcls_editpane : Object
200 public Gtk.VPaned el;
201 private Xcls_MainWindow _this;
207 public Xcls_editpane(Xcls_MainWindow _owner )
210 _this.editpane = this;
211 this.el = new Gtk.VPaned();
215 // set gobject values
216 var child_0 = new Xcls_tree( _this );
218 this.el.add1 ( child_0.el );
219 var child_1 = new Xcls_props( _this );
221 this.el.add2 ( child_1.el );
224 // user defined functions
226 public class Xcls_tree : Object
229 private Xcls_MainWindow _this;
235 public Xcls_tree(Xcls_MainWindow _owner )
239 this.el = new Gtk.VBox( true, 0 );
243 // set gobject values
246 // user defined functions
248 public class Xcls_props : Object
251 private Xcls_MainWindow _this;
257 public Xcls_props(Xcls_MainWindow _owner )
261 this.el = new Gtk.VBox( true, 0 );
265 // set gobject values
268 // user defined functions
270 public class Xcls_VBox8 : Object
273 private Xcls_MainWindow _this;
279 public Xcls_VBox8(Xcls_MainWindow _owner )
282 this.el = new Gtk.VBox( true, 0 );
286 // set gobject values
287 var child_0 = new Xcls_clutterembed( _this );
289 this.el.pack_start ( child_0.el , true,true,0 );
292 // user defined functions
294 public class Xcls_clutterembed : Object
296 public GtkClutter.Embed el;
297 private Xcls_MainWindow _this;
303 public Xcls_clutterembed(Xcls_MainWindow _owner )
306 _this.clutterembed = this;
307 this.el = new GtkClutter.Embed();
311 // set gobject values
312 var child_0 = new Xcls_rooview( _this );
314 this.el.get_stage().add_child ( child_0.el );
315 var child_1 = new Xcls_objectview( _this );
317 this.el.get_stage().add_child ( child_1.el );
318 var child_2 = new Xcls_codeeditview( _this );
320 this.el.get_stage().add_child ( child_2.el );
321 var child_3 = new Xcls_addpropsview( _this );
323 this.el.get_stage().add_child ( child_3.el );
324 var child_4 = new Xcls_projecteditview( _this );
326 this.el.get_stage().add_child ( child_4.el );
327 var child_5 = new Xcls_buttonlayout( _this );
329 this.el.get_stage().add_child ( child_5.el );
333 var stage = this.el.get_stage();
334 stage.set_background_color( Clutter.Color.from_string("#000"));
337 this.el.size_allocate.connect( ( alloc) => {
338 if (_this.windowstate == null) {
341 _this.windowstate.resizeCanvas();
346 // user defined functions
348 public class Xcls_rooview : Object
350 public GtkClutter.Actor el;
351 private Xcls_MainWindow _this;
357 public Xcls_rooview(Xcls_MainWindow _owner )
360 _this.rooview = this;
361 this.el = new GtkClutter.Actor();
365 // set gobject values
372 this.el.add_constraint(
373 new Clutter.AlignConstraint(
374 _this.clutterembed.el.get_stage(),
375 Clutter.AlignAxis.X_AXIS,
380 //this.el.set_position(100,100);
381 this.el.set_pivot_point(1.0f,1.0f);
383 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
384 _this.clutterembed.el.get_stage().height);
389 // user defined functions
391 public class Xcls_objectview : Object
393 public GtkClutter.Actor el;
394 private Xcls_MainWindow _this;
400 public Xcls_objectview(Xcls_MainWindow _owner )
403 _this.objectview = this;
404 this.el = new GtkClutter.Actor();
408 // set gobject values
415 this.el.add_constraint(
416 new Clutter.AlignConstraint(
417 _this.clutterembed.el.get_stage(),
418 Clutter.AlignAxis.X_AXIS,
423 this.el.fixed_x = 50.0f;
424 this.el.fixed_y = 0.0f;
425 //this.el.set_position(100,100);
426 this.el.set_pivot_point(0.0f,0.0f);
427 this.el.set_scale(0.0f,1.0f);
428 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
429 _this.clutterembed.el.get_stage().height);
434 // user defined functions
436 public class Xcls_codeeditview : Object
438 public GtkClutter.Actor el;
439 private Xcls_MainWindow _this;
445 public Xcls_codeeditview(Xcls_MainWindow _owner )
448 _this.codeeditview = this;
449 this.el = new GtkClutter.Actor();
453 // set gobject values
460 this.el.add_constraint(
461 new Clutter.AlignConstraint(
462 _this.clutterembed.el.get_stage(),
463 Clutter.AlignAxis.X_AXIS,
468 this.el.fixed_x = 50.0f;
469 this.el.fixed_y = 0.0f;
470 //this.el.set_position(100,100);
471 this.el.set_pivot_point(0.0f,0.0f);
472 this.el.set_scale(0.0f,1.0f);
473 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
474 _this.clutterembed.el.get_stage().height);
479 // user defined functions
481 public class Xcls_addpropsview : Object
483 public GtkClutter.Actor el;
484 private Xcls_MainWindow _this;
490 public Xcls_addpropsview(Xcls_MainWindow _owner )
493 _this.addpropsview = this;
494 this.el = new GtkClutter.Actor();
498 // set gobject values
505 this.el.add_constraint(
506 new Clutter.AlignConstraint(
507 _this.clutterembed.el.get_stage(),
508 Clutter.AlignAxis.X_AXIS,
513 this.el.fixed_x = 50.0f;
514 this.el.fixed_y = 0.0f;
515 //this.el.set_position(100,100);
516 this.el.set_pivot_point(0.0f,0.0f);
517 this.el.set_scale(0.0f,1.0f);
518 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
519 _this.clutterembed.el.get_stage().height);
524 // user defined functions
526 public class Xcls_projecteditview : Object
528 public GtkClutter.Actor el;
529 private Xcls_MainWindow _this;
535 public Xcls_projecteditview(Xcls_MainWindow _owner )
538 _this.projecteditview = this;
539 this.el = new GtkClutter.Actor();
543 // set gobject values
550 this.el.add_constraint(
551 new Clutter.AlignConstraint(
552 _this.clutterembed.el.get_stage(),
553 Clutter.AlignAxis.X_AXIS,
558 //this.el.set_position(100,100);
559 this.el.set_pivot_point(0.0f,0.0f);
560 this.el.set_scale(1.0f,0.0f);
561 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
562 _this.clutterembed.el.get_stage().height /2);
567 // user defined functions
569 public class Xcls_buttonlayout : Object
571 public Clutter.Actor el;
572 private Xcls_MainWindow _this;
578 public Xcls_buttonlayout(Xcls_MainWindow _owner )
581 _this.buttonlayout = this;
582 this.el = new Clutter.Actor();
586 // set gobject values
587 var child_0 = new Xcls_BoxLayout16( _this );
589 this.el.layout_manager = child_0.el;
590 var child_1 = new Xcls_backbutton( _this );
592 this.el.add_child ( child_1.el );
593 var child_2 = new Xcls_projectbutton( _this );
595 this.el.add_child ( child_2.el );
596 var child_3 = new Xcls_editfilebutton( _this );
598 this.el.add_child ( child_3.el );
599 var child_4 = new Xcls_projecteditbutton( _this );
601 this.el.add_child ( child_4.el );
602 var child_5 = new Xcls_objectshowbutton( _this );
604 this.el.add_child ( child_5.el );
605 var child_6 = new Xcls_addpropbutton( _this );
607 this.el.add_child ( child_6.el );
608 var child_7 = new Xcls_addlistenerbutton( _this );
610 this.el.add_child ( child_7.el );
611 var child_8 = new Xcls_addprojectbutton( _this );
613 this.el.add_child ( child_8.el );
614 var child_9 = new Xcls_addfilebutton( _this );
616 this.el.add_child ( child_9.el );
617 var child_10 = new Xcls_delprojectbutton( _this );
619 this.el.add_child ( child_10.el );
620 var child_11 = new Xcls_new_window( _this );
622 this.el.add_child ( child_11.el );
628 this.el.add_constraint(
629 new Clutter.AlignConstraint(
630 _this.clutterembed.el.get_stage(),
631 Clutter.AlignAxis.X_AXIS,
637 //this.el.set_position(100,100);
638 this.el.set_pivot_point(0.5f,0.5f);
640 _this.clutterembed.el.get_stage().height);
645 // user defined functions
647 public class Xcls_BoxLayout16 : Object
649 public Clutter.BoxLayout el;
650 private Xcls_MainWindow _this;
656 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
659 this.el = new Clutter.BoxLayout();
663 // set gobject values
664 this.el.orientation = Clutter.Orientation.VERTICAL;
667 // user defined functions
669 public class Xcls_backbutton : Object
671 public Clutter.Actor el;
672 private Xcls_MainWindow _this;
678 public Xcls_backbutton(Xcls_MainWindow _owner )
681 _this.backbutton = this;
682 this.el = new Clutter.Actor();
686 // set gobject values
687 var child_0 = new Xcls_Actor18( _this );
689 this.el.add_child ( child_0.el );
693 this.el.set_size(50,50);
696 // user defined functions
698 public class Xcls_Actor18 : Object
700 public GtkClutter.Actor el;
701 private Xcls_MainWindow _this;
707 public Xcls_Actor18(Xcls_MainWindow _owner )
710 this.el = new GtkClutter.Actor();
714 // set gobject values
715 var child_0 = new Xcls_Button19( _this );
720 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
723 // user defined functions
725 public class Xcls_Button19 : Object
727 public Gtk.Button el;
728 private Xcls_MainWindow _this;
734 public Xcls_Button19(Xcls_MainWindow _owner )
737 this.el = new Gtk.Button();
741 // set gobject values
742 this.el.width_request = 50;
743 this.el.height_request = 50;
744 this.el.tooltip_text = "Back";
745 var child_0 = new Xcls_Image20( _this );
747 this.el.set_image ( child_0.el );
750 this.el.clicked.connect( ( ) => {
752 _this.windowstate.switchState(WindowState.State.PREVIEW);
758 // user defined functions
760 public class Xcls_Image20 : Object
763 private Xcls_MainWindow _this;
769 public Xcls_Image20(Xcls_MainWindow _owner )
772 this.el = new Gtk.Image();
776 // set gobject values
777 this.el.icon_name = "go-previous";
780 // user defined functions
782 public class Xcls_projectbutton : Object
784 public Clutter.Actor el;
785 private Xcls_MainWindow _this;
791 public Xcls_projectbutton(Xcls_MainWindow _owner )
794 _this.projectbutton = this;
795 this.el = new Clutter.Actor();
799 // set gobject values
800 var child_0 = new Xcls_Actor22( _this );
802 this.el.add_child ( child_0.el );
806 this.el.set_size(50,50);
809 // user defined functions
811 public class Xcls_Actor22 : Object
813 public GtkClutter.Actor el;
814 private Xcls_MainWindow _this;
820 public Xcls_Actor22(Xcls_MainWindow _owner )
823 this.el = new GtkClutter.Actor();
827 // set gobject values
828 var child_0 = new Xcls_Button23( _this );
833 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
836 // user defined functions
838 public class Xcls_Button23 : Object
840 public Gtk.Button el;
841 private Xcls_MainWindow _this;
847 public Xcls_Button23(Xcls_MainWindow _owner )
850 this.el = new Gtk.Button();
854 // set gobject values
855 this.el.width_request = 50;
856 this.el.height_request = 50;
857 var child_0 = new Xcls_Image24( _this );
859 this.el.set_image ( child_0.el );
862 this.el.clicked.connect( ( ) => {
863 _this.windowstate.switchState(WindowState.State.FILES);
869 // user defined functions
871 public class Xcls_Image24 : Object
874 private Xcls_MainWindow _this;
880 public Xcls_Image24(Xcls_MainWindow _owner )
883 this.el = new Gtk.Image();
887 // set gobject values
888 this.el.icon_name = "document-open";
891 // user defined functions
893 public class Xcls_editfilebutton : Object
895 public Clutter.Actor el;
896 private Xcls_MainWindow _this;
902 public Xcls_editfilebutton(Xcls_MainWindow _owner )
905 _this.editfilebutton = this;
906 this.el = new Clutter.Actor();
910 // set gobject values
911 var child_0 = new Xcls_Actor26( _this );
913 this.el.add_child ( child_0.el );
917 this.el.set_size(50.0f,50.0f);
920 // user defined functions
922 public class Xcls_Actor26 : Object
924 public GtkClutter.Actor el;
925 private Xcls_MainWindow _this;
931 public Xcls_Actor26(Xcls_MainWindow _owner )
934 this.el = new GtkClutter.Actor();
938 // set gobject values
939 var child_0 = new Xcls_Button27( _this );
944 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
947 // user defined functions
949 public class Xcls_Button27 : Object
951 public Gtk.Button el;
952 private Xcls_MainWindow _this;
958 public Xcls_Button27(Xcls_MainWindow _owner )
961 this.el = new Gtk.Button();
965 // set gobject values
966 this.el.width_request = 50;
967 this.el.height_request = 50;
968 this.el.tooltip_text = "File Details";
969 var child_0 = new Xcls_Image28( _this );
971 this.el.set_image ( child_0.el );
974 this.el.clicked.connect( ( ) => {
976 // create a new file in project..
977 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
980 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
988 // user defined functions
990 public class Xcls_Image28 : Object
993 private Xcls_MainWindow _this;
999 public Xcls_Image28(Xcls_MainWindow _owner )
1002 this.el = new Gtk.Image();
1006 // set gobject values
1007 this.el.icon_name = "document-properties";
1010 // user defined functions
1012 public class Xcls_projecteditbutton : Object
1014 public Clutter.Actor el;
1015 private Xcls_MainWindow _this;
1021 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1024 _this.projecteditbutton = this;
1025 this.el = new Clutter.Actor();
1029 // set gobject values
1030 var child_0 = new Xcls_Actor30( _this );
1032 this.el.add_child ( child_0.el );
1036 this.el.set_size(50,50);
1039 // user defined functions
1041 public class Xcls_Actor30 : Object
1043 public GtkClutter.Actor el;
1044 private Xcls_MainWindow _this;
1050 public Xcls_Actor30(Xcls_MainWindow _owner )
1053 this.el = new GtkClutter.Actor();
1057 // set gobject values
1058 var child_0 = new Xcls_Button31( _this );
1063 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1066 // user defined functions
1068 public class Xcls_Button31 : Object
1070 public Gtk.Button el;
1071 private Xcls_MainWindow _this;
1077 public Xcls_Button31(Xcls_MainWindow _owner )
1080 this.el = new Gtk.Button();
1084 // set gobject values
1085 this.el.width_request = 50;
1086 this.el.height_request = 50;
1087 this.el.tooltip_text = "Project Details";
1088 var child_0 = new Xcls_Image32( _this );
1090 this.el.set_image ( child_0.el );
1093 this.el.clicked.connect( ( ) => {
1094 _this.windowstate.switchState(WindowState.State.PROJECT);
1101 // user defined functions
1103 public class Xcls_Image32 : Object
1105 public Gtk.Image el;
1106 private Xcls_MainWindow _this;
1112 public Xcls_Image32(Xcls_MainWindow _owner )
1115 this.el = new Gtk.Image();
1119 // set gobject values
1120 this.el.icon_name = "emblem-system";
1123 // user defined functions
1125 public class Xcls_objectshowbutton : Object
1127 public Clutter.Actor el;
1128 private Xcls_MainWindow _this;
1134 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1137 _this.objectshowbutton = this;
1138 this.el = new Clutter.Actor();
1142 // set gobject values
1143 var child_0 = new Xcls_Actor34( _this );
1145 this.el.add_child ( child_0.el );
1149 this.el.set_size(50,50);
1152 this.el.enter_event.connect( ( event) => {
1153 this.el.background_color = new Clutter.Color.from_string("#333");
1156 this.el.leave_event.connect( ( event) => {
1157 this.el.background_color = new Clutter.Color.from_string("#000");
1162 // user defined functions
1164 public class Xcls_Actor34 : Object
1166 public GtkClutter.Actor el;
1167 private Xcls_MainWindow _this;
1173 public Xcls_Actor34(Xcls_MainWindow _owner )
1176 this.el = new GtkClutter.Actor();
1180 // set gobject values
1181 var child_0 = new Xcls_Button35( _this );
1186 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1189 // user defined functions
1191 public class Xcls_Button35 : Object
1193 public Gtk.Button el;
1194 private Xcls_MainWindow _this;
1200 public Xcls_Button35(Xcls_MainWindow _owner )
1203 this.el = new Gtk.Button();
1207 // set gobject values
1208 this.el.width_request = 50;
1209 this.el.height_request = 50;
1210 this.el.tooltip_text = "Add Child Element";
1211 var child_0 = new Xcls_Image36( _this );
1213 this.el.set_image ( child_0.el );
1216 this.el.clicked.connect( ( ) => {
1218 _this.windowstate.switchState(WindowState.State.OBJECT);
1224 // user defined functions
1226 public class Xcls_Image36 : Object
1228 public Gtk.Image el;
1229 private Xcls_MainWindow _this;
1235 public Xcls_Image36(Xcls_MainWindow _owner )
1238 this.el = new Gtk.Image();
1242 // set gobject values
1243 this.el.icon_name = "list-add";
1246 // user defined functions
1248 public class Xcls_addpropbutton : Object
1250 public Clutter.Actor el;
1251 private Xcls_MainWindow _this;
1257 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1260 _this.addpropbutton = this;
1261 this.el = new Clutter.Actor();
1265 // set gobject values
1266 var child_0 = new Xcls_Actor38( _this );
1268 this.el.add_child ( child_0.el );
1272 this.el.set_size(50,50);
1275 // user defined functions
1277 public class Xcls_Actor38 : Object
1279 public GtkClutter.Actor el;
1280 private Xcls_MainWindow _this;
1286 public Xcls_Actor38(Xcls_MainWindow _owner )
1289 this.el = new GtkClutter.Actor();
1293 // set gobject values
1294 var child_0 = new Xcls_Button39( _this );
1299 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1302 // user defined functions
1304 public class Xcls_Button39 : Object
1306 public Gtk.Button el;
1307 private Xcls_MainWindow _this;
1313 public Xcls_Button39(Xcls_MainWindow _owner )
1316 this.el = new Gtk.Button();
1320 // set gobject values
1321 this.el.width_request = 50;
1322 this.el.height_request = 50;
1323 this.el.tooltip_text = "Add Property";
1324 var child_0 = new Xcls_Image40( _this );
1326 this.el.set_image ( child_0.el );
1329 this.el.clicked.connect( ( ) => {
1331 _this.windowstate.switchState(WindowState.State.PROP);
1337 // user defined functions
1339 public class Xcls_Image40 : Object
1341 public Gtk.Image el;
1342 private Xcls_MainWindow _this;
1348 public Xcls_Image40(Xcls_MainWindow _owner )
1351 this.el = new Gtk.Image();
1355 // set gobject values
1356 this.el.icon_name = "format-justify-left";
1359 // user defined functions
1361 public class Xcls_addlistenerbutton : Object
1363 public Clutter.Actor el;
1364 private Xcls_MainWindow _this;
1370 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1373 _this.addlistenerbutton = this;
1374 this.el = new Clutter.Actor();
1378 // set gobject values
1379 var child_0 = new Xcls_Actor42( _this );
1381 this.el.add_child ( child_0.el );
1385 this.el.set_size(50,50);
1388 // user defined functions
1390 public class Xcls_Actor42 : Object
1392 public GtkClutter.Actor el;
1393 private Xcls_MainWindow _this;
1399 public Xcls_Actor42(Xcls_MainWindow _owner )
1402 this.el = new GtkClutter.Actor();
1406 // set gobject values
1407 var child_0 = new Xcls_Button43( _this );
1412 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1415 // user defined functions
1417 public class Xcls_Button43 : Object
1419 public Gtk.Button el;
1420 private Xcls_MainWindow _this;
1426 public Xcls_Button43(Xcls_MainWindow _owner )
1429 this.el = new Gtk.Button();
1433 // set gobject values
1434 this.el.width_request = 50;
1435 this.el.height_request = 50;
1436 this.el.tooltip_text = "Add Event Code";
1437 var child_0 = new Xcls_Image44( _this );
1439 this.el.set_image ( child_0.el );
1442 this.el.clicked.connect( ( ) => {
1444 _this.windowstate.switchState(WindowState.State.LISTENER);
1451 // user defined functions
1453 public class Xcls_Image44 : Object
1455 public Gtk.Image el;
1456 private Xcls_MainWindow _this;
1462 public Xcls_Image44(Xcls_MainWindow _owner )
1465 this.el = new Gtk.Image();
1469 // set gobject values
1470 this.el.icon_name = "appointment-new";
1473 // user defined functions
1475 public class Xcls_addprojectbutton : Object
1477 public Clutter.Actor el;
1478 private Xcls_MainWindow _this;
1484 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1487 _this.addprojectbutton = this;
1488 this.el = new Clutter.Actor();
1492 // set gobject values
1493 var child_0 = new Xcls_Actor46( _this );
1495 this.el.add_child ( child_0.el );
1499 this.el.set_size(50.0f,50.0f);
1502 // user defined functions
1504 public class Xcls_Actor46 : Object
1506 public GtkClutter.Actor el;
1507 private Xcls_MainWindow _this;
1513 public Xcls_Actor46(Xcls_MainWindow _owner )
1516 this.el = new GtkClutter.Actor();
1520 // set gobject values
1521 var child_0 = new Xcls_Button47( _this );
1526 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1529 // user defined functions
1531 public class Xcls_Button47 : Object
1533 public Gtk.Button el;
1534 private Xcls_MainWindow _this;
1540 public Xcls_Button47(Xcls_MainWindow _owner )
1543 this.el = new Gtk.Button();
1547 // set gobject values
1548 this.el.width_request = 50;
1549 this.el.height_request = 50;
1550 this.el.tooltip_text = "New\nProj.";
1551 var child_0 = new Xcls_Image48( _this );
1553 this.el.set_image ( child_0.el );
1556 this.el.clicked.connect( ( ) => {
1558 // create a new file in project..
1559 //Xcls_DialogNewComponent.singleton().show(
1560 var pe = Xcls_EditProject.singleton();
1561 pe.el.set_transient_for(_this.el);
1562 pe.el.set_modal(true);
1571 _this.windowstate.left_projects.is_loaded = false;
1572 _this.windowstate.left_projects.load();
1573 _this.windowstate.left_projects.selectProject(p);
1580 // user defined functions
1582 public class Xcls_Image48 : Object
1584 public Gtk.Image el;
1585 private Xcls_MainWindow _this;
1591 public Xcls_Image48(Xcls_MainWindow _owner )
1594 this.el = new Gtk.Image();
1598 // set gobject values
1599 this.el.icon_name = "folder-new";
1602 // user defined functions
1604 public class Xcls_addfilebutton : Object
1606 public Clutter.Actor el;
1607 private Xcls_MainWindow _this;
1613 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1616 _this.addfilebutton = this;
1617 this.el = new Clutter.Actor();
1621 // set gobject values
1622 var child_0 = new Xcls_Actor50( _this );
1624 this.el.add_child ( child_0.el );
1628 this.el.set_size(50.0f,50.0f);
1631 // user defined functions
1633 public class Xcls_Actor50 : Object
1635 public GtkClutter.Actor el;
1636 private Xcls_MainWindow _this;
1642 public Xcls_Actor50(Xcls_MainWindow _owner )
1645 this.el = new GtkClutter.Actor();
1649 // set gobject values
1650 var child_0 = new Xcls_Button51( _this );
1655 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1658 // user defined functions
1660 public class Xcls_Button51 : Object
1662 public Gtk.Button el;
1663 private Xcls_MainWindow _this;
1669 public Xcls_Button51(Xcls_MainWindow _owner )
1672 this.el = new Gtk.Button();
1676 // set gobject values
1677 this.el.width_request = 50;
1678 this.el.height_request = 50;
1679 this.el.tooltip_text = "Add File";
1680 var child_0 = new Xcls_Image52( _this );
1682 this.el.set_image ( child_0.el );
1685 this.el.clicked.connect( () => {
1686 // create a new file in project..
1688 // what's the currently selected project...
1689 var proj = _this.windowstate.left_projects.getSelectedProject();
1697 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1698 _this.project = proj;
1699 _this.windowstate.new_file_dialog.show(f);
1705 // user defined functions
1707 public class Xcls_Image52 : Object
1709 public Gtk.Image el;
1710 private Xcls_MainWindow _this;
1716 public Xcls_Image52(Xcls_MainWindow _owner )
1719 this.el = new Gtk.Image();
1723 // set gobject values
1724 this.el.icon_name = "document-new";
1727 // user defined functions
1729 public class Xcls_delprojectbutton : Object
1731 public Clutter.Actor el;
1732 private Xcls_MainWindow _this;
1738 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1741 _this.delprojectbutton = this;
1742 this.el = new Clutter.Actor();
1746 // set gobject values
1747 var child_0 = new Xcls_Actor54( _this );
1749 this.el.add_child ( child_0.el );
1753 this.el.set_size(50,50);
1756 // user defined functions
1758 public class Xcls_Actor54 : Object
1760 public GtkClutter.Actor el;
1761 private Xcls_MainWindow _this;
1767 public Xcls_Actor54(Xcls_MainWindow _owner )
1770 this.el = new GtkClutter.Actor();
1774 // set gobject values
1775 var child_0 = new Xcls_Button55( _this );
1780 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1783 // user defined functions
1785 public class Xcls_Button55 : Object
1787 public Gtk.Button el;
1788 private Xcls_MainWindow _this;
1794 public Xcls_Button55(Xcls_MainWindow _owner )
1797 this.el = new Gtk.Button();
1801 // set gobject values
1802 this.el.width_request = 50;
1803 this.el.height_request = 50;
1804 this.el.tooltip_text = "Delelte Project";
1805 var child_0 = new Xcls_Image56( _this );
1807 this.el.set_image ( child_0.el );
1810 this.el.clicked.connect( ( ) => {
1812 var cd = DialogConfirm.singleton();
1813 cd.el.set_transient_for(_this.el);
1814 cd.el.set_modal(true);
1816 var project = _this.windowstate.left_projects.getSelectedProject();
1817 if (project == null) {
1818 print("SKIP - no project\n");
1823 if (Gtk.ResponseType.YES != cd.show("Confirm",
1824 "Are you sure you want to delete project %s".printf(project.name))) {
1830 Project.Project.remove(project);
1831 _this.project = null;
1833 _this.windowstate.left_projects.is_loaded = false;
1834 _this.windowstate.left_projects.load();
1835 _this.windowstate.clutterfiles.clearFiles();
1840 // user defined functions
1842 public class Xcls_Image56 : Object
1844 public Gtk.Image el;
1845 private Xcls_MainWindow _this;
1851 public Xcls_Image56(Xcls_MainWindow _owner )
1854 this.el = new Gtk.Image();
1858 // set gobject values
1859 this.el.icon_name = "user-trash";
1862 // user defined functions
1864 public class Xcls_new_window : Object
1866 public Clutter.Actor el;
1867 private Xcls_MainWindow _this;
1873 public Xcls_new_window(Xcls_MainWindow _owner )
1876 _this.new_window = this;
1877 this.el = new Clutter.Actor();
1881 // set gobject values
1882 var child_0 = new Xcls_Actor58( _this );
1884 this.el.add_child ( child_0.el );
1888 this.el.set_size(50,50);
1891 // user defined functions
1893 public class Xcls_Actor58 : Object
1895 public GtkClutter.Actor el;
1896 private Xcls_MainWindow _this;
1902 public Xcls_Actor58(Xcls_MainWindow _owner )
1905 this.el = new GtkClutter.Actor();
1909 // set gobject values
1910 var child_0 = new Xcls_Button59( _this );
1915 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1918 // user defined functions
1920 public class Xcls_Button59 : Object
1922 public Gtk.Button el;
1923 private Xcls_MainWindow _this;
1929 public Xcls_Button59(Xcls_MainWindow _owner )
1932 this.el = new Gtk.Button();
1936 // set gobject values
1937 this.el.width_request = 50;
1938 this.el.height_request = 50;
1939 this.el.tooltip_text = "Open New Window";
1940 var child_0 = new Xcls_Image60( _this );
1942 this.el.set_image ( child_0.el );
1945 this.el.clicked.connect( ( ) => {
1946 Xcls_MainWindow.singleton().no_windows++;
1947 var w = new Xcls_MainWindow();
1952 w.windowstate.switchState(WindowState.State.FILES);
1956 // user defined functions
1958 public class Xcls_Image60 : Object
1960 public Gtk.Image el;
1961 private Xcls_MainWindow _this;
1967 public Xcls_Image60(Xcls_MainWindow _owner )
1970 this.el = new Gtk.Image();
1974 // set gobject values
1975 this.el.icon_name = "window-new";
1978 // user defined functions
1980 public class Xcls_Statusbar61 : Object
1982 public Gtk.Statusbar el;
1983 private Xcls_MainWindow _this;
1989 public Xcls_Statusbar61(Xcls_MainWindow _owner )
1992 this.el = new Gtk.Statusbar();
1996 // set gobject values
1999 // user defined functions