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();
87 _this.statusbar.el.hide();
91 // user defined functions
92 public void initChildren () {
93 // this needs putting in a better place..
94 this.windowstate = new WindowState(this);
98 var tl = new Clutter.Timeline(6000);
99 tl.set_repeat_count(-1);
108 public void show () {
113 public void setTitle (string str) {
114 this.el.set_title(this.title + " - " + str);
116 public class Xcls_vbox : Object
119 private Xcls_MainWindow _this;
125 public Xcls_vbox(Xcls_MainWindow _owner )
129 this.el = new Gtk.VBox( false, 0 );
133 // set gobject values
134 var child_0 = new Xcls_mainpane( _this );
136 this.el.pack_start ( child_0.el , true,true,0 );
137 var child_1 = new Xcls_statusbar( _this );
139 this.el.pack_end ( child_1.el , false,true,0 );
142 // user defined functions
144 public class Xcls_mainpane : Object
146 public Gtk.HPaned el;
147 private Xcls_MainWindow _this;
151 public int lastWidth;
154 public Xcls_mainpane(Xcls_MainWindow _owner )
157 _this.mainpane = this;
158 this.el = new Gtk.HPaned();
163 // set gobject values
164 this.el.position = 400;
165 var child_0 = new Xcls_leftpane( _this );
167 this.el.add1 ( child_0.el );
168 var child_1 = new Xcls_VBox8( _this );
170 this.el.add2 ( child_1.el );
173 // user defined functions
175 public class Xcls_leftpane : Object
178 private Xcls_MainWindow _this;
184 public Xcls_leftpane(Xcls_MainWindow _owner )
187 _this.leftpane = this;
188 this.el = new Gtk.VBox( true, 0 );
192 // set gobject values
193 var child_0 = new Xcls_editpane( _this );
195 this.el.pack_start ( child_0.el , false,true,0 );
198 // user defined functions
200 public class Xcls_editpane : Object
202 public Gtk.VPaned el;
203 private Xcls_MainWindow _this;
209 public Xcls_editpane(Xcls_MainWindow _owner )
212 _this.editpane = this;
213 this.el = new Gtk.VPaned();
217 // set gobject values
218 var child_0 = new Xcls_tree( _this );
220 this.el.add1 ( child_0.el );
221 var child_1 = new Xcls_props( _this );
223 this.el.add2 ( child_1.el );
226 // user defined functions
228 public class Xcls_tree : Object
231 private Xcls_MainWindow _this;
237 public Xcls_tree(Xcls_MainWindow _owner )
241 this.el = new Gtk.VBox( true, 0 );
245 // set gobject values
248 // user defined functions
250 public class Xcls_props : Object
253 private Xcls_MainWindow _this;
259 public Xcls_props(Xcls_MainWindow _owner )
263 this.el = new Gtk.VBox( true, 0 );
267 // set gobject values
270 // user defined functions
272 public class Xcls_VBox8 : Object
275 private Xcls_MainWindow _this;
281 public Xcls_VBox8(Xcls_MainWindow _owner )
284 this.el = new Gtk.VBox( true, 0 );
288 // set gobject values
289 var child_0 = new Xcls_clutterembed( _this );
291 this.el.pack_start ( child_0.el , true,true,0 );
294 // user defined functions
296 public class Xcls_clutterembed : Object
298 public GtkClutter.Embed el;
299 private Xcls_MainWindow _this;
305 public Xcls_clutterembed(Xcls_MainWindow _owner )
308 _this.clutterembed = this;
309 this.el = new GtkClutter.Embed();
313 // set gobject values
314 var child_0 = new Xcls_rooview( _this );
316 this.el.get_stage().add_child ( child_0.el );
317 var child_1 = new Xcls_objectview( _this );
319 this.el.get_stage().add_child ( child_1.el );
320 var child_2 = new Xcls_codeeditview( _this );
322 this.el.get_stage().add_child ( child_2.el );
323 var child_3 = new Xcls_addpropsview( _this );
325 this.el.get_stage().add_child ( child_3.el );
326 var child_4 = new Xcls_projecteditview( _this );
328 this.el.get_stage().add_child ( child_4.el );
329 var child_5 = new Xcls_buttonlayout( _this );
331 this.el.get_stage().add_child ( child_5.el );
335 var stage = this.el.get_stage();
336 stage.set_background_color( Clutter.Color.from_string("#000"));
339 this.el.size_allocate.connect( ( alloc) => {
340 if (_this.windowstate == null) {
343 _this.windowstate.resizeCanvas();
348 // user defined functions
350 public class Xcls_rooview : Object
352 public GtkClutter.Actor el;
353 private Xcls_MainWindow _this;
359 public Xcls_rooview(Xcls_MainWindow _owner )
362 _this.rooview = this;
363 this.el = new GtkClutter.Actor();
367 // set gobject values
374 this.el.add_constraint(
375 new Clutter.AlignConstraint(
376 _this.clutterembed.el.get_stage(),
377 Clutter.AlignAxis.X_AXIS,
382 //this.el.set_position(100,100);
383 this.el.set_pivot_point(1.0f,1.0f);
385 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
386 _this.clutterembed.el.get_stage().height);
391 // user defined functions
393 public class Xcls_objectview : Object
395 public GtkClutter.Actor el;
396 private Xcls_MainWindow _this;
402 public Xcls_objectview(Xcls_MainWindow _owner )
405 _this.objectview = this;
406 this.el = new GtkClutter.Actor();
410 // set gobject values
417 this.el.add_constraint(
418 new Clutter.AlignConstraint(
419 _this.clutterembed.el.get_stage(),
420 Clutter.AlignAxis.X_AXIS,
425 this.el.fixed_x = 50.0f;
426 this.el.fixed_y = 0.0f;
427 //this.el.set_position(100,100);
428 this.el.set_pivot_point(0.0f,0.0f);
429 this.el.set_scale(0.0f,1.0f);
430 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
431 _this.clutterembed.el.get_stage().height);
436 // user defined functions
438 public class Xcls_codeeditview : Object
440 public GtkClutter.Actor el;
441 private Xcls_MainWindow _this;
447 public Xcls_codeeditview(Xcls_MainWindow _owner )
450 _this.codeeditview = this;
451 this.el = new GtkClutter.Actor();
455 // set gobject values
462 this.el.add_constraint(
463 new Clutter.AlignConstraint(
464 _this.clutterembed.el.get_stage(),
465 Clutter.AlignAxis.X_AXIS,
470 this.el.fixed_x = 50.0f;
471 this.el.fixed_y = 0.0f;
472 //this.el.set_position(100,100);
473 this.el.set_pivot_point(0.0f,0.0f);
474 this.el.set_scale(0.0f,1.0f);
475 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
476 _this.clutterembed.el.get_stage().height);
481 // user defined functions
483 public class Xcls_addpropsview : Object
485 public GtkClutter.Actor el;
486 private Xcls_MainWindow _this;
492 public Xcls_addpropsview(Xcls_MainWindow _owner )
495 _this.addpropsview = this;
496 this.el = new GtkClutter.Actor();
500 // set gobject values
507 this.el.add_constraint(
508 new Clutter.AlignConstraint(
509 _this.clutterembed.el.get_stage(),
510 Clutter.AlignAxis.X_AXIS,
515 this.el.fixed_x = 50.0f;
516 this.el.fixed_y = 0.0f;
517 //this.el.set_position(100,100);
518 this.el.set_pivot_point(0.0f,0.0f);
519 this.el.set_scale(0.0f,1.0f);
520 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
521 _this.clutterembed.el.get_stage().height);
526 // user defined functions
528 public class Xcls_projecteditview : Object
530 public GtkClutter.Actor el;
531 private Xcls_MainWindow _this;
537 public Xcls_projecteditview(Xcls_MainWindow _owner )
540 _this.projecteditview = this;
541 this.el = new GtkClutter.Actor();
545 // set gobject values
552 this.el.add_constraint(
553 new Clutter.AlignConstraint(
554 _this.clutterembed.el.get_stage(),
555 Clutter.AlignAxis.X_AXIS,
560 //this.el.set_position(100,100);
561 this.el.set_pivot_point(0.0f,0.0f);
562 this.el.set_scale(1.0f,0.0f);
563 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
564 _this.clutterembed.el.get_stage().height /2);
569 // user defined functions
571 public class Xcls_buttonlayout : Object
573 public Clutter.Actor el;
574 private Xcls_MainWindow _this;
580 public Xcls_buttonlayout(Xcls_MainWindow _owner )
583 _this.buttonlayout = this;
584 this.el = new Clutter.Actor();
588 // set gobject values
589 var child_0 = new Xcls_BoxLayout16( _this );
591 this.el.layout_manager = child_0.el;
592 var child_1 = new Xcls_backbutton( _this );
594 this.el.add_child ( child_1.el );
595 var child_2 = new Xcls_projectbutton( _this );
597 this.el.add_child ( child_2.el );
598 var child_3 = new Xcls_editfilebutton( _this );
600 this.el.add_child ( child_3.el );
601 var child_4 = new Xcls_projecteditbutton( _this );
603 this.el.add_child ( child_4.el );
604 var child_5 = new Xcls_objectshowbutton( _this );
606 this.el.add_child ( child_5.el );
607 var child_6 = new Xcls_addpropbutton( _this );
609 this.el.add_child ( child_6.el );
610 var child_7 = new Xcls_addlistenerbutton( _this );
612 this.el.add_child ( child_7.el );
613 var child_8 = new Xcls_addprojectbutton( _this );
615 this.el.add_child ( child_8.el );
616 var child_9 = new Xcls_addfilebutton( _this );
618 this.el.add_child ( child_9.el );
619 var child_10 = new Xcls_delprojectbutton( _this );
621 this.el.add_child ( child_10.el );
622 var child_11 = new Xcls_new_window( _this );
624 this.el.add_child ( child_11.el );
630 this.el.add_constraint(
631 new Clutter.AlignConstraint(
632 _this.clutterembed.el.get_stage(),
633 Clutter.AlignAxis.X_AXIS,
639 //this.el.set_position(100,100);
640 this.el.set_pivot_point(0.5f,0.5f);
642 _this.clutterembed.el.get_stage().height);
647 // user defined functions
649 public class Xcls_BoxLayout16 : Object
651 public Clutter.BoxLayout el;
652 private Xcls_MainWindow _this;
658 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
661 this.el = new Clutter.BoxLayout();
665 // set gobject values
666 this.el.orientation = Clutter.Orientation.VERTICAL;
669 // user defined functions
671 public class Xcls_backbutton : Object
673 public Clutter.Actor el;
674 private Xcls_MainWindow _this;
680 public Xcls_backbutton(Xcls_MainWindow _owner )
683 _this.backbutton = this;
684 this.el = new Clutter.Actor();
688 // set gobject values
689 var child_0 = new Xcls_Actor18( _this );
691 this.el.add_child ( child_0.el );
695 this.el.set_size(50,50);
698 // user defined functions
700 public class Xcls_Actor18 : Object
702 public GtkClutter.Actor el;
703 private Xcls_MainWindow _this;
709 public Xcls_Actor18(Xcls_MainWindow _owner )
712 this.el = new GtkClutter.Actor();
716 // set gobject values
717 var child_0 = new Xcls_Button19( _this );
722 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
725 // user defined functions
727 public class Xcls_Button19 : Object
729 public Gtk.Button el;
730 private Xcls_MainWindow _this;
736 public Xcls_Button19(Xcls_MainWindow _owner )
739 this.el = new Gtk.Button();
743 // set gobject values
744 this.el.width_request = 50;
745 this.el.height_request = 50;
746 this.el.tooltip_text = "Back";
747 var child_0 = new Xcls_Image20( _this );
749 this.el.set_image ( child_0.el );
752 this.el.clicked.connect( ( ) => {
754 _this.windowstate.switchState(WindowState.State.PREVIEW);
760 // user defined functions
762 public class Xcls_Image20 : Object
765 private Xcls_MainWindow _this;
771 public Xcls_Image20(Xcls_MainWindow _owner )
774 this.el = new Gtk.Image();
778 // set gobject values
779 this.el.icon_name = "go-previous";
782 // user defined functions
784 public class Xcls_projectbutton : Object
786 public Clutter.Actor el;
787 private Xcls_MainWindow _this;
793 public Xcls_projectbutton(Xcls_MainWindow _owner )
796 _this.projectbutton = this;
797 this.el = new Clutter.Actor();
801 // set gobject values
802 var child_0 = new Xcls_Actor22( _this );
804 this.el.add_child ( child_0.el );
808 this.el.set_size(50,50);
811 // user defined functions
813 public class Xcls_Actor22 : Object
815 public GtkClutter.Actor el;
816 private Xcls_MainWindow _this;
822 public Xcls_Actor22(Xcls_MainWindow _owner )
825 this.el = new GtkClutter.Actor();
829 // set gobject values
830 var child_0 = new Xcls_Button23( _this );
835 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
838 // user defined functions
840 public class Xcls_Button23 : Object
842 public Gtk.Button el;
843 private Xcls_MainWindow _this;
849 public Xcls_Button23(Xcls_MainWindow _owner )
852 this.el = new Gtk.Button();
856 // set gobject values
857 this.el.width_request = 50;
858 this.el.height_request = 50;
859 var child_0 = new Xcls_Image24( _this );
861 this.el.set_image ( child_0.el );
864 this.el.clicked.connect( ( ) => {
865 _this.windowstate.switchState(WindowState.State.FILES);
871 // user defined functions
873 public class Xcls_Image24 : Object
876 private Xcls_MainWindow _this;
882 public Xcls_Image24(Xcls_MainWindow _owner )
885 this.el = new Gtk.Image();
889 // set gobject values
890 this.el.icon_name = "document-open";
893 // user defined functions
895 public class Xcls_editfilebutton : Object
897 public Clutter.Actor el;
898 private Xcls_MainWindow _this;
904 public Xcls_editfilebutton(Xcls_MainWindow _owner )
907 _this.editfilebutton = this;
908 this.el = new Clutter.Actor();
912 // set gobject values
913 var child_0 = new Xcls_Actor26( _this );
915 this.el.add_child ( child_0.el );
919 this.el.set_size(50.0f,50.0f);
922 // user defined functions
924 public class Xcls_Actor26 : Object
926 public GtkClutter.Actor el;
927 private Xcls_MainWindow _this;
933 public Xcls_Actor26(Xcls_MainWindow _owner )
936 this.el = new GtkClutter.Actor();
940 // set gobject values
941 var child_0 = new Xcls_Button27( _this );
946 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
949 // user defined functions
951 public class Xcls_Button27 : Object
953 public Gtk.Button el;
954 private Xcls_MainWindow _this;
960 public Xcls_Button27(Xcls_MainWindow _owner )
963 this.el = new Gtk.Button();
967 // set gobject values
968 this.el.width_request = 50;
969 this.el.height_request = 50;
970 this.el.tooltip_text = "File Details";
971 var child_0 = new Xcls_Image28( _this );
973 this.el.set_image ( child_0.el );
976 this.el.clicked.connect( ( ) => {
978 // create a new file in project..
979 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
982 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
990 // user defined functions
992 public class Xcls_Image28 : Object
995 private Xcls_MainWindow _this;
1001 public Xcls_Image28(Xcls_MainWindow _owner )
1004 this.el = new Gtk.Image();
1008 // set gobject values
1009 this.el.icon_name = "document-properties";
1012 // user defined functions
1014 public class Xcls_projecteditbutton : Object
1016 public Clutter.Actor el;
1017 private Xcls_MainWindow _this;
1023 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1026 _this.projecteditbutton = this;
1027 this.el = new Clutter.Actor();
1031 // set gobject values
1032 var child_0 = new Xcls_Actor30( _this );
1034 this.el.add_child ( child_0.el );
1038 this.el.set_size(50,50);
1041 // user defined functions
1043 public class Xcls_Actor30 : Object
1045 public GtkClutter.Actor el;
1046 private Xcls_MainWindow _this;
1052 public Xcls_Actor30(Xcls_MainWindow _owner )
1055 this.el = new GtkClutter.Actor();
1059 // set gobject values
1060 var child_0 = new Xcls_Button31( _this );
1065 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1068 // user defined functions
1070 public class Xcls_Button31 : Object
1072 public Gtk.Button el;
1073 private Xcls_MainWindow _this;
1079 public Xcls_Button31(Xcls_MainWindow _owner )
1082 this.el = new Gtk.Button();
1086 // set gobject values
1087 this.el.width_request = 50;
1088 this.el.height_request = 50;
1089 this.el.tooltip_text = "Project Details";
1090 var child_0 = new Xcls_Image32( _this );
1092 this.el.set_image ( child_0.el );
1095 this.el.clicked.connect( ( ) => {
1096 _this.windowstate.switchState(WindowState.State.PROJECT);
1103 // user defined functions
1105 public class Xcls_Image32 : Object
1107 public Gtk.Image el;
1108 private Xcls_MainWindow _this;
1114 public Xcls_Image32(Xcls_MainWindow _owner )
1117 this.el = new Gtk.Image();
1121 // set gobject values
1122 this.el.icon_name = "emblem-system";
1125 // user defined functions
1127 public class Xcls_objectshowbutton : Object
1129 public Clutter.Actor el;
1130 private Xcls_MainWindow _this;
1136 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1139 _this.objectshowbutton = this;
1140 this.el = new Clutter.Actor();
1144 // set gobject values
1145 var child_0 = new Xcls_Actor34( _this );
1147 this.el.add_child ( child_0.el );
1151 this.el.set_size(50,50);
1154 this.el.enter_event.connect( ( event) => {
1155 this.el.background_color = new Clutter.Color.from_string("#333");
1158 this.el.leave_event.connect( ( event) => {
1159 this.el.background_color = new Clutter.Color.from_string("#000");
1164 // user defined functions
1166 public class Xcls_Actor34 : Object
1168 public GtkClutter.Actor el;
1169 private Xcls_MainWindow _this;
1175 public Xcls_Actor34(Xcls_MainWindow _owner )
1178 this.el = new GtkClutter.Actor();
1182 // set gobject values
1183 var child_0 = new Xcls_Button35( _this );
1188 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1191 // user defined functions
1193 public class Xcls_Button35 : Object
1195 public Gtk.Button el;
1196 private Xcls_MainWindow _this;
1202 public Xcls_Button35(Xcls_MainWindow _owner )
1205 this.el = new Gtk.Button();
1209 // set gobject values
1210 this.el.width_request = 50;
1211 this.el.height_request = 50;
1212 this.el.tooltip_text = "Add Child Element";
1213 var child_0 = new Xcls_Image36( _this );
1215 this.el.set_image ( child_0.el );
1218 this.el.clicked.connect( ( ) => {
1220 _this.windowstate.switchState(WindowState.State.OBJECT);
1226 // user defined functions
1228 public class Xcls_Image36 : Object
1230 public Gtk.Image el;
1231 private Xcls_MainWindow _this;
1237 public Xcls_Image36(Xcls_MainWindow _owner )
1240 this.el = new Gtk.Image();
1244 // set gobject values
1245 this.el.icon_name = "list-add";
1248 // user defined functions
1250 public class Xcls_addpropbutton : Object
1252 public Clutter.Actor el;
1253 private Xcls_MainWindow _this;
1259 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1262 _this.addpropbutton = this;
1263 this.el = new Clutter.Actor();
1267 // set gobject values
1268 var child_0 = new Xcls_Actor38( _this );
1270 this.el.add_child ( child_0.el );
1274 this.el.set_size(50,50);
1277 // user defined functions
1279 public class Xcls_Actor38 : Object
1281 public GtkClutter.Actor el;
1282 private Xcls_MainWindow _this;
1288 public Xcls_Actor38(Xcls_MainWindow _owner )
1291 this.el = new GtkClutter.Actor();
1295 // set gobject values
1296 var child_0 = new Xcls_Button39( _this );
1301 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1304 // user defined functions
1306 public class Xcls_Button39 : Object
1308 public Gtk.Button el;
1309 private Xcls_MainWindow _this;
1315 public Xcls_Button39(Xcls_MainWindow _owner )
1318 this.el = new Gtk.Button();
1322 // set gobject values
1323 this.el.width_request = 50;
1324 this.el.height_request = 50;
1325 this.el.tooltip_text = "Add Property";
1326 var child_0 = new Xcls_Image40( _this );
1328 this.el.set_image ( child_0.el );
1331 this.el.clicked.connect( ( ) => {
1333 _this.windowstate.switchState(WindowState.State.PROP);
1339 // user defined functions
1341 public class Xcls_Image40 : Object
1343 public Gtk.Image el;
1344 private Xcls_MainWindow _this;
1350 public Xcls_Image40(Xcls_MainWindow _owner )
1353 this.el = new Gtk.Image();
1357 // set gobject values
1358 this.el.icon_name = "format-justify-left";
1361 // user defined functions
1363 public class Xcls_addlistenerbutton : Object
1365 public Clutter.Actor el;
1366 private Xcls_MainWindow _this;
1372 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1375 _this.addlistenerbutton = this;
1376 this.el = new Clutter.Actor();
1380 // set gobject values
1381 var child_0 = new Xcls_Actor42( _this );
1383 this.el.add_child ( child_0.el );
1387 this.el.set_size(50,50);
1390 // user defined functions
1392 public class Xcls_Actor42 : Object
1394 public GtkClutter.Actor el;
1395 private Xcls_MainWindow _this;
1401 public Xcls_Actor42(Xcls_MainWindow _owner )
1404 this.el = new GtkClutter.Actor();
1408 // set gobject values
1409 var child_0 = new Xcls_Button43( _this );
1414 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1417 // user defined functions
1419 public class Xcls_Button43 : Object
1421 public Gtk.Button el;
1422 private Xcls_MainWindow _this;
1428 public Xcls_Button43(Xcls_MainWindow _owner )
1431 this.el = new Gtk.Button();
1435 // set gobject values
1436 this.el.width_request = 50;
1437 this.el.height_request = 50;
1438 this.el.tooltip_text = "Add Event Code";
1439 var child_0 = new Xcls_Image44( _this );
1441 this.el.set_image ( child_0.el );
1444 this.el.clicked.connect( ( ) => {
1446 _this.windowstate.switchState(WindowState.State.LISTENER);
1453 // user defined functions
1455 public class Xcls_Image44 : Object
1457 public Gtk.Image el;
1458 private Xcls_MainWindow _this;
1464 public Xcls_Image44(Xcls_MainWindow _owner )
1467 this.el = new Gtk.Image();
1471 // set gobject values
1472 this.el.icon_name = "appointment-new";
1475 // user defined functions
1477 public class Xcls_addprojectbutton : Object
1479 public Clutter.Actor el;
1480 private Xcls_MainWindow _this;
1486 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1489 _this.addprojectbutton = this;
1490 this.el = new Clutter.Actor();
1494 // set gobject values
1495 var child_0 = new Xcls_Actor46( _this );
1497 this.el.add_child ( child_0.el );
1501 this.el.set_size(50.0f,50.0f);
1504 // user defined functions
1506 public class Xcls_Actor46 : Object
1508 public GtkClutter.Actor el;
1509 private Xcls_MainWindow _this;
1515 public Xcls_Actor46(Xcls_MainWindow _owner )
1518 this.el = new GtkClutter.Actor();
1522 // set gobject values
1523 var child_0 = new Xcls_Button47( _this );
1528 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1531 // user defined functions
1533 public class Xcls_Button47 : Object
1535 public Gtk.Button el;
1536 private Xcls_MainWindow _this;
1542 public Xcls_Button47(Xcls_MainWindow _owner )
1545 this.el = new Gtk.Button();
1549 // set gobject values
1550 this.el.width_request = 50;
1551 this.el.height_request = 50;
1552 this.el.tooltip_text = "New\nProj.";
1553 var child_0 = new Xcls_Image48( _this );
1555 this.el.set_image ( child_0.el );
1558 this.el.clicked.connect( ( ) => {
1560 // create a new file in project..
1561 //Xcls_DialogNewComponent.singleton().show(
1562 var pe = Xcls_EditProject.singleton();
1563 pe.el.set_transient_for(_this.el);
1564 pe.el.set_modal(true);
1573 _this.windowstate.left_projects.is_loaded = false;
1574 _this.windowstate.left_projects.load();
1575 _this.windowstate.left_projects.selectProject(p);
1582 // user defined functions
1584 public class Xcls_Image48 : Object
1586 public Gtk.Image el;
1587 private Xcls_MainWindow _this;
1593 public Xcls_Image48(Xcls_MainWindow _owner )
1596 this.el = new Gtk.Image();
1600 // set gobject values
1601 this.el.icon_name = "folder-new";
1604 // user defined functions
1606 public class Xcls_addfilebutton : Object
1608 public Clutter.Actor el;
1609 private Xcls_MainWindow _this;
1615 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1618 _this.addfilebutton = this;
1619 this.el = new Clutter.Actor();
1623 // set gobject values
1624 var child_0 = new Xcls_Actor50( _this );
1626 this.el.add_child ( child_0.el );
1630 this.el.set_size(50.0f,50.0f);
1633 // user defined functions
1635 public class Xcls_Actor50 : Object
1637 public GtkClutter.Actor el;
1638 private Xcls_MainWindow _this;
1644 public Xcls_Actor50(Xcls_MainWindow _owner )
1647 this.el = new GtkClutter.Actor();
1651 // set gobject values
1652 var child_0 = new Xcls_Button51( _this );
1657 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1660 // user defined functions
1662 public class Xcls_Button51 : Object
1664 public Gtk.Button el;
1665 private Xcls_MainWindow _this;
1671 public Xcls_Button51(Xcls_MainWindow _owner )
1674 this.el = new Gtk.Button();
1678 // set gobject values
1679 this.el.width_request = 50;
1680 this.el.height_request = 50;
1681 this.el.tooltip_text = "Add File";
1682 var child_0 = new Xcls_Image52( _this );
1684 this.el.set_image ( child_0.el );
1687 this.el.clicked.connect( () => {
1688 // create a new file in project..
1690 // what's the currently selected project...
1691 var proj = _this.windowstate.left_projects.getSelectedProject();
1699 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1700 _this.project = proj;
1701 _this.windowstate.new_file_dialog.show(f);
1707 // user defined functions
1709 public class Xcls_Image52 : Object
1711 public Gtk.Image el;
1712 private Xcls_MainWindow _this;
1718 public Xcls_Image52(Xcls_MainWindow _owner )
1721 this.el = new Gtk.Image();
1725 // set gobject values
1726 this.el.icon_name = "document-new";
1729 // user defined functions
1731 public class Xcls_delprojectbutton : Object
1733 public Clutter.Actor el;
1734 private Xcls_MainWindow _this;
1740 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1743 _this.delprojectbutton = this;
1744 this.el = new Clutter.Actor();
1748 // set gobject values
1749 var child_0 = new Xcls_Actor54( _this );
1751 this.el.add_child ( child_0.el );
1755 this.el.set_size(50,50);
1758 // user defined functions
1760 public class Xcls_Actor54 : Object
1762 public GtkClutter.Actor el;
1763 private Xcls_MainWindow _this;
1769 public Xcls_Actor54(Xcls_MainWindow _owner )
1772 this.el = new GtkClutter.Actor();
1776 // set gobject values
1777 var child_0 = new Xcls_Button55( _this );
1782 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1785 // user defined functions
1787 public class Xcls_Button55 : Object
1789 public Gtk.Button el;
1790 private Xcls_MainWindow _this;
1796 public Xcls_Button55(Xcls_MainWindow _owner )
1799 this.el = new Gtk.Button();
1803 // set gobject values
1804 this.el.width_request = 50;
1805 this.el.height_request = 50;
1806 this.el.tooltip_text = "Delelte Project";
1807 var child_0 = new Xcls_Image56( _this );
1809 this.el.set_image ( child_0.el );
1812 this.el.clicked.connect( ( ) => {
1814 var cd = DialogConfirm.singleton();
1815 cd.el.set_transient_for(_this.el);
1816 cd.el.set_modal(true);
1818 var project = _this.windowstate.left_projects.getSelectedProject();
1819 if (project == null) {
1820 print("SKIP - no project\n");
1825 if (Gtk.ResponseType.YES != cd.show("Confirm",
1826 "Are you sure you want to delete project %s".printf(project.name))) {
1832 Project.Project.remove(project);
1833 _this.project = null;
1835 _this.windowstate.left_projects.is_loaded = false;
1836 _this.windowstate.left_projects.load();
1837 _this.windowstate.clutterfiles.clearFiles();
1842 // user defined functions
1844 public class Xcls_Image56 : Object
1846 public Gtk.Image el;
1847 private Xcls_MainWindow _this;
1853 public Xcls_Image56(Xcls_MainWindow _owner )
1856 this.el = new Gtk.Image();
1860 // set gobject values
1861 this.el.icon_name = "user-trash";
1864 // user defined functions
1866 public class Xcls_new_window : Object
1868 public Clutter.Actor el;
1869 private Xcls_MainWindow _this;
1875 public Xcls_new_window(Xcls_MainWindow _owner )
1878 _this.new_window = this;
1879 this.el = new Clutter.Actor();
1883 // set gobject values
1884 var child_0 = new Xcls_Actor58( _this );
1886 this.el.add_child ( child_0.el );
1890 this.el.set_size(50,50);
1893 // user defined functions
1895 public class Xcls_Actor58 : Object
1897 public GtkClutter.Actor el;
1898 private Xcls_MainWindow _this;
1904 public Xcls_Actor58(Xcls_MainWindow _owner )
1907 this.el = new GtkClutter.Actor();
1911 // set gobject values
1912 var child_0 = new Xcls_Button59( _this );
1917 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1920 // user defined functions
1922 public class Xcls_Button59 : Object
1924 public Gtk.Button el;
1925 private Xcls_MainWindow _this;
1931 public Xcls_Button59(Xcls_MainWindow _owner )
1934 this.el = new Gtk.Button();
1938 // set gobject values
1939 this.el.width_request = 50;
1940 this.el.height_request = 50;
1941 this.el.tooltip_text = "Open New Window";
1942 var child_0 = new Xcls_Image60( _this );
1944 this.el.set_image ( child_0.el );
1947 this.el.clicked.connect( ( ) => {
1948 Xcls_MainWindow.singleton().no_windows++;
1949 var w = new Xcls_MainWindow();
1954 w.windowstate.switchState(WindowState.State.FILES);
1958 // user defined functions
1960 public class Xcls_Image60 : Object
1962 public Gtk.Image el;
1963 private Xcls_MainWindow _this;
1969 public Xcls_Image60(Xcls_MainWindow _owner )
1972 this.el = new Gtk.Image();
1976 // set gobject values
1977 this.el.icon_name = "window-new";
1980 // user defined functions
1982 public class Xcls_statusbar : Object
1984 public Gtk.Statusbar el;
1985 private Xcls_MainWindow _this;
1991 public Xcls_statusbar(Xcls_MainWindow _owner )
1994 _this.statusbar = this;
1995 this.el = new Gtk.Statusbar();
1999 // set gobject values
2002 // user defined functions