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_errors statusbar_errors;
43 public Xcls_statusbar_warnings statusbar_warnings;
44 public Xcls_statusbar_depricated statusbar_depricated;
47 public Project.Project project;
49 public int no_windows;
50 public WindowState windowstate;
53 public Xcls_MainWindow()
56 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
60 this.title = "Application Builder";
62 this.windowstate = null;
65 this.el.border_width = 0;
66 this.el.default_height = 500;
67 this.el.default_width = 800;
68 var child_0 = new Xcls_headerbar( _this );
70 this.el.set_titlebar ( child_0.el );
71 var child_1 = new Xcls_vbox( _this );
73 this.el.add ( child_1.el );
80 this.el.delete_event.connect( ( event) => {
83 this.el.destroy.connect( () => {
84 Xcls_MainWindow.singleton().no_windows--;
86 Resources.singleton().disconnect(_this.statusbar.handler_id);
89 if (Xcls_MainWindow.singleton().no_windows < 1) {
94 this.el.show.connect( ( ) => {
95 // hide the file editing..
97 //this.hideViewEditing();
98 _this.statusbar.el.hide();
99 _this.statusbar_errors.el.hide();
100 _this.statusbar_warnings.el.hide();
101 _this.statusbar_depricated.el.hide();
104 Resources.singleton().checkResources();
109 // user defined functions
110 public void initChildren () {
111 // this needs putting in a better place..
112 this.windowstate = new WindowState(this);
116 var tl = new Clutter.Timeline(6000);
117 tl.set_repeat_count(-1);
126 public void show () {
131 public void setTitle (string str) {
132 this.headerbar.el.set_title(this.title + " - " + str);
134 public class Xcls_headerbar : Object
136 public Gtk.HeaderBar el;
137 private Xcls_MainWindow _this;
143 public Xcls_headerbar(Xcls_MainWindow _owner )
146 _this.headerbar = this;
147 this.el = new Gtk.HeaderBar();
151 // set gobject values
152 this.el.title = "Application Builder";
153 this.el.show_close_button = true;
154 var child_0 = new Xcls_HBox3( _this );
156 this.el.pack_start ( child_0.el );
159 // user defined functions
161 public class Xcls_HBox3 : Object
164 private Xcls_MainWindow _this;
170 public Xcls_HBox3(Xcls_MainWindow _owner )
173 this.el = new Gtk.HBox( true, 0 );
177 // set gobject values
178 var child_0 = new Xcls_MenuButton4( _this );
180 this.el.add ( child_0.el );
183 // user defined functions
185 public class Xcls_MenuButton4 : Object
187 public Gtk.MenuButton el;
188 private Xcls_MainWindow _this;
194 public Xcls_MenuButton4(Xcls_MainWindow _owner )
197 this.el = new Gtk.MenuButton();
201 // set gobject values
202 this.el.use_popover = false;
203 var child_0 = new Xcls_topbarmenu( _this );
205 this.el.set_popup ( child_0.el );
206 var child_1 = new Xcls_Image10( _this );
208 this.el.set_image ( child_1.el );
211 // user defined functions
213 public class Xcls_topbarmenu : Object
216 private Xcls_MainWindow _this;
222 public Xcls_topbarmenu(Xcls_MainWindow _owner )
225 _this.topbarmenu = this;
226 this.el = new Gtk.Menu();
230 // set gobject values
231 var child_0 = new Xcls_MenuItem6( _this );
233 this.el.append ( child_0.el );
234 var child_1 = new Xcls_SeparatorMenuItem7( _this );
236 this.el.append ( child_1.el );
237 var child_2 = new Xcls_MenuItem8( _this );
239 this.el.append ( child_2.el );
240 var child_3 = new Xcls_MenuItem9( _this );
242 this.el.append ( child_3.el );
251 // user defined functions
253 public class Xcls_MenuItem6 : Object
255 public Gtk.MenuItem el;
256 private Xcls_MainWindow _this;
262 public Xcls_MenuItem6(Xcls_MainWindow _owner )
265 this.el = new Gtk.MenuItem();
269 // set gobject values
270 this.el.label = "Open a new Window";
273 this.el.activate.connect( ( ) => {
274 Xcls_MainWindow.singleton().no_windows++;
275 var w = new Xcls_MainWindow();
280 w.windowstate.switchState(WindowState.State.FILES);
284 // user defined functions
286 public class Xcls_SeparatorMenuItem7 : Object
288 public Gtk.SeparatorMenuItem el;
289 private Xcls_MainWindow _this;
295 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
298 this.el = new Gtk.SeparatorMenuItem();
302 // set gobject values
305 // user defined functions
307 public class Xcls_MenuItem8 : Object
309 public Gtk.MenuItem el;
310 private Xcls_MainWindow _this;
316 public Xcls_MenuItem8(Xcls_MainWindow _owner )
319 this.el = new Gtk.MenuItem();
323 // set gobject values
324 this.el.label = "Download updated Resources";
327 this.el.activate.connect( ( ) => {
328 Resources.singleton().fetchStart();
332 // user defined functions
334 public class Xcls_MenuItem9 : Object
336 public Gtk.MenuItem el;
337 private Xcls_MainWindow _this;
343 public Xcls_MenuItem9(Xcls_MainWindow _owner )
346 this.el = new Gtk.MenuItem();
350 // set gobject values
351 this.el.label = "About the Builder";
354 this.el.activate.connect( () => {
355 About.singleton().el.show();
359 // user defined functions
361 public class Xcls_Image10 : Object
364 private Xcls_MainWindow _this;
370 public Xcls_Image10(Xcls_MainWindow _owner )
373 this.el = new Gtk.Image();
377 // set gobject values
378 this.el.icon_name = "help-about";
381 // user defined functions
383 public class Xcls_vbox : Object
386 private Xcls_MainWindow _this;
392 public Xcls_vbox(Xcls_MainWindow _owner )
396 this.el = new Gtk.VBox( false, 0 );
400 // set gobject values
401 var child_0 = new Xcls_mainpane( _this );
403 this.el.pack_start ( child_0.el , true,true,0 );
404 var child_1 = new Xcls_HBox66( _this );
406 this.el.pack_end ( child_1.el , false,true,0 );
409 // user defined functions
411 public class Xcls_mainpane : Object
413 public Gtk.HPaned el;
414 private Xcls_MainWindow _this;
418 public int lastWidth;
421 public Xcls_mainpane(Xcls_MainWindow _owner )
424 _this.mainpane = this;
425 this.el = new Gtk.HPaned();
430 // set gobject values
431 this.el.position = 400;
432 var child_0 = new Xcls_leftpane( _this );
434 this.el.add1 ( child_0.el );
435 var child_1 = new Xcls_VBox17( _this );
437 this.el.add2 ( child_1.el );
440 // user defined functions
442 public class Xcls_leftpane : Object
445 private Xcls_MainWindow _this;
451 public Xcls_leftpane(Xcls_MainWindow _owner )
454 _this.leftpane = this;
455 this.el = new Gtk.VBox( true, 0 );
459 // set gobject values
460 var child_0 = new Xcls_editpane( _this );
462 this.el.pack_start ( child_0.el , false,true,0 );
465 // user defined functions
467 public class Xcls_editpane : Object
469 public Gtk.VPaned el;
470 private Xcls_MainWindow _this;
476 public Xcls_editpane(Xcls_MainWindow _owner )
479 _this.editpane = this;
480 this.el = new Gtk.VPaned();
484 // set gobject values
485 var child_0 = new Xcls_tree( _this );
487 this.el.add1 ( child_0.el );
488 var child_1 = new Xcls_props( _this );
490 this.el.add2 ( child_1.el );
493 // user defined functions
495 public class Xcls_tree : Object
498 private Xcls_MainWindow _this;
504 public Xcls_tree(Xcls_MainWindow _owner )
508 this.el = new Gtk.VBox( true, 0 );
512 // set gobject values
515 // user defined functions
517 public class Xcls_props : Object
520 private Xcls_MainWindow _this;
526 public Xcls_props(Xcls_MainWindow _owner )
530 this.el = new Gtk.VBox( true, 0 );
534 // set gobject values
537 // user defined functions
539 public class Xcls_VBox17 : Object
542 private Xcls_MainWindow _this;
548 public Xcls_VBox17(Xcls_MainWindow _owner )
551 this.el = new Gtk.VBox( true, 0 );
555 // set gobject values
556 var child_0 = new Xcls_clutterembed( _this );
558 this.el.pack_start ( child_0.el , true,true,0 );
561 // user defined functions
563 public class Xcls_clutterembed : Object
565 public GtkClutter.Embed el;
566 private Xcls_MainWindow _this;
572 public Xcls_clutterembed(Xcls_MainWindow _owner )
575 _this.clutterembed = this;
576 this.el = new GtkClutter.Embed();
580 // set gobject values
581 var child_0 = new Xcls_rooview( _this );
583 this.el.get_stage().add_child ( child_0.el );
584 var child_1 = new Xcls_objectview( _this );
586 this.el.get_stage().add_child ( child_1.el );
587 var child_2 = new Xcls_codeeditview( _this );
589 this.el.get_stage().add_child ( child_2.el );
590 var child_3 = new Xcls_addpropsview( _this );
592 this.el.get_stage().add_child ( child_3.el );
593 var child_4 = new Xcls_projecteditview( _this );
595 this.el.get_stage().add_child ( child_4.el );
596 var child_5 = new Xcls_buttonlayout( _this );
598 this.el.get_stage().add_child ( child_5.el );
602 var stage = this.el.get_stage();
603 stage.set_background_color( Clutter.Color.from_string("#000"));
606 this.el.size_allocate.connect( ( alloc) => {
607 if (_this.windowstate == null) {
610 _this.windowstate.resizeCanvas();
615 // user defined functions
617 public class Xcls_rooview : Object
619 public GtkClutter.Actor el;
620 private Xcls_MainWindow _this;
626 public Xcls_rooview(Xcls_MainWindow _owner )
629 _this.rooview = this;
630 this.el = new GtkClutter.Actor();
634 // set gobject values
641 this.el.add_constraint(
642 new Clutter.AlignConstraint(
643 _this.clutterembed.el.get_stage(),
644 Clutter.AlignAxis.X_AXIS,
649 //this.el.set_position(100,100);
650 this.el.set_pivot_point(1.0f,1.0f);
652 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
653 _this.clutterembed.el.get_stage().height);
658 // user defined functions
660 public class Xcls_objectview : Object
662 public GtkClutter.Actor el;
663 private Xcls_MainWindow _this;
669 public Xcls_objectview(Xcls_MainWindow _owner )
672 _this.objectview = this;
673 this.el = new GtkClutter.Actor();
677 // set gobject values
684 this.el.add_constraint(
685 new Clutter.AlignConstraint(
686 _this.clutterembed.el.get_stage(),
687 Clutter.AlignAxis.X_AXIS,
692 this.el.fixed_x = 50.0f;
693 this.el.fixed_y = 0.0f;
694 //this.el.set_position(100,100);
695 this.el.set_pivot_point(0.0f,0.0f);
696 this.el.set_scale(0.0f,1.0f);
697 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
698 _this.clutterembed.el.get_stage().height);
703 // user defined functions
705 public class Xcls_codeeditview : Object
707 public GtkClutter.Actor el;
708 private Xcls_MainWindow _this;
714 public Xcls_codeeditview(Xcls_MainWindow _owner )
717 _this.codeeditview = this;
718 this.el = new GtkClutter.Actor();
722 // set gobject values
729 this.el.add_constraint(
730 new Clutter.AlignConstraint(
731 _this.clutterembed.el.get_stage(),
732 Clutter.AlignAxis.X_AXIS,
737 this.el.fixed_x = 50.0f;
738 this.el.fixed_y = 0.0f;
739 //this.el.set_position(100,100);
740 this.el.set_pivot_point(0.0f,0.0f);
741 this.el.set_scale(0.0f,1.0f);
742 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
743 _this.clutterembed.el.get_stage().height);
748 // user defined functions
750 public class Xcls_addpropsview : Object
752 public GtkClutter.Actor el;
753 private Xcls_MainWindow _this;
759 public Xcls_addpropsview(Xcls_MainWindow _owner )
762 _this.addpropsview = this;
763 this.el = new GtkClutter.Actor();
767 // set gobject values
774 this.el.add_constraint(
775 new Clutter.AlignConstraint(
776 _this.clutterembed.el.get_stage(),
777 Clutter.AlignAxis.X_AXIS,
782 this.el.fixed_x = 50.0f;
783 this.el.fixed_y = 0.0f;
784 //this.el.set_position(100,100);
785 this.el.set_pivot_point(0.0f,0.0f);
786 this.el.set_scale(0.0f,1.0f);
787 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
788 _this.clutterembed.el.get_stage().height);
793 // user defined functions
795 public class Xcls_projecteditview : Object
797 public GtkClutter.Actor el;
798 private Xcls_MainWindow _this;
804 public Xcls_projecteditview(Xcls_MainWindow _owner )
807 _this.projecteditview = this;
808 this.el = new GtkClutter.Actor();
812 // set gobject values
819 this.el.add_constraint(
820 new Clutter.AlignConstraint(
821 _this.clutterembed.el.get_stage(),
822 Clutter.AlignAxis.X_AXIS,
827 //this.el.set_position(100,100);
828 this.el.set_pivot_point(0.0f,0.0f);
829 this.el.set_scale(1.0f,0.0f);
830 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
831 _this.clutterembed.el.get_stage().height /2);
836 // user defined functions
838 public class Xcls_buttonlayout : Object
840 public Clutter.Actor el;
841 private Xcls_MainWindow _this;
847 public Xcls_buttonlayout(Xcls_MainWindow _owner )
850 _this.buttonlayout = this;
851 this.el = new Clutter.Actor();
855 // set gobject values
856 var child_0 = new Xcls_BoxLayout25( _this );
858 this.el.layout_manager = child_0.el;
859 var child_1 = new Xcls_backbutton( _this );
861 this.el.add_child ( child_1.el );
862 var child_2 = new Xcls_projectbutton( _this );
864 this.el.add_child ( child_2.el );
865 var child_3 = new Xcls_editfilebutton( _this );
867 this.el.add_child ( child_3.el );
868 var child_4 = new Xcls_projecteditbutton( _this );
870 this.el.add_child ( child_4.el );
871 var child_5 = new Xcls_objectshowbutton( _this );
873 this.el.add_child ( child_5.el );
874 var child_6 = new Xcls_addpropbutton( _this );
876 this.el.add_child ( child_6.el );
877 var child_7 = new Xcls_addlistenerbutton( _this );
879 this.el.add_child ( child_7.el );
880 var child_8 = new Xcls_addprojectbutton( _this );
882 this.el.add_child ( child_8.el );
883 var child_9 = new Xcls_addfilebutton( _this );
885 this.el.add_child ( child_9.el );
886 var child_10 = new Xcls_delprojectbutton( _this );
888 this.el.add_child ( child_10.el );
894 this.el.add_constraint(
895 new Clutter.AlignConstraint(
896 _this.clutterembed.el.get_stage(),
897 Clutter.AlignAxis.X_AXIS,
903 //this.el.set_position(100,100);
904 this.el.set_pivot_point(0.5f,0.5f);
906 _this.clutterembed.el.get_stage().height);
911 // user defined functions
913 public class Xcls_BoxLayout25 : Object
915 public Clutter.BoxLayout el;
916 private Xcls_MainWindow _this;
922 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
925 this.el = new Clutter.BoxLayout();
929 // set gobject values
930 this.el.orientation = Clutter.Orientation.VERTICAL;
933 // user defined functions
935 public class Xcls_backbutton : Object
937 public Clutter.Actor el;
938 private Xcls_MainWindow _this;
944 public Xcls_backbutton(Xcls_MainWindow _owner )
947 _this.backbutton = this;
948 this.el = new Clutter.Actor();
952 // set gobject values
953 var child_0 = new Xcls_Actor27( _this );
955 this.el.add_child ( child_0.el );
959 this.el.set_size(50,50);
962 // user defined functions
964 public class Xcls_Actor27 : Object
966 public GtkClutter.Actor el;
967 private Xcls_MainWindow _this;
973 public Xcls_Actor27(Xcls_MainWindow _owner )
976 this.el = new GtkClutter.Actor();
980 // set gobject values
981 var child_0 = new Xcls_Button28( _this );
986 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
989 // user defined functions
991 public class Xcls_Button28 : Object
993 public Gtk.Button el;
994 private Xcls_MainWindow _this;
1000 public Xcls_Button28(Xcls_MainWindow _owner )
1003 this.el = new Gtk.Button();
1007 // set gobject values
1008 this.el.width_request = 50;
1009 this.el.height_request = 50;
1010 this.el.tooltip_text = "Back";
1011 var child_0 = new Xcls_Image29( _this );
1013 this.el.set_image ( child_0.el );
1016 this.el.clicked.connect( ( ) => {
1018 _this.windowstate.switchState(WindowState.State.PREVIEW);
1024 // user defined functions
1026 public class Xcls_Image29 : Object
1028 public Gtk.Image el;
1029 private Xcls_MainWindow _this;
1035 public Xcls_Image29(Xcls_MainWindow _owner )
1038 this.el = new Gtk.Image();
1042 // set gobject values
1043 this.el.icon_name = "go-previous";
1046 // user defined functions
1048 public class Xcls_projectbutton : Object
1050 public Clutter.Actor el;
1051 private Xcls_MainWindow _this;
1057 public Xcls_projectbutton(Xcls_MainWindow _owner )
1060 _this.projectbutton = this;
1061 this.el = new Clutter.Actor();
1065 // set gobject values
1066 var child_0 = new Xcls_Actor31( _this );
1068 this.el.add_child ( child_0.el );
1072 this.el.set_size(50,50);
1075 // user defined functions
1077 public class Xcls_Actor31 : Object
1079 public GtkClutter.Actor el;
1080 private Xcls_MainWindow _this;
1086 public Xcls_Actor31(Xcls_MainWindow _owner )
1089 this.el = new GtkClutter.Actor();
1093 // set gobject values
1094 var child_0 = new Xcls_Button32( _this );
1099 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1102 // user defined functions
1104 public class Xcls_Button32 : Object
1106 public Gtk.Button el;
1107 private Xcls_MainWindow _this;
1113 public Xcls_Button32(Xcls_MainWindow _owner )
1116 this.el = new Gtk.Button();
1120 // set gobject values
1121 this.el.width_request = 50;
1122 this.el.height_request = 50;
1123 var child_0 = new Xcls_Image33( _this );
1125 this.el.set_image ( child_0.el );
1128 this.el.clicked.connect( ( ) => {
1129 _this.windowstate.switchState(WindowState.State.FILES);
1135 // user defined functions
1137 public class Xcls_Image33 : Object
1139 public Gtk.Image el;
1140 private Xcls_MainWindow _this;
1146 public Xcls_Image33(Xcls_MainWindow _owner )
1149 this.el = new Gtk.Image();
1153 // set gobject values
1154 this.el.icon_name = "document-open";
1157 // user defined functions
1159 public class Xcls_editfilebutton : Object
1161 public Clutter.Actor el;
1162 private Xcls_MainWindow _this;
1168 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1171 _this.editfilebutton = this;
1172 this.el = new Clutter.Actor();
1176 // set gobject values
1177 var child_0 = new Xcls_Actor35( _this );
1179 this.el.add_child ( child_0.el );
1183 this.el.set_size(50.0f,50.0f);
1186 // user defined functions
1188 public class Xcls_Actor35 : Object
1190 public GtkClutter.Actor el;
1191 private Xcls_MainWindow _this;
1197 public Xcls_Actor35(Xcls_MainWindow _owner )
1200 this.el = new GtkClutter.Actor();
1204 // set gobject values
1205 var child_0 = new Xcls_Button36( _this );
1210 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1213 // user defined functions
1215 public class Xcls_Button36 : Object
1217 public Gtk.Button el;
1218 private Xcls_MainWindow _this;
1224 public Xcls_Button36(Xcls_MainWindow _owner )
1227 this.el = new Gtk.Button();
1231 // set gobject values
1232 this.el.width_request = 50;
1233 this.el.height_request = 50;
1234 this.el.tooltip_text = "File Details";
1235 var child_0 = new Xcls_Image37( _this );
1237 this.el.set_image ( child_0.el );
1240 this.el.clicked.connect( ( ) => {
1242 // create a new file in project..
1243 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1246 _this.windowstate.file_details.show(
1247 _this.windowstate.left_tree.model.file, this.el
1256 // user defined functions
1258 public class Xcls_Image37 : Object
1260 public Gtk.Image el;
1261 private Xcls_MainWindow _this;
1267 public Xcls_Image37(Xcls_MainWindow _owner )
1270 this.el = new Gtk.Image();
1274 // set gobject values
1275 this.el.icon_name = "document-properties";
1278 // user defined functions
1280 public class Xcls_projecteditbutton : Object
1282 public Clutter.Actor el;
1283 private Xcls_MainWindow _this;
1289 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1292 _this.projecteditbutton = this;
1293 this.el = new Clutter.Actor();
1297 // set gobject values
1298 var child_0 = new Xcls_Actor39( _this );
1300 this.el.add_child ( child_0.el );
1304 this.el.set_size(50,50);
1307 // user defined functions
1309 public class Xcls_Actor39 : Object
1311 public GtkClutter.Actor el;
1312 private Xcls_MainWindow _this;
1318 public Xcls_Actor39(Xcls_MainWindow _owner )
1321 this.el = new GtkClutter.Actor();
1325 // set gobject values
1326 var child_0 = new Xcls_Button40( _this );
1331 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1334 // user defined functions
1336 public class Xcls_Button40 : Object
1338 public Gtk.Button el;
1339 private Xcls_MainWindow _this;
1345 public Xcls_Button40(Xcls_MainWindow _owner )
1348 this.el = new Gtk.Button();
1352 // set gobject values
1353 this.el.width_request = 50;
1354 this.el.height_request = 50;
1355 this.el.tooltip_text = "Project Details";
1356 var child_0 = new Xcls_Image41( _this );
1358 this.el.set_image ( child_0.el );
1361 this.el.clicked.connect( ( ) => {
1362 _this.windowstate.switchState(WindowState.State.PROJECT);
1369 // user defined functions
1371 public class Xcls_Image41 : Object
1373 public Gtk.Image el;
1374 private Xcls_MainWindow _this;
1380 public Xcls_Image41(Xcls_MainWindow _owner )
1383 this.el = new Gtk.Image();
1387 // set gobject values
1388 this.el.icon_name = "emblem-system";
1391 // user defined functions
1393 public class Xcls_objectshowbutton : Object
1395 public Clutter.Actor el;
1396 private Xcls_MainWindow _this;
1402 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1405 _this.objectshowbutton = this;
1406 this.el = new Clutter.Actor();
1410 // set gobject values
1411 var child_0 = new Xcls_Actor43( _this );
1413 this.el.add_child ( child_0.el );
1417 this.el.set_size(50,50);
1420 this.el.enter_event.connect( ( event) => {
1421 this.el.background_color = new Clutter.Color.from_string("#333");
1424 this.el.leave_event.connect( ( event) => {
1425 this.el.background_color = new Clutter.Color.from_string("#000");
1430 // user defined functions
1432 public class Xcls_Actor43 : Object
1434 public GtkClutter.Actor el;
1435 private Xcls_MainWindow _this;
1441 public Xcls_Actor43(Xcls_MainWindow _owner )
1444 this.el = new GtkClutter.Actor();
1448 // set gobject values
1449 var child_0 = new Xcls_Button44( _this );
1454 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1457 // user defined functions
1459 public class Xcls_Button44 : Object
1461 public Gtk.Button el;
1462 private Xcls_MainWindow _this;
1468 public Xcls_Button44(Xcls_MainWindow _owner )
1471 this.el = new Gtk.Button();
1475 // set gobject values
1476 this.el.width_request = 50;
1477 this.el.height_request = 50;
1478 this.el.tooltip_text = "Add Child Element";
1479 var child_0 = new Xcls_Image45( _this );
1481 this.el.set_image ( child_0.el );
1484 this.el.clicked.connect( ( ) => {
1486 _this.windowstate.switchState(WindowState.State.OBJECT);
1492 // user defined functions
1494 public class Xcls_Image45 : Object
1496 public Gtk.Image el;
1497 private Xcls_MainWindow _this;
1503 public Xcls_Image45(Xcls_MainWindow _owner )
1506 this.el = new Gtk.Image();
1510 // set gobject values
1511 this.el.icon_name = "list-add";
1514 // user defined functions
1516 public class Xcls_addpropbutton : Object
1518 public Clutter.Actor el;
1519 private Xcls_MainWindow _this;
1525 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1528 _this.addpropbutton = this;
1529 this.el = new Clutter.Actor();
1533 // set gobject values
1534 var child_0 = new Xcls_Actor47( _this );
1536 this.el.add_child ( child_0.el );
1540 this.el.set_size(50,50);
1543 // user defined functions
1545 public class Xcls_Actor47 : Object
1547 public GtkClutter.Actor el;
1548 private Xcls_MainWindow _this;
1554 public Xcls_Actor47(Xcls_MainWindow _owner )
1557 this.el = new GtkClutter.Actor();
1561 // set gobject values
1562 var child_0 = new Xcls_Button48( _this );
1567 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1570 // user defined functions
1572 public class Xcls_Button48 : Object
1574 public Gtk.Button el;
1575 private Xcls_MainWindow _this;
1581 public Xcls_Button48(Xcls_MainWindow _owner )
1584 this.el = new Gtk.Button();
1588 // set gobject values
1589 this.el.width_request = 50;
1590 this.el.height_request = 50;
1591 this.el.tooltip_text = "Add Property";
1592 var child_0 = new Xcls_Image49( _this );
1594 this.el.set_image ( child_0.el );
1597 this.el.clicked.connect( ( ) => {
1599 _this.windowstate.switchState(WindowState.State.PROP);
1605 // user defined functions
1607 public class Xcls_Image49 : Object
1609 public Gtk.Image el;
1610 private Xcls_MainWindow _this;
1616 public Xcls_Image49(Xcls_MainWindow _owner )
1619 this.el = new Gtk.Image();
1623 // set gobject values
1624 this.el.icon_name = "format-justify-left";
1627 // user defined functions
1629 public class Xcls_addlistenerbutton : Object
1631 public Clutter.Actor el;
1632 private Xcls_MainWindow _this;
1638 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1641 _this.addlistenerbutton = this;
1642 this.el = new Clutter.Actor();
1646 // set gobject values
1647 var child_0 = new Xcls_Actor51( _this );
1649 this.el.add_child ( child_0.el );
1653 this.el.set_size(50,50);
1656 // user defined functions
1658 public class Xcls_Actor51 : Object
1660 public GtkClutter.Actor el;
1661 private Xcls_MainWindow _this;
1667 public Xcls_Actor51(Xcls_MainWindow _owner )
1670 this.el = new GtkClutter.Actor();
1674 // set gobject values
1675 var child_0 = new Xcls_Button52( _this );
1680 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1683 // user defined functions
1685 public class Xcls_Button52 : Object
1687 public Gtk.Button el;
1688 private Xcls_MainWindow _this;
1694 public Xcls_Button52(Xcls_MainWindow _owner )
1697 this.el = new Gtk.Button();
1701 // set gobject values
1702 this.el.width_request = 50;
1703 this.el.height_request = 50;
1704 this.el.tooltip_text = "Add Event Code";
1705 var child_0 = new Xcls_Image53( _this );
1707 this.el.set_image ( child_0.el );
1710 this.el.clicked.connect( ( ) => {
1712 _this.windowstate.switchState(WindowState.State.LISTENER);
1719 // user defined functions
1721 public class Xcls_Image53 : Object
1723 public Gtk.Image el;
1724 private Xcls_MainWindow _this;
1730 public Xcls_Image53(Xcls_MainWindow _owner )
1733 this.el = new Gtk.Image();
1737 // set gobject values
1738 this.el.icon_name = "appointment-new";
1741 // user defined functions
1743 public class Xcls_addprojectbutton : Object
1745 public Clutter.Actor el;
1746 private Xcls_MainWindow _this;
1752 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1755 _this.addprojectbutton = this;
1756 this.el = new Clutter.Actor();
1760 // set gobject values
1761 var child_0 = new Xcls_Actor55( _this );
1763 this.el.add_child ( child_0.el );
1767 this.el.set_size(50.0f,50.0f);
1770 // user defined functions
1772 public class Xcls_Actor55 : Object
1774 public GtkClutter.Actor el;
1775 private Xcls_MainWindow _this;
1781 public Xcls_Actor55(Xcls_MainWindow _owner )
1784 this.el = new GtkClutter.Actor();
1788 // set gobject values
1789 var child_0 = new Xcls_Button56( _this );
1794 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1797 // user defined functions
1799 public class Xcls_Button56 : Object
1801 public Gtk.Button el;
1802 private Xcls_MainWindow _this;
1808 public Xcls_Button56(Xcls_MainWindow _owner )
1811 this.el = new Gtk.Button();
1815 // set gobject values
1816 this.el.width_request = 50;
1817 this.el.height_request = 50;
1818 this.el.tooltip_text = "New\nProj.";
1819 var child_0 = new Xcls_Image57( _this );
1821 this.el.set_image ( child_0.el );
1824 this.el.clicked.connect( ( ) => {
1826 // create a new file in project..
1827 //Xcls_DialogNewComponent.singleton().show(
1828 var pe = Xcls_EditProject.singleton();
1829 pe.el.set_transient_for(_this.el);
1830 pe.el.set_modal(true);
1839 _this.windowstate.left_projects.is_loaded = false;
1840 _this.windowstate.left_projects.load();
1841 _this.windowstate.left_projects.selectProject(p);
1848 // user defined functions
1850 public class Xcls_Image57 : Object
1852 public Gtk.Image el;
1853 private Xcls_MainWindow _this;
1859 public Xcls_Image57(Xcls_MainWindow _owner )
1862 this.el = new Gtk.Image();
1866 // set gobject values
1867 this.el.icon_name = "folder-new";
1870 // user defined functions
1872 public class Xcls_addfilebutton : Object
1874 public Clutter.Actor el;
1875 private Xcls_MainWindow _this;
1881 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1884 _this.addfilebutton = this;
1885 this.el = new Clutter.Actor();
1889 // set gobject values
1890 var child_0 = new Xcls_Actor59( _this );
1892 this.el.add_child ( child_0.el );
1896 this.el.set_size(50.0f,50.0f);
1899 // user defined functions
1901 public class Xcls_Actor59 : Object
1903 public GtkClutter.Actor el;
1904 private Xcls_MainWindow _this;
1910 public Xcls_Actor59(Xcls_MainWindow _owner )
1913 this.el = new GtkClutter.Actor();
1917 // set gobject values
1918 var child_0 = new Xcls_Button60( _this );
1923 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1926 // user defined functions
1928 public class Xcls_Button60 : Object
1930 public Gtk.Button el;
1931 private Xcls_MainWindow _this;
1937 public Xcls_Button60(Xcls_MainWindow _owner )
1940 this.el = new Gtk.Button();
1944 // set gobject values
1945 this.el.width_request = 50;
1946 this.el.height_request = 50;
1947 this.el.tooltip_text = "Add File";
1948 var child_0 = new Xcls_Image61( _this );
1950 this.el.set_image ( child_0.el );
1953 this.el.clicked.connect( () => {
1954 // create a new file in project..
1956 // what's the currently selected project...
1957 var proj = _this.windowstate.left_projects.getSelectedProject();
1965 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1966 _this.project = proj;
1968 _this.windowstate.file_details.show(
1977 // user defined functions
1979 public class Xcls_Image61 : Object
1981 public Gtk.Image el;
1982 private Xcls_MainWindow _this;
1988 public Xcls_Image61(Xcls_MainWindow _owner )
1991 this.el = new Gtk.Image();
1995 // set gobject values
1996 this.el.icon_name = "document-new";
1999 // user defined functions
2001 public class Xcls_delprojectbutton : Object
2003 public Clutter.Actor el;
2004 private Xcls_MainWindow _this;
2010 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2013 _this.delprojectbutton = this;
2014 this.el = new Clutter.Actor();
2018 // set gobject values
2019 var child_0 = new Xcls_Actor63( _this );
2021 this.el.add_child ( child_0.el );
2025 this.el.set_size(50,50);
2028 // user defined functions
2030 public class Xcls_Actor63 : Object
2032 public GtkClutter.Actor el;
2033 private Xcls_MainWindow _this;
2039 public Xcls_Actor63(Xcls_MainWindow _owner )
2042 this.el = new GtkClutter.Actor();
2046 // set gobject values
2047 var child_0 = new Xcls_Button64( _this );
2052 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2055 // user defined functions
2057 public class Xcls_Button64 : Object
2059 public Gtk.Button el;
2060 private Xcls_MainWindow _this;
2066 public Xcls_Button64(Xcls_MainWindow _owner )
2069 this.el = new Gtk.Button();
2073 // set gobject values
2074 this.el.width_request = 50;
2075 this.el.height_request = 50;
2076 this.el.tooltip_text = "Delete Project";
2077 var child_0 = new Xcls_Image65( _this );
2079 this.el.set_image ( child_0.el );
2082 this.el.clicked.connect( ( ) => {
2084 var cd = DialogConfirm.singleton();
2085 cd.el.set_transient_for(_this.el);
2086 cd.el.set_modal(true);
2088 var project = _this.windowstate.left_projects.getSelectedProject();
2089 if (project == null) {
2090 print("SKIP - no project\n");
2095 if (Gtk.ResponseType.YES != cd.show("Confirm",
2096 "Are you sure you want to delete project %s".printf(project.name))) {
2102 Project.Project.remove(project);
2103 _this.project = null;
2105 _this.windowstate.left_projects.is_loaded = false;
2106 _this.windowstate.left_projects.load();
2107 _this.windowstate.clutterfiles.clearFiles();
2112 // user defined functions
2114 public class Xcls_Image65 : Object
2116 public Gtk.Image el;
2117 private Xcls_MainWindow _this;
2123 public Xcls_Image65(Xcls_MainWindow _owner )
2126 this.el = new Gtk.Image();
2130 // set gobject values
2131 this.el.icon_name = "user-trash";
2134 // user defined functions
2136 public class Xcls_HBox66 : Object
2139 private Xcls_MainWindow _this;
2145 public Xcls_HBox66(Xcls_MainWindow _owner )
2148 this.el = new Gtk.HBox( false, 0 );
2152 // set gobject values
2153 var child_0 = new Xcls_Label67( _this );
2155 this.el.pack_start ( child_0.el , true,true,0 );
2156 var child_1 = new Xcls_statusbar( _this );
2158 this.el.pack_start ( child_1.el , true,true,0 );
2159 var child_2 = new Xcls_MenuBar69( _this );
2161 this.el.pack_end ( child_2.el , false,true,0 );
2164 // user defined functions
2166 public class Xcls_Label67 : Object
2168 public Gtk.Label el;
2169 private Xcls_MainWindow _this;
2175 public Xcls_Label67(Xcls_MainWindow _owner )
2178 this.el = new Gtk.Label( " " );
2182 // set gobject values
2185 // user defined functions
2187 public class Xcls_statusbar : Object
2189 public Gtk.ProgressBar el;
2190 private Xcls_MainWindow _this;
2194 public ulong handler_id;
2197 public Xcls_statusbar(Xcls_MainWindow _owner )
2200 _this.statusbar = this;
2201 this.el = new Gtk.ProgressBar();
2204 this.handler_id = -1;
2206 // set gobject values
2207 this.el.show_text = true;
2212 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2215 _this.mainpane.el.set_sensitive(true);
2219 _this.mainpane.el.set_sensitive(false);
2221 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2222 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2228 // user defined functions
2230 public class Xcls_MenuBar69 : Object
2232 public Gtk.MenuBar el;
2233 private Xcls_MainWindow _this;
2239 public Xcls_MenuBar69(Xcls_MainWindow _owner )
2242 this.el = new Gtk.MenuBar();
2246 // set gobject values
2247 var child_0 = new Xcls_statusbar_errors( _this );
2249 this.el.add ( child_0.el );
2250 var child_1 = new Xcls_statusbar_errors( _this );
2252 this.el.add ( child_1.el );
2253 var child_2 = new Xcls_statusbar_warnings( _this );
2255 this.el.add ( child_2.el );
2256 var child_3 = new Xcls_statusbar_depricated( _this );
2258 this.el.add ( child_3.el );
2261 // user defined functions
2263 public class Xcls_statusbar_errors : Object
2265 public Gtk.ImageMenuItem el;
2266 private Xcls_MainWindow _this;
2270 public Xcls_ValaCompileErrors popup;
2273 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2276 _this.statusbar_errors = this;
2277 this.el = new Gtk.ImageMenuItem();
2281 // set gobject values
2282 this.el.always_show_image = true;
2283 this.el.label = "Errors";
2284 var child_0 = new Xcls_Image71( _this );
2286 this.el.set_image ( child_0.el );
2289 // user defined functions
2291 public class Xcls_Image71 : Object
2293 public Gtk.Image el;
2294 private Xcls_MainWindow _this;
2300 public Xcls_Image71(Xcls_MainWindow _owner )
2303 this.el = new Gtk.Image();
2307 // set gobject values
2308 this.el.icon_name = "dialog-error";
2311 // user defined functions
2313 public class Xcls_statusbar_errors : Object
2315 public Gtk.ImageMenuItem el;
2316 private Xcls_MainWindow _this;
2320 public Xcls_ValaCompileErrors popup;
2321 public Json.Object notices;
2324 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2327 _this.statusbar_errors = this;
2328 this.el = new Gtk.ImageMenuItem();
2331 this.notices = new Json.Object() ;
2333 // set gobject values
2334 this.el.always_show_image = true;
2335 this.el.label = "Errors";
2336 var child_0 = new Xcls_Image73( _this );
2338 this.el.set_image ( child_0.el );
2341 this.el.button_press_event.connect( () => {
2342 if (this.popup == null) {
2343 this.popup = new Xcls_ValaCompileErrors();
2344 this.popup.window = _this;
2346 if (this.popup.active) {
2347 this.popup.active = false;
2348 this.popup.el.hide();
2352 this.popup.show(this.notices, this.el);
2357 // user defined functions
2359 public class Xcls_Image73 : Object
2361 public Gtk.Image el;
2362 private Xcls_MainWindow _this;
2368 public Xcls_Image73(Xcls_MainWindow _owner )
2371 this.el = new Gtk.Image();
2375 // set gobject values
2376 this.el.icon_name = "dialog-error";
2379 // user defined functions
2381 public class Xcls_statusbar_warnings : Object
2383 public Gtk.ImageMenuItem el;
2384 private Xcls_MainWindow _this;
2388 public Xcls_ValaCompileErrors popup;
2389 public Json.Object notices;
2392 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2395 _this.statusbar_warnings = this;
2396 this.el = new Gtk.ImageMenuItem();
2399 this.notices = new Json.Object();
2401 // set gobject values
2402 this.el.always_show_image = true;
2403 this.el.label = "Warnings";
2404 var child_0 = new Xcls_Image75( _this );
2406 this.el.set_image ( child_0.el );
2409 this.el.button_press_event.connect( () => {
2410 if (this.popup == null) {
2411 this.popup = new Xcls_ValaCompileErrors();
2412 this.popup.window = _this;
2414 if (this.popup.active) {
2415 this.popup.active = false;
2416 this.popup.el.hide();
2419 this.popup.show(this.notices, this.el);
2424 // user defined functions
2426 public class Xcls_Image75 : Object
2428 public Gtk.Image el;
2429 private Xcls_MainWindow _this;
2435 public Xcls_Image75(Xcls_MainWindow _owner )
2438 this.el = new Gtk.Image();
2442 // set gobject values
2443 this.el.icon_name = "dialog-warning";
2446 // user defined functions
2448 public class Xcls_statusbar_depricated : Object
2450 public Gtk.ImageMenuItem el;
2451 private Xcls_MainWindow _this;
2455 public Xcls_ValaCompileErrors popup;
2456 public Json.Object notices;
2459 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2462 _this.statusbar_depricated = this;
2463 this.el = new Gtk.ImageMenuItem();
2466 this.notices = new Json.Object();
2468 // set gobject values
2469 this.el.always_show_image = true;
2470 this.el.label = "Depricated";
2471 var child_0 = new Xcls_Image77( _this );
2473 this.el.set_image ( child_0.el );
2476 this.el.button_press_event.connect( () => {
2477 if (this.popup == null) {
2478 this.popup = new Xcls_ValaCompileErrors();
2479 this.popup.window = _this;
2481 if (this.popup.active) {
2482 this.popup.active = false;
2483 this.popup.el.hide();
2486 this.popup.show(this.notices, this.el);
2491 // user defined functions
2493 public class Xcls_Image77 : Object
2495 public Gtk.Image el;
2496 private Xcls_MainWindow _this;
2502 public Xcls_Image77(Xcls_MainWindow _owner )
2505 this.el = new Gtk.Image();
2509 // set gobject values
2510 this.el.icon_name = "dialog-information";
2513 // user defined functions