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_headerbar headerbar;
16 public Xcls_topbarmenu topbarmenu;
17 public Xcls_vbox vbox;
18 public Xcls_mainpane mainpane;
19 public Xcls_leftpane leftpane;
20 public Xcls_editpane editpane;
21 public Xcls_tree tree;
22 public Xcls_props props;
23 public Xcls_clutterembed clutterembed;
24 public Xcls_rooview rooview;
25 public Xcls_objectview objectview;
26 public Xcls_codeeditview codeeditview;
27 public Xcls_addpropsview addpropsview;
28 public Xcls_projecteditview projecteditview;
29 public Xcls_buttonlayout buttonlayout;
30 public Xcls_backbutton backbutton;
31 public Xcls_projectbutton projectbutton;
32 public Xcls_editfilebutton editfilebutton;
33 public Xcls_projecteditbutton projecteditbutton;
34 public Xcls_objectshowbutton objectshowbutton;
35 public Xcls_addpropbutton addpropbutton;
36 public Xcls_addlistenerbutton addlistenerbutton;
37 public Xcls_addprojectbutton addprojectbutton;
38 public Xcls_addfilebutton addfilebutton;
39 public Xcls_delprojectbutton delprojectbutton;
40 public Xcls_statusbar statusbar;
43 public Project.Project project;
45 public int no_windows;
46 public WindowState windowstate;
49 public Xcls_MainWindow()
52 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
56 this.title = "Application Builder";
58 this.windowstate = null;
61 this.el.border_width = 0;
62 this.el.default_height = 500;
63 this.el.default_width = 800;
64 var child_0 = new Xcls_headerbar( _this );
66 this.el.set_titlebar ( child_0.el );
67 var child_1 = new Xcls_vbox( _this );
69 this.el.add ( child_1.el );
76 this.el.delete_event.connect( ( event) => {
79 this.el.destroy.connect( () => {
80 Xcls_MainWindow.singleton().no_windows--;
82 Resources.singleton().disconnect(_this.statusbar.handler_id);
85 if (Xcls_MainWindow.singleton().no_windows < 1) {
90 this.el.show.connect( ( ) => {
91 // hide the file editing..
93 //this.hideViewEditing();
94 _this.statusbar.el.hide();
95 Resources.singleton().checkResources();
100 // user defined functions
101 public void initChildren () {
102 // this needs putting in a better place..
103 this.windowstate = new WindowState(this);
107 var tl = new Clutter.Timeline(6000);
108 tl.set_repeat_count(-1);
117 public void show () {
122 public void setTitle (string str) {
123 this.headerbar.el.set_title(this.title + " - " + str);
125 public class Xcls_headerbar : Object
127 public Gtk.HeaderBar el;
128 private Xcls_MainWindow _this;
134 public Xcls_headerbar(Xcls_MainWindow _owner )
137 _this.headerbar = this;
138 this.el = new Gtk.HeaderBar();
142 // set gobject values
143 this.el.title = "Application Builder";
144 this.el.show_close_button = true;
145 var child_0 = new Xcls_HBox3( _this );
147 this.el.pack_start ( child_0.el );
150 // user defined functions
152 public class Xcls_HBox3 : Object
155 private Xcls_MainWindow _this;
161 public Xcls_HBox3(Xcls_MainWindow _owner )
164 this.el = new Gtk.HBox( true, 0 );
168 // set gobject values
169 var child_0 = new Xcls_MenuButton4( _this );
171 this.el.add ( child_0.el );
174 // user defined functions
176 public class Xcls_MenuButton4 : Object
178 public Gtk.MenuButton el;
179 private Xcls_MainWindow _this;
185 public Xcls_MenuButton4(Xcls_MainWindow _owner )
188 this.el = new Gtk.MenuButton();
192 // set gobject values
193 this.el.use_popover = false;
194 var child_0 = new Xcls_topbarmenu( _this );
196 this.el.set_popup ( child_0.el );
197 var child_1 = new Xcls_Image10( _this );
199 this.el.set_image ( child_1.el );
202 // user defined functions
204 public class Xcls_topbarmenu : Object
207 private Xcls_MainWindow _this;
213 public Xcls_topbarmenu(Xcls_MainWindow _owner )
216 _this.topbarmenu = this;
217 this.el = new Gtk.Menu();
221 // set gobject values
222 var child_0 = new Xcls_MenuItem6( _this );
224 this.el.append ( child_0.el );
225 var child_1 = new Xcls_SeparatorMenuItem7( _this );
227 this.el.append ( child_1.el );
228 var child_2 = new Xcls_MenuItem8( _this );
230 this.el.append ( child_2.el );
231 var child_3 = new Xcls_MenuItem9( _this );
233 this.el.append ( child_3.el );
242 // user defined functions
244 public class Xcls_MenuItem6 : Object
246 public Gtk.MenuItem el;
247 private Xcls_MainWindow _this;
253 public Xcls_MenuItem6(Xcls_MainWindow _owner )
256 this.el = new Gtk.MenuItem();
260 // set gobject values
261 this.el.label = "Open a new Window";
264 this.el.activate.connect( ( ) => {
265 Xcls_MainWindow.singleton().no_windows++;
266 var w = new Xcls_MainWindow();
271 w.windowstate.switchState(WindowState.State.FILES);
275 // user defined functions
277 public class Xcls_SeparatorMenuItem7 : Object
279 public Gtk.SeparatorMenuItem el;
280 private Xcls_MainWindow _this;
286 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
289 this.el = new Gtk.SeparatorMenuItem();
293 // set gobject values
296 // user defined functions
298 public class Xcls_MenuItem8 : Object
300 public Gtk.MenuItem el;
301 private Xcls_MainWindow _this;
307 public Xcls_MenuItem8(Xcls_MainWindow _owner )
310 this.el = new Gtk.MenuItem();
314 // set gobject values
315 this.el.label = "Download updated Resources";
318 this.el.activate.connect( ( ) => {
319 Resources.singleton().fetchStart();
323 // user defined functions
325 public class Xcls_MenuItem9 : Object
327 public Gtk.MenuItem el;
328 private Xcls_MainWindow _this;
334 public Xcls_MenuItem9(Xcls_MainWindow _owner )
337 this.el = new Gtk.MenuItem();
341 // set gobject values
342 this.el.label = "About the Builder";
345 this.el.activate.connect( () => {
346 About.singleton().el.show();
350 // user defined functions
352 public class Xcls_Image10 : Object
355 private Xcls_MainWindow _this;
361 public Xcls_Image10(Xcls_MainWindow _owner )
364 this.el = new Gtk.Image();
368 // set gobject values
369 this.el.icon_name = "help-about";
372 // user defined functions
374 public class Xcls_vbox : Object
377 private Xcls_MainWindow _this;
383 public Xcls_vbox(Xcls_MainWindow _owner )
387 this.el = new Gtk.VBox( false, 0 );
391 // set gobject values
392 var child_0 = new Xcls_mainpane( _this );
394 this.el.pack_start ( child_0.el , true,true,0 );
395 var child_1 = new Xcls_HBox66( _this );
397 this.el.pack_end ( child_1.el , false,true,0 );
400 // user defined functions
402 public class Xcls_mainpane : Object
404 public Gtk.HPaned el;
405 private Xcls_MainWindow _this;
409 public int lastWidth;
412 public Xcls_mainpane(Xcls_MainWindow _owner )
415 _this.mainpane = this;
416 this.el = new Gtk.HPaned();
421 // set gobject values
422 this.el.position = 400;
423 var child_0 = new Xcls_leftpane( _this );
425 this.el.add1 ( child_0.el );
426 var child_1 = new Xcls_VBox17( _this );
428 this.el.add2 ( child_1.el );
431 // user defined functions
433 public class Xcls_leftpane : Object
436 private Xcls_MainWindow _this;
442 public Xcls_leftpane(Xcls_MainWindow _owner )
445 _this.leftpane = this;
446 this.el = new Gtk.VBox( true, 0 );
450 // set gobject values
451 var child_0 = new Xcls_editpane( _this );
453 this.el.pack_start ( child_0.el , false,true,0 );
456 // user defined functions
458 public class Xcls_editpane : Object
460 public Gtk.VPaned el;
461 private Xcls_MainWindow _this;
467 public Xcls_editpane(Xcls_MainWindow _owner )
470 _this.editpane = this;
471 this.el = new Gtk.VPaned();
475 // set gobject values
476 var child_0 = new Xcls_tree( _this );
478 this.el.add1 ( child_0.el );
479 var child_1 = new Xcls_props( _this );
481 this.el.add2 ( child_1.el );
484 // user defined functions
486 public class Xcls_tree : Object
489 private Xcls_MainWindow _this;
495 public Xcls_tree(Xcls_MainWindow _owner )
499 this.el = new Gtk.VBox( true, 0 );
503 // set gobject values
506 // user defined functions
508 public class Xcls_props : Object
511 private Xcls_MainWindow _this;
517 public Xcls_props(Xcls_MainWindow _owner )
521 this.el = new Gtk.VBox( true, 0 );
525 // set gobject values
528 // user defined functions
530 public class Xcls_VBox17 : Object
533 private Xcls_MainWindow _this;
539 public Xcls_VBox17(Xcls_MainWindow _owner )
542 this.el = new Gtk.VBox( true, 0 );
546 // set gobject values
547 var child_0 = new Xcls_clutterembed( _this );
549 this.el.pack_start ( child_0.el , true,true,0 );
552 // user defined functions
554 public class Xcls_clutterembed : Object
556 public GtkClutter.Embed el;
557 private Xcls_MainWindow _this;
563 public Xcls_clutterembed(Xcls_MainWindow _owner )
566 _this.clutterembed = this;
567 this.el = new GtkClutter.Embed();
571 // set gobject values
572 var child_0 = new Xcls_rooview( _this );
574 this.el.get_stage().add_child ( child_0.el );
575 var child_1 = new Xcls_objectview( _this );
577 this.el.get_stage().add_child ( child_1.el );
578 var child_2 = new Xcls_codeeditview( _this );
580 this.el.get_stage().add_child ( child_2.el );
581 var child_3 = new Xcls_addpropsview( _this );
583 this.el.get_stage().add_child ( child_3.el );
584 var child_4 = new Xcls_projecteditview( _this );
586 this.el.get_stage().add_child ( child_4.el );
587 var child_5 = new Xcls_buttonlayout( _this );
589 this.el.get_stage().add_child ( child_5.el );
593 var stage = this.el.get_stage();
594 stage.set_background_color( Clutter.Color.from_string("#000"));
597 this.el.size_allocate.connect( ( alloc) => {
598 if (_this.windowstate == null) {
601 _this.windowstate.resizeCanvas();
606 // user defined functions
608 public class Xcls_rooview : Object
610 public GtkClutter.Actor el;
611 private Xcls_MainWindow _this;
617 public Xcls_rooview(Xcls_MainWindow _owner )
620 _this.rooview = this;
621 this.el = new GtkClutter.Actor();
625 // set gobject values
632 this.el.add_constraint(
633 new Clutter.AlignConstraint(
634 _this.clutterembed.el.get_stage(),
635 Clutter.AlignAxis.X_AXIS,
640 //this.el.set_position(100,100);
641 this.el.set_pivot_point(1.0f,1.0f);
643 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
644 _this.clutterembed.el.get_stage().height);
649 // user defined functions
651 public class Xcls_objectview : Object
653 public GtkClutter.Actor el;
654 private Xcls_MainWindow _this;
660 public Xcls_objectview(Xcls_MainWindow _owner )
663 _this.objectview = this;
664 this.el = new GtkClutter.Actor();
668 // set gobject values
675 this.el.add_constraint(
676 new Clutter.AlignConstraint(
677 _this.clutterembed.el.get_stage(),
678 Clutter.AlignAxis.X_AXIS,
683 this.el.fixed_x = 50.0f;
684 this.el.fixed_y = 0.0f;
685 //this.el.set_position(100,100);
686 this.el.set_pivot_point(0.0f,0.0f);
687 this.el.set_scale(0.0f,1.0f);
688 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
689 _this.clutterembed.el.get_stage().height);
694 // user defined functions
696 public class Xcls_codeeditview : Object
698 public GtkClutter.Actor el;
699 private Xcls_MainWindow _this;
705 public Xcls_codeeditview(Xcls_MainWindow _owner )
708 _this.codeeditview = this;
709 this.el = new GtkClutter.Actor();
713 // set gobject values
720 this.el.add_constraint(
721 new Clutter.AlignConstraint(
722 _this.clutterembed.el.get_stage(),
723 Clutter.AlignAxis.X_AXIS,
728 this.el.fixed_x = 50.0f;
729 this.el.fixed_y = 0.0f;
730 //this.el.set_position(100,100);
731 this.el.set_pivot_point(0.0f,0.0f);
732 this.el.set_scale(0.0f,1.0f);
733 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
734 _this.clutterembed.el.get_stage().height);
739 // user defined functions
741 public class Xcls_addpropsview : Object
743 public GtkClutter.Actor el;
744 private Xcls_MainWindow _this;
750 public Xcls_addpropsview(Xcls_MainWindow _owner )
753 _this.addpropsview = this;
754 this.el = new GtkClutter.Actor();
758 // set gobject values
765 this.el.add_constraint(
766 new Clutter.AlignConstraint(
767 _this.clutterembed.el.get_stage(),
768 Clutter.AlignAxis.X_AXIS,
773 this.el.fixed_x = 50.0f;
774 this.el.fixed_y = 0.0f;
775 //this.el.set_position(100,100);
776 this.el.set_pivot_point(0.0f,0.0f);
777 this.el.set_scale(0.0f,1.0f);
778 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
779 _this.clutterembed.el.get_stage().height);
784 // user defined functions
786 public class Xcls_projecteditview : Object
788 public GtkClutter.Actor el;
789 private Xcls_MainWindow _this;
795 public Xcls_projecteditview(Xcls_MainWindow _owner )
798 _this.projecteditview = this;
799 this.el = new GtkClutter.Actor();
803 // set gobject values
810 this.el.add_constraint(
811 new Clutter.AlignConstraint(
812 _this.clutterembed.el.get_stage(),
813 Clutter.AlignAxis.X_AXIS,
818 //this.el.set_position(100,100);
819 this.el.set_pivot_point(0.0f,0.0f);
820 this.el.set_scale(1.0f,0.0f);
821 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
822 _this.clutterembed.el.get_stage().height /2);
827 // user defined functions
829 public class Xcls_buttonlayout : Object
831 public Clutter.Actor el;
832 private Xcls_MainWindow _this;
838 public Xcls_buttonlayout(Xcls_MainWindow _owner )
841 _this.buttonlayout = this;
842 this.el = new Clutter.Actor();
846 // set gobject values
847 var child_0 = new Xcls_BoxLayout25( _this );
849 this.el.layout_manager = child_0.el;
850 var child_1 = new Xcls_backbutton( _this );
852 this.el.add_child ( child_1.el );
853 var child_2 = new Xcls_projectbutton( _this );
855 this.el.add_child ( child_2.el );
856 var child_3 = new Xcls_editfilebutton( _this );
858 this.el.add_child ( child_3.el );
859 var child_4 = new Xcls_projecteditbutton( _this );
861 this.el.add_child ( child_4.el );
862 var child_5 = new Xcls_objectshowbutton( _this );
864 this.el.add_child ( child_5.el );
865 var child_6 = new Xcls_addpropbutton( _this );
867 this.el.add_child ( child_6.el );
868 var child_7 = new Xcls_addlistenerbutton( _this );
870 this.el.add_child ( child_7.el );
871 var child_8 = new Xcls_addprojectbutton( _this );
873 this.el.add_child ( child_8.el );
874 var child_9 = new Xcls_addfilebutton( _this );
876 this.el.add_child ( child_9.el );
877 var child_10 = new Xcls_delprojectbutton( _this );
879 this.el.add_child ( child_10.el );
885 this.el.add_constraint(
886 new Clutter.AlignConstraint(
887 _this.clutterembed.el.get_stage(),
888 Clutter.AlignAxis.X_AXIS,
894 //this.el.set_position(100,100);
895 this.el.set_pivot_point(0.5f,0.5f);
897 _this.clutterembed.el.get_stage().height);
902 // user defined functions
904 public class Xcls_BoxLayout25 : Object
906 public Clutter.BoxLayout el;
907 private Xcls_MainWindow _this;
913 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
916 this.el = new Clutter.BoxLayout();
920 // set gobject values
921 this.el.orientation = Clutter.Orientation.VERTICAL;
924 // user defined functions
926 public class Xcls_backbutton : Object
928 public Clutter.Actor el;
929 private Xcls_MainWindow _this;
935 public Xcls_backbutton(Xcls_MainWindow _owner )
938 _this.backbutton = this;
939 this.el = new Clutter.Actor();
943 // set gobject values
944 var child_0 = new Xcls_Actor27( _this );
946 this.el.add_child ( child_0.el );
950 this.el.set_size(50,50);
953 // user defined functions
955 public class Xcls_Actor27 : Object
957 public GtkClutter.Actor el;
958 private Xcls_MainWindow _this;
964 public Xcls_Actor27(Xcls_MainWindow _owner )
967 this.el = new GtkClutter.Actor();
971 // set gobject values
972 var child_0 = new Xcls_Button28( _this );
977 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
980 // user defined functions
982 public class Xcls_Button28 : Object
984 public Gtk.Button el;
985 private Xcls_MainWindow _this;
991 public Xcls_Button28(Xcls_MainWindow _owner )
994 this.el = new Gtk.Button();
998 // set gobject values
999 this.el.width_request = 50;
1000 this.el.height_request = 50;
1001 this.el.tooltip_text = "Back";
1002 var child_0 = new Xcls_Image29( _this );
1004 this.el.set_image ( child_0.el );
1007 this.el.clicked.connect( ( ) => {
1009 _this.windowstate.switchState(WindowState.State.PREVIEW);
1015 // user defined functions
1017 public class Xcls_Image29 : Object
1019 public Gtk.Image el;
1020 private Xcls_MainWindow _this;
1026 public Xcls_Image29(Xcls_MainWindow _owner )
1029 this.el = new Gtk.Image();
1033 // set gobject values
1034 this.el.icon_name = "go-previous";
1037 // user defined functions
1039 public class Xcls_projectbutton : Object
1041 public Clutter.Actor el;
1042 private Xcls_MainWindow _this;
1048 public Xcls_projectbutton(Xcls_MainWindow _owner )
1051 _this.projectbutton = this;
1052 this.el = new Clutter.Actor();
1056 // set gobject values
1057 var child_0 = new Xcls_Actor31( _this );
1059 this.el.add_child ( child_0.el );
1063 this.el.set_size(50,50);
1066 // user defined functions
1068 public class Xcls_Actor31 : Object
1070 public GtkClutter.Actor el;
1071 private Xcls_MainWindow _this;
1077 public Xcls_Actor31(Xcls_MainWindow _owner )
1080 this.el = new GtkClutter.Actor();
1084 // set gobject values
1085 var child_0 = new Xcls_Button32( _this );
1090 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1093 // user defined functions
1095 public class Xcls_Button32 : Object
1097 public Gtk.Button el;
1098 private Xcls_MainWindow _this;
1104 public Xcls_Button32(Xcls_MainWindow _owner )
1107 this.el = new Gtk.Button();
1111 // set gobject values
1112 this.el.width_request = 50;
1113 this.el.height_request = 50;
1114 var child_0 = new Xcls_Image33( _this );
1116 this.el.set_image ( child_0.el );
1119 this.el.clicked.connect( ( ) => {
1120 _this.windowstate.switchState(WindowState.State.FILES);
1126 // user defined functions
1128 public class Xcls_Image33 : Object
1130 public Gtk.Image el;
1131 private Xcls_MainWindow _this;
1137 public Xcls_Image33(Xcls_MainWindow _owner )
1140 this.el = new Gtk.Image();
1144 // set gobject values
1145 this.el.icon_name = "document-open";
1148 // user defined functions
1150 public class Xcls_editfilebutton : Object
1152 public Clutter.Actor el;
1153 private Xcls_MainWindow _this;
1159 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1162 _this.editfilebutton = this;
1163 this.el = new Clutter.Actor();
1167 // set gobject values
1168 var child_0 = new Xcls_Actor35( _this );
1170 this.el.add_child ( child_0.el );
1174 this.el.set_size(50.0f,50.0f);
1177 // user defined functions
1179 public class Xcls_Actor35 : Object
1181 public GtkClutter.Actor el;
1182 private Xcls_MainWindow _this;
1188 public Xcls_Actor35(Xcls_MainWindow _owner )
1191 this.el = new GtkClutter.Actor();
1195 // set gobject values
1196 var child_0 = new Xcls_Button36( _this );
1201 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1204 // user defined functions
1206 public class Xcls_Button36 : Object
1208 public Gtk.Button el;
1209 private Xcls_MainWindow _this;
1215 public Xcls_Button36(Xcls_MainWindow _owner )
1218 this.el = new Gtk.Button();
1222 // set gobject values
1223 this.el.width_request = 50;
1224 this.el.height_request = 50;
1225 this.el.tooltip_text = "File Details";
1226 var child_0 = new Xcls_Image37( _this );
1228 this.el.set_image ( child_0.el );
1231 this.el.clicked.connect( ( ) => {
1233 // create a new file in project..
1234 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1237 _this.windowstate.file_details.show(
1238 _this.windowstate.left_tree.model.file, this.el
1247 // user defined functions
1249 public class Xcls_Image37 : Object
1251 public Gtk.Image el;
1252 private Xcls_MainWindow _this;
1258 public Xcls_Image37(Xcls_MainWindow _owner )
1261 this.el = new Gtk.Image();
1265 // set gobject values
1266 this.el.icon_name = "document-properties";
1269 // user defined functions
1271 public class Xcls_projecteditbutton : Object
1273 public Clutter.Actor el;
1274 private Xcls_MainWindow _this;
1280 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1283 _this.projecteditbutton = this;
1284 this.el = new Clutter.Actor();
1288 // set gobject values
1289 var child_0 = new Xcls_Actor39( _this );
1291 this.el.add_child ( child_0.el );
1295 this.el.set_size(50,50);
1298 // user defined functions
1300 public class Xcls_Actor39 : Object
1302 public GtkClutter.Actor el;
1303 private Xcls_MainWindow _this;
1309 public Xcls_Actor39(Xcls_MainWindow _owner )
1312 this.el = new GtkClutter.Actor();
1316 // set gobject values
1317 var child_0 = new Xcls_Button40( _this );
1322 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1325 // user defined functions
1327 public class Xcls_Button40 : Object
1329 public Gtk.Button el;
1330 private Xcls_MainWindow _this;
1336 public Xcls_Button40(Xcls_MainWindow _owner )
1339 this.el = new Gtk.Button();
1343 // set gobject values
1344 this.el.width_request = 50;
1345 this.el.height_request = 50;
1346 this.el.tooltip_text = "Project Details";
1347 var child_0 = new Xcls_Image41( _this );
1349 this.el.set_image ( child_0.el );
1352 this.el.clicked.connect( ( ) => {
1353 _this.windowstate.switchState(WindowState.State.PROJECT);
1360 // user defined functions
1362 public class Xcls_Image41 : Object
1364 public Gtk.Image el;
1365 private Xcls_MainWindow _this;
1371 public Xcls_Image41(Xcls_MainWindow _owner )
1374 this.el = new Gtk.Image();
1378 // set gobject values
1379 this.el.icon_name = "emblem-system";
1382 // user defined functions
1384 public class Xcls_objectshowbutton : Object
1386 public Clutter.Actor el;
1387 private Xcls_MainWindow _this;
1393 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1396 _this.objectshowbutton = this;
1397 this.el = new Clutter.Actor();
1401 // set gobject values
1402 var child_0 = new Xcls_Actor43( _this );
1404 this.el.add_child ( child_0.el );
1408 this.el.set_size(50,50);
1411 this.el.enter_event.connect( ( event) => {
1412 this.el.background_color = new Clutter.Color.from_string("#333");
1415 this.el.leave_event.connect( ( event) => {
1416 this.el.background_color = new Clutter.Color.from_string("#000");
1421 // user defined functions
1423 public class Xcls_Actor43 : Object
1425 public GtkClutter.Actor el;
1426 private Xcls_MainWindow _this;
1432 public Xcls_Actor43(Xcls_MainWindow _owner )
1435 this.el = new GtkClutter.Actor();
1439 // set gobject values
1440 var child_0 = new Xcls_Button44( _this );
1445 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1448 // user defined functions
1450 public class Xcls_Button44 : Object
1452 public Gtk.Button el;
1453 private Xcls_MainWindow _this;
1459 public Xcls_Button44(Xcls_MainWindow _owner )
1462 this.el = new Gtk.Button();
1466 // set gobject values
1467 this.el.width_request = 50;
1468 this.el.height_request = 50;
1469 this.el.tooltip_text = "Add Child Element";
1470 var child_0 = new Xcls_Image45( _this );
1472 this.el.set_image ( child_0.el );
1475 this.el.clicked.connect( ( ) => {
1477 _this.windowstate.switchState(WindowState.State.OBJECT);
1483 // user defined functions
1485 public class Xcls_Image45 : Object
1487 public Gtk.Image el;
1488 private Xcls_MainWindow _this;
1494 public Xcls_Image45(Xcls_MainWindow _owner )
1497 this.el = new Gtk.Image();
1501 // set gobject values
1502 this.el.icon_name = "list-add";
1505 // user defined functions
1507 public class Xcls_addpropbutton : Object
1509 public Clutter.Actor el;
1510 private Xcls_MainWindow _this;
1516 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1519 _this.addpropbutton = this;
1520 this.el = new Clutter.Actor();
1524 // set gobject values
1525 var child_0 = new Xcls_Actor47( _this );
1527 this.el.add_child ( child_0.el );
1531 this.el.set_size(50,50);
1534 // user defined functions
1536 public class Xcls_Actor47 : Object
1538 public GtkClutter.Actor el;
1539 private Xcls_MainWindow _this;
1545 public Xcls_Actor47(Xcls_MainWindow _owner )
1548 this.el = new GtkClutter.Actor();
1552 // set gobject values
1553 var child_0 = new Xcls_Button48( _this );
1558 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1561 // user defined functions
1563 public class Xcls_Button48 : Object
1565 public Gtk.Button el;
1566 private Xcls_MainWindow _this;
1572 public Xcls_Button48(Xcls_MainWindow _owner )
1575 this.el = new Gtk.Button();
1579 // set gobject values
1580 this.el.width_request = 50;
1581 this.el.height_request = 50;
1582 this.el.tooltip_text = "Add Property";
1583 var child_0 = new Xcls_Image49( _this );
1585 this.el.set_image ( child_0.el );
1588 this.el.clicked.connect( ( ) => {
1590 _this.windowstate.switchState(WindowState.State.PROP);
1596 // user defined functions
1598 public class Xcls_Image49 : Object
1600 public Gtk.Image el;
1601 private Xcls_MainWindow _this;
1607 public Xcls_Image49(Xcls_MainWindow _owner )
1610 this.el = new Gtk.Image();
1614 // set gobject values
1615 this.el.icon_name = "format-justify-left";
1618 // user defined functions
1620 public class Xcls_addlistenerbutton : Object
1622 public Clutter.Actor el;
1623 private Xcls_MainWindow _this;
1629 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1632 _this.addlistenerbutton = this;
1633 this.el = new Clutter.Actor();
1637 // set gobject values
1638 var child_0 = new Xcls_Actor51( _this );
1640 this.el.add_child ( child_0.el );
1644 this.el.set_size(50,50);
1647 // user defined functions
1649 public class Xcls_Actor51 : Object
1651 public GtkClutter.Actor el;
1652 private Xcls_MainWindow _this;
1658 public Xcls_Actor51(Xcls_MainWindow _owner )
1661 this.el = new GtkClutter.Actor();
1665 // set gobject values
1666 var child_0 = new Xcls_Button52( _this );
1671 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1674 // user defined functions
1676 public class Xcls_Button52 : Object
1678 public Gtk.Button el;
1679 private Xcls_MainWindow _this;
1685 public Xcls_Button52(Xcls_MainWindow _owner )
1688 this.el = new Gtk.Button();
1692 // set gobject values
1693 this.el.width_request = 50;
1694 this.el.height_request = 50;
1695 this.el.tooltip_text = "Add Event Code";
1696 var child_0 = new Xcls_Image53( _this );
1698 this.el.set_image ( child_0.el );
1701 this.el.clicked.connect( ( ) => {
1703 _this.windowstate.switchState(WindowState.State.LISTENER);
1710 // user defined functions
1712 public class Xcls_Image53 : Object
1714 public Gtk.Image el;
1715 private Xcls_MainWindow _this;
1721 public Xcls_Image53(Xcls_MainWindow _owner )
1724 this.el = new Gtk.Image();
1728 // set gobject values
1729 this.el.icon_name = "appointment-new";
1732 // user defined functions
1734 public class Xcls_addprojectbutton : Object
1736 public Clutter.Actor el;
1737 private Xcls_MainWindow _this;
1743 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1746 _this.addprojectbutton = this;
1747 this.el = new Clutter.Actor();
1751 // set gobject values
1752 var child_0 = new Xcls_Actor55( _this );
1754 this.el.add_child ( child_0.el );
1758 this.el.set_size(50.0f,50.0f);
1761 // user defined functions
1763 public class Xcls_Actor55 : Object
1765 public GtkClutter.Actor el;
1766 private Xcls_MainWindow _this;
1772 public Xcls_Actor55(Xcls_MainWindow _owner )
1775 this.el = new GtkClutter.Actor();
1779 // set gobject values
1780 var child_0 = new Xcls_Button56( _this );
1785 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1788 // user defined functions
1790 public class Xcls_Button56 : Object
1792 public Gtk.Button el;
1793 private Xcls_MainWindow _this;
1799 public Xcls_Button56(Xcls_MainWindow _owner )
1802 this.el = new Gtk.Button();
1806 // set gobject values
1807 this.el.width_request = 50;
1808 this.el.height_request = 50;
1809 this.el.tooltip_text = "New\nProj.";
1810 var child_0 = new Xcls_Image57( _this );
1812 this.el.set_image ( child_0.el );
1815 this.el.clicked.connect( ( ) => {
1817 // create a new file in project..
1818 //Xcls_DialogNewComponent.singleton().show(
1819 var pe = Xcls_EditProject.singleton();
1820 pe.el.set_transient_for(_this.el);
1821 pe.el.set_modal(true);
1830 _this.windowstate.left_projects.is_loaded = false;
1831 _this.windowstate.left_projects.load();
1832 _this.windowstate.left_projects.selectProject(p);
1839 // user defined functions
1841 public class Xcls_Image57 : Object
1843 public Gtk.Image el;
1844 private Xcls_MainWindow _this;
1850 public Xcls_Image57(Xcls_MainWindow _owner )
1853 this.el = new Gtk.Image();
1857 // set gobject values
1858 this.el.icon_name = "folder-new";
1861 // user defined functions
1863 public class Xcls_addfilebutton : Object
1865 public Clutter.Actor el;
1866 private Xcls_MainWindow _this;
1872 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1875 _this.addfilebutton = this;
1876 this.el = new Clutter.Actor();
1880 // set gobject values
1881 var child_0 = new Xcls_Actor59( _this );
1883 this.el.add_child ( child_0.el );
1887 this.el.set_size(50.0f,50.0f);
1890 // user defined functions
1892 public class Xcls_Actor59 : Object
1894 public GtkClutter.Actor el;
1895 private Xcls_MainWindow _this;
1901 public Xcls_Actor59(Xcls_MainWindow _owner )
1904 this.el = new GtkClutter.Actor();
1908 // set gobject values
1909 var child_0 = new Xcls_Button60( _this );
1914 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1917 // user defined functions
1919 public class Xcls_Button60 : Object
1921 public Gtk.Button el;
1922 private Xcls_MainWindow _this;
1928 public Xcls_Button60(Xcls_MainWindow _owner )
1931 this.el = new Gtk.Button();
1935 // set gobject values
1936 this.el.width_request = 50;
1937 this.el.height_request = 50;
1938 this.el.tooltip_text = "Add File";
1939 var child_0 = new Xcls_Image61( _this );
1941 this.el.set_image ( child_0.el );
1944 this.el.clicked.connect( () => {
1945 // create a new file in project..
1947 // what's the currently selected project...
1948 var proj = _this.windowstate.left_projects.getSelectedProject();
1956 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1957 _this.project = proj;
1959 _this.windowstate.file_details.show(
1968 // user defined functions
1970 public class Xcls_Image61 : Object
1972 public Gtk.Image el;
1973 private Xcls_MainWindow _this;
1979 public Xcls_Image61(Xcls_MainWindow _owner )
1982 this.el = new Gtk.Image();
1986 // set gobject values
1987 this.el.icon_name = "document-new";
1990 // user defined functions
1992 public class Xcls_delprojectbutton : Object
1994 public Clutter.Actor el;
1995 private Xcls_MainWindow _this;
2001 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2004 _this.delprojectbutton = this;
2005 this.el = new Clutter.Actor();
2009 // set gobject values
2010 var child_0 = new Xcls_Actor63( _this );
2012 this.el.add_child ( child_0.el );
2016 this.el.set_size(50,50);
2019 // user defined functions
2021 public class Xcls_Actor63 : Object
2023 public GtkClutter.Actor el;
2024 private Xcls_MainWindow _this;
2030 public Xcls_Actor63(Xcls_MainWindow _owner )
2033 this.el = new GtkClutter.Actor();
2037 // set gobject values
2038 var child_0 = new Xcls_Button64( _this );
2043 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2046 // user defined functions
2048 public class Xcls_Button64 : Object
2050 public Gtk.Button el;
2051 private Xcls_MainWindow _this;
2057 public Xcls_Button64(Xcls_MainWindow _owner )
2060 this.el = new Gtk.Button();
2064 // set gobject values
2065 this.el.width_request = 50;
2066 this.el.height_request = 50;
2067 this.el.tooltip_text = "Delete Project";
2068 var child_0 = new Xcls_Image65( _this );
2070 this.el.set_image ( child_0.el );
2073 this.el.clicked.connect( ( ) => {
2075 var cd = DialogConfirm.singleton();
2076 cd.el.set_transient_for(_this.el);
2077 cd.el.set_modal(true);
2079 var project = _this.windowstate.left_projects.getSelectedProject();
2080 if (project == null) {
2081 print("SKIP - no project\n");
2086 if (Gtk.ResponseType.YES != cd.show("Confirm",
2087 "Are you sure you want to delete project %s".printf(project.name))) {
2093 Project.Project.remove(project);
2094 _this.project = null;
2096 _this.windowstate.left_projects.is_loaded = false;
2097 _this.windowstate.left_projects.load();
2098 _this.windowstate.clutterfiles.clearFiles();
2103 // user defined functions
2105 public class Xcls_Image65 : Object
2107 public Gtk.Image el;
2108 private Xcls_MainWindow _this;
2114 public Xcls_Image65(Xcls_MainWindow _owner )
2117 this.el = new Gtk.Image();
2121 // set gobject values
2122 this.el.icon_name = "user-trash";
2125 // user defined functions
2127 public class Xcls_HBox66 : Object
2130 private Xcls_MainWindow _this;
2136 public Xcls_HBox66(Xcls_MainWindow _owner )
2139 this.el = new Gtk.HBox( true, 0 );
2143 // set gobject values
2144 var child_0 = new Xcls_statusbar( _this );
2146 this.el.pack_start ( child_0.el , true,true,0 );
2149 // user defined functions
2151 public class Xcls_statusbar : Object
2153 public Gtk.ProgressBar el;
2154 private Xcls_MainWindow _this;
2158 public ulong handler_id;
2161 public Xcls_statusbar(Xcls_MainWindow _owner )
2164 _this.statusbar = this;
2165 this.el = new Gtk.ProgressBar();
2168 this.handler_id = -1;
2170 // set gobject values
2171 this.el.show_text = true;
2176 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2179 _this.mainpane.el.set_sensitive(true);
2183 _this.mainpane.el.set_sensitive(false);
2185 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2186 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2189 var cid = this.el.get_context_id("resources");
2190 this.el.remove_all(cid);
2191 this.el.push(cid,"Fetching Resource : %s/7".printf(pos.to_string()));
2197 // user defined functions