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;
41 public Xcls_statusbar_errors statusbar_errors;
42 public Xcls_statusbar_warnings statusbar_warnings;
43 public Xcls_statusbar_depricated statusbar_depricated;
46 public Project.Project project;
48 public int no_windows;
49 public WindowState windowstate;
52 public Xcls_MainWindow()
55 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
59 this.title = "Application Builder";
61 this.windowstate = null;
64 this.el.border_width = 0;
65 this.el.default_height = 500;
66 this.el.default_width = 800;
67 var child_0 = new Xcls_headerbar( _this );
69 this.el.set_titlebar ( child_0.el );
70 var child_1 = new Xcls_vbox( _this );
72 this.el.add ( child_1.el );
79 this.el.delete_event.connect( ( event) => {
82 this.el.destroy.connect( () => {
83 Xcls_MainWindow.singleton().no_windows--;
85 Resources.singleton().disconnect(_this.statusbar.handler_id);
88 if (Xcls_MainWindow.singleton().no_windows < 1) {
93 this.el.show.connect( ( ) => {
94 // hide the file editing..
96 //this.hideViewEditing();
97 _this.statusbar.el.hide();
98 Resources.singleton().checkResources();
103 // user defined functions
104 public void initChildren () {
105 // this needs putting in a better place..
106 this.windowstate = new WindowState(this);
110 var tl = new Clutter.Timeline(6000);
111 tl.set_repeat_count(-1);
120 public void show () {
125 public void setTitle (string str) {
126 this.headerbar.el.set_title(this.title + " - " + str);
128 public class Xcls_headerbar : Object
130 public Gtk.HeaderBar el;
131 private Xcls_MainWindow _this;
137 public Xcls_headerbar(Xcls_MainWindow _owner )
140 _this.headerbar = this;
141 this.el = new Gtk.HeaderBar();
145 // set gobject values
146 this.el.title = "Application Builder";
147 this.el.show_close_button = true;
148 var child_0 = new Xcls_HBox3( _this );
150 this.el.pack_start ( child_0.el );
153 // user defined functions
155 public class Xcls_HBox3 : Object
158 private Xcls_MainWindow _this;
164 public Xcls_HBox3(Xcls_MainWindow _owner )
167 this.el = new Gtk.HBox( true, 0 );
171 // set gobject values
172 var child_0 = new Xcls_MenuButton4( _this );
174 this.el.add ( child_0.el );
177 // user defined functions
179 public class Xcls_MenuButton4 : Object
181 public Gtk.MenuButton el;
182 private Xcls_MainWindow _this;
188 public Xcls_MenuButton4(Xcls_MainWindow _owner )
191 this.el = new Gtk.MenuButton();
195 // set gobject values
196 this.el.use_popover = false;
197 var child_0 = new Xcls_topbarmenu( _this );
199 this.el.set_popup ( child_0.el );
200 var child_1 = new Xcls_Image10( _this );
202 this.el.set_image ( child_1.el );
205 // user defined functions
207 public class Xcls_topbarmenu : Object
210 private Xcls_MainWindow _this;
216 public Xcls_topbarmenu(Xcls_MainWindow _owner )
219 _this.topbarmenu = this;
220 this.el = new Gtk.Menu();
224 // set gobject values
225 var child_0 = new Xcls_MenuItem6( _this );
227 this.el.append ( child_0.el );
228 var child_1 = new Xcls_SeparatorMenuItem7( _this );
230 this.el.append ( child_1.el );
231 var child_2 = new Xcls_MenuItem8( _this );
233 this.el.append ( child_2.el );
234 var child_3 = new Xcls_MenuItem9( _this );
236 this.el.append ( child_3.el );
245 // user defined functions
247 public class Xcls_MenuItem6 : Object
249 public Gtk.MenuItem el;
250 private Xcls_MainWindow _this;
256 public Xcls_MenuItem6(Xcls_MainWindow _owner )
259 this.el = new Gtk.MenuItem();
263 // set gobject values
264 this.el.label = "Open a new Window";
267 this.el.activate.connect( ( ) => {
268 Xcls_MainWindow.singleton().no_windows++;
269 var w = new Xcls_MainWindow();
274 w.windowstate.switchState(WindowState.State.FILES);
278 // user defined functions
280 public class Xcls_SeparatorMenuItem7 : Object
282 public Gtk.SeparatorMenuItem el;
283 private Xcls_MainWindow _this;
289 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
292 this.el = new Gtk.SeparatorMenuItem();
296 // set gobject values
299 // user defined functions
301 public class Xcls_MenuItem8 : Object
303 public Gtk.MenuItem el;
304 private Xcls_MainWindow _this;
310 public Xcls_MenuItem8(Xcls_MainWindow _owner )
313 this.el = new Gtk.MenuItem();
317 // set gobject values
318 this.el.label = "Download updated Resources";
321 this.el.activate.connect( ( ) => {
322 Resources.singleton().fetchStart();
326 // user defined functions
328 public class Xcls_MenuItem9 : Object
330 public Gtk.MenuItem el;
331 private Xcls_MainWindow _this;
337 public Xcls_MenuItem9(Xcls_MainWindow _owner )
340 this.el = new Gtk.MenuItem();
344 // set gobject values
345 this.el.label = "About the Builder";
348 this.el.activate.connect( () => {
349 About.singleton().el.show();
353 // user defined functions
355 public class Xcls_Image10 : Object
358 private Xcls_MainWindow _this;
364 public Xcls_Image10(Xcls_MainWindow _owner )
367 this.el = new Gtk.Image();
371 // set gobject values
372 this.el.icon_name = "help-about";
375 // user defined functions
377 public class Xcls_vbox : Object
380 private Xcls_MainWindow _this;
386 public Xcls_vbox(Xcls_MainWindow _owner )
390 this.el = new Gtk.VBox( false, 0 );
394 // set gobject values
395 var child_0 = new Xcls_mainpane( _this );
397 this.el.pack_start ( child_0.el , true,true,0 );
398 var child_1 = new Xcls_HBox66( _this );
400 this.el.pack_end ( child_1.el , false,true,0 );
403 // user defined functions
405 public class Xcls_mainpane : Object
407 public Gtk.HPaned el;
408 private Xcls_MainWindow _this;
412 public int lastWidth;
415 public Xcls_mainpane(Xcls_MainWindow _owner )
418 _this.mainpane = this;
419 this.el = new Gtk.HPaned();
424 // set gobject values
425 this.el.position = 400;
426 var child_0 = new Xcls_leftpane( _this );
428 this.el.add1 ( child_0.el );
429 var child_1 = new Xcls_VBox17( _this );
431 this.el.add2 ( child_1.el );
434 // user defined functions
436 public class Xcls_leftpane : Object
439 private Xcls_MainWindow _this;
445 public Xcls_leftpane(Xcls_MainWindow _owner )
448 _this.leftpane = this;
449 this.el = new Gtk.VBox( true, 0 );
453 // set gobject values
454 var child_0 = new Xcls_editpane( _this );
456 this.el.pack_start ( child_0.el , false,true,0 );
459 // user defined functions
461 public class Xcls_editpane : Object
463 public Gtk.VPaned el;
464 private Xcls_MainWindow _this;
470 public Xcls_editpane(Xcls_MainWindow _owner )
473 _this.editpane = this;
474 this.el = new Gtk.VPaned();
478 // set gobject values
479 var child_0 = new Xcls_tree( _this );
481 this.el.add1 ( child_0.el );
482 var child_1 = new Xcls_props( _this );
484 this.el.add2 ( child_1.el );
487 // user defined functions
489 public class Xcls_tree : Object
492 private Xcls_MainWindow _this;
498 public Xcls_tree(Xcls_MainWindow _owner )
502 this.el = new Gtk.VBox( true, 0 );
506 // set gobject values
509 // user defined functions
511 public class Xcls_props : Object
514 private Xcls_MainWindow _this;
520 public Xcls_props(Xcls_MainWindow _owner )
524 this.el = new Gtk.VBox( true, 0 );
528 // set gobject values
531 // user defined functions
533 public class Xcls_VBox17 : Object
536 private Xcls_MainWindow _this;
542 public Xcls_VBox17(Xcls_MainWindow _owner )
545 this.el = new Gtk.VBox( true, 0 );
549 // set gobject values
550 var child_0 = new Xcls_clutterembed( _this );
552 this.el.pack_start ( child_0.el , true,true,0 );
555 // user defined functions
557 public class Xcls_clutterembed : Object
559 public GtkClutter.Embed el;
560 private Xcls_MainWindow _this;
566 public Xcls_clutterembed(Xcls_MainWindow _owner )
569 _this.clutterembed = this;
570 this.el = new GtkClutter.Embed();
574 // set gobject values
575 var child_0 = new Xcls_rooview( _this );
577 this.el.get_stage().add_child ( child_0.el );
578 var child_1 = new Xcls_objectview( _this );
580 this.el.get_stage().add_child ( child_1.el );
581 var child_2 = new Xcls_codeeditview( _this );
583 this.el.get_stage().add_child ( child_2.el );
584 var child_3 = new Xcls_addpropsview( _this );
586 this.el.get_stage().add_child ( child_3.el );
587 var child_4 = new Xcls_projecteditview( _this );
589 this.el.get_stage().add_child ( child_4.el );
590 var child_5 = new Xcls_buttonlayout( _this );
592 this.el.get_stage().add_child ( child_5.el );
596 var stage = this.el.get_stage();
597 stage.set_background_color( Clutter.Color.from_string("#000"));
600 this.el.size_allocate.connect( ( alloc) => {
601 if (_this.windowstate == null) {
604 _this.windowstate.resizeCanvas();
609 // user defined functions
611 public class Xcls_rooview : Object
613 public GtkClutter.Actor el;
614 private Xcls_MainWindow _this;
620 public Xcls_rooview(Xcls_MainWindow _owner )
623 _this.rooview = this;
624 this.el = new GtkClutter.Actor();
628 // set gobject values
635 this.el.add_constraint(
636 new Clutter.AlignConstraint(
637 _this.clutterembed.el.get_stage(),
638 Clutter.AlignAxis.X_AXIS,
643 //this.el.set_position(100,100);
644 this.el.set_pivot_point(1.0f,1.0f);
646 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
647 _this.clutterembed.el.get_stage().height);
652 // user defined functions
654 public class Xcls_objectview : Object
656 public GtkClutter.Actor el;
657 private Xcls_MainWindow _this;
663 public Xcls_objectview(Xcls_MainWindow _owner )
666 _this.objectview = this;
667 this.el = new GtkClutter.Actor();
671 // set gobject values
678 this.el.add_constraint(
679 new Clutter.AlignConstraint(
680 _this.clutterembed.el.get_stage(),
681 Clutter.AlignAxis.X_AXIS,
686 this.el.fixed_x = 50.0f;
687 this.el.fixed_y = 0.0f;
688 //this.el.set_position(100,100);
689 this.el.set_pivot_point(0.0f,0.0f);
690 this.el.set_scale(0.0f,1.0f);
691 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
692 _this.clutterembed.el.get_stage().height);
697 // user defined functions
699 public class Xcls_codeeditview : Object
701 public GtkClutter.Actor el;
702 private Xcls_MainWindow _this;
708 public Xcls_codeeditview(Xcls_MainWindow _owner )
711 _this.codeeditview = this;
712 this.el = new GtkClutter.Actor();
716 // set gobject values
723 this.el.add_constraint(
724 new Clutter.AlignConstraint(
725 _this.clutterembed.el.get_stage(),
726 Clutter.AlignAxis.X_AXIS,
731 this.el.fixed_x = 50.0f;
732 this.el.fixed_y = 0.0f;
733 //this.el.set_position(100,100);
734 this.el.set_pivot_point(0.0f,0.0f);
735 this.el.set_scale(0.0f,1.0f);
736 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
737 _this.clutterembed.el.get_stage().height);
742 // user defined functions
744 public class Xcls_addpropsview : Object
746 public GtkClutter.Actor el;
747 private Xcls_MainWindow _this;
753 public Xcls_addpropsview(Xcls_MainWindow _owner )
756 _this.addpropsview = this;
757 this.el = new GtkClutter.Actor();
761 // set gobject values
768 this.el.add_constraint(
769 new Clutter.AlignConstraint(
770 _this.clutterembed.el.get_stage(),
771 Clutter.AlignAxis.X_AXIS,
776 this.el.fixed_x = 50.0f;
777 this.el.fixed_y = 0.0f;
778 //this.el.set_position(100,100);
779 this.el.set_pivot_point(0.0f,0.0f);
780 this.el.set_scale(0.0f,1.0f);
781 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
782 _this.clutterembed.el.get_stage().height);
787 // user defined functions
789 public class Xcls_projecteditview : Object
791 public GtkClutter.Actor el;
792 private Xcls_MainWindow _this;
798 public Xcls_projecteditview(Xcls_MainWindow _owner )
801 _this.projecteditview = this;
802 this.el = new GtkClutter.Actor();
806 // set gobject values
813 this.el.add_constraint(
814 new Clutter.AlignConstraint(
815 _this.clutterembed.el.get_stage(),
816 Clutter.AlignAxis.X_AXIS,
821 //this.el.set_position(100,100);
822 this.el.set_pivot_point(0.0f,0.0f);
823 this.el.set_scale(1.0f,0.0f);
824 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
825 _this.clutterembed.el.get_stage().height /2);
830 // user defined functions
832 public class Xcls_buttonlayout : Object
834 public Clutter.Actor el;
835 private Xcls_MainWindow _this;
841 public Xcls_buttonlayout(Xcls_MainWindow _owner )
844 _this.buttonlayout = this;
845 this.el = new Clutter.Actor();
849 // set gobject values
850 var child_0 = new Xcls_BoxLayout25( _this );
852 this.el.layout_manager = child_0.el;
853 var child_1 = new Xcls_backbutton( _this );
855 this.el.add_child ( child_1.el );
856 var child_2 = new Xcls_projectbutton( _this );
858 this.el.add_child ( child_2.el );
859 var child_3 = new Xcls_editfilebutton( _this );
861 this.el.add_child ( child_3.el );
862 var child_4 = new Xcls_projecteditbutton( _this );
864 this.el.add_child ( child_4.el );
865 var child_5 = new Xcls_objectshowbutton( _this );
867 this.el.add_child ( child_5.el );
868 var child_6 = new Xcls_addpropbutton( _this );
870 this.el.add_child ( child_6.el );
871 var child_7 = new Xcls_addlistenerbutton( _this );
873 this.el.add_child ( child_7.el );
874 var child_8 = new Xcls_addprojectbutton( _this );
876 this.el.add_child ( child_8.el );
877 var child_9 = new Xcls_addfilebutton( _this );
879 this.el.add_child ( child_9.el );
880 var child_10 = new Xcls_delprojectbutton( _this );
882 this.el.add_child ( child_10.el );
888 this.el.add_constraint(
889 new Clutter.AlignConstraint(
890 _this.clutterembed.el.get_stage(),
891 Clutter.AlignAxis.X_AXIS,
897 //this.el.set_position(100,100);
898 this.el.set_pivot_point(0.5f,0.5f);
900 _this.clutterembed.el.get_stage().height);
905 // user defined functions
907 public class Xcls_BoxLayout25 : Object
909 public Clutter.BoxLayout el;
910 private Xcls_MainWindow _this;
916 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
919 this.el = new Clutter.BoxLayout();
923 // set gobject values
924 this.el.orientation = Clutter.Orientation.VERTICAL;
927 // user defined functions
929 public class Xcls_backbutton : Object
931 public Clutter.Actor el;
932 private Xcls_MainWindow _this;
938 public Xcls_backbutton(Xcls_MainWindow _owner )
941 _this.backbutton = this;
942 this.el = new Clutter.Actor();
946 // set gobject values
947 var child_0 = new Xcls_Actor27( _this );
949 this.el.add_child ( child_0.el );
953 this.el.set_size(50,50);
956 // user defined functions
958 public class Xcls_Actor27 : Object
960 public GtkClutter.Actor el;
961 private Xcls_MainWindow _this;
967 public Xcls_Actor27(Xcls_MainWindow _owner )
970 this.el = new GtkClutter.Actor();
974 // set gobject values
975 var child_0 = new Xcls_Button28( _this );
980 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
983 // user defined functions
985 public class Xcls_Button28 : Object
987 public Gtk.Button el;
988 private Xcls_MainWindow _this;
994 public Xcls_Button28(Xcls_MainWindow _owner )
997 this.el = new Gtk.Button();
1001 // set gobject values
1002 this.el.width_request = 50;
1003 this.el.height_request = 50;
1004 this.el.tooltip_text = "Back";
1005 var child_0 = new Xcls_Image29( _this );
1007 this.el.set_image ( child_0.el );
1010 this.el.clicked.connect( ( ) => {
1012 _this.windowstate.switchState(WindowState.State.PREVIEW);
1018 // user defined functions
1020 public class Xcls_Image29 : Object
1022 public Gtk.Image el;
1023 private Xcls_MainWindow _this;
1029 public Xcls_Image29(Xcls_MainWindow _owner )
1032 this.el = new Gtk.Image();
1036 // set gobject values
1037 this.el.icon_name = "go-previous";
1040 // user defined functions
1042 public class Xcls_projectbutton : Object
1044 public Clutter.Actor el;
1045 private Xcls_MainWindow _this;
1051 public Xcls_projectbutton(Xcls_MainWindow _owner )
1054 _this.projectbutton = this;
1055 this.el = new Clutter.Actor();
1059 // set gobject values
1060 var child_0 = new Xcls_Actor31( _this );
1062 this.el.add_child ( child_0.el );
1066 this.el.set_size(50,50);
1069 // user defined functions
1071 public class Xcls_Actor31 : Object
1073 public GtkClutter.Actor el;
1074 private Xcls_MainWindow _this;
1080 public Xcls_Actor31(Xcls_MainWindow _owner )
1083 this.el = new GtkClutter.Actor();
1087 // set gobject values
1088 var child_0 = new Xcls_Button32( _this );
1093 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1096 // user defined functions
1098 public class Xcls_Button32 : Object
1100 public Gtk.Button el;
1101 private Xcls_MainWindow _this;
1107 public Xcls_Button32(Xcls_MainWindow _owner )
1110 this.el = new Gtk.Button();
1114 // set gobject values
1115 this.el.width_request = 50;
1116 this.el.height_request = 50;
1117 var child_0 = new Xcls_Image33( _this );
1119 this.el.set_image ( child_0.el );
1122 this.el.clicked.connect( ( ) => {
1123 _this.windowstate.switchState(WindowState.State.FILES);
1129 // user defined functions
1131 public class Xcls_Image33 : Object
1133 public Gtk.Image el;
1134 private Xcls_MainWindow _this;
1140 public Xcls_Image33(Xcls_MainWindow _owner )
1143 this.el = new Gtk.Image();
1147 // set gobject values
1148 this.el.icon_name = "document-open";
1151 // user defined functions
1153 public class Xcls_editfilebutton : Object
1155 public Clutter.Actor el;
1156 private Xcls_MainWindow _this;
1162 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1165 _this.editfilebutton = this;
1166 this.el = new Clutter.Actor();
1170 // set gobject values
1171 var child_0 = new Xcls_Actor35( _this );
1173 this.el.add_child ( child_0.el );
1177 this.el.set_size(50.0f,50.0f);
1180 // user defined functions
1182 public class Xcls_Actor35 : Object
1184 public GtkClutter.Actor el;
1185 private Xcls_MainWindow _this;
1191 public Xcls_Actor35(Xcls_MainWindow _owner )
1194 this.el = new GtkClutter.Actor();
1198 // set gobject values
1199 var child_0 = new Xcls_Button36( _this );
1204 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1207 // user defined functions
1209 public class Xcls_Button36 : Object
1211 public Gtk.Button el;
1212 private Xcls_MainWindow _this;
1218 public Xcls_Button36(Xcls_MainWindow _owner )
1221 this.el = new Gtk.Button();
1225 // set gobject values
1226 this.el.width_request = 50;
1227 this.el.height_request = 50;
1228 this.el.tooltip_text = "File Details";
1229 var child_0 = new Xcls_Image37( _this );
1231 this.el.set_image ( child_0.el );
1234 this.el.clicked.connect( ( ) => {
1236 // create a new file in project..
1237 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1240 _this.windowstate.file_details.show(
1241 _this.windowstate.left_tree.model.file, this.el
1250 // user defined functions
1252 public class Xcls_Image37 : Object
1254 public Gtk.Image el;
1255 private Xcls_MainWindow _this;
1261 public Xcls_Image37(Xcls_MainWindow _owner )
1264 this.el = new Gtk.Image();
1268 // set gobject values
1269 this.el.icon_name = "document-properties";
1272 // user defined functions
1274 public class Xcls_projecteditbutton : Object
1276 public Clutter.Actor el;
1277 private Xcls_MainWindow _this;
1283 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1286 _this.projecteditbutton = this;
1287 this.el = new Clutter.Actor();
1291 // set gobject values
1292 var child_0 = new Xcls_Actor39( _this );
1294 this.el.add_child ( child_0.el );
1298 this.el.set_size(50,50);
1301 // user defined functions
1303 public class Xcls_Actor39 : Object
1305 public GtkClutter.Actor el;
1306 private Xcls_MainWindow _this;
1312 public Xcls_Actor39(Xcls_MainWindow _owner )
1315 this.el = new GtkClutter.Actor();
1319 // set gobject values
1320 var child_0 = new Xcls_Button40( _this );
1325 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1328 // user defined functions
1330 public class Xcls_Button40 : Object
1332 public Gtk.Button el;
1333 private Xcls_MainWindow _this;
1339 public Xcls_Button40(Xcls_MainWindow _owner )
1342 this.el = new Gtk.Button();
1346 // set gobject values
1347 this.el.width_request = 50;
1348 this.el.height_request = 50;
1349 this.el.tooltip_text = "Project Details";
1350 var child_0 = new Xcls_Image41( _this );
1352 this.el.set_image ( child_0.el );
1355 this.el.clicked.connect( ( ) => {
1356 _this.windowstate.switchState(WindowState.State.PROJECT);
1363 // user defined functions
1365 public class Xcls_Image41 : Object
1367 public Gtk.Image el;
1368 private Xcls_MainWindow _this;
1374 public Xcls_Image41(Xcls_MainWindow _owner )
1377 this.el = new Gtk.Image();
1381 // set gobject values
1382 this.el.icon_name = "emblem-system";
1385 // user defined functions
1387 public class Xcls_objectshowbutton : Object
1389 public Clutter.Actor el;
1390 private Xcls_MainWindow _this;
1396 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1399 _this.objectshowbutton = this;
1400 this.el = new Clutter.Actor();
1404 // set gobject values
1405 var child_0 = new Xcls_Actor43( _this );
1407 this.el.add_child ( child_0.el );
1411 this.el.set_size(50,50);
1414 this.el.enter_event.connect( ( event) => {
1415 this.el.background_color = new Clutter.Color.from_string("#333");
1418 this.el.leave_event.connect( ( event) => {
1419 this.el.background_color = new Clutter.Color.from_string("#000");
1424 // user defined functions
1426 public class Xcls_Actor43 : Object
1428 public GtkClutter.Actor el;
1429 private Xcls_MainWindow _this;
1435 public Xcls_Actor43(Xcls_MainWindow _owner )
1438 this.el = new GtkClutter.Actor();
1442 // set gobject values
1443 var child_0 = new Xcls_Button44( _this );
1448 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1451 // user defined functions
1453 public class Xcls_Button44 : Object
1455 public Gtk.Button el;
1456 private Xcls_MainWindow _this;
1462 public Xcls_Button44(Xcls_MainWindow _owner )
1465 this.el = new Gtk.Button();
1469 // set gobject values
1470 this.el.width_request = 50;
1471 this.el.height_request = 50;
1472 this.el.tooltip_text = "Add Child Element";
1473 var child_0 = new Xcls_Image45( _this );
1475 this.el.set_image ( child_0.el );
1478 this.el.clicked.connect( ( ) => {
1480 _this.windowstate.switchState(WindowState.State.OBJECT);
1486 // user defined functions
1488 public class Xcls_Image45 : Object
1490 public Gtk.Image el;
1491 private Xcls_MainWindow _this;
1497 public Xcls_Image45(Xcls_MainWindow _owner )
1500 this.el = new Gtk.Image();
1504 // set gobject values
1505 this.el.icon_name = "list-add";
1508 // user defined functions
1510 public class Xcls_addpropbutton : Object
1512 public Clutter.Actor el;
1513 private Xcls_MainWindow _this;
1519 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1522 _this.addpropbutton = this;
1523 this.el = new Clutter.Actor();
1527 // set gobject values
1528 var child_0 = new Xcls_Actor47( _this );
1530 this.el.add_child ( child_0.el );
1534 this.el.set_size(50,50);
1537 // user defined functions
1539 public class Xcls_Actor47 : Object
1541 public GtkClutter.Actor el;
1542 private Xcls_MainWindow _this;
1548 public Xcls_Actor47(Xcls_MainWindow _owner )
1551 this.el = new GtkClutter.Actor();
1555 // set gobject values
1556 var child_0 = new Xcls_Button48( _this );
1561 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1564 // user defined functions
1566 public class Xcls_Button48 : Object
1568 public Gtk.Button el;
1569 private Xcls_MainWindow _this;
1575 public Xcls_Button48(Xcls_MainWindow _owner )
1578 this.el = new Gtk.Button();
1582 // set gobject values
1583 this.el.width_request = 50;
1584 this.el.height_request = 50;
1585 this.el.tooltip_text = "Add Property";
1586 var child_0 = new Xcls_Image49( _this );
1588 this.el.set_image ( child_0.el );
1591 this.el.clicked.connect( ( ) => {
1593 _this.windowstate.switchState(WindowState.State.PROP);
1599 // user defined functions
1601 public class Xcls_Image49 : Object
1603 public Gtk.Image el;
1604 private Xcls_MainWindow _this;
1610 public Xcls_Image49(Xcls_MainWindow _owner )
1613 this.el = new Gtk.Image();
1617 // set gobject values
1618 this.el.icon_name = "format-justify-left";
1621 // user defined functions
1623 public class Xcls_addlistenerbutton : Object
1625 public Clutter.Actor el;
1626 private Xcls_MainWindow _this;
1632 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1635 _this.addlistenerbutton = this;
1636 this.el = new Clutter.Actor();
1640 // set gobject values
1641 var child_0 = new Xcls_Actor51( _this );
1643 this.el.add_child ( child_0.el );
1647 this.el.set_size(50,50);
1650 // user defined functions
1652 public class Xcls_Actor51 : Object
1654 public GtkClutter.Actor el;
1655 private Xcls_MainWindow _this;
1661 public Xcls_Actor51(Xcls_MainWindow _owner )
1664 this.el = new GtkClutter.Actor();
1668 // set gobject values
1669 var child_0 = new Xcls_Button52( _this );
1674 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1677 // user defined functions
1679 public class Xcls_Button52 : Object
1681 public Gtk.Button el;
1682 private Xcls_MainWindow _this;
1688 public Xcls_Button52(Xcls_MainWindow _owner )
1691 this.el = new Gtk.Button();
1695 // set gobject values
1696 this.el.width_request = 50;
1697 this.el.height_request = 50;
1698 this.el.tooltip_text = "Add Event Code";
1699 var child_0 = new Xcls_Image53( _this );
1701 this.el.set_image ( child_0.el );
1704 this.el.clicked.connect( ( ) => {
1706 _this.windowstate.switchState(WindowState.State.LISTENER);
1713 // user defined functions
1715 public class Xcls_Image53 : Object
1717 public Gtk.Image el;
1718 private Xcls_MainWindow _this;
1724 public Xcls_Image53(Xcls_MainWindow _owner )
1727 this.el = new Gtk.Image();
1731 // set gobject values
1732 this.el.icon_name = "appointment-new";
1735 // user defined functions
1737 public class Xcls_addprojectbutton : Object
1739 public Clutter.Actor el;
1740 private Xcls_MainWindow _this;
1746 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1749 _this.addprojectbutton = this;
1750 this.el = new Clutter.Actor();
1754 // set gobject values
1755 var child_0 = new Xcls_Actor55( _this );
1757 this.el.add_child ( child_0.el );
1761 this.el.set_size(50.0f,50.0f);
1764 // user defined functions
1766 public class Xcls_Actor55 : Object
1768 public GtkClutter.Actor el;
1769 private Xcls_MainWindow _this;
1775 public Xcls_Actor55(Xcls_MainWindow _owner )
1778 this.el = new GtkClutter.Actor();
1782 // set gobject values
1783 var child_0 = new Xcls_Button56( _this );
1788 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1791 // user defined functions
1793 public class Xcls_Button56 : Object
1795 public Gtk.Button el;
1796 private Xcls_MainWindow _this;
1802 public Xcls_Button56(Xcls_MainWindow _owner )
1805 this.el = new Gtk.Button();
1809 // set gobject values
1810 this.el.width_request = 50;
1811 this.el.height_request = 50;
1812 this.el.tooltip_text = "New\nProj.";
1813 var child_0 = new Xcls_Image57( _this );
1815 this.el.set_image ( child_0.el );
1818 this.el.clicked.connect( ( ) => {
1820 // create a new file in project..
1821 //Xcls_DialogNewComponent.singleton().show(
1822 var pe = Xcls_EditProject.singleton();
1823 pe.el.set_transient_for(_this.el);
1824 pe.el.set_modal(true);
1833 _this.windowstate.left_projects.is_loaded = false;
1834 _this.windowstate.left_projects.load();
1835 _this.windowstate.left_projects.selectProject(p);
1842 // user defined functions
1844 public class Xcls_Image57 : Object
1846 public Gtk.Image el;
1847 private Xcls_MainWindow _this;
1853 public Xcls_Image57(Xcls_MainWindow _owner )
1856 this.el = new Gtk.Image();
1860 // set gobject values
1861 this.el.icon_name = "folder-new";
1864 // user defined functions
1866 public class Xcls_addfilebutton : Object
1868 public Clutter.Actor el;
1869 private Xcls_MainWindow _this;
1875 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1878 _this.addfilebutton = this;
1879 this.el = new Clutter.Actor();
1883 // set gobject values
1884 var child_0 = new Xcls_Actor59( _this );
1886 this.el.add_child ( child_0.el );
1890 this.el.set_size(50.0f,50.0f);
1893 // user defined functions
1895 public class Xcls_Actor59 : Object
1897 public GtkClutter.Actor el;
1898 private Xcls_MainWindow _this;
1904 public Xcls_Actor59(Xcls_MainWindow _owner )
1907 this.el = new GtkClutter.Actor();
1911 // set gobject values
1912 var child_0 = new Xcls_Button60( _this );
1917 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1920 // user defined functions
1922 public class Xcls_Button60 : Object
1924 public Gtk.Button el;
1925 private Xcls_MainWindow _this;
1931 public Xcls_Button60(Xcls_MainWindow _owner )
1934 this.el = new Gtk.Button();
1938 // set gobject values
1939 this.el.width_request = 50;
1940 this.el.height_request = 50;
1941 this.el.tooltip_text = "Add File";
1942 var child_0 = new Xcls_Image61( _this );
1944 this.el.set_image ( child_0.el );
1947 this.el.clicked.connect( () => {
1948 // create a new file in project..
1950 // what's the currently selected project...
1951 var proj = _this.windowstate.left_projects.getSelectedProject();
1959 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1960 _this.project = proj;
1962 _this.windowstate.file_details.show(
1971 // user defined functions
1973 public class Xcls_Image61 : Object
1975 public Gtk.Image el;
1976 private Xcls_MainWindow _this;
1982 public Xcls_Image61(Xcls_MainWindow _owner )
1985 this.el = new Gtk.Image();
1989 // set gobject values
1990 this.el.icon_name = "document-new";
1993 // user defined functions
1995 public class Xcls_delprojectbutton : Object
1997 public Clutter.Actor el;
1998 private Xcls_MainWindow _this;
2004 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2007 _this.delprojectbutton = this;
2008 this.el = new Clutter.Actor();
2012 // set gobject values
2013 var child_0 = new Xcls_Actor63( _this );
2015 this.el.add_child ( child_0.el );
2019 this.el.set_size(50,50);
2022 // user defined functions
2024 public class Xcls_Actor63 : Object
2026 public GtkClutter.Actor el;
2027 private Xcls_MainWindow _this;
2033 public Xcls_Actor63(Xcls_MainWindow _owner )
2036 this.el = new GtkClutter.Actor();
2040 // set gobject values
2041 var child_0 = new Xcls_Button64( _this );
2046 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2049 // user defined functions
2051 public class Xcls_Button64 : Object
2053 public Gtk.Button el;
2054 private Xcls_MainWindow _this;
2060 public Xcls_Button64(Xcls_MainWindow _owner )
2063 this.el = new Gtk.Button();
2067 // set gobject values
2068 this.el.width_request = 50;
2069 this.el.height_request = 50;
2070 this.el.tooltip_text = "Delete Project";
2071 var child_0 = new Xcls_Image65( _this );
2073 this.el.set_image ( child_0.el );
2076 this.el.clicked.connect( ( ) => {
2078 var cd = DialogConfirm.singleton();
2079 cd.el.set_transient_for(_this.el);
2080 cd.el.set_modal(true);
2082 var project = _this.windowstate.left_projects.getSelectedProject();
2083 if (project == null) {
2084 print("SKIP - no project\n");
2089 if (Gtk.ResponseType.YES != cd.show("Confirm",
2090 "Are you sure you want to delete project %s".printf(project.name))) {
2096 Project.Project.remove(project);
2097 _this.project = null;
2099 _this.windowstate.left_projects.is_loaded = false;
2100 _this.windowstate.left_projects.load();
2101 _this.windowstate.clutterfiles.clearFiles();
2106 // user defined functions
2108 public class Xcls_Image65 : Object
2110 public Gtk.Image el;
2111 private Xcls_MainWindow _this;
2117 public Xcls_Image65(Xcls_MainWindow _owner )
2120 this.el = new Gtk.Image();
2124 // set gobject values
2125 this.el.icon_name = "user-trash";
2128 // user defined functions
2130 public class Xcls_HBox66 : Object
2133 private Xcls_MainWindow _this;
2139 public Xcls_HBox66(Xcls_MainWindow _owner )
2142 this.el = new Gtk.HBox( false, 0 );
2146 // set gobject values
2147 var child_0 = new Xcls_statusbar( _this );
2149 this.el.pack_start ( child_0.el , true,true,0 );
2150 var child_1 = new Xcls_MenuBar68( _this );
2152 this.el.pack_end ( child_1.el , false,true,0 );
2155 // user defined functions
2157 public class Xcls_statusbar : Object
2159 public Gtk.ProgressBar el;
2160 private Xcls_MainWindow _this;
2164 public ulong handler_id;
2167 public Xcls_statusbar(Xcls_MainWindow _owner )
2170 _this.statusbar = this;
2171 this.el = new Gtk.ProgressBar();
2174 this.handler_id = -1;
2176 // set gobject values
2177 this.el.show_text = true;
2182 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2185 _this.mainpane.el.set_sensitive(true);
2189 _this.mainpane.el.set_sensitive(false);
2191 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2192 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2198 // user defined functions
2200 public class Xcls_MenuBar68 : Object
2202 public Gtk.MenuBar el;
2203 private Xcls_MainWindow _this;
2209 public Xcls_MenuBar68(Xcls_MainWindow _owner )
2212 this.el = new Gtk.MenuBar();
2216 // set gobject values
2217 var child_0 = new Xcls_statusbar_errors( _this );
2219 this.el.add ( child_0.el );
2220 var child_1 = new Xcls_statusbar_warnings( _this );
2222 this.el.add ( child_1.el );
2223 var child_2 = new Xcls_statusbar_depricated( _this );
2225 this.el.add ( child_2.el );
2228 // user defined functions
2230 public class Xcls_statusbar_errors : Object
2232 public Gtk.ImageMenuItem el;
2233 private Xcls_MainWindow _this;
2239 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2242 _this.statusbar_errors = this;
2243 this.el = new Gtk.ImageMenuItem();
2247 // set gobject values
2248 this.el.always_show_image = true;
2249 this.el.label = "Errors";
2250 var child_0 = new Xcls_Image70( _this );
2252 this.el.set_image ( child_0.el );
2255 // user defined functions
2257 public class Xcls_Image70 : Object
2259 public Gtk.Image el;
2260 private Xcls_MainWindow _this;
2266 public Xcls_Image70(Xcls_MainWindow _owner )
2269 this.el = new Gtk.Image();
2273 // set gobject values
2274 this.el.icon_name = "dialog-error";
2277 // user defined functions
2279 public class Xcls_statusbar_warnings : Object
2281 public Gtk.ImageMenuItem el;
2282 private Xcls_MainWindow _this;
2288 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2291 _this.statusbar_warnings = this;
2292 this.el = new Gtk.ImageMenuItem();
2296 // set gobject values
2297 this.el.always_show_image = true;
2298 this.el.label = "Warnings";
2299 var child_0 = new Xcls_Image72( _this );
2301 this.el.set_image ( child_0.el );
2304 // user defined functions
2306 public class Xcls_Image72 : Object
2308 public Gtk.Image el;
2309 private Xcls_MainWindow _this;
2315 public Xcls_Image72(Xcls_MainWindow _owner )
2318 this.el = new Gtk.Image();
2322 // set gobject values
2323 this.el.icon_name = "dialog-warning";
2326 // user defined functions
2328 public class Xcls_statusbar_depricated : Object
2330 public Gtk.ImageMenuItem el;
2331 private Xcls_MainWindow _this;
2337 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2340 _this.statusbar_depricated = this;
2341 this.el = new Gtk.ImageMenuItem();
2345 // set gobject values
2346 this.el.always_show_image = true;
2347 this.el.label = "Depricated";
2348 var child_0 = new Xcls_Image74( _this );
2350 this.el.set_image ( child_0.el );
2353 // user defined functions
2355 public class Xcls_Image74 : Object
2357 public Gtk.Image el;
2358 private Xcls_MainWindow _this;
2364 public Xcls_Image74(Xcls_MainWindow _owner )
2367 this.el = new Gtk.Image();
2371 // set gobject values
2372 this.el.icon_name = "dialog-information";
2375 // user defined functions