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 _this.statusbar_errors.el.hide();
99 _this.statusbar_warnings.el.hide();
100 _this.statusbar_depricated.el.hide();
103 Resources.singleton().checkResources();
108 // user defined functions
109 public void initChildren () {
110 // this needs putting in a better place..
111 this.windowstate = new WindowState(this);
115 var tl = new Clutter.Timeline(6000);
116 tl.set_repeat_count(-1);
125 public void show () {
130 public void setTitle (string str) {
131 this.headerbar.el.set_title(this.title + " - " + str);
133 public class Xcls_headerbar : Object
135 public Gtk.HeaderBar el;
136 private Xcls_MainWindow _this;
142 public Xcls_headerbar(Xcls_MainWindow _owner )
145 _this.headerbar = this;
146 this.el = new Gtk.HeaderBar();
150 // set gobject values
151 this.el.title = "Application Builder";
152 this.el.show_close_button = true;
153 var child_0 = new Xcls_HBox3( _this );
155 this.el.pack_start ( child_0.el );
158 // user defined functions
160 public class Xcls_HBox3 : Object
163 private Xcls_MainWindow _this;
169 public Xcls_HBox3(Xcls_MainWindow _owner )
172 this.el = new Gtk.HBox( true, 0 );
176 // set gobject values
177 var child_0 = new Xcls_MenuButton4( _this );
179 this.el.add ( child_0.el );
182 // user defined functions
184 public class Xcls_MenuButton4 : Object
186 public Gtk.MenuButton el;
187 private Xcls_MainWindow _this;
193 public Xcls_MenuButton4(Xcls_MainWindow _owner )
196 this.el = new Gtk.MenuButton();
200 // set gobject values
201 this.el.use_popover = false;
202 var child_0 = new Xcls_topbarmenu( _this );
204 this.el.set_popup ( child_0.el );
205 var child_1 = new Xcls_Image10( _this );
207 this.el.set_image ( child_1.el );
210 // user defined functions
212 public class Xcls_topbarmenu : Object
215 private Xcls_MainWindow _this;
221 public Xcls_topbarmenu(Xcls_MainWindow _owner )
224 _this.topbarmenu = this;
225 this.el = new Gtk.Menu();
229 // set gobject values
230 var child_0 = new Xcls_MenuItem6( _this );
232 this.el.append ( child_0.el );
233 var child_1 = new Xcls_SeparatorMenuItem7( _this );
235 this.el.append ( child_1.el );
236 var child_2 = new Xcls_MenuItem8( _this );
238 this.el.append ( child_2.el );
239 var child_3 = new Xcls_MenuItem9( _this );
241 this.el.append ( child_3.el );
250 // user defined functions
252 public class Xcls_MenuItem6 : Object
254 public Gtk.MenuItem el;
255 private Xcls_MainWindow _this;
261 public Xcls_MenuItem6(Xcls_MainWindow _owner )
264 this.el = new Gtk.MenuItem();
268 // set gobject values
269 this.el.label = "Open a new Window";
272 this.el.activate.connect( ( ) => {
273 Xcls_MainWindow.singleton().no_windows++;
274 var w = new Xcls_MainWindow();
279 w.windowstate.switchState(WindowState.State.FILES);
283 // user defined functions
285 public class Xcls_SeparatorMenuItem7 : Object
287 public Gtk.SeparatorMenuItem el;
288 private Xcls_MainWindow _this;
294 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
297 this.el = new Gtk.SeparatorMenuItem();
301 // set gobject values
304 // user defined functions
306 public class Xcls_MenuItem8 : Object
308 public Gtk.MenuItem el;
309 private Xcls_MainWindow _this;
315 public Xcls_MenuItem8(Xcls_MainWindow _owner )
318 this.el = new Gtk.MenuItem();
322 // set gobject values
323 this.el.label = "Download updated Resources";
326 this.el.activate.connect( ( ) => {
327 Resources.singleton().fetchStart();
331 // user defined functions
333 public class Xcls_MenuItem9 : Object
335 public Gtk.MenuItem el;
336 private Xcls_MainWindow _this;
342 public Xcls_MenuItem9(Xcls_MainWindow _owner )
345 this.el = new Gtk.MenuItem();
349 // set gobject values
350 this.el.label = "About the Builder";
353 this.el.activate.connect( () => {
354 About.singleton().el.show();
358 // user defined functions
360 public class Xcls_Image10 : Object
363 private Xcls_MainWindow _this;
369 public Xcls_Image10(Xcls_MainWindow _owner )
372 this.el = new Gtk.Image();
376 // set gobject values
377 this.el.icon_name = "help-about";
380 // user defined functions
382 public class Xcls_vbox : Object
385 private Xcls_MainWindow _this;
391 public Xcls_vbox(Xcls_MainWindow _owner )
395 this.el = new Gtk.VBox( false, 0 );
399 // set gobject values
400 var child_0 = new Xcls_mainpane( _this );
402 this.el.pack_start ( child_0.el , true,true,0 );
403 var child_1 = new Xcls_HBox66( _this );
405 this.el.pack_end ( child_1.el , false,true,0 );
408 // user defined functions
410 public class Xcls_mainpane : Object
412 public Gtk.HPaned el;
413 private Xcls_MainWindow _this;
417 public int lastWidth;
420 public Xcls_mainpane(Xcls_MainWindow _owner )
423 _this.mainpane = this;
424 this.el = new Gtk.HPaned();
429 // set gobject values
430 this.el.position = 400;
431 var child_0 = new Xcls_leftpane( _this );
433 this.el.add1 ( child_0.el );
434 var child_1 = new Xcls_VBox17( _this );
436 this.el.add2 ( child_1.el );
439 // user defined functions
441 public class Xcls_leftpane : Object
444 private Xcls_MainWindow _this;
450 public Xcls_leftpane(Xcls_MainWindow _owner )
453 _this.leftpane = this;
454 this.el = new Gtk.VBox( true, 0 );
458 // set gobject values
459 var child_0 = new Xcls_editpane( _this );
461 this.el.pack_start ( child_0.el , false,true,0 );
464 // user defined functions
466 public class Xcls_editpane : Object
468 public Gtk.VPaned el;
469 private Xcls_MainWindow _this;
475 public Xcls_editpane(Xcls_MainWindow _owner )
478 _this.editpane = this;
479 this.el = new Gtk.VPaned();
483 // set gobject values
484 var child_0 = new Xcls_tree( _this );
486 this.el.add1 ( child_0.el );
487 var child_1 = new Xcls_props( _this );
489 this.el.add2 ( child_1.el );
492 // user defined functions
494 public class Xcls_tree : Object
497 private Xcls_MainWindow _this;
503 public Xcls_tree(Xcls_MainWindow _owner )
507 this.el = new Gtk.VBox( true, 0 );
511 // set gobject values
514 // user defined functions
516 public class Xcls_props : Object
519 private Xcls_MainWindow _this;
525 public Xcls_props(Xcls_MainWindow _owner )
529 this.el = new Gtk.VBox( true, 0 );
533 // set gobject values
536 // user defined functions
538 public class Xcls_VBox17 : Object
541 private Xcls_MainWindow _this;
547 public Xcls_VBox17(Xcls_MainWindow _owner )
550 this.el = new Gtk.VBox( true, 0 );
554 // set gobject values
555 var child_0 = new Xcls_clutterembed( _this );
557 this.el.pack_start ( child_0.el , true,true,0 );
560 // user defined functions
562 public class Xcls_clutterembed : Object
564 public GtkClutter.Embed el;
565 private Xcls_MainWindow _this;
571 public Xcls_clutterembed(Xcls_MainWindow _owner )
574 _this.clutterembed = this;
575 this.el = new GtkClutter.Embed();
579 // set gobject values
580 var child_0 = new Xcls_rooview( _this );
582 this.el.get_stage().add_child ( child_0.el );
583 var child_1 = new Xcls_objectview( _this );
585 this.el.get_stage().add_child ( child_1.el );
586 var child_2 = new Xcls_codeeditview( _this );
588 this.el.get_stage().add_child ( child_2.el );
589 var child_3 = new Xcls_addpropsview( _this );
591 this.el.get_stage().add_child ( child_3.el );
592 var child_4 = new Xcls_projecteditview( _this );
594 this.el.get_stage().add_child ( child_4.el );
595 var child_5 = new Xcls_buttonlayout( _this );
597 this.el.get_stage().add_child ( child_5.el );
601 var stage = this.el.get_stage();
602 stage.set_background_color( Clutter.Color.from_string("#000"));
605 this.el.size_allocate.connect( ( alloc) => {
606 if (_this.windowstate == null) {
609 _this.windowstate.resizeCanvas();
614 // user defined functions
616 public class Xcls_rooview : Object
618 public GtkClutter.Actor el;
619 private Xcls_MainWindow _this;
625 public Xcls_rooview(Xcls_MainWindow _owner )
628 _this.rooview = this;
629 this.el = new GtkClutter.Actor();
633 // set gobject values
640 this.el.add_constraint(
641 new Clutter.AlignConstraint(
642 _this.clutterembed.el.get_stage(),
643 Clutter.AlignAxis.X_AXIS,
648 //this.el.set_position(100,100);
649 this.el.set_pivot_point(1.0f,1.0f);
651 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
652 _this.clutterembed.el.get_stage().height);
657 // user defined functions
659 public class Xcls_objectview : Object
661 public GtkClutter.Actor el;
662 private Xcls_MainWindow _this;
668 public Xcls_objectview(Xcls_MainWindow _owner )
671 _this.objectview = this;
672 this.el = new GtkClutter.Actor();
676 // set gobject values
683 this.el.add_constraint(
684 new Clutter.AlignConstraint(
685 _this.clutterembed.el.get_stage(),
686 Clutter.AlignAxis.X_AXIS,
691 this.el.fixed_x = 50.0f;
692 this.el.fixed_y = 0.0f;
693 //this.el.set_position(100,100);
694 this.el.set_pivot_point(0.0f,0.0f);
695 this.el.set_scale(0.0f,1.0f);
696 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
697 _this.clutterembed.el.get_stage().height);
702 // user defined functions
704 public class Xcls_codeeditview : Object
706 public GtkClutter.Actor el;
707 private Xcls_MainWindow _this;
713 public Xcls_codeeditview(Xcls_MainWindow _owner )
716 _this.codeeditview = this;
717 this.el = new GtkClutter.Actor();
721 // set gobject values
728 this.el.add_constraint(
729 new Clutter.AlignConstraint(
730 _this.clutterembed.el.get_stage(),
731 Clutter.AlignAxis.X_AXIS,
736 this.el.fixed_x = 50.0f;
737 this.el.fixed_y = 0.0f;
738 //this.el.set_position(100,100);
739 this.el.set_pivot_point(0.0f,0.0f);
740 this.el.set_scale(0.0f,1.0f);
741 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
742 _this.clutterembed.el.get_stage().height);
747 // user defined functions
749 public class Xcls_addpropsview : Object
751 public GtkClutter.Actor el;
752 private Xcls_MainWindow _this;
758 public Xcls_addpropsview(Xcls_MainWindow _owner )
761 _this.addpropsview = this;
762 this.el = new GtkClutter.Actor();
766 // set gobject values
773 this.el.add_constraint(
774 new Clutter.AlignConstraint(
775 _this.clutterembed.el.get_stage(),
776 Clutter.AlignAxis.X_AXIS,
781 this.el.fixed_x = 50.0f;
782 this.el.fixed_y = 0.0f;
783 //this.el.set_position(100,100);
784 this.el.set_pivot_point(0.0f,0.0f);
785 this.el.set_scale(0.0f,1.0f);
786 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
787 _this.clutterembed.el.get_stage().height);
792 // user defined functions
794 public class Xcls_projecteditview : Object
796 public GtkClutter.Actor el;
797 private Xcls_MainWindow _this;
803 public Xcls_projecteditview(Xcls_MainWindow _owner )
806 _this.projecteditview = this;
807 this.el = new GtkClutter.Actor();
811 // set gobject values
818 this.el.add_constraint(
819 new Clutter.AlignConstraint(
820 _this.clutterembed.el.get_stage(),
821 Clutter.AlignAxis.X_AXIS,
826 //this.el.set_position(100,100);
827 this.el.set_pivot_point(0.0f,0.0f);
828 this.el.set_scale(1.0f,0.0f);
829 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
830 _this.clutterembed.el.get_stage().height /2);
835 // user defined functions
837 public class Xcls_buttonlayout : Object
839 public Clutter.Actor el;
840 private Xcls_MainWindow _this;
846 public Xcls_buttonlayout(Xcls_MainWindow _owner )
849 _this.buttonlayout = this;
850 this.el = new Clutter.Actor();
854 // set gobject values
855 var child_0 = new Xcls_BoxLayout25( _this );
857 this.el.layout_manager = child_0.el;
858 var child_1 = new Xcls_backbutton( _this );
860 this.el.add_child ( child_1.el );
861 var child_2 = new Xcls_projectbutton( _this );
863 this.el.add_child ( child_2.el );
864 var child_3 = new Xcls_editfilebutton( _this );
866 this.el.add_child ( child_3.el );
867 var child_4 = new Xcls_projecteditbutton( _this );
869 this.el.add_child ( child_4.el );
870 var child_5 = new Xcls_objectshowbutton( _this );
872 this.el.add_child ( child_5.el );
873 var child_6 = new Xcls_addpropbutton( _this );
875 this.el.add_child ( child_6.el );
876 var child_7 = new Xcls_addlistenerbutton( _this );
878 this.el.add_child ( child_7.el );
879 var child_8 = new Xcls_addprojectbutton( _this );
881 this.el.add_child ( child_8.el );
882 var child_9 = new Xcls_addfilebutton( _this );
884 this.el.add_child ( child_9.el );
885 var child_10 = new Xcls_delprojectbutton( _this );
887 this.el.add_child ( child_10.el );
893 this.el.add_constraint(
894 new Clutter.AlignConstraint(
895 _this.clutterembed.el.get_stage(),
896 Clutter.AlignAxis.X_AXIS,
902 //this.el.set_position(100,100);
903 this.el.set_pivot_point(0.5f,0.5f);
905 _this.clutterembed.el.get_stage().height);
910 // user defined functions
912 public class Xcls_BoxLayout25 : Object
914 public Clutter.BoxLayout el;
915 private Xcls_MainWindow _this;
921 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
924 this.el = new Clutter.BoxLayout();
928 // set gobject values
929 this.el.orientation = Clutter.Orientation.VERTICAL;
932 // user defined functions
934 public class Xcls_backbutton : Object
936 public Clutter.Actor el;
937 private Xcls_MainWindow _this;
943 public Xcls_backbutton(Xcls_MainWindow _owner )
946 _this.backbutton = this;
947 this.el = new Clutter.Actor();
951 // set gobject values
952 var child_0 = new Xcls_Actor27( _this );
954 this.el.add_child ( child_0.el );
958 this.el.set_size(50,50);
961 // user defined functions
963 public class Xcls_Actor27 : Object
965 public GtkClutter.Actor el;
966 private Xcls_MainWindow _this;
972 public Xcls_Actor27(Xcls_MainWindow _owner )
975 this.el = new GtkClutter.Actor();
979 // set gobject values
980 var child_0 = new Xcls_Button28( _this );
985 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
988 // user defined functions
990 public class Xcls_Button28 : Object
992 public Gtk.Button el;
993 private Xcls_MainWindow _this;
999 public Xcls_Button28(Xcls_MainWindow _owner )
1002 this.el = new Gtk.Button();
1006 // set gobject values
1007 this.el.width_request = 50;
1008 this.el.height_request = 50;
1009 this.el.tooltip_text = "Back";
1010 var child_0 = new Xcls_Image29( _this );
1012 this.el.set_image ( child_0.el );
1015 this.el.clicked.connect( ( ) => {
1017 _this.windowstate.switchState(WindowState.State.PREVIEW);
1023 // user defined functions
1025 public class Xcls_Image29 : Object
1027 public Gtk.Image el;
1028 private Xcls_MainWindow _this;
1034 public Xcls_Image29(Xcls_MainWindow _owner )
1037 this.el = new Gtk.Image();
1041 // set gobject values
1042 this.el.icon_name = "go-previous";
1045 // user defined functions
1047 public class Xcls_projectbutton : Object
1049 public Clutter.Actor el;
1050 private Xcls_MainWindow _this;
1056 public Xcls_projectbutton(Xcls_MainWindow _owner )
1059 _this.projectbutton = this;
1060 this.el = new Clutter.Actor();
1064 // set gobject values
1065 var child_0 = new Xcls_Actor31( _this );
1067 this.el.add_child ( child_0.el );
1071 this.el.set_size(50,50);
1074 // user defined functions
1076 public class Xcls_Actor31 : Object
1078 public GtkClutter.Actor el;
1079 private Xcls_MainWindow _this;
1085 public Xcls_Actor31(Xcls_MainWindow _owner )
1088 this.el = new GtkClutter.Actor();
1092 // set gobject values
1093 var child_0 = new Xcls_Button32( _this );
1098 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1101 // user defined functions
1103 public class Xcls_Button32 : Object
1105 public Gtk.Button el;
1106 private Xcls_MainWindow _this;
1112 public Xcls_Button32(Xcls_MainWindow _owner )
1115 this.el = new Gtk.Button();
1119 // set gobject values
1120 this.el.width_request = 50;
1121 this.el.height_request = 50;
1122 var child_0 = new Xcls_Image33( _this );
1124 this.el.set_image ( child_0.el );
1127 this.el.clicked.connect( ( ) => {
1128 _this.windowstate.switchState(WindowState.State.FILES);
1134 // user defined functions
1136 public class Xcls_Image33 : Object
1138 public Gtk.Image el;
1139 private Xcls_MainWindow _this;
1145 public Xcls_Image33(Xcls_MainWindow _owner )
1148 this.el = new Gtk.Image();
1152 // set gobject values
1153 this.el.icon_name = "document-open";
1156 // user defined functions
1158 public class Xcls_editfilebutton : Object
1160 public Clutter.Actor el;
1161 private Xcls_MainWindow _this;
1167 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1170 _this.editfilebutton = this;
1171 this.el = new Clutter.Actor();
1175 // set gobject values
1176 var child_0 = new Xcls_Actor35( _this );
1178 this.el.add_child ( child_0.el );
1182 this.el.set_size(50.0f,50.0f);
1185 // user defined functions
1187 public class Xcls_Actor35 : Object
1189 public GtkClutter.Actor el;
1190 private Xcls_MainWindow _this;
1196 public Xcls_Actor35(Xcls_MainWindow _owner )
1199 this.el = new GtkClutter.Actor();
1203 // set gobject values
1204 var child_0 = new Xcls_Button36( _this );
1209 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1212 // user defined functions
1214 public class Xcls_Button36 : Object
1216 public Gtk.Button el;
1217 private Xcls_MainWindow _this;
1223 public Xcls_Button36(Xcls_MainWindow _owner )
1226 this.el = new Gtk.Button();
1230 // set gobject values
1231 this.el.width_request = 50;
1232 this.el.height_request = 50;
1233 this.el.tooltip_text = "File Details";
1234 var child_0 = new Xcls_Image37( _this );
1236 this.el.set_image ( child_0.el );
1239 this.el.clicked.connect( ( ) => {
1241 // create a new file in project..
1242 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
1245 _this.windowstate.file_details.show(
1246 _this.windowstate.left_tree.model.file, this.el
1255 // user defined functions
1257 public class Xcls_Image37 : Object
1259 public Gtk.Image el;
1260 private Xcls_MainWindow _this;
1266 public Xcls_Image37(Xcls_MainWindow _owner )
1269 this.el = new Gtk.Image();
1273 // set gobject values
1274 this.el.icon_name = "document-properties";
1277 // user defined functions
1279 public class Xcls_projecteditbutton : Object
1281 public Clutter.Actor el;
1282 private Xcls_MainWindow _this;
1288 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1291 _this.projecteditbutton = this;
1292 this.el = new Clutter.Actor();
1296 // set gobject values
1297 var child_0 = new Xcls_Actor39( _this );
1299 this.el.add_child ( child_0.el );
1303 this.el.set_size(50,50);
1306 // user defined functions
1308 public class Xcls_Actor39 : Object
1310 public GtkClutter.Actor el;
1311 private Xcls_MainWindow _this;
1317 public Xcls_Actor39(Xcls_MainWindow _owner )
1320 this.el = new GtkClutter.Actor();
1324 // set gobject values
1325 var child_0 = new Xcls_Button40( _this );
1330 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1333 // user defined functions
1335 public class Xcls_Button40 : Object
1337 public Gtk.Button el;
1338 private Xcls_MainWindow _this;
1344 public Xcls_Button40(Xcls_MainWindow _owner )
1347 this.el = new Gtk.Button();
1351 // set gobject values
1352 this.el.width_request = 50;
1353 this.el.height_request = 50;
1354 this.el.tooltip_text = "Project Details";
1355 var child_0 = new Xcls_Image41( _this );
1357 this.el.set_image ( child_0.el );
1360 this.el.clicked.connect( ( ) => {
1361 _this.windowstate.switchState(WindowState.State.PROJECT);
1368 // user defined functions
1370 public class Xcls_Image41 : Object
1372 public Gtk.Image el;
1373 private Xcls_MainWindow _this;
1379 public Xcls_Image41(Xcls_MainWindow _owner )
1382 this.el = new Gtk.Image();
1386 // set gobject values
1387 this.el.icon_name = "emblem-system";
1390 // user defined functions
1392 public class Xcls_objectshowbutton : Object
1394 public Clutter.Actor el;
1395 private Xcls_MainWindow _this;
1401 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1404 _this.objectshowbutton = this;
1405 this.el = new Clutter.Actor();
1409 // set gobject values
1410 var child_0 = new Xcls_Actor43( _this );
1412 this.el.add_child ( child_0.el );
1416 this.el.set_size(50,50);
1419 this.el.enter_event.connect( ( event) => {
1420 this.el.background_color = new Clutter.Color.from_string("#333");
1423 this.el.leave_event.connect( ( event) => {
1424 this.el.background_color = new Clutter.Color.from_string("#000");
1429 // user defined functions
1431 public class Xcls_Actor43 : Object
1433 public GtkClutter.Actor el;
1434 private Xcls_MainWindow _this;
1440 public Xcls_Actor43(Xcls_MainWindow _owner )
1443 this.el = new GtkClutter.Actor();
1447 // set gobject values
1448 var child_0 = new Xcls_Button44( _this );
1453 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1456 // user defined functions
1458 public class Xcls_Button44 : Object
1460 public Gtk.Button el;
1461 private Xcls_MainWindow _this;
1467 public Xcls_Button44(Xcls_MainWindow _owner )
1470 this.el = new Gtk.Button();
1474 // set gobject values
1475 this.el.width_request = 50;
1476 this.el.height_request = 50;
1477 this.el.tooltip_text = "Add Child Element";
1478 var child_0 = new Xcls_Image45( _this );
1480 this.el.set_image ( child_0.el );
1483 this.el.clicked.connect( ( ) => {
1485 _this.windowstate.switchState(WindowState.State.OBJECT);
1491 // user defined functions
1493 public class Xcls_Image45 : Object
1495 public Gtk.Image el;
1496 private Xcls_MainWindow _this;
1502 public Xcls_Image45(Xcls_MainWindow _owner )
1505 this.el = new Gtk.Image();
1509 // set gobject values
1510 this.el.icon_name = "list-add";
1513 // user defined functions
1515 public class Xcls_addpropbutton : Object
1517 public Clutter.Actor el;
1518 private Xcls_MainWindow _this;
1524 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1527 _this.addpropbutton = this;
1528 this.el = new Clutter.Actor();
1532 // set gobject values
1533 var child_0 = new Xcls_Actor47( _this );
1535 this.el.add_child ( child_0.el );
1539 this.el.set_size(50,50);
1542 // user defined functions
1544 public class Xcls_Actor47 : Object
1546 public GtkClutter.Actor el;
1547 private Xcls_MainWindow _this;
1553 public Xcls_Actor47(Xcls_MainWindow _owner )
1556 this.el = new GtkClutter.Actor();
1560 // set gobject values
1561 var child_0 = new Xcls_Button48( _this );
1566 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1569 // user defined functions
1571 public class Xcls_Button48 : Object
1573 public Gtk.Button el;
1574 private Xcls_MainWindow _this;
1580 public Xcls_Button48(Xcls_MainWindow _owner )
1583 this.el = new Gtk.Button();
1587 // set gobject values
1588 this.el.width_request = 50;
1589 this.el.height_request = 50;
1590 this.el.tooltip_text = "Add Property";
1591 var child_0 = new Xcls_Image49( _this );
1593 this.el.set_image ( child_0.el );
1596 this.el.clicked.connect( ( ) => {
1598 _this.windowstate.switchState(WindowState.State.PROP);
1604 // user defined functions
1606 public class Xcls_Image49 : Object
1608 public Gtk.Image el;
1609 private Xcls_MainWindow _this;
1615 public Xcls_Image49(Xcls_MainWindow _owner )
1618 this.el = new Gtk.Image();
1622 // set gobject values
1623 this.el.icon_name = "format-justify-left";
1626 // user defined functions
1628 public class Xcls_addlistenerbutton : Object
1630 public Clutter.Actor el;
1631 private Xcls_MainWindow _this;
1637 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1640 _this.addlistenerbutton = this;
1641 this.el = new Clutter.Actor();
1645 // set gobject values
1646 var child_0 = new Xcls_Actor51( _this );
1648 this.el.add_child ( child_0.el );
1652 this.el.set_size(50,50);
1655 // user defined functions
1657 public class Xcls_Actor51 : Object
1659 public GtkClutter.Actor el;
1660 private Xcls_MainWindow _this;
1666 public Xcls_Actor51(Xcls_MainWindow _owner )
1669 this.el = new GtkClutter.Actor();
1673 // set gobject values
1674 var child_0 = new Xcls_Button52( _this );
1679 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1682 // user defined functions
1684 public class Xcls_Button52 : Object
1686 public Gtk.Button el;
1687 private Xcls_MainWindow _this;
1693 public Xcls_Button52(Xcls_MainWindow _owner )
1696 this.el = new Gtk.Button();
1700 // set gobject values
1701 this.el.width_request = 50;
1702 this.el.height_request = 50;
1703 this.el.tooltip_text = "Add Event Code";
1704 var child_0 = new Xcls_Image53( _this );
1706 this.el.set_image ( child_0.el );
1709 this.el.clicked.connect( ( ) => {
1711 _this.windowstate.switchState(WindowState.State.LISTENER);
1718 // user defined functions
1720 public class Xcls_Image53 : Object
1722 public Gtk.Image el;
1723 private Xcls_MainWindow _this;
1729 public Xcls_Image53(Xcls_MainWindow _owner )
1732 this.el = new Gtk.Image();
1736 // set gobject values
1737 this.el.icon_name = "appointment-new";
1740 // user defined functions
1742 public class Xcls_addprojectbutton : Object
1744 public Clutter.Actor el;
1745 private Xcls_MainWindow _this;
1751 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1754 _this.addprojectbutton = this;
1755 this.el = new Clutter.Actor();
1759 // set gobject values
1760 var child_0 = new Xcls_Actor55( _this );
1762 this.el.add_child ( child_0.el );
1766 this.el.set_size(50.0f,50.0f);
1769 // user defined functions
1771 public class Xcls_Actor55 : Object
1773 public GtkClutter.Actor el;
1774 private Xcls_MainWindow _this;
1780 public Xcls_Actor55(Xcls_MainWindow _owner )
1783 this.el = new GtkClutter.Actor();
1787 // set gobject values
1788 var child_0 = new Xcls_Button56( _this );
1793 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1796 // user defined functions
1798 public class Xcls_Button56 : Object
1800 public Gtk.Button el;
1801 private Xcls_MainWindow _this;
1807 public Xcls_Button56(Xcls_MainWindow _owner )
1810 this.el = new Gtk.Button();
1814 // set gobject values
1815 this.el.width_request = 50;
1816 this.el.height_request = 50;
1817 this.el.tooltip_text = "New\nProj.";
1818 var child_0 = new Xcls_Image57( _this );
1820 this.el.set_image ( child_0.el );
1823 this.el.clicked.connect( ( ) => {
1825 // create a new file in project..
1826 //Xcls_DialogNewComponent.singleton().show(
1827 var pe = Xcls_EditProject.singleton();
1828 pe.el.set_transient_for(_this.el);
1829 pe.el.set_modal(true);
1838 _this.windowstate.left_projects.is_loaded = false;
1839 _this.windowstate.left_projects.load();
1840 _this.windowstate.left_projects.selectProject(p);
1847 // user defined functions
1849 public class Xcls_Image57 : Object
1851 public Gtk.Image el;
1852 private Xcls_MainWindow _this;
1858 public Xcls_Image57(Xcls_MainWindow _owner )
1861 this.el = new Gtk.Image();
1865 // set gobject values
1866 this.el.icon_name = "folder-new";
1869 // user defined functions
1871 public class Xcls_addfilebutton : Object
1873 public Clutter.Actor el;
1874 private Xcls_MainWindow _this;
1880 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1883 _this.addfilebutton = this;
1884 this.el = new Clutter.Actor();
1888 // set gobject values
1889 var child_0 = new Xcls_Actor59( _this );
1891 this.el.add_child ( child_0.el );
1895 this.el.set_size(50.0f,50.0f);
1898 // user defined functions
1900 public class Xcls_Actor59 : Object
1902 public GtkClutter.Actor el;
1903 private Xcls_MainWindow _this;
1909 public Xcls_Actor59(Xcls_MainWindow _owner )
1912 this.el = new GtkClutter.Actor();
1916 // set gobject values
1917 var child_0 = new Xcls_Button60( _this );
1922 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1925 // user defined functions
1927 public class Xcls_Button60 : Object
1929 public Gtk.Button el;
1930 private Xcls_MainWindow _this;
1936 public Xcls_Button60(Xcls_MainWindow _owner )
1939 this.el = new Gtk.Button();
1943 // set gobject values
1944 this.el.width_request = 50;
1945 this.el.height_request = 50;
1946 this.el.tooltip_text = "Add File";
1947 var child_0 = new Xcls_Image61( _this );
1949 this.el.set_image ( child_0.el );
1952 this.el.clicked.connect( () => {
1953 // create a new file in project..
1955 // what's the currently selected project...
1956 var proj = _this.windowstate.left_projects.getSelectedProject();
1964 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1965 _this.project = proj;
1967 _this.windowstate.file_details.show(
1976 // user defined functions
1978 public class Xcls_Image61 : Object
1980 public Gtk.Image el;
1981 private Xcls_MainWindow _this;
1987 public Xcls_Image61(Xcls_MainWindow _owner )
1990 this.el = new Gtk.Image();
1994 // set gobject values
1995 this.el.icon_name = "document-new";
1998 // user defined functions
2000 public class Xcls_delprojectbutton : Object
2002 public Clutter.Actor el;
2003 private Xcls_MainWindow _this;
2009 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2012 _this.delprojectbutton = this;
2013 this.el = new Clutter.Actor();
2017 // set gobject values
2018 var child_0 = new Xcls_Actor63( _this );
2020 this.el.add_child ( child_0.el );
2024 this.el.set_size(50,50);
2027 // user defined functions
2029 public class Xcls_Actor63 : Object
2031 public GtkClutter.Actor el;
2032 private Xcls_MainWindow _this;
2038 public Xcls_Actor63(Xcls_MainWindow _owner )
2041 this.el = new GtkClutter.Actor();
2045 // set gobject values
2046 var child_0 = new Xcls_Button64( _this );
2051 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2054 // user defined functions
2056 public class Xcls_Button64 : Object
2058 public Gtk.Button el;
2059 private Xcls_MainWindow _this;
2065 public Xcls_Button64(Xcls_MainWindow _owner )
2068 this.el = new Gtk.Button();
2072 // set gobject values
2073 this.el.width_request = 50;
2074 this.el.height_request = 50;
2075 this.el.tooltip_text = "Delete Project";
2076 var child_0 = new Xcls_Image65( _this );
2078 this.el.set_image ( child_0.el );
2081 this.el.clicked.connect( ( ) => {
2083 var cd = DialogConfirm.singleton();
2084 cd.el.set_transient_for(_this.el);
2085 cd.el.set_modal(true);
2087 var project = _this.windowstate.left_projects.getSelectedProject();
2088 if (project == null) {
2089 print("SKIP - no project\n");
2094 if (Gtk.ResponseType.YES != cd.show("Confirm",
2095 "Are you sure you want to delete project %s".printf(project.name))) {
2101 Project.Project.remove(project);
2102 _this.project = null;
2104 _this.windowstate.left_projects.is_loaded = false;
2105 _this.windowstate.left_projects.load();
2106 _this.windowstate.clutterfiles.clearFiles();
2111 // user defined functions
2113 public class Xcls_Image65 : Object
2115 public Gtk.Image el;
2116 private Xcls_MainWindow _this;
2122 public Xcls_Image65(Xcls_MainWindow _owner )
2125 this.el = new Gtk.Image();
2129 // set gobject values
2130 this.el.icon_name = "user-trash";
2133 // user defined functions
2135 public class Xcls_HBox66 : Object
2138 private Xcls_MainWindow _this;
2144 public Xcls_HBox66(Xcls_MainWindow _owner )
2147 this.el = new Gtk.HBox( false, 0 );
2151 // set gobject values
2152 var child_0 = new Xcls_Label67( _this );
2154 this.el.pack_start ( child_0.el , true,true,0 );
2155 var child_1 = new Xcls_statusbar( _this );
2157 this.el.pack_start ( child_1.el , true,true,0 );
2158 var child_2 = new Xcls_MenuBar69( _this );
2160 this.el.pack_end ( child_2.el , false,true,0 );
2163 // user defined functions
2165 public class Xcls_Label67 : Object
2167 public Gtk.Label el;
2168 private Xcls_MainWindow _this;
2174 public Xcls_Label67(Xcls_MainWindow _owner )
2177 this.el = new Gtk.Label( " " );
2181 // set gobject values
2184 // user defined functions
2186 public class Xcls_statusbar : Object
2188 public Gtk.ProgressBar el;
2189 private Xcls_MainWindow _this;
2193 public ulong handler_id;
2196 public Xcls_statusbar(Xcls_MainWindow _owner )
2199 _this.statusbar = this;
2200 this.el = new Gtk.ProgressBar();
2203 this.handler_id = -1;
2205 // set gobject values
2206 this.el.show_text = true;
2211 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2214 _this.mainpane.el.set_sensitive(true);
2218 _this.mainpane.el.set_sensitive(false);
2220 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2221 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2227 // user defined functions
2229 public class Xcls_MenuBar69 : Object
2231 public Gtk.MenuBar el;
2232 private Xcls_MainWindow _this;
2238 public Xcls_MenuBar69(Xcls_MainWindow _owner )
2241 this.el = new Gtk.MenuBar();
2245 // set gobject values
2246 var child_0 = new Xcls_statusbar_errors( _this );
2248 this.el.add ( child_0.el );
2249 var child_1 = new Xcls_statusbar_warnings( _this );
2251 this.el.add ( child_1.el );
2252 var child_2 = new Xcls_statusbar_depricated( _this );
2254 this.el.add ( child_2.el );
2257 // user defined functions
2259 public class Xcls_statusbar_errors : Object
2261 public Gtk.ImageMenuItem el;
2262 private Xcls_MainWindow _this;
2266 public Xcls_ValaCompileErrors errpopup;
2267 public Json.Object notices;
2270 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2273 _this.statusbar_errors = this;
2274 this.el = new Gtk.ImageMenuItem();
2277 this.notices = new Json.Object() ;
2279 // set gobject values
2280 this.el.always_show_image = true;
2281 this.el.label = "Errors";
2282 var child_0 = new Xcls_Image71( _this );
2284 this.el.set_image ( child_0.el );
2287 this.el.activate.connect( );
2288 this.el.button_press_event.connect( () => {
2289 if (this.errpopup == null) {
2290 this.errpopup = new Xcls_ValaCompileErrors();
2291 this.errpopup.window = this;
2293 this.errpopup.show(this.notices, this.el);
2297 // user defined functions
2299 public class Xcls_Image71 : Object
2301 public Gtk.Image el;
2302 private Xcls_MainWindow _this;
2308 public Xcls_Image71(Xcls_MainWindow _owner )
2311 this.el = new Gtk.Image();
2315 // set gobject values
2316 this.el.icon_name = "dialog-error";
2319 // user defined functions
2321 public class Xcls_statusbar_warnings : Object
2323 public Gtk.ImageMenuItem el;
2324 private Xcls_MainWindow _this;
2328 public Json.Object notices;
2331 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2334 _this.statusbar_warnings = this;
2335 this.el = new Gtk.ImageMenuItem();
2338 this.notices = new Json.Object();
2340 // set gobject values
2341 this.el.always_show_image = true;
2342 this.el.label = "Warnings";
2343 var child_0 = new Xcls_Image73( _this );
2345 this.el.set_image ( child_0.el );
2348 this.el.activate.connect( () => {
2349 _this.windowstate.vala_compile_errors.show(this.notices, this.el);
2353 // user defined functions
2355 public class Xcls_Image73 : Object
2357 public Gtk.Image el;
2358 private Xcls_MainWindow _this;
2364 public Xcls_Image73(Xcls_MainWindow _owner )
2367 this.el = new Gtk.Image();
2371 // set gobject values
2372 this.el.icon_name = "dialog-warning";
2375 // user defined functions
2377 public class Xcls_statusbar_depricated : Object
2379 public Gtk.ImageMenuItem el;
2380 private Xcls_MainWindow _this;
2384 public Json.Object notices;
2387 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2390 _this.statusbar_depricated = this;
2391 this.el = new Gtk.ImageMenuItem();
2394 this.notices = new Json.Object();
2396 // set gobject values
2397 this.el.always_show_image = true;
2398 this.el.label = "Depricated";
2399 var child_0 = new Xcls_Image75( _this );
2401 this.el.set_image ( child_0.el );
2404 this.el.activate.connect( () => {
2405 _this.windowstate.vala_compile_errors.show(this.notices, this.el);
2409 // user defined functions
2411 public class Xcls_Image75 : Object
2413 public Gtk.Image el;
2414 private Xcls_MainWindow _this;
2420 public Xcls_Image75(Xcls_MainWindow _owner )
2423 this.el = new Gtk.Image();
2427 // set gobject values
2428 this.el.icon_name = "dialog-information";
2431 // user defined functions