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 );
70 this.el.delete_event.connect( ( event) => {
73 this.el.destroy.connect( () => {
74 Xcls_MainWindow.singleton().no_windows--;
76 if (Xcls_MainWindow.singleton().no_windows < 1) {
81 this.el.show.connect( ( ) => {
82 // hide the file editing..
84 //this.hideViewEditing();
88 // user defined functions
89 public void initChildren () {
90 // this needs putting in a better place..
91 this.windowstate = new WindowState(this);
95 var tl = new Clutter.Timeline(6000);
96 tl.set_repeat_count(-1);
105 public void show () {
110 public void setTitle (string str) {
111 this.el.set_title(this.title + " - " + str);
113 public class Xcls_vbox : Object
116 private Xcls_MainWindow _this;
122 public Xcls_vbox(Xcls_MainWindow _owner )
126 this.el = new Gtk.VBox( false, 0 );
130 // set gobject values
131 var child_0 = new Xcls_mainpane( _this );
133 this.el.pack_end ( child_0.el , true,true,0 );
136 // user defined functions
138 public class Xcls_mainpane : Object
140 public Gtk.HPaned el;
141 private Xcls_MainWindow _this;
145 public int lastWidth;
148 public Xcls_mainpane(Xcls_MainWindow _owner )
151 _this.mainpane = this;
152 this.el = new Gtk.HPaned();
157 // set gobject values
158 this.el.position = 400;
159 var child_0 = new Xcls_leftpane( _this );
161 this.el.add1 ( child_0.el );
162 var child_1 = new Xcls_VBox8( _this );
164 this.el.add2 ( child_1.el );
167 // user defined functions
169 public class Xcls_leftpane : Object
172 private Xcls_MainWindow _this;
178 public Xcls_leftpane(Xcls_MainWindow _owner )
181 _this.leftpane = this;
182 this.el = new Gtk.VBox( true, 0 );
186 // set gobject values
187 var child_0 = new Xcls_editpane( _this );
189 this.el.pack_start ( child_0.el , false,true,0 );
192 // user defined functions
194 public class Xcls_editpane : Object
196 public Gtk.VPaned el;
197 private Xcls_MainWindow _this;
203 public Xcls_editpane(Xcls_MainWindow _owner )
206 _this.editpane = this;
207 this.el = new Gtk.VPaned();
211 // set gobject values
212 var child_0 = new Xcls_tree( _this );
214 this.el.add1 ( child_0.el );
215 var child_1 = new Xcls_props( _this );
217 this.el.add2 ( child_1.el );
220 // user defined functions
222 public class Xcls_tree : Object
225 private Xcls_MainWindow _this;
231 public Xcls_tree(Xcls_MainWindow _owner )
235 this.el = new Gtk.VBox( true, 0 );
239 // set gobject values
242 // user defined functions
244 public class Xcls_props : Object
247 private Xcls_MainWindow _this;
253 public Xcls_props(Xcls_MainWindow _owner )
257 this.el = new Gtk.VBox( true, 0 );
261 // set gobject values
264 // user defined functions
266 public class Xcls_VBox8 : Object
269 private Xcls_MainWindow _this;
275 public Xcls_VBox8(Xcls_MainWindow _owner )
278 this.el = new Gtk.VBox( true, 0 );
282 // set gobject values
283 var child_0 = new Xcls_clutterembed( _this );
285 this.el.pack_start ( child_0.el , true,true,0 );
288 // user defined functions
290 public class Xcls_clutterembed : Object
292 public GtkClutter.Embed el;
293 private Xcls_MainWindow _this;
299 public Xcls_clutterembed(Xcls_MainWindow _owner )
302 _this.clutterembed = this;
303 this.el = new GtkClutter.Embed();
307 // set gobject values
308 var child_0 = new Xcls_rooview( _this );
310 this.el.get_stage().add_child ( child_0.el );
311 var child_1 = new Xcls_objectview( _this );
313 this.el.get_stage().add_child ( child_1.el );
314 var child_2 = new Xcls_codeeditview( _this );
316 this.el.get_stage().add_child ( child_2.el );
317 var child_3 = new Xcls_addpropsview( _this );
319 this.el.get_stage().add_child ( child_3.el );
320 var child_4 = new Xcls_projecteditview( _this );
322 this.el.get_stage().add_child ( child_4.el );
323 var child_5 = new Xcls_buttonlayout( _this );
325 this.el.get_stage().add_child ( child_5.el );
329 var stage = this.el.get_stage();
330 stage.set_background_color( Clutter.Color.from_string("#000"));
332 this.el.size_allocate.connect( ( alloc) => {
333 if (_this.windowstate == null) {
336 _this.windowstate.resizeCanvas();
341 // user defined functions
343 public class Xcls_rooview : Object
345 public GtkClutter.Actor el;
346 private Xcls_MainWindow _this;
352 public Xcls_rooview(Xcls_MainWindow _owner )
355 _this.rooview = this;
356 this.el = new GtkClutter.Actor();
360 // set gobject values
367 this.el.add_constraint(
368 new Clutter.AlignConstraint(
369 _this.clutterembed.el.get_stage(),
370 Clutter.AlignAxis.X_AXIS,
375 //this.el.set_position(100,100);
376 this.el.set_pivot_point(1.0f,1.0f);
378 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
379 _this.clutterembed.el.get_stage().height);
383 // user defined functions
385 public class Xcls_objectview : Object
387 public GtkClutter.Actor el;
388 private Xcls_MainWindow _this;
394 public Xcls_objectview(Xcls_MainWindow _owner )
397 _this.objectview = this;
398 this.el = new GtkClutter.Actor();
402 // set gobject values
409 this.el.add_constraint(
410 new Clutter.AlignConstraint(
411 _this.clutterembed.el.get_stage(),
412 Clutter.AlignAxis.X_AXIS,
417 this.el.fixed_x = 50.0f;
418 this.el.fixed_y = 0.0f;
419 //this.el.set_position(100,100);
420 this.el.set_pivot_point(0.0f,0.0f);
421 this.el.set_scale(0.0f,1.0f);
422 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
423 _this.clutterembed.el.get_stage().height);
427 // user defined functions
429 public class Xcls_codeeditview : Object
431 public GtkClutter.Actor el;
432 private Xcls_MainWindow _this;
438 public Xcls_codeeditview(Xcls_MainWindow _owner )
441 _this.codeeditview = this;
442 this.el = new GtkClutter.Actor();
446 // set gobject values
453 this.el.add_constraint(
454 new Clutter.AlignConstraint(
455 _this.clutterembed.el.get_stage(),
456 Clutter.AlignAxis.X_AXIS,
461 this.el.fixed_x = 50.0f;
462 this.el.fixed_y = 0.0f;
463 //this.el.set_position(100,100);
464 this.el.set_pivot_point(0.0f,0.0f);
465 this.el.set_scale(0.0f,1.0f);
466 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
467 _this.clutterembed.el.get_stage().height);
471 // user defined functions
473 public class Xcls_addpropsview : Object
475 public GtkClutter.Actor el;
476 private Xcls_MainWindow _this;
482 public Xcls_addpropsview(Xcls_MainWindow _owner )
485 _this.addpropsview = this;
486 this.el = new GtkClutter.Actor();
490 // set gobject values
497 this.el.add_constraint(
498 new Clutter.AlignConstraint(
499 _this.clutterembed.el.get_stage(),
500 Clutter.AlignAxis.X_AXIS,
505 this.el.fixed_x = 50.0f;
506 this.el.fixed_y = 0.0f;
507 //this.el.set_position(100,100);
508 this.el.set_pivot_point(0.0f,0.0f);
509 this.el.set_scale(0.0f,1.0f);
510 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
511 _this.clutterembed.el.get_stage().height);
515 // user defined functions
517 public class Xcls_projecteditview : Object
519 public GtkClutter.Actor el;
520 private Xcls_MainWindow _this;
526 public Xcls_projecteditview(Xcls_MainWindow _owner )
529 _this.projecteditview = this;
530 this.el = new GtkClutter.Actor();
534 // set gobject values
541 this.el.add_constraint(
542 new Clutter.AlignConstraint(
543 _this.clutterembed.el.get_stage(),
544 Clutter.AlignAxis.X_AXIS,
549 //this.el.set_position(100,100);
550 this.el.set_pivot_point(0.0f,0.0f);
551 this.el.set_scale(1.0f,0.0f);
552 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
553 _this.clutterembed.el.get_stage().height /2);
557 // user defined functions
559 public class Xcls_buttonlayout : Object
561 public Clutter.Actor el;
562 private Xcls_MainWindow _this;
568 public Xcls_buttonlayout(Xcls_MainWindow _owner )
571 _this.buttonlayout = this;
572 this.el = new Clutter.Actor();
576 // set gobject values
577 var child_0 = new Xcls_BoxLayout16( _this );
579 this.el.layout_manager = child_0.el;
580 var child_1 = new Xcls_backbutton( _this );
582 this.el.add_child ( child_1.el );
583 var child_2 = new Xcls_projectbutton( _this );
585 this.el.add_child ( child_2.el );
586 var child_3 = new Xcls_editfilebutton( _this );
588 this.el.add_child ( child_3.el );
589 var child_4 = new Xcls_projecteditbutton( _this );
591 this.el.add_child ( child_4.el );
592 var child_5 = new Xcls_objectshowbutton( _this );
594 this.el.add_child ( child_5.el );
595 var child_6 = new Xcls_addpropbutton( _this );
597 this.el.add_child ( child_6.el );
598 var child_7 = new Xcls_addlistenerbutton( _this );
600 this.el.add_child ( child_7.el );
601 var child_8 = new Xcls_addprojectbutton( _this );
603 this.el.add_child ( child_8.el );
604 var child_9 = new Xcls_addfilebutton( _this );
606 this.el.add_child ( child_9.el );
607 var child_10 = new Xcls_delprojectbutton( _this );
609 this.el.add_child ( child_10.el );
610 var child_11 = new Xcls_new_window( _this );
612 this.el.add_child ( child_11.el );
618 this.el.add_constraint(
619 new Clutter.AlignConstraint(
620 _this.clutterembed.el.get_stage(),
621 Clutter.AlignAxis.X_AXIS,
627 //this.el.set_position(100,100);
628 this.el.set_pivot_point(0.5f,0.5f);
630 _this.clutterembed.el.get_stage().height);
634 // user defined functions
636 public class Xcls_BoxLayout16 : Object
638 public Clutter.BoxLayout el;
639 private Xcls_MainWindow _this;
645 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
648 this.el = new Clutter.BoxLayout();
652 // set gobject values
653 this.el.orientation = Clutter.Orientation.VERTICAL;
656 // user defined functions
658 public class Xcls_backbutton : Object
660 public Clutter.Actor el;
661 private Xcls_MainWindow _this;
667 public Xcls_backbutton(Xcls_MainWindow _owner )
670 _this.backbutton = this;
671 this.el = new Clutter.Actor();
675 // set gobject values
676 var child_0 = new Xcls_Actor18( _this );
678 this.el.add_child ( child_0.el );
682 this.el.set_size(50,50); }
684 // user defined functions
686 public class Xcls_Actor18 : Object
688 public GtkClutter.Actor el;
689 private Xcls_MainWindow _this;
695 public Xcls_Actor18(Xcls_MainWindow _owner )
698 this.el = new GtkClutter.Actor();
702 // set gobject values
703 var child_0 = new Xcls_Button19( _this );
708 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
710 // user defined functions
712 public class Xcls_Button19 : Object
714 public Gtk.Button el;
715 private Xcls_MainWindow _this;
721 public Xcls_Button19(Xcls_MainWindow _owner )
724 this.el = new Gtk.Button();
728 // set gobject values
729 this.el.width_request = 50;
730 this.el.height_request = 50;
731 this.el.tooltip_text = "Back";
732 var child_0 = new Xcls_Image20( _this );
734 this.el.set_image ( child_0.el );
737 this.el.clicked.connect( ( ) => {
739 _this.windowstate.switchState(WindowState.State.PREVIEW);
745 // user defined functions
747 public class Xcls_Image20 : Object
750 private Xcls_MainWindow _this;
756 public Xcls_Image20(Xcls_MainWindow _owner )
759 this.el = new Gtk.Image();
763 // set gobject values
764 this.el.icon_name = "go-previous";
767 // user defined functions
769 public class Xcls_projectbutton : Object
771 public Clutter.Actor el;
772 private Xcls_MainWindow _this;
778 public Xcls_projectbutton(Xcls_MainWindow _owner )
781 _this.projectbutton = this;
782 this.el = new Clutter.Actor();
786 // set gobject values
787 var child_0 = new Xcls_Actor22( _this );
789 this.el.add_child ( child_0.el );
793 this.el.set_size(50,50); }
795 // user defined functions
797 public class Xcls_Actor22 : Object
799 public GtkClutter.Actor el;
800 private Xcls_MainWindow _this;
806 public Xcls_Actor22(Xcls_MainWindow _owner )
809 this.el = new GtkClutter.Actor();
813 // set gobject values
814 var child_0 = new Xcls_Button23( _this );
819 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
821 // user defined functions
823 public class Xcls_Button23 : Object
825 public Gtk.Button el;
826 private Xcls_MainWindow _this;
832 public Xcls_Button23(Xcls_MainWindow _owner )
835 this.el = new Gtk.Button();
839 // set gobject values
840 this.el.width_request = 50;
841 this.el.height_request = 50;
842 var child_0 = new Xcls_Image24( _this );
844 this.el.set_image ( child_0.el );
847 this.el.clicked.connect( ( ) => {
848 _this.windowstate.switchState(WindowState.State.FILES);
854 // user defined functions
856 public class Xcls_Image24 : Object
859 private Xcls_MainWindow _this;
865 public Xcls_Image24(Xcls_MainWindow _owner )
868 this.el = new Gtk.Image();
872 // set gobject values
873 this.el.icon_name = "document-open";
876 // user defined functions
878 public class Xcls_editfilebutton : Object
880 public Clutter.Actor el;
881 private Xcls_MainWindow _this;
887 public Xcls_editfilebutton(Xcls_MainWindow _owner )
890 _this.editfilebutton = this;
891 this.el = new Clutter.Actor();
895 // set gobject values
896 var child_0 = new Xcls_Actor26( _this );
898 this.el.add_child ( child_0.el );
902 this.el.set_size(50.0f,50.0f); }
904 // user defined functions
906 public class Xcls_Actor26 : Object
908 public GtkClutter.Actor el;
909 private Xcls_MainWindow _this;
915 public Xcls_Actor26(Xcls_MainWindow _owner )
918 this.el = new GtkClutter.Actor();
922 // set gobject values
923 var child_0 = new Xcls_Button27( _this );
928 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
930 // user defined functions
932 public class Xcls_Button27 : Object
934 public Gtk.Button el;
935 private Xcls_MainWindow _this;
941 public Xcls_Button27(Xcls_MainWindow _owner )
944 this.el = new Gtk.Button();
948 // set gobject values
949 this.el.width_request = 50;
950 this.el.height_request = 50;
951 this.el.tooltip_text = "File Details";
952 var child_0 = new Xcls_Image28( _this );
954 this.el.set_image ( child_0.el );
957 this.el.clicked.connect( ( ) => {
959 // create a new file in project..
960 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
963 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
971 // user defined functions
973 public class Xcls_Image28 : Object
976 private Xcls_MainWindow _this;
982 public Xcls_Image28(Xcls_MainWindow _owner )
985 this.el = new Gtk.Image();
989 // set gobject values
990 this.el.icon_name = "document-properties";
993 // user defined functions
995 public class Xcls_projecteditbutton : Object
997 public Clutter.Actor el;
998 private Xcls_MainWindow _this;
1004 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1007 _this.projecteditbutton = this;
1008 this.el = new Clutter.Actor();
1012 // set gobject values
1013 var child_0 = new Xcls_Actor30( _this );
1015 this.el.add_child ( child_0.el );
1019 this.el.set_size(50,50); }
1021 // user defined functions
1023 public class Xcls_Actor30 : Object
1025 public GtkClutter.Actor el;
1026 private Xcls_MainWindow _this;
1032 public Xcls_Actor30(Xcls_MainWindow _owner )
1035 this.el = new GtkClutter.Actor();
1039 // set gobject values
1040 var child_0 = new Xcls_Button31( _this );
1045 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1047 // user defined functions
1049 public class Xcls_Button31 : Object
1051 public Gtk.Button el;
1052 private Xcls_MainWindow _this;
1058 public Xcls_Button31(Xcls_MainWindow _owner )
1061 this.el = new Gtk.Button();
1065 // set gobject values
1066 this.el.width_request = 50;
1067 this.el.height_request = 50;
1068 this.el.tooltip_text = "Project Details";
1069 var child_0 = new Xcls_Image32( _this );
1071 this.el.set_image ( child_0.el );
1074 this.el.clicked.connect( ( ) => {
1075 _this.windowstate.switchState(WindowState.State.PROJECT);
1082 // user defined functions
1084 public class Xcls_Image32 : Object
1086 public Gtk.Image el;
1087 private Xcls_MainWindow _this;
1093 public Xcls_Image32(Xcls_MainWindow _owner )
1096 this.el = new Gtk.Image();
1100 // set gobject values
1101 this.el.icon_name = "emblem-system";
1104 // user defined functions
1106 public class Xcls_objectshowbutton : Object
1108 public Clutter.Actor el;
1109 private Xcls_MainWindow _this;
1115 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1118 _this.objectshowbutton = this;
1119 this.el = new Clutter.Actor();
1123 // set gobject values
1124 var child_0 = new Xcls_Actor34( _this );
1126 this.el.add_child ( child_0.el );
1130 this.el.set_size(50,50);
1132 this.el.enter_event.connect( ( event) => {
1133 this.el.background_color = new Clutter.Color.from_string("#333");
1136 this.el.leave_event.connect( ( event) => {
1137 this.el.background_color = new Clutter.Color.from_string("#000");
1142 // user defined functions
1144 public class Xcls_Actor34 : Object
1146 public GtkClutter.Actor el;
1147 private Xcls_MainWindow _this;
1153 public Xcls_Actor34(Xcls_MainWindow _owner )
1156 this.el = new GtkClutter.Actor();
1160 // set gobject values
1161 var child_0 = new Xcls_Button35( _this );
1166 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1168 // user defined functions
1170 public class Xcls_Button35 : Object
1172 public Gtk.Button el;
1173 private Xcls_MainWindow _this;
1179 public Xcls_Button35(Xcls_MainWindow _owner )
1182 this.el = new Gtk.Button();
1186 // set gobject values
1187 this.el.width_request = 50;
1188 this.el.height_request = 50;
1189 this.el.tooltip_text = "Add Child Element";
1190 var child_0 = new Xcls_Image36( _this );
1192 this.el.set_image ( child_0.el );
1195 this.el.clicked.connect( ( ) => {
1197 _this.windowstate.switchState(WindowState.State.OBJECT);
1203 // user defined functions
1205 public class Xcls_Image36 : Object
1207 public Gtk.Image el;
1208 private Xcls_MainWindow _this;
1214 public Xcls_Image36(Xcls_MainWindow _owner )
1217 this.el = new Gtk.Image();
1221 // set gobject values
1222 this.el.icon_name = "list-add";
1225 // user defined functions
1227 public class Xcls_addpropbutton : Object
1229 public Clutter.Actor el;
1230 private Xcls_MainWindow _this;
1236 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1239 _this.addpropbutton = this;
1240 this.el = new Clutter.Actor();
1244 // set gobject values
1245 var child_0 = new Xcls_Actor38( _this );
1247 this.el.add_child ( child_0.el );
1251 this.el.set_size(50,50); }
1253 // user defined functions
1255 public class Xcls_Actor38 : Object
1257 public GtkClutter.Actor el;
1258 private Xcls_MainWindow _this;
1264 public Xcls_Actor38(Xcls_MainWindow _owner )
1267 this.el = new GtkClutter.Actor();
1271 // set gobject values
1272 var child_0 = new Xcls_Button39( _this );
1277 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1279 // user defined functions
1281 public class Xcls_Button39 : Object
1283 public Gtk.Button el;
1284 private Xcls_MainWindow _this;
1290 public Xcls_Button39(Xcls_MainWindow _owner )
1293 this.el = new Gtk.Button();
1297 // set gobject values
1298 this.el.width_request = 50;
1299 this.el.height_request = 50;
1300 this.el.tooltip_text = "Add Property";
1301 var child_0 = new Xcls_Image40( _this );
1303 this.el.set_image ( child_0.el );
1306 this.el.clicked.connect( ( ) => {
1308 _this.windowstate.switchState(WindowState.State.PROP);
1314 // user defined functions
1316 public class Xcls_Image40 : Object
1318 public Gtk.Image el;
1319 private Xcls_MainWindow _this;
1325 public Xcls_Image40(Xcls_MainWindow _owner )
1328 this.el = new Gtk.Image();
1332 // set gobject values
1333 this.el.icon_name = "format-justify-left";
1336 // user defined functions
1338 public class Xcls_addlistenerbutton : Object
1340 public Clutter.Actor el;
1341 private Xcls_MainWindow _this;
1347 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1350 _this.addlistenerbutton = this;
1351 this.el = new Clutter.Actor();
1355 // set gobject values
1356 var child_0 = new Xcls_Actor42( _this );
1358 this.el.add_child ( child_0.el );
1362 this.el.set_size(50,50); }
1364 // user defined functions
1366 public class Xcls_Actor42 : Object
1368 public GtkClutter.Actor el;
1369 private Xcls_MainWindow _this;
1375 public Xcls_Actor42(Xcls_MainWindow _owner )
1378 this.el = new GtkClutter.Actor();
1382 // set gobject values
1383 var child_0 = new Xcls_Button43( _this );
1388 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1390 // user defined functions
1392 public class Xcls_Button43 : Object
1394 public Gtk.Button el;
1395 private Xcls_MainWindow _this;
1401 public Xcls_Button43(Xcls_MainWindow _owner )
1404 this.el = new Gtk.Button();
1408 // set gobject values
1409 this.el.width_request = 50;
1410 this.el.height_request = 50;
1411 this.el.tooltip_text = "Add Event Code";
1412 var child_0 = new Xcls_Image44( _this );
1414 this.el.set_image ( child_0.el );
1417 this.el.clicked.connect( ( ) => {
1419 _this.windowstate.switchState(WindowState.State.LISTENER);
1426 // user defined functions
1428 public class Xcls_Image44 : Object
1430 public Gtk.Image el;
1431 private Xcls_MainWindow _this;
1437 public Xcls_Image44(Xcls_MainWindow _owner )
1440 this.el = new Gtk.Image();
1444 // set gobject values
1445 this.el.icon_name = "appointment-new";
1448 // user defined functions
1450 public class Xcls_addprojectbutton : Object
1452 public Clutter.Actor el;
1453 private Xcls_MainWindow _this;
1459 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1462 _this.addprojectbutton = this;
1463 this.el = new Clutter.Actor();
1467 // set gobject values
1468 var child_0 = new Xcls_Actor46( _this );
1470 this.el.add_child ( child_0.el );
1474 this.el.set_size(50.0f,50.0f); }
1476 // user defined functions
1478 public class Xcls_Actor46 : Object
1480 public GtkClutter.Actor el;
1481 private Xcls_MainWindow _this;
1487 public Xcls_Actor46(Xcls_MainWindow _owner )
1490 this.el = new GtkClutter.Actor();
1494 // set gobject values
1495 var child_0 = new Xcls_Button47( _this );
1500 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1502 // user defined functions
1504 public class Xcls_Button47 : Object
1506 public Gtk.Button el;
1507 private Xcls_MainWindow _this;
1513 public Xcls_Button47(Xcls_MainWindow _owner )
1516 this.el = new Gtk.Button();
1520 // set gobject values
1521 this.el.width_request = 50;
1522 this.el.height_request = 50;
1523 this.el.tooltip_text = "New\nProj.";
1524 var child_0 = new Xcls_Image48( _this );
1526 this.el.set_image ( child_0.el );
1529 this.el.clicked.connect( ( ) => {
1531 // create a new file in project..
1532 //Xcls_DialogNewComponent.singleton().show(
1533 var pe = Xcls_EditProject.singleton();
1534 pe.el.set_transient_for(_this.el);
1535 pe.el.set_modal(true);
1544 _this.windowstate.left_projects.is_loaded = false;
1545 _this.windowstate.left_projects.load();
1546 _this.windowstate.left_projects.selectProject(p);
1553 // user defined functions
1555 public class Xcls_Image48 : Object
1557 public Gtk.Image el;
1558 private Xcls_MainWindow _this;
1564 public Xcls_Image48(Xcls_MainWindow _owner )
1567 this.el = new Gtk.Image();
1571 // set gobject values
1572 this.el.icon_name = "folder-new";
1575 // user defined functions
1577 public class Xcls_addfilebutton : Object
1579 public Clutter.Actor el;
1580 private Xcls_MainWindow _this;
1586 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1589 _this.addfilebutton = this;
1590 this.el = new Clutter.Actor();
1594 // set gobject values
1595 var child_0 = new Xcls_Actor50( _this );
1597 this.el.add_child ( child_0.el );
1601 this.el.set_size(50.0f,50.0f); }
1603 // user defined functions
1605 public class Xcls_Actor50 : Object
1607 public GtkClutter.Actor el;
1608 private Xcls_MainWindow _this;
1614 public Xcls_Actor50(Xcls_MainWindow _owner )
1617 this.el = new GtkClutter.Actor();
1621 // set gobject values
1622 var child_0 = new Xcls_Button51( _this );
1627 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1629 // user defined functions
1631 public class Xcls_Button51 : Object
1633 public Gtk.Button el;
1634 private Xcls_MainWindow _this;
1640 public Xcls_Button51(Xcls_MainWindow _owner )
1643 this.el = new Gtk.Button();
1647 // set gobject values
1648 this.el.width_request = 50;
1649 this.el.height_request = 50;
1650 this.el.tooltip_text = "Add File";
1651 var child_0 = new Xcls_Image52( _this );
1653 this.el.set_image ( child_0.el );
1656 this.el.clicked.connect( () => {
1657 // create a new file in project..
1659 // what's the currently selected project...
1660 var proj = _this.windowstate.left_projects.getSelectedProject();
1668 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1669 _this.project = proj;
1670 _this.windowstate.new_file_dialog.show(f);
1676 // user defined functions
1678 public class Xcls_Image52 : Object
1680 public Gtk.Image el;
1681 private Xcls_MainWindow _this;
1687 public Xcls_Image52(Xcls_MainWindow _owner )
1690 this.el = new Gtk.Image();
1694 // set gobject values
1695 this.el.icon_name = "document-new";
1698 // user defined functions
1700 public class Xcls_delprojectbutton : Object
1702 public Clutter.Actor el;
1703 private Xcls_MainWindow _this;
1709 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1712 _this.delprojectbutton = this;
1713 this.el = new Clutter.Actor();
1717 // set gobject values
1718 var child_0 = new Xcls_Actor54( _this );
1720 this.el.add_child ( child_0.el );
1724 this.el.set_size(50,50); }
1726 // user defined functions
1728 public class Xcls_Actor54 : Object
1730 public GtkClutter.Actor el;
1731 private Xcls_MainWindow _this;
1737 public Xcls_Actor54(Xcls_MainWindow _owner )
1740 this.el = new GtkClutter.Actor();
1744 // set gobject values
1745 var child_0 = new Xcls_Button55( _this );
1750 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1752 // user defined functions
1754 public class Xcls_Button55 : Object
1756 public Gtk.Button el;
1757 private Xcls_MainWindow _this;
1763 public Xcls_Button55(Xcls_MainWindow _owner )
1766 this.el = new Gtk.Button();
1770 // set gobject values
1771 this.el.width_request = 50;
1772 this.el.height_request = 50;
1773 this.el.tooltip_text = "Delelte Project";
1774 var child_0 = new Xcls_Image56( _this );
1776 this.el.set_image ( child_0.el );
1779 this.el.clicked.connect( ( ) => {
1781 var cd = DialogConfirm.singleton();
1782 cd.el.set_transient_for(_this.el);
1783 cd.el.set_modal(true);
1785 var project = _this.windowstate.left_projects.getSelectedProject();
1786 if (project == null) {
1787 print("SKIP - no project\n");
1792 if (Gtk.ResponseType.YES != cd.show("Confirm",
1793 "Are you sure you want to delete project %s".printf(project.name))) {
1799 Project.Project.remove(project);
1800 _this.project = null;
1802 _this.windowstate.left_projects.is_loaded = false;
1803 _this.windowstate.left_projects.load();
1804 _this.windowstate.clutterfiles.clearFiles();
1809 // user defined functions
1811 public class Xcls_Image56 : Object
1813 public Gtk.Image el;
1814 private Xcls_MainWindow _this;
1820 public Xcls_Image56(Xcls_MainWindow _owner )
1823 this.el = new Gtk.Image();
1827 // set gobject values
1828 this.el.icon_name = "user-trash";
1831 // user defined functions
1833 public class Xcls_new_window : Object
1835 public Clutter.Actor el;
1836 private Xcls_MainWindow _this;
1842 public Xcls_new_window(Xcls_MainWindow _owner )
1845 _this.new_window = this;
1846 this.el = new Clutter.Actor();
1850 // set gobject values
1851 var child_0 = new Xcls_Actor58( _this );
1853 this.el.add_child ( child_0.el );
1857 this.el.set_size(50,50); }
1859 // user defined functions
1861 public class Xcls_Actor58 : Object
1863 public GtkClutter.Actor el;
1864 private Xcls_MainWindow _this;
1870 public Xcls_Actor58(Xcls_MainWindow _owner )
1873 this.el = new GtkClutter.Actor();
1877 // set gobject values
1878 var child_0 = new Xcls_Button59( _this );
1883 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1885 // user defined functions
1887 public class Xcls_Button59 : Object
1889 public Gtk.Button el;
1890 private Xcls_MainWindow _this;
1896 public Xcls_Button59(Xcls_MainWindow _owner )
1899 this.el = new Gtk.Button();
1903 // set gobject values
1904 this.el.width_request = 50;
1905 this.el.height_request = 50;
1906 this.el.tooltip_text = "Open New Window";
1907 var child_0 = new Xcls_Image60( _this );
1909 this.el.set_image ( child_0.el );
1912 this.el.clicked.connect( ( ) => {
1913 Xcls_MainWindow.singleton().no_windows++;
1914 var w = new Xcls_MainWindow();
1919 w.windowstate.switchState(WindowState.State.FILES);
1923 // user defined functions
1925 public class Xcls_Image60 : Object
1927 public Gtk.Image el;
1928 private Xcls_MainWindow _this;
1934 public Xcls_Image60(Xcls_MainWindow _owner )
1937 this.el = new Gtk.Image();
1941 // set gobject values
1942 this.el.icon_name = "window-new";
1945 // user defined functions