1 static Xcls_MainWindow _MainWindow;
3 public class Xcls_MainWindow : Object
6 private Xcls_MainWindow _this;
8 public static Xcls_MainWindow singleton()
10 if (_MainWindow == null) {
11 _MainWindow= new Xcls_MainWindow();
15 public Xcls_vbox vbox;
16 public Xcls_mainpane mainpane;
17 public Xcls_leftpane leftpane;
18 public Xcls_editpane editpane;
19 public Xcls_tree tree;
20 public Xcls_props props;
21 public Xcls_clutterembed clutterembed;
22 public Xcls_rooview rooview;
23 public Xcls_objectview objectview;
24 public Xcls_codeeditview codeeditview;
25 public Xcls_addpropsview addpropsview;
26 public Xcls_projecteditview projecteditview;
27 public Xcls_buttonlayout buttonlayout;
28 public Xcls_backbutton backbutton;
29 public Xcls_projectbutton projectbutton;
30 public Xcls_editfilebutton editfilebutton;
31 public Xcls_projecteditbutton projecteditbutton;
32 public Xcls_objectshowbutton objectshowbutton;
33 public Xcls_addpropbutton addpropbutton;
34 public Xcls_addlistenerbutton addlistenerbutton;
35 public Xcls_addprojectbutton addprojectbutton;
36 public Xcls_addfilebutton addfilebutton;
37 public Xcls_delprojectbutton delprojectbutton;
38 public Xcls_reload_resources reload_resources;
39 public Xcls_new_window new_window;
40 public Xcls_about about;
41 public Xcls_statusbar statusbar;
44 public Project.Project project;
46 public int no_windows;
47 public WindowState windowstate;
50 public Xcls_MainWindow()
53 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
57 this.title = "Application Builder";
59 this.windowstate = null;
62 this.el.border_width = 0;
63 this.el.default_height = 500;
64 this.el.default_width = 800;
65 var child_0 = new Xcls_HeaderBar2( _this );
67 this.el.set_titlebar ( child_0.el );
68 var child_1 = new Xcls_vbox( _this );
70 this.el.add ( child_1.el );
77 this.el.delete_event.connect( ( event) => {
80 this.el.destroy.connect( () => {
81 Xcls_MainWindow.singleton().no_windows--;
83 if (Xcls_MainWindow.singleton().no_windows < 1) {
88 this.el.show.connect( ( ) => {
89 // hide the file editing..
91 //this.hideViewEditing();
92 _this.statusbar.el.hide();
93 Resources.singleton().checkResources();
98 // user defined functions
99 public void initChildren () {
100 // this needs putting in a better place..
101 this.windowstate = new WindowState(this);
105 var tl = new Clutter.Timeline(6000);
106 tl.set_repeat_count(-1);
115 public void show () {
120 public void setTitle (string str) {
121 this.el.set_title(this.title + " - " + str);
123 public class Xcls_HeaderBar2 : Object
125 public Gtk.HeaderBar el;
126 private Xcls_MainWindow _this;
132 public Xcls_HeaderBar2(Xcls_MainWindow _owner )
135 this.el = new Gtk.HeaderBar();
139 // set gobject values
140 this.el.title = "Application Builder";
141 this.el.show_close_button = true;
144 // user defined functions
146 public class Xcls_vbox : Object
149 private Xcls_MainWindow _this;
155 public Xcls_vbox(Xcls_MainWindow _owner )
159 this.el = new Gtk.VBox( false, 0 );
163 // set gobject values
164 var child_0 = new Xcls_mainpane( _this );
166 this.el.pack_start ( child_0.el , true,true,0 );
167 var child_1 = new Xcls_statusbar( _this );
169 this.el.pack_end ( child_1.el , false,true,0 );
172 // user defined functions
174 public class Xcls_mainpane : Object
176 public Gtk.HPaned el;
177 private Xcls_MainWindow _this;
181 public int lastWidth;
184 public Xcls_mainpane(Xcls_MainWindow _owner )
187 _this.mainpane = this;
188 this.el = new Gtk.HPaned();
193 // set gobject values
194 this.el.position = 400;
195 var child_0 = new Xcls_leftpane( _this );
197 this.el.add1 ( child_0.el );
198 var child_1 = new Xcls_VBox9( _this );
200 this.el.add2 ( child_1.el );
203 // user defined functions
205 public class Xcls_leftpane : Object
208 private Xcls_MainWindow _this;
214 public Xcls_leftpane(Xcls_MainWindow _owner )
217 _this.leftpane = this;
218 this.el = new Gtk.VBox( true, 0 );
222 // set gobject values
223 var child_0 = new Xcls_editpane( _this );
225 this.el.pack_start ( child_0.el , false,true,0 );
228 // user defined functions
230 public class Xcls_editpane : Object
232 public Gtk.VPaned el;
233 private Xcls_MainWindow _this;
239 public Xcls_editpane(Xcls_MainWindow _owner )
242 _this.editpane = this;
243 this.el = new Gtk.VPaned();
247 // set gobject values
248 var child_0 = new Xcls_tree( _this );
250 this.el.add1 ( child_0.el );
251 var child_1 = new Xcls_props( _this );
253 this.el.add2 ( child_1.el );
256 // user defined functions
258 public class Xcls_tree : Object
261 private Xcls_MainWindow _this;
267 public Xcls_tree(Xcls_MainWindow _owner )
271 this.el = new Gtk.VBox( true, 0 );
275 // set gobject values
278 // user defined functions
280 public class Xcls_props : Object
283 private Xcls_MainWindow _this;
289 public Xcls_props(Xcls_MainWindow _owner )
293 this.el = new Gtk.VBox( true, 0 );
297 // set gobject values
300 // user defined functions
302 public class Xcls_VBox9 : Object
305 private Xcls_MainWindow _this;
311 public Xcls_VBox9(Xcls_MainWindow _owner )
314 this.el = new Gtk.VBox( true, 0 );
318 // set gobject values
319 var child_0 = new Xcls_clutterembed( _this );
321 this.el.pack_start ( child_0.el , true,true,0 );
324 // user defined functions
326 public class Xcls_clutterembed : Object
328 public GtkClutter.Embed el;
329 private Xcls_MainWindow _this;
335 public Xcls_clutterembed(Xcls_MainWindow _owner )
338 _this.clutterembed = this;
339 this.el = new GtkClutter.Embed();
343 // set gobject values
344 var child_0 = new Xcls_rooview( _this );
346 this.el.get_stage().add_child ( child_0.el );
347 var child_1 = new Xcls_objectview( _this );
349 this.el.get_stage().add_child ( child_1.el );
350 var child_2 = new Xcls_codeeditview( _this );
352 this.el.get_stage().add_child ( child_2.el );
353 var child_3 = new Xcls_addpropsview( _this );
355 this.el.get_stage().add_child ( child_3.el );
356 var child_4 = new Xcls_projecteditview( _this );
358 this.el.get_stage().add_child ( child_4.el );
359 var child_5 = new Xcls_buttonlayout( _this );
361 this.el.get_stage().add_child ( child_5.el );
365 var stage = this.el.get_stage();
366 stage.set_background_color( Clutter.Color.from_string("#000"));
369 this.el.size_allocate.connect( ( alloc) => {
370 if (_this.windowstate == null) {
373 _this.windowstate.resizeCanvas();
378 // user defined functions
380 public class Xcls_rooview : Object
382 public GtkClutter.Actor el;
383 private Xcls_MainWindow _this;
389 public Xcls_rooview(Xcls_MainWindow _owner )
392 _this.rooview = this;
393 this.el = new GtkClutter.Actor();
397 // set gobject values
404 this.el.add_constraint(
405 new Clutter.AlignConstraint(
406 _this.clutterembed.el.get_stage(),
407 Clutter.AlignAxis.X_AXIS,
412 //this.el.set_position(100,100);
413 this.el.set_pivot_point(1.0f,1.0f);
415 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
416 _this.clutterembed.el.get_stage().height);
421 // user defined functions
423 public class Xcls_objectview : Object
425 public GtkClutter.Actor el;
426 private Xcls_MainWindow _this;
432 public Xcls_objectview(Xcls_MainWindow _owner )
435 _this.objectview = this;
436 this.el = new GtkClutter.Actor();
440 // set gobject values
447 this.el.add_constraint(
448 new Clutter.AlignConstraint(
449 _this.clutterembed.el.get_stage(),
450 Clutter.AlignAxis.X_AXIS,
455 this.el.fixed_x = 50.0f;
456 this.el.fixed_y = 0.0f;
457 //this.el.set_position(100,100);
458 this.el.set_pivot_point(0.0f,0.0f);
459 this.el.set_scale(0.0f,1.0f);
460 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
461 _this.clutterembed.el.get_stage().height);
466 // user defined functions
468 public class Xcls_codeeditview : Object
470 public GtkClutter.Actor el;
471 private Xcls_MainWindow _this;
477 public Xcls_codeeditview(Xcls_MainWindow _owner )
480 _this.codeeditview = this;
481 this.el = new GtkClutter.Actor();
485 // set gobject values
492 this.el.add_constraint(
493 new Clutter.AlignConstraint(
494 _this.clutterembed.el.get_stage(),
495 Clutter.AlignAxis.X_AXIS,
500 this.el.fixed_x = 50.0f;
501 this.el.fixed_y = 0.0f;
502 //this.el.set_position(100,100);
503 this.el.set_pivot_point(0.0f,0.0f);
504 this.el.set_scale(0.0f,1.0f);
505 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
506 _this.clutterembed.el.get_stage().height);
511 // user defined functions
513 public class Xcls_addpropsview : Object
515 public GtkClutter.Actor el;
516 private Xcls_MainWindow _this;
522 public Xcls_addpropsview(Xcls_MainWindow _owner )
525 _this.addpropsview = this;
526 this.el = new GtkClutter.Actor();
530 // set gobject values
537 this.el.add_constraint(
538 new Clutter.AlignConstraint(
539 _this.clutterembed.el.get_stage(),
540 Clutter.AlignAxis.X_AXIS,
545 this.el.fixed_x = 50.0f;
546 this.el.fixed_y = 0.0f;
547 //this.el.set_position(100,100);
548 this.el.set_pivot_point(0.0f,0.0f);
549 this.el.set_scale(0.0f,1.0f);
550 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
551 _this.clutterembed.el.get_stage().height);
556 // user defined functions
558 public class Xcls_projecteditview : Object
560 public GtkClutter.Actor el;
561 private Xcls_MainWindow _this;
567 public Xcls_projecteditview(Xcls_MainWindow _owner )
570 _this.projecteditview = this;
571 this.el = new GtkClutter.Actor();
575 // set gobject values
582 this.el.add_constraint(
583 new Clutter.AlignConstraint(
584 _this.clutterembed.el.get_stage(),
585 Clutter.AlignAxis.X_AXIS,
590 //this.el.set_position(100,100);
591 this.el.set_pivot_point(0.0f,0.0f);
592 this.el.set_scale(1.0f,0.0f);
593 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
594 _this.clutterembed.el.get_stage().height /2);
599 // user defined functions
601 public class Xcls_buttonlayout : Object
603 public Clutter.Actor el;
604 private Xcls_MainWindow _this;
610 public Xcls_buttonlayout(Xcls_MainWindow _owner )
613 _this.buttonlayout = this;
614 this.el = new Clutter.Actor();
618 // set gobject values
619 var child_0 = new Xcls_BoxLayout17( _this );
621 this.el.layout_manager = child_0.el;
622 var child_1 = new Xcls_backbutton( _this );
624 this.el.add_child ( child_1.el );
625 var child_2 = new Xcls_projectbutton( _this );
627 this.el.add_child ( child_2.el );
628 var child_3 = new Xcls_editfilebutton( _this );
630 this.el.add_child ( child_3.el );
631 var child_4 = new Xcls_projecteditbutton( _this );
633 this.el.add_child ( child_4.el );
634 var child_5 = new Xcls_objectshowbutton( _this );
636 this.el.add_child ( child_5.el );
637 var child_6 = new Xcls_addpropbutton( _this );
639 this.el.add_child ( child_6.el );
640 var child_7 = new Xcls_addlistenerbutton( _this );
642 this.el.add_child ( child_7.el );
643 var child_8 = new Xcls_addprojectbutton( _this );
645 this.el.add_child ( child_8.el );
646 var child_9 = new Xcls_addfilebutton( _this );
648 this.el.add_child ( child_9.el );
649 var child_10 = new Xcls_delprojectbutton( _this );
651 this.el.add_child ( child_10.el );
652 var child_11 = new Xcls_reload_resources( _this );
654 this.el.add_child ( child_11.el );
655 var child_12 = new Xcls_new_window( _this );
657 this.el.add_child ( child_12.el );
658 var child_13 = new Xcls_about( _this );
660 this.el.add_child ( child_13.el );
666 this.el.add_constraint(
667 new Clutter.AlignConstraint(
668 _this.clutterembed.el.get_stage(),
669 Clutter.AlignAxis.X_AXIS,
675 //this.el.set_position(100,100);
676 this.el.set_pivot_point(0.5f,0.5f);
678 _this.clutterembed.el.get_stage().height);
683 // user defined functions
685 public class Xcls_BoxLayout17 : Object
687 public Clutter.BoxLayout el;
688 private Xcls_MainWindow _this;
694 public Xcls_BoxLayout17(Xcls_MainWindow _owner )
697 this.el = new Clutter.BoxLayout();
701 // set gobject values
702 this.el.orientation = Clutter.Orientation.VERTICAL;
705 // user defined functions
707 public class Xcls_backbutton : Object
709 public Clutter.Actor el;
710 private Xcls_MainWindow _this;
716 public Xcls_backbutton(Xcls_MainWindow _owner )
719 _this.backbutton = this;
720 this.el = new Clutter.Actor();
724 // set gobject values
725 var child_0 = new Xcls_Actor19( _this );
727 this.el.add_child ( child_0.el );
731 this.el.set_size(50,50);
734 // user defined functions
736 public class Xcls_Actor19 : Object
738 public GtkClutter.Actor el;
739 private Xcls_MainWindow _this;
745 public Xcls_Actor19(Xcls_MainWindow _owner )
748 this.el = new GtkClutter.Actor();
752 // set gobject values
753 var child_0 = new Xcls_Button20( _this );
758 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
761 // user defined functions
763 public class Xcls_Button20 : Object
765 public Gtk.Button el;
766 private Xcls_MainWindow _this;
772 public Xcls_Button20(Xcls_MainWindow _owner )
775 this.el = new Gtk.Button();
779 // set gobject values
780 this.el.width_request = 50;
781 this.el.height_request = 50;
782 this.el.tooltip_text = "Back";
783 var child_0 = new Xcls_Image21( _this );
785 this.el.set_image ( child_0.el );
788 this.el.clicked.connect( ( ) => {
790 _this.windowstate.switchState(WindowState.State.PREVIEW);
796 // user defined functions
798 public class Xcls_Image21 : Object
801 private Xcls_MainWindow _this;
807 public Xcls_Image21(Xcls_MainWindow _owner )
810 this.el = new Gtk.Image();
814 // set gobject values
815 this.el.icon_name = "go-previous";
818 // user defined functions
820 public class Xcls_projectbutton : Object
822 public Clutter.Actor el;
823 private Xcls_MainWindow _this;
829 public Xcls_projectbutton(Xcls_MainWindow _owner )
832 _this.projectbutton = this;
833 this.el = new Clutter.Actor();
837 // set gobject values
838 var child_0 = new Xcls_Actor23( _this );
840 this.el.add_child ( child_0.el );
844 this.el.set_size(50,50);
847 // user defined functions
849 public class Xcls_Actor23 : Object
851 public GtkClutter.Actor el;
852 private Xcls_MainWindow _this;
858 public Xcls_Actor23(Xcls_MainWindow _owner )
861 this.el = new GtkClutter.Actor();
865 // set gobject values
866 var child_0 = new Xcls_Button24( _this );
871 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
874 // user defined functions
876 public class Xcls_Button24 : Object
878 public Gtk.Button el;
879 private Xcls_MainWindow _this;
885 public Xcls_Button24(Xcls_MainWindow _owner )
888 this.el = new Gtk.Button();
892 // set gobject values
893 this.el.width_request = 50;
894 this.el.height_request = 50;
895 var child_0 = new Xcls_Image25( _this );
897 this.el.set_image ( child_0.el );
900 this.el.clicked.connect( ( ) => {
901 _this.windowstate.switchState(WindowState.State.FILES);
907 // user defined functions
909 public class Xcls_Image25 : Object
912 private Xcls_MainWindow _this;
918 public Xcls_Image25(Xcls_MainWindow _owner )
921 this.el = new Gtk.Image();
925 // set gobject values
926 this.el.icon_name = "document-open";
929 // user defined functions
931 public class Xcls_editfilebutton : Object
933 public Clutter.Actor el;
934 private Xcls_MainWindow _this;
940 public Xcls_editfilebutton(Xcls_MainWindow _owner )
943 _this.editfilebutton = this;
944 this.el = new Clutter.Actor();
948 // set gobject values
949 var child_0 = new Xcls_Actor27( _this );
951 this.el.add_child ( child_0.el );
955 this.el.set_size(50.0f,50.0f);
958 // user defined functions
960 public class Xcls_Actor27 : Object
962 public GtkClutter.Actor el;
963 private Xcls_MainWindow _this;
969 public Xcls_Actor27(Xcls_MainWindow _owner )
972 this.el = new GtkClutter.Actor();
976 // set gobject values
977 var child_0 = new Xcls_Button28( _this );
982 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
985 // user defined functions
987 public class Xcls_Button28 : Object
989 public Gtk.Button el;
990 private Xcls_MainWindow _this;
996 public Xcls_Button28(Xcls_MainWindow _owner )
999 this.el = new Gtk.Button();
1003 // set gobject values
1004 this.el.width_request = 50;
1005 this.el.height_request = 50;
1006 this.el.tooltip_text = "File Details";
1007 var child_0 = new Xcls_Image29( _this );
1009 this.el.set_image ( child_0.el );
1012 this.el.clicked.connect( ( ) => {
1014 // create a new file in project..
1015 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1018 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
1026 // user defined functions
1028 public class Xcls_Image29 : Object
1030 public Gtk.Image el;
1031 private Xcls_MainWindow _this;
1037 public Xcls_Image29(Xcls_MainWindow _owner )
1040 this.el = new Gtk.Image();
1044 // set gobject values
1045 this.el.icon_name = "document-properties";
1048 // user defined functions
1050 public class Xcls_projecteditbutton : Object
1052 public Clutter.Actor el;
1053 private Xcls_MainWindow _this;
1059 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1062 _this.projecteditbutton = this;
1063 this.el = new Clutter.Actor();
1067 // set gobject values
1068 var child_0 = new Xcls_Actor31( _this );
1070 this.el.add_child ( child_0.el );
1074 this.el.set_size(50,50);
1077 // user defined functions
1079 public class Xcls_Actor31 : Object
1081 public GtkClutter.Actor el;
1082 private Xcls_MainWindow _this;
1088 public Xcls_Actor31(Xcls_MainWindow _owner )
1091 this.el = new GtkClutter.Actor();
1095 // set gobject values
1096 var child_0 = new Xcls_Button32( _this );
1101 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1104 // user defined functions
1106 public class Xcls_Button32 : Object
1108 public Gtk.Button el;
1109 private Xcls_MainWindow _this;
1115 public Xcls_Button32(Xcls_MainWindow _owner )
1118 this.el = new Gtk.Button();
1122 // set gobject values
1123 this.el.width_request = 50;
1124 this.el.height_request = 50;
1125 this.el.tooltip_text = "Project Details";
1126 var child_0 = new Xcls_Image33( _this );
1128 this.el.set_image ( child_0.el );
1131 this.el.clicked.connect( ( ) => {
1132 _this.windowstate.switchState(WindowState.State.PROJECT);
1139 // user defined functions
1141 public class Xcls_Image33 : Object
1143 public Gtk.Image el;
1144 private Xcls_MainWindow _this;
1150 public Xcls_Image33(Xcls_MainWindow _owner )
1153 this.el = new Gtk.Image();
1157 // set gobject values
1158 this.el.icon_name = "emblem-system";
1161 // user defined functions
1163 public class Xcls_objectshowbutton : Object
1165 public Clutter.Actor el;
1166 private Xcls_MainWindow _this;
1172 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1175 _this.objectshowbutton = this;
1176 this.el = new Clutter.Actor();
1180 // set gobject values
1181 var child_0 = new Xcls_Actor35( _this );
1183 this.el.add_child ( child_0.el );
1187 this.el.set_size(50,50);
1190 this.el.enter_event.connect( ( event) => {
1191 this.el.background_color = new Clutter.Color.from_string("#333");
1194 this.el.leave_event.connect( ( event) => {
1195 this.el.background_color = new Clutter.Color.from_string("#000");
1200 // user defined functions
1202 public class Xcls_Actor35 : Object
1204 public GtkClutter.Actor el;
1205 private Xcls_MainWindow _this;
1211 public Xcls_Actor35(Xcls_MainWindow _owner )
1214 this.el = new GtkClutter.Actor();
1218 // set gobject values
1219 var child_0 = new Xcls_Button36( _this );
1224 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1227 // user defined functions
1229 public class Xcls_Button36 : Object
1231 public Gtk.Button el;
1232 private Xcls_MainWindow _this;
1238 public Xcls_Button36(Xcls_MainWindow _owner )
1241 this.el = new Gtk.Button();
1245 // set gobject values
1246 this.el.width_request = 50;
1247 this.el.height_request = 50;
1248 this.el.tooltip_text = "Add Child Element";
1249 var child_0 = new Xcls_Image37( _this );
1251 this.el.set_image ( child_0.el );
1254 this.el.clicked.connect( ( ) => {
1256 _this.windowstate.switchState(WindowState.State.OBJECT);
1262 // user defined functions
1264 public class Xcls_Image37 : Object
1266 public Gtk.Image el;
1267 private Xcls_MainWindow _this;
1273 public Xcls_Image37(Xcls_MainWindow _owner )
1276 this.el = new Gtk.Image();
1280 // set gobject values
1281 this.el.icon_name = "list-add";
1284 // user defined functions
1286 public class Xcls_addpropbutton : Object
1288 public Clutter.Actor el;
1289 private Xcls_MainWindow _this;
1295 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1298 _this.addpropbutton = this;
1299 this.el = new Clutter.Actor();
1303 // set gobject values
1304 var child_0 = new Xcls_Actor39( _this );
1306 this.el.add_child ( child_0.el );
1310 this.el.set_size(50,50);
1313 // user defined functions
1315 public class Xcls_Actor39 : Object
1317 public GtkClutter.Actor el;
1318 private Xcls_MainWindow _this;
1324 public Xcls_Actor39(Xcls_MainWindow _owner )
1327 this.el = new GtkClutter.Actor();
1331 // set gobject values
1332 var child_0 = new Xcls_Button40( _this );
1337 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1340 // user defined functions
1342 public class Xcls_Button40 : Object
1344 public Gtk.Button el;
1345 private Xcls_MainWindow _this;
1351 public Xcls_Button40(Xcls_MainWindow _owner )
1354 this.el = new Gtk.Button();
1358 // set gobject values
1359 this.el.width_request = 50;
1360 this.el.height_request = 50;
1361 this.el.tooltip_text = "Add Property";
1362 var child_0 = new Xcls_Image41( _this );
1364 this.el.set_image ( child_0.el );
1367 this.el.clicked.connect( ( ) => {
1369 _this.windowstate.switchState(WindowState.State.PROP);
1375 // user defined functions
1377 public class Xcls_Image41 : Object
1379 public Gtk.Image el;
1380 private Xcls_MainWindow _this;
1386 public Xcls_Image41(Xcls_MainWindow _owner )
1389 this.el = new Gtk.Image();
1393 // set gobject values
1394 this.el.icon_name = "format-justify-left";
1397 // user defined functions
1399 public class Xcls_addlistenerbutton : Object
1401 public Clutter.Actor el;
1402 private Xcls_MainWindow _this;
1408 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1411 _this.addlistenerbutton = this;
1412 this.el = new Clutter.Actor();
1416 // set gobject values
1417 var child_0 = new Xcls_Actor43( _this );
1419 this.el.add_child ( child_0.el );
1423 this.el.set_size(50,50);
1426 // user defined functions
1428 public class Xcls_Actor43 : Object
1430 public GtkClutter.Actor el;
1431 private Xcls_MainWindow _this;
1437 public Xcls_Actor43(Xcls_MainWindow _owner )
1440 this.el = new GtkClutter.Actor();
1444 // set gobject values
1445 var child_0 = new Xcls_Button44( _this );
1450 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1453 // user defined functions
1455 public class Xcls_Button44 : Object
1457 public Gtk.Button el;
1458 private Xcls_MainWindow _this;
1464 public Xcls_Button44(Xcls_MainWindow _owner )
1467 this.el = new Gtk.Button();
1471 // set gobject values
1472 this.el.width_request = 50;
1473 this.el.height_request = 50;
1474 this.el.tooltip_text = "Add Event Code";
1475 var child_0 = new Xcls_Image45( _this );
1477 this.el.set_image ( child_0.el );
1480 this.el.clicked.connect( ( ) => {
1482 _this.windowstate.switchState(WindowState.State.LISTENER);
1489 // user defined functions
1491 public class Xcls_Image45 : Object
1493 public Gtk.Image el;
1494 private Xcls_MainWindow _this;
1500 public Xcls_Image45(Xcls_MainWindow _owner )
1503 this.el = new Gtk.Image();
1507 // set gobject values
1508 this.el.icon_name = "appointment-new";
1511 // user defined functions
1513 public class Xcls_addprojectbutton : Object
1515 public Clutter.Actor el;
1516 private Xcls_MainWindow _this;
1522 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1525 _this.addprojectbutton = this;
1526 this.el = new Clutter.Actor();
1530 // set gobject values
1531 var child_0 = new Xcls_Actor47( _this );
1533 this.el.add_child ( child_0.el );
1537 this.el.set_size(50.0f,50.0f);
1540 // user defined functions
1542 public class Xcls_Actor47 : Object
1544 public GtkClutter.Actor el;
1545 private Xcls_MainWindow _this;
1551 public Xcls_Actor47(Xcls_MainWindow _owner )
1554 this.el = new GtkClutter.Actor();
1558 // set gobject values
1559 var child_0 = new Xcls_Button48( _this );
1564 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1567 // user defined functions
1569 public class Xcls_Button48 : Object
1571 public Gtk.Button el;
1572 private Xcls_MainWindow _this;
1578 public Xcls_Button48(Xcls_MainWindow _owner )
1581 this.el = new Gtk.Button();
1585 // set gobject values
1586 this.el.width_request = 50;
1587 this.el.height_request = 50;
1588 this.el.tooltip_text = "New\nProj.";
1589 var child_0 = new Xcls_Image49( _this );
1591 this.el.set_image ( child_0.el );
1594 this.el.clicked.connect( ( ) => {
1596 // create a new file in project..
1597 //Xcls_DialogNewComponent.singleton().show(
1598 var pe = Xcls_EditProject.singleton();
1599 pe.el.set_transient_for(_this.el);
1600 pe.el.set_modal(true);
1609 _this.windowstate.left_projects.is_loaded = false;
1610 _this.windowstate.left_projects.load();
1611 _this.windowstate.left_projects.selectProject(p);
1618 // user defined functions
1620 public class Xcls_Image49 : Object
1622 public Gtk.Image el;
1623 private Xcls_MainWindow _this;
1629 public Xcls_Image49(Xcls_MainWindow _owner )
1632 this.el = new Gtk.Image();
1636 // set gobject values
1637 this.el.icon_name = "folder-new";
1640 // user defined functions
1642 public class Xcls_addfilebutton : Object
1644 public Clutter.Actor el;
1645 private Xcls_MainWindow _this;
1651 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1654 _this.addfilebutton = this;
1655 this.el = new Clutter.Actor();
1659 // set gobject values
1660 var child_0 = new Xcls_Actor51( _this );
1662 this.el.add_child ( child_0.el );
1666 this.el.set_size(50.0f,50.0f);
1669 // user defined functions
1671 public class Xcls_Actor51 : Object
1673 public GtkClutter.Actor el;
1674 private Xcls_MainWindow _this;
1680 public Xcls_Actor51(Xcls_MainWindow _owner )
1683 this.el = new GtkClutter.Actor();
1687 // set gobject values
1688 var child_0 = new Xcls_Button52( _this );
1693 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1696 // user defined functions
1698 public class Xcls_Button52 : Object
1700 public Gtk.Button el;
1701 private Xcls_MainWindow _this;
1707 public Xcls_Button52(Xcls_MainWindow _owner )
1710 this.el = new Gtk.Button();
1714 // set gobject values
1715 this.el.width_request = 50;
1716 this.el.height_request = 50;
1717 this.el.tooltip_text = "Add File";
1718 var child_0 = new Xcls_Image53( _this );
1720 this.el.set_image ( child_0.el );
1723 this.el.clicked.connect( () => {
1724 // create a new file in project..
1726 // what's the currently selected project...
1727 var proj = _this.windowstate.left_projects.getSelectedProject();
1735 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1736 _this.project = proj;
1737 _this.windowstate.new_file_dialog.show(f);
1743 // user defined functions
1745 public class Xcls_Image53 : Object
1747 public Gtk.Image el;
1748 private Xcls_MainWindow _this;
1754 public Xcls_Image53(Xcls_MainWindow _owner )
1757 this.el = new Gtk.Image();
1761 // set gobject values
1762 this.el.icon_name = "document-new";
1765 // user defined functions
1767 public class Xcls_delprojectbutton : Object
1769 public Clutter.Actor el;
1770 private Xcls_MainWindow _this;
1776 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1779 _this.delprojectbutton = this;
1780 this.el = new Clutter.Actor();
1784 // set gobject values
1785 var child_0 = new Xcls_Actor55( _this );
1787 this.el.add_child ( child_0.el );
1791 this.el.set_size(50,50);
1794 // user defined functions
1796 public class Xcls_Actor55 : Object
1798 public GtkClutter.Actor el;
1799 private Xcls_MainWindow _this;
1805 public Xcls_Actor55(Xcls_MainWindow _owner )
1808 this.el = new GtkClutter.Actor();
1812 // set gobject values
1813 var child_0 = new Xcls_Button56( _this );
1818 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1821 // user defined functions
1823 public class Xcls_Button56 : Object
1825 public Gtk.Button el;
1826 private Xcls_MainWindow _this;
1832 public Xcls_Button56(Xcls_MainWindow _owner )
1835 this.el = new Gtk.Button();
1839 // set gobject values
1840 this.el.width_request = 50;
1841 this.el.height_request = 50;
1842 this.el.tooltip_text = "Delete Project";
1843 var child_0 = new Xcls_Image57( _this );
1845 this.el.set_image ( child_0.el );
1848 this.el.clicked.connect( ( ) => {
1850 var cd = DialogConfirm.singleton();
1851 cd.el.set_transient_for(_this.el);
1852 cd.el.set_modal(true);
1854 var project = _this.windowstate.left_projects.getSelectedProject();
1855 if (project == null) {
1856 print("SKIP - no project\n");
1861 if (Gtk.ResponseType.YES != cd.show("Confirm",
1862 "Are you sure you want to delete project %s".printf(project.name))) {
1868 Project.Project.remove(project);
1869 _this.project = null;
1871 _this.windowstate.left_projects.is_loaded = false;
1872 _this.windowstate.left_projects.load();
1873 _this.windowstate.clutterfiles.clearFiles();
1878 // user defined functions
1880 public class Xcls_Image57 : Object
1882 public Gtk.Image el;
1883 private Xcls_MainWindow _this;
1889 public Xcls_Image57(Xcls_MainWindow _owner )
1892 this.el = new Gtk.Image();
1896 // set gobject values
1897 this.el.icon_name = "user-trash";
1900 // user defined functions
1902 public class Xcls_reload_resources : Object
1904 public Clutter.Actor el;
1905 private Xcls_MainWindow _this;
1911 public Xcls_reload_resources(Xcls_MainWindow _owner )
1914 _this.reload_resources = this;
1915 this.el = new Clutter.Actor();
1919 // set gobject values
1920 var child_0 = new Xcls_Actor59( _this );
1922 this.el.add_child ( child_0.el );
1926 this.el.set_size(50,50);
1929 // user defined functions
1931 public class Xcls_Actor59 : Object
1933 public GtkClutter.Actor el;
1934 private Xcls_MainWindow _this;
1940 public Xcls_Actor59(Xcls_MainWindow _owner )
1943 this.el = new GtkClutter.Actor();
1947 // set gobject values
1948 var child_0 = new Xcls_Button60( _this );
1953 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1956 // user defined functions
1958 public class Xcls_Button60 : Object
1960 public Gtk.Button el;
1961 private Xcls_MainWindow _this;
1967 public Xcls_Button60(Xcls_MainWindow _owner )
1970 this.el = new Gtk.Button();
1974 // set gobject values
1975 this.el.width_request = 50;
1976 this.el.height_request = 50;
1977 this.el.tooltip_text = "Download latest resourse files\nlike the object tree and object properties";
1978 var child_0 = new Xcls_Image61( _this );
1980 this.el.set_image ( child_0.el );
1983 this.el.clicked.connect( ( ) => {
1984 Resources.singleton().fetchStart();
1988 // user defined functions
1990 public class Xcls_Image61 : Object
1992 public Gtk.Image el;
1993 private Xcls_MainWindow _this;
1999 public Xcls_Image61(Xcls_MainWindow _owner )
2002 this.el = new Gtk.Image();
2006 // set gobject values
2007 this.el.icon_name = "go-bottom";
2010 // user defined functions
2012 public class Xcls_new_window : Object
2014 public Clutter.Actor el;
2015 private Xcls_MainWindow _this;
2021 public Xcls_new_window(Xcls_MainWindow _owner )
2024 _this.new_window = this;
2025 this.el = new Clutter.Actor();
2029 // set gobject values
2030 var child_0 = new Xcls_Actor63( _this );
2032 this.el.add_child ( child_0.el );
2036 this.el.set_size(50,50);
2039 // user defined functions
2041 public class Xcls_Actor63 : Object
2043 public GtkClutter.Actor el;
2044 private Xcls_MainWindow _this;
2050 public Xcls_Actor63(Xcls_MainWindow _owner )
2053 this.el = new GtkClutter.Actor();
2057 // set gobject values
2058 var child_0 = new Xcls_Button64( _this );
2063 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2066 // user defined functions
2068 public class Xcls_Button64 : Object
2070 public Gtk.Button el;
2071 private Xcls_MainWindow _this;
2077 public Xcls_Button64(Xcls_MainWindow _owner )
2080 this.el = new Gtk.Button();
2084 // set gobject values
2085 this.el.width_request = 50;
2086 this.el.height_request = 50;
2087 this.el.tooltip_text = "Open New Window";
2088 var child_0 = new Xcls_Image65( _this );
2090 this.el.set_image ( child_0.el );
2093 this.el.clicked.connect( ( ) => {
2094 Xcls_MainWindow.singleton().no_windows++;
2095 var w = new Xcls_MainWindow();
2100 w.windowstate.switchState(WindowState.State.FILES);
2104 // user defined functions
2106 public class Xcls_Image65 : Object
2108 public Gtk.Image el;
2109 private Xcls_MainWindow _this;
2115 public Xcls_Image65(Xcls_MainWindow _owner )
2118 this.el = new Gtk.Image();
2122 // set gobject values
2123 this.el.icon_name = "window-new";
2126 // user defined functions
2128 public class Xcls_about : Object
2130 public Clutter.Actor el;
2131 private Xcls_MainWindow _this;
2137 public Xcls_about(Xcls_MainWindow _owner )
2141 this.el = new Clutter.Actor();
2145 // set gobject values
2146 var child_0 = new Xcls_Actor67( _this );
2148 this.el.add_child ( child_0.el );
2152 this.el.set_size(50,50);
2155 // user defined functions
2157 public class Xcls_Actor67 : Object
2159 public GtkClutter.Actor el;
2160 private Xcls_MainWindow _this;
2166 public Xcls_Actor67(Xcls_MainWindow _owner )
2169 this.el = new GtkClutter.Actor();
2173 // set gobject values
2174 var child_0 = new Xcls_Button68( _this );
2179 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2182 // user defined functions
2184 public class Xcls_Button68 : Object
2186 public Gtk.Button el;
2187 private Xcls_MainWindow _this;
2193 public Xcls_Button68(Xcls_MainWindow _owner )
2196 this.el = new Gtk.Button();
2200 // set gobject values
2201 this.el.width_request = 50;
2202 this.el.height_request = 50;
2203 this.el.tooltip_text = "About the builder";
2204 var child_0 = new Xcls_Image69( _this );
2206 this.el.set_image ( child_0.el );
2209 this.el.clicked.connect( ( ) => {
2210 About.singleton().el.show();
2214 // user defined functions
2216 public class Xcls_Image69 : Object
2218 public Gtk.Image el;
2219 private Xcls_MainWindow _this;
2225 public Xcls_Image69(Xcls_MainWindow _owner )
2228 this.el = new Gtk.Image();
2232 // set gobject values
2233 this.el.icon_name = "help-about";
2236 // user defined functions
2238 public class Xcls_statusbar : Object
2240 public Gtk.Statusbar el;
2241 private Xcls_MainWindow _this;
2247 public Xcls_statusbar(Xcls_MainWindow _owner )
2250 _this.statusbar = this;
2251 this.el = new Gtk.Statusbar();
2255 // set gobject values
2260 Resources.singleton().updateProgress.connect((pos) => {
2263 _this.mainpane.el.set_sensitive(true);
2267 _this.mainpane.el.set_sensitive(false);
2270 var cid = this.el.get_context_id("resources");
2271 this.el.remove_all(cid);
2272 this.el.push(cid,"Fetching Resource : %s/7".printf(pos.to_string()));
2277 // user defined functions