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_search_results search_results;
42 public Xcls_statusbar_errors statusbar_errors;
43 public Xcls_statusbar_warnings statusbar_warnings;
44 public Xcls_statusbar_depricated statusbar_depricated;
45 public Xcls_statusbar_run statusbar_run;
48 public Project.Project project;
50 public int no_windows;
51 public WindowState windowstate;
54 public Xcls_MainWindow()
57 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
61 this.title = "Application Builder";
63 this.windowstate = null;
66 this.el.border_width = 0;
67 this.el.default_height = 500;
68 this.el.default_width = 800;
69 var child_0 = new Xcls_headerbar( _this );
71 this.el.set_titlebar ( child_0.el );
72 var child_1 = new Xcls_vbox( _this );
74 this.el.add ( child_1.el );
81 this.el.delete_event.connect( ( event) => {
84 this.el.destroy.connect( () => {
85 Xcls_MainWindow.singleton().no_windows--;
87 Resources.singleton().disconnect(_this.statusbar.handler_id);
90 if (Xcls_MainWindow.singleton().no_windows < 1) {
95 this.el.show.connect( ( ) => {
96 // hide the file editing..
98 //this.hideViewEditing();
99 _this.statusbar.el.hide();
100 _this.statusbar_errors.el.hide();
101 _this.statusbar_warnings.el.hide();
102 _this.statusbar_depricated.el.hide();
105 Resources.singleton().checkResources();
110 // user defined functions
111 public void initChildren () {
112 // this needs putting in a better place..
113 this.windowstate = new WindowState(this);
117 var tl = new Clutter.Timeline(6000);
118 tl.set_repeat_count(-1);
127 public void show () {
132 public void setTitle (string str) {
133 this.headerbar.el.set_title(this.title + " - " + str);
135 public class Xcls_headerbar : Object
137 public Gtk.HeaderBar el;
138 private Xcls_MainWindow _this;
144 public Xcls_headerbar(Xcls_MainWindow _owner )
147 _this.headerbar = this;
148 this.el = new Gtk.HeaderBar();
152 // set gobject values
153 this.el.title = "Application Builder";
154 this.el.show_close_button = true;
155 var child_0 = new Xcls_Box3( _this );
157 this.el.pack_start ( child_0.el );
160 // user defined functions
162 public class Xcls_Box3 : Object
165 private Xcls_MainWindow _this;
171 public Xcls_Box3(Xcls_MainWindow _owner )
174 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
178 // set gobject values
179 var child_0 = new Xcls_MenuButton4( _this );
181 this.el.add ( child_0.el );
184 // user defined functions
186 public class Xcls_MenuButton4 : Object
188 public Gtk.MenuButton el;
189 private Xcls_MainWindow _this;
195 public Xcls_MenuButton4(Xcls_MainWindow _owner )
198 this.el = new Gtk.MenuButton();
202 // set gobject values
203 this.el.use_popover = false;
204 var child_0 = new Xcls_topbarmenu( _this );
206 this.el.set_popup ( child_0.el );
207 var child_1 = new Xcls_Image10( _this );
209 this.el.set_image ( child_1.el );
212 // user defined functions
214 public class Xcls_topbarmenu : Object
217 private Xcls_MainWindow _this;
223 public Xcls_topbarmenu(Xcls_MainWindow _owner )
226 _this.topbarmenu = this;
227 this.el = new Gtk.Menu();
231 // set gobject values
232 var child_0 = new Xcls_MenuItem6( _this );
234 this.el.append ( child_0.el );
235 var child_1 = new Xcls_SeparatorMenuItem7( _this );
237 this.el.append ( child_1.el );
238 var child_2 = new Xcls_MenuItem8( _this );
240 this.el.append ( child_2.el );
241 var child_3 = new Xcls_MenuItem9( _this );
243 this.el.append ( child_3.el );
252 // user defined functions
254 public class Xcls_MenuItem6 : Object
256 public Gtk.MenuItem el;
257 private Xcls_MainWindow _this;
263 public Xcls_MenuItem6(Xcls_MainWindow _owner )
266 this.el = new Gtk.MenuItem();
270 // set gobject values
271 this.el.label = "Open a new Window";
274 this.el.activate.connect( ( ) => {
275 Xcls_MainWindow.singleton().no_windows++;
276 var w = new Xcls_MainWindow();
281 w.windowstate.switchState(WindowState.State.FILES);
285 // user defined functions
288 public class Xcls_SeparatorMenuItem7 : Object
290 public Gtk.SeparatorMenuItem el;
291 private Xcls_MainWindow _this;
297 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
300 this.el = new Gtk.SeparatorMenuItem();
304 // set gobject values
307 // user defined functions
310 public class Xcls_MenuItem8 : Object
312 public Gtk.MenuItem el;
313 private Xcls_MainWindow _this;
319 public Xcls_MenuItem8(Xcls_MainWindow _owner )
322 this.el = new Gtk.MenuItem();
326 // set gobject values
327 this.el.label = "Download updated Resources";
330 this.el.activate.connect( ( ) => {
331 Resources.singleton().fetchStart();
335 // user defined functions
338 public class Xcls_MenuItem9 : Object
340 public Gtk.MenuItem el;
341 private Xcls_MainWindow _this;
347 public Xcls_MenuItem9(Xcls_MainWindow _owner )
350 this.el = new Gtk.MenuItem();
354 // set gobject values
355 this.el.label = "About the Builder";
358 this.el.activate.connect( () => {
359 About.singleton().el.show();
363 // user defined functions
367 public class Xcls_Image10 : Object
370 private Xcls_MainWindow _this;
376 public Xcls_Image10(Xcls_MainWindow _owner )
379 this.el = new Gtk.Image();
383 // set gobject values
384 this.el.icon_name = "help-about";
387 // user defined functions
393 public class Xcls_vbox : Object
396 private Xcls_MainWindow _this;
402 public Xcls_vbox(Xcls_MainWindow _owner )
406 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
410 // set gobject values
411 this.el.homogeneous = false;
412 var child_0 = new Xcls_mainpane( _this );
414 this.el.pack_start ( child_0.el , true,true,0 );
415 var child_1 = new Xcls_Box66( _this );
417 this.el.pack_end ( child_1.el , false,true,0 );
420 // user defined functions
422 public class Xcls_mainpane : Object
425 private Xcls_MainWindow _this;
429 public int lastWidth;
432 public Xcls_mainpane(Xcls_MainWindow _owner )
435 _this.mainpane = this;
436 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
441 // set gobject values
442 this.el.position = 400;
443 var child_0 = new Xcls_leftpane( _this );
445 this.el.add1 ( child_0.el );
446 var child_1 = new Xcls_Box17( _this );
448 this.el.add2 ( child_1.el );
451 // user defined functions
453 public class Xcls_leftpane : Object
456 private Xcls_MainWindow _this;
462 public Xcls_leftpane(Xcls_MainWindow _owner )
465 _this.leftpane = this;
466 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
470 // set gobject values
471 var child_0 = new Xcls_editpane( _this );
473 this.el.pack_start ( child_0.el , true,true,0 );
476 // user defined functions
478 public class Xcls_editpane : Object
481 private Xcls_MainWindow _this;
487 public Xcls_editpane(Xcls_MainWindow _owner )
490 _this.editpane = this;
491 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
495 // set gobject values
496 var child_0 = new Xcls_tree( _this );
498 this.el.add1 ( child_0.el );
499 var child_1 = new Xcls_props( _this );
501 this.el.add2 ( child_1.el );
504 // user defined functions
506 public class Xcls_tree : Object
509 private Xcls_MainWindow _this;
515 public Xcls_tree(Xcls_MainWindow _owner )
519 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
523 // set gobject values
526 // user defined functions
529 public class Xcls_props : Object
532 private Xcls_MainWindow _this;
538 public Xcls_props(Xcls_MainWindow _owner )
542 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
546 // set gobject values
549 // user defined functions
554 public class Xcls_Box17 : Object
557 private Xcls_MainWindow _this;
563 public Xcls_Box17(Xcls_MainWindow _owner )
566 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
570 // set gobject values
571 var child_0 = new Xcls_clutterembed( _this );
573 this.el.pack_start ( child_0.el , true,true,0 );
576 // user defined functions
578 public class Xcls_clutterembed : Object
580 public GtkClutter.Embed el;
581 private Xcls_MainWindow _this;
587 public Xcls_clutterembed(Xcls_MainWindow _owner )
590 _this.clutterembed = this;
591 this.el = new GtkClutter.Embed();
595 // set gobject values
596 var child_0 = new Xcls_rooview( _this );
598 this.el.get_stage().add_child ( child_0.el );
599 var child_1 = new Xcls_objectview( _this );
601 this.el.get_stage().add_child ( child_1.el );
602 var child_2 = new Xcls_codeeditview( _this );
604 this.el.get_stage().add_child ( child_2.el );
605 var child_3 = new Xcls_addpropsview( _this );
607 this.el.get_stage().add_child ( child_3.el );
608 var child_4 = new Xcls_projecteditview( _this );
610 this.el.get_stage().add_child ( child_4.el );
611 var child_5 = new Xcls_buttonlayout( _this );
613 this.el.get_stage().add_child ( child_5.el );
617 var stage = this.el.get_stage();
618 stage.set_background_color( Clutter.Color.from_string("#000"));
621 this.el.size_allocate.connect( ( alloc) => {
622 if (_this.windowstate == null) {
625 _this.windowstate.resizeCanvas();
630 // user defined functions
632 public class Xcls_rooview : Object
634 public GtkClutter.Actor el;
635 private Xcls_MainWindow _this;
641 public Xcls_rooview(Xcls_MainWindow _owner )
644 _this.rooview = this;
645 this.el = new GtkClutter.Actor();
649 // set gobject values
656 this.el.add_constraint(
657 new Clutter.AlignConstraint(
658 _this.clutterembed.el.get_stage(),
659 Clutter.AlignAxis.X_AXIS,
664 //this.el.set_position(100,100);
665 this.el.set_pivot_point(1.0f,1.0f);
667 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
668 _this.clutterembed.el.get_stage().height);
673 // user defined functions
676 public class Xcls_objectview : Object
678 public GtkClutter.Actor el;
679 private Xcls_MainWindow _this;
685 public Xcls_objectview(Xcls_MainWindow _owner )
688 _this.objectview = this;
689 this.el = new GtkClutter.Actor();
693 // set gobject values
700 this.el.add_constraint(
701 new Clutter.AlignConstraint(
702 _this.clutterembed.el.get_stage(),
703 Clutter.AlignAxis.X_AXIS,
708 this.el.fixed_x = 50.0f;
709 this.el.fixed_y = 0.0f;
710 //this.el.set_position(100,100);
711 this.el.set_pivot_point(0.0f,0.0f);
712 this.el.set_scale(0.0f,1.0f);
713 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
714 _this.clutterembed.el.get_stage().height);
719 // user defined functions
722 public class Xcls_codeeditview : Object
724 public GtkClutter.Actor el;
725 private Xcls_MainWindow _this;
731 public Xcls_codeeditview(Xcls_MainWindow _owner )
734 _this.codeeditview = this;
735 this.el = new GtkClutter.Actor();
739 // set gobject values
746 this.el.add_constraint(
747 new Clutter.AlignConstraint(
748 _this.clutterembed.el.get_stage(),
749 Clutter.AlignAxis.X_AXIS,
754 this.el.fixed_x = 50.0f;
755 this.el.fixed_y = 0.0f;
756 //this.el.set_position(100,100);
757 this.el.set_pivot_point(0.0f,0.0f);
758 this.el.set_scale(0.0f,1.0f);
759 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
760 _this.clutterembed.el.get_stage().height);
765 // user defined functions
768 public class Xcls_addpropsview : Object
770 public GtkClutter.Actor el;
771 private Xcls_MainWindow _this;
777 public Xcls_addpropsview(Xcls_MainWindow _owner )
780 _this.addpropsview = this;
781 this.el = new GtkClutter.Actor();
785 // set gobject values
792 this.el.add_constraint(
793 new Clutter.AlignConstraint(
794 _this.clutterembed.el.get_stage(),
795 Clutter.AlignAxis.X_AXIS,
800 this.el.fixed_x = 50.0f;
801 this.el.fixed_y = 0.0f;
802 //this.el.set_position(100,100);
803 this.el.set_pivot_point(0.0f,0.0f);
804 this.el.set_scale(0.0f,1.0f);
805 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
806 _this.clutterembed.el.get_stage().height);
811 // user defined functions
814 public class Xcls_projecteditview : Object
816 public GtkClutter.Actor el;
817 private Xcls_MainWindow _this;
823 public Xcls_projecteditview(Xcls_MainWindow _owner )
826 _this.projecteditview = this;
827 this.el = new GtkClutter.Actor();
831 // set gobject values
838 this.el.add_constraint(
839 new Clutter.AlignConstraint(
840 _this.clutterembed.el.get_stage(),
841 Clutter.AlignAxis.X_AXIS,
846 //this.el.set_position(100,100);
847 this.el.set_pivot_point(0.0f,0.0f);
848 this.el.set_scale(1.0f,0.0f);
849 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
850 _this.clutterembed.el.get_stage().height /2);
855 // user defined functions
858 public class Xcls_buttonlayout : Object
860 public Clutter.Actor el;
861 private Xcls_MainWindow _this;
867 public Xcls_buttonlayout(Xcls_MainWindow _owner )
870 _this.buttonlayout = this;
871 this.el = new Clutter.Actor();
875 // set gobject values
876 var child_0 = new Xcls_BoxLayout25( _this );
878 this.el.layout_manager = child_0.el;
879 var child_1 = new Xcls_backbutton( _this );
881 this.el.add_child ( child_1.el );
882 var child_2 = new Xcls_projectbutton( _this );
884 this.el.add_child ( child_2.el );
885 var child_3 = new Xcls_editfilebutton( _this );
887 this.el.add_child ( child_3.el );
888 var child_4 = new Xcls_projecteditbutton( _this );
890 this.el.add_child ( child_4.el );
891 var child_5 = new Xcls_objectshowbutton( _this );
893 this.el.add_child ( child_5.el );
894 var child_6 = new Xcls_addpropbutton( _this );
896 this.el.add_child ( child_6.el );
897 var child_7 = new Xcls_addlistenerbutton( _this );
899 this.el.add_child ( child_7.el );
900 var child_8 = new Xcls_addprojectbutton( _this );
902 this.el.add_child ( child_8.el );
903 var child_9 = new Xcls_addfilebutton( _this );
905 this.el.add_child ( child_9.el );
906 var child_10 = new Xcls_delprojectbutton( _this );
908 this.el.add_child ( child_10.el );
914 this.el.add_constraint(
915 new Clutter.AlignConstraint(
916 _this.clutterembed.el.get_stage(),
917 Clutter.AlignAxis.X_AXIS,
923 //this.el.set_position(100,100);
924 this.el.set_pivot_point(0.5f,0.5f);
926 _this.clutterembed.el.get_stage().height);
931 // user defined functions
933 public class Xcls_BoxLayout25 : Object
935 public Clutter.BoxLayout el;
936 private Xcls_MainWindow _this;
942 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
945 this.el = new Clutter.BoxLayout();
949 // set gobject values
950 this.el.orientation = Clutter.Orientation.VERTICAL;
953 // user defined functions
956 public class Xcls_backbutton : Object
958 public Clutter.Actor el;
959 private Xcls_MainWindow _this;
965 public Xcls_backbutton(Xcls_MainWindow _owner )
968 _this.backbutton = this;
969 this.el = new Clutter.Actor();
973 // set gobject values
974 var child_0 = new Xcls_Actor27( _this );
976 this.el.add_child ( child_0.el );
980 this.el.set_size(50,50);
983 // user defined functions
985 public class Xcls_Actor27 : Object
987 public GtkClutter.Actor el;
988 private Xcls_MainWindow _this;
994 public Xcls_Actor27(Xcls_MainWindow _owner )
997 this.el = new GtkClutter.Actor();
1001 // set gobject values
1002 var child_0 = new Xcls_Button28( _this );
1007 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1010 // user defined functions
1012 public class Xcls_Button28 : Object
1014 public Gtk.Button el;
1015 private Xcls_MainWindow _this;
1021 public Xcls_Button28(Xcls_MainWindow _owner )
1024 this.el = new Gtk.Button();
1028 // set gobject values
1029 this.el.width_request = 50;
1030 this.el.height_request = 50;
1031 this.el.tooltip_text = "Back";
1032 var child_0 = new Xcls_Image29( _this );
1034 this.el.set_image ( child_0.el );
1037 this.el.clicked.connect( ( ) => {
1039 _this.windowstate.switchState(WindowState.State.PREVIEW);
1045 // user defined functions
1047 public class Xcls_Image29 : Object
1049 public Gtk.Image el;
1050 private Xcls_MainWindow _this;
1056 public Xcls_Image29(Xcls_MainWindow _owner )
1059 this.el = new Gtk.Image();
1063 // set gobject values
1064 this.el.icon_name = "go-previous";
1067 // user defined functions
1073 public class Xcls_projectbutton : Object
1075 public Clutter.Actor el;
1076 private Xcls_MainWindow _this;
1082 public Xcls_projectbutton(Xcls_MainWindow _owner )
1085 _this.projectbutton = this;
1086 this.el = new Clutter.Actor();
1090 // set gobject values
1091 var child_0 = new Xcls_Actor31( _this );
1093 this.el.add_child ( child_0.el );
1097 this.el.set_size(50,50);
1100 // user defined functions
1102 public class Xcls_Actor31 : Object
1104 public GtkClutter.Actor el;
1105 private Xcls_MainWindow _this;
1111 public Xcls_Actor31(Xcls_MainWindow _owner )
1114 this.el = new GtkClutter.Actor();
1118 // set gobject values
1119 var child_0 = new Xcls_Button32( _this );
1124 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1127 // user defined functions
1129 public class Xcls_Button32 : Object
1131 public Gtk.Button el;
1132 private Xcls_MainWindow _this;
1138 public Xcls_Button32(Xcls_MainWindow _owner )
1141 this.el = new Gtk.Button();
1145 // set gobject values
1146 this.el.width_request = 50;
1147 this.el.height_request = 50;
1148 var child_0 = new Xcls_Image33( _this );
1150 this.el.set_image ( child_0.el );
1153 this.el.clicked.connect( ( ) => {
1154 _this.windowstate.switchState(WindowState.State.FILES);
1160 // user defined functions
1162 public class Xcls_Image33 : Object
1164 public Gtk.Image el;
1165 private Xcls_MainWindow _this;
1171 public Xcls_Image33(Xcls_MainWindow _owner )
1174 this.el = new Gtk.Image();
1178 // set gobject values
1179 this.el.icon_name = "document-open";
1182 // user defined functions
1188 public class Xcls_editfilebutton : Object
1190 public Clutter.Actor el;
1191 private Xcls_MainWindow _this;
1197 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1200 _this.editfilebutton = this;
1201 this.el = new Clutter.Actor();
1205 // set gobject values
1206 var child_0 = new Xcls_Actor35( _this );
1208 this.el.add_child ( child_0.el );
1212 this.el.set_size(50.0f,50.0f);
1215 // user defined functions
1217 public class Xcls_Actor35 : Object
1219 public GtkClutter.Actor el;
1220 private Xcls_MainWindow _this;
1226 public Xcls_Actor35(Xcls_MainWindow _owner )
1229 this.el = new GtkClutter.Actor();
1233 // set gobject values
1234 var child_0 = new Xcls_Button36( _this );
1239 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1242 // user defined functions
1244 public class Xcls_Button36 : Object
1246 public Gtk.Button el;
1247 private Xcls_MainWindow _this;
1253 public Xcls_Button36(Xcls_MainWindow _owner )
1256 this.el = new Gtk.Button();
1260 // set gobject values
1261 this.el.width_request = 50;
1262 this.el.height_request = 50;
1263 this.el.tooltip_text = "File Details";
1264 var child_0 = new Xcls_Image37( _this );
1266 this.el.set_image ( child_0.el );
1269 this.el.clicked.connect( ( ) => {
1271 // create a new file in project..
1272 if (_this.project == null || _this.windowstate.file == null) {
1275 _this.windowstate.file_details.show(
1276 _this.windowstate.file, this.el
1285 // user defined functions
1287 public class Xcls_Image37 : Object
1289 public Gtk.Image el;
1290 private Xcls_MainWindow _this;
1296 public Xcls_Image37(Xcls_MainWindow _owner )
1299 this.el = new Gtk.Image();
1303 // set gobject values
1304 this.el.icon_name = "document-properties";
1307 // user defined functions
1313 public class Xcls_projecteditbutton : Object
1315 public Clutter.Actor el;
1316 private Xcls_MainWindow _this;
1322 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1325 _this.projecteditbutton = this;
1326 this.el = new Clutter.Actor();
1330 // set gobject values
1331 var child_0 = new Xcls_Actor39( _this );
1333 this.el.add_child ( child_0.el );
1337 this.el.set_size(50,50);
1340 // user defined functions
1342 public class Xcls_Actor39 : Object
1344 public GtkClutter.Actor el;
1345 private Xcls_MainWindow _this;
1351 public Xcls_Actor39(Xcls_MainWindow _owner )
1354 this.el = new GtkClutter.Actor();
1358 // set gobject values
1359 var child_0 = new Xcls_Button40( _this );
1364 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1367 // user defined functions
1369 public class Xcls_Button40 : Object
1371 public Gtk.Button el;
1372 private Xcls_MainWindow _this;
1378 public Xcls_Button40(Xcls_MainWindow _owner )
1381 this.el = new Gtk.Button();
1385 // set gobject values
1386 this.el.width_request = 50;
1387 this.el.height_request = 50;
1388 this.el.tooltip_text = "Project Details";
1389 var child_0 = new Xcls_Image41( _this );
1391 this.el.set_image ( child_0.el );
1394 this.el.clicked.connect( ( ) => {
1395 _this.windowstate.switchState(WindowState.State.PROJECT);
1402 // user defined functions
1404 public class Xcls_Image41 : Object
1406 public Gtk.Image el;
1407 private Xcls_MainWindow _this;
1413 public Xcls_Image41(Xcls_MainWindow _owner )
1416 this.el = new Gtk.Image();
1420 // set gobject values
1421 this.el.icon_name = "emblem-system";
1424 // user defined functions
1430 public class Xcls_objectshowbutton : Object
1432 public Clutter.Actor el;
1433 private Xcls_MainWindow _this;
1439 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1442 _this.objectshowbutton = this;
1443 this.el = new Clutter.Actor();
1447 // set gobject values
1448 var child_0 = new Xcls_Actor43( _this );
1450 this.el.add_child ( child_0.el );
1454 this.el.set_size(50,50);
1457 this.el.enter_event.connect( ( event) => {
1458 this.el.background_color = Clutter.Color.from_string("#333");
1461 this.el.leave_event.connect( ( event) => {
1462 this.el.background_color = Clutter.Color.from_string("#000");
1467 // user defined functions
1469 public class Xcls_Actor43 : Object
1471 public GtkClutter.Actor el;
1472 private Xcls_MainWindow _this;
1478 public Xcls_Actor43(Xcls_MainWindow _owner )
1481 this.el = new GtkClutter.Actor();
1485 // set gobject values
1486 var child_0 = new Xcls_Button44( _this );
1491 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1494 // user defined functions
1496 public class Xcls_Button44 : Object
1498 public Gtk.Button el;
1499 private Xcls_MainWindow _this;
1505 public Xcls_Button44(Xcls_MainWindow _owner )
1508 this.el = new Gtk.Button();
1512 // set gobject values
1513 this.el.width_request = 50;
1514 this.el.height_request = 50;
1515 this.el.tooltip_text = "Add Child Element";
1516 var child_0 = new Xcls_Image45( _this );
1518 this.el.set_image ( child_0.el );
1521 this.el.clicked.connect( ( ) => {
1523 _this.windowstate.switchState(WindowState.State.OBJECT);
1529 // user defined functions
1531 public class Xcls_Image45 : Object
1533 public Gtk.Image el;
1534 private Xcls_MainWindow _this;
1540 public Xcls_Image45(Xcls_MainWindow _owner )
1543 this.el = new Gtk.Image();
1547 // set gobject values
1548 this.el.icon_name = "list-add";
1551 // user defined functions
1557 public class Xcls_addpropbutton : Object
1559 public Clutter.Actor el;
1560 private Xcls_MainWindow _this;
1566 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1569 _this.addpropbutton = this;
1570 this.el = new Clutter.Actor();
1574 // set gobject values
1575 var child_0 = new Xcls_Actor47( _this );
1577 this.el.add_child ( child_0.el );
1581 this.el.set_size(50,50);
1584 // user defined functions
1586 public class Xcls_Actor47 : Object
1588 public GtkClutter.Actor el;
1589 private Xcls_MainWindow _this;
1595 public Xcls_Actor47(Xcls_MainWindow _owner )
1598 this.el = new GtkClutter.Actor();
1602 // set gobject values
1603 var child_0 = new Xcls_Button48( _this );
1608 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1611 // user defined functions
1613 public class Xcls_Button48 : Object
1615 public Gtk.Button el;
1616 private Xcls_MainWindow _this;
1622 public Xcls_Button48(Xcls_MainWindow _owner )
1625 this.el = new Gtk.Button();
1629 // set gobject values
1630 this.el.width_request = 50;
1631 this.el.height_request = 50;
1632 this.el.tooltip_text = "Add Property";
1633 var child_0 = new Xcls_Image49( _this );
1635 this.el.set_image ( child_0.el );
1638 this.el.clicked.connect( ( ) => {
1640 _this.windowstate.switchState(WindowState.State.PROP);
1646 // user defined functions
1648 public class Xcls_Image49 : Object
1650 public Gtk.Image el;
1651 private Xcls_MainWindow _this;
1657 public Xcls_Image49(Xcls_MainWindow _owner )
1660 this.el = new Gtk.Image();
1664 // set gobject values
1665 this.el.icon_name = "format-justify-left";
1668 // user defined functions
1674 public class Xcls_addlistenerbutton : Object
1676 public Clutter.Actor el;
1677 private Xcls_MainWindow _this;
1683 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1686 _this.addlistenerbutton = this;
1687 this.el = new Clutter.Actor();
1691 // set gobject values
1692 var child_0 = new Xcls_Actor51( _this );
1694 this.el.add_child ( child_0.el );
1698 this.el.set_size(50,50);
1701 // user defined functions
1703 public class Xcls_Actor51 : Object
1705 public GtkClutter.Actor el;
1706 private Xcls_MainWindow _this;
1712 public Xcls_Actor51(Xcls_MainWindow _owner )
1715 this.el = new GtkClutter.Actor();
1719 // set gobject values
1720 var child_0 = new Xcls_Button52( _this );
1725 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1728 // user defined functions
1730 public class Xcls_Button52 : Object
1732 public Gtk.Button el;
1733 private Xcls_MainWindow _this;
1739 public Xcls_Button52(Xcls_MainWindow _owner )
1742 this.el = new Gtk.Button();
1746 // set gobject values
1747 this.el.width_request = 50;
1748 this.el.height_request = 50;
1749 this.el.tooltip_text = "Add Event Code";
1750 var child_0 = new Xcls_Image53( _this );
1752 this.el.set_image ( child_0.el );
1755 this.el.clicked.connect( ( ) => {
1757 _this.windowstate.switchState(WindowState.State.LISTENER);
1764 // user defined functions
1766 public class Xcls_Image53 : Object
1768 public Gtk.Image el;
1769 private Xcls_MainWindow _this;
1775 public Xcls_Image53(Xcls_MainWindow _owner )
1778 this.el = new Gtk.Image();
1782 // set gobject values
1783 this.el.icon_name = "appointment-new";
1786 // user defined functions
1792 public class Xcls_addprojectbutton : Object
1794 public Clutter.Actor el;
1795 private Xcls_MainWindow _this;
1801 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1804 _this.addprojectbutton = this;
1805 this.el = new Clutter.Actor();
1809 // set gobject values
1810 var child_0 = new Xcls_Actor55( _this );
1812 this.el.add_child ( child_0.el );
1816 this.el.set_size(50.0f,50.0f);
1819 // user defined functions
1821 public class Xcls_Actor55 : Object
1823 public GtkClutter.Actor el;
1824 private Xcls_MainWindow _this;
1830 public Xcls_Actor55(Xcls_MainWindow _owner )
1833 this.el = new GtkClutter.Actor();
1837 // set gobject values
1838 var child_0 = new Xcls_Button56( _this );
1843 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1846 // user defined functions
1848 public class Xcls_Button56 : Object
1850 public Gtk.Button el;
1851 private Xcls_MainWindow _this;
1857 public Xcls_Button56(Xcls_MainWindow _owner )
1860 this.el = new Gtk.Button();
1864 // set gobject values
1865 this.el.width_request = 50;
1866 this.el.height_request = 50;
1867 this.el.tooltip_text = "New\nProj.";
1868 var child_0 = new Xcls_Image57( _this );
1870 this.el.set_image ( child_0.el );
1873 this.el.clicked.connect( ( ) => {
1875 // create a new file in project..
1876 //Xcls_DialogNewComponent.singleton().show(
1877 var pe = EditProject.singleton();
1878 pe.el.set_transient_for(_this.el);
1879 pe.el.set_modal(true);
1888 _this.windowstate.left_projects.is_loaded = false;
1889 _this.windowstate.left_projects.load();
1890 _this.windowstate.left_projects.selectProject(p);
1897 // user defined functions
1899 public class Xcls_Image57 : Object
1901 public Gtk.Image el;
1902 private Xcls_MainWindow _this;
1908 public Xcls_Image57(Xcls_MainWindow _owner )
1911 this.el = new Gtk.Image();
1915 // set gobject values
1916 this.el.icon_name = "folder-new";
1919 // user defined functions
1925 public class Xcls_addfilebutton : Object
1927 public Clutter.Actor el;
1928 private Xcls_MainWindow _this;
1934 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1937 _this.addfilebutton = this;
1938 this.el = new Clutter.Actor();
1942 // set gobject values
1943 var child_0 = new Xcls_Actor59( _this );
1945 this.el.add_child ( child_0.el );
1949 this.el.set_size(50.0f,50.0f);
1952 // user defined functions
1954 public class Xcls_Actor59 : Object
1956 public GtkClutter.Actor el;
1957 private Xcls_MainWindow _this;
1963 public Xcls_Actor59(Xcls_MainWindow _owner )
1966 this.el = new GtkClutter.Actor();
1970 // set gobject values
1971 var child_0 = new Xcls_Button60( _this );
1976 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1979 // user defined functions
1981 public class Xcls_Button60 : Object
1983 public Gtk.Button el;
1984 private Xcls_MainWindow _this;
1990 public Xcls_Button60(Xcls_MainWindow _owner )
1993 this.el = new Gtk.Button();
1997 // set gobject values
1998 this.el.width_request = 50;
1999 this.el.height_request = 50;
2000 this.el.tooltip_text = "Add File";
2001 var child_0 = new Xcls_Image61( _this );
2003 this.el.set_image ( child_0.el );
2006 this.el.clicked.connect( () => {
2007 // create a new file in project..
2008 print("add file selected\n");
2009 // what's the currently selected project...
2010 var proj = _this.windowstate.left_projects.getSelectedProject();
2013 print("no project selected?\n");
2017 print("creating file?");
2019 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2020 _this.project = proj;
2021 print("showing popup?");
2022 _this.windowstate.file_details.show(
2031 // user defined functions
2033 public class Xcls_Image61 : Object
2035 public Gtk.Image el;
2036 private Xcls_MainWindow _this;
2042 public Xcls_Image61(Xcls_MainWindow _owner )
2045 this.el = new Gtk.Image();
2049 // set gobject values
2050 this.el.icon_name = "document-new";
2053 // user defined functions
2059 public class Xcls_delprojectbutton : Object
2061 public Clutter.Actor el;
2062 private Xcls_MainWindow _this;
2068 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2071 _this.delprojectbutton = this;
2072 this.el = new Clutter.Actor();
2076 // set gobject values
2077 var child_0 = new Xcls_Actor63( _this );
2079 this.el.add_child ( child_0.el );
2083 this.el.set_size(50,50);
2086 // user defined functions
2088 public class Xcls_Actor63 : Object
2090 public GtkClutter.Actor el;
2091 private Xcls_MainWindow _this;
2097 public Xcls_Actor63(Xcls_MainWindow _owner )
2100 this.el = new GtkClutter.Actor();
2104 // set gobject values
2105 var child_0 = new Xcls_Button64( _this );
2110 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2113 // user defined functions
2115 public class Xcls_Button64 : Object
2117 public Gtk.Button el;
2118 private Xcls_MainWindow _this;
2124 public Xcls_Button64(Xcls_MainWindow _owner )
2127 this.el = new Gtk.Button();
2131 // set gobject values
2132 this.el.width_request = 50;
2133 this.el.height_request = 50;
2134 this.el.tooltip_text = "Delete Project";
2135 var child_0 = new Xcls_Image65( _this );
2137 this.el.set_image ( child_0.el );
2140 this.el.clicked.connect( ( ) => {
2142 var cd = DialogConfirm.singleton();
2143 cd.el.set_transient_for(_this.el);
2144 cd.el.set_modal(true);
2146 var project = _this.windowstate.left_projects.getSelectedProject();
2147 if (project == null) {
2148 print("SKIP - no project\n");
2153 if (Gtk.ResponseType.YES != cd.show("Confirm",
2154 "Are you sure you want to delete project %s".printf(project.name))) {
2160 Project.Project.remove(project);
2161 _this.project = null;
2163 _this.windowstate.left_projects.is_loaded = false;
2164 _this.windowstate.left_projects.load();
2165 _this.windowstate.clutterfiles.clearFiles();
2170 // user defined functions
2172 public class Xcls_Image65 : Object
2174 public Gtk.Image el;
2175 private Xcls_MainWindow _this;
2181 public Xcls_Image65(Xcls_MainWindow _owner )
2184 this.el = new Gtk.Image();
2188 // set gobject values
2189 this.el.icon_name = "user-trash";
2192 // user defined functions
2202 public class Xcls_Box66 : Object
2205 private Xcls_MainWindow _this;
2211 public Xcls_Box66(Xcls_MainWindow _owner )
2214 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2218 // set gobject values
2219 this.el.homogeneous = false;
2220 var child_0 = new Xcls_Label67( _this );
2222 this.el.pack_start ( child_0.el , true,true,0 );
2223 var child_1 = new Xcls_statusbar( _this );
2225 this.el.pack_start ( child_1.el , true,true,0 );
2226 var child_2 = new Xcls_Entry69( _this );
2228 this.el.pack_start ( child_2.el , false,true,0 );
2229 var child_3 = new Xcls_MenuBar70( _this );
2231 this.el.pack_end ( child_3.el , false,true,0 );
2234 // user defined functions
2236 public class Xcls_Label67 : Object
2238 public Gtk.Label el;
2239 private Xcls_MainWindow _this;
2245 public Xcls_Label67(Xcls_MainWindow _owner )
2248 this.el = new Gtk.Label( " " );
2252 // set gobject values
2255 // user defined functions
2258 public class Xcls_statusbar : Object
2260 public Gtk.ProgressBar el;
2261 private Xcls_MainWindow _this;
2265 public ulong handler_id;
2268 public Xcls_statusbar(Xcls_MainWindow _owner )
2271 _this.statusbar = this;
2272 this.el = new Gtk.ProgressBar();
2275 this.handler_id = -1;
2277 // set gobject values
2278 this.el.show_text = true;
2283 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2286 _this.mainpane.el.set_sensitive(true);
2290 _this.mainpane.el.set_sensitive(false);
2292 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2293 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2299 // user defined functions
2302 public class Xcls_Entry69 : Object
2304 public Gtk.Entry el;
2305 private Xcls_MainWindow _this;
2311 public Xcls_Entry69(Xcls_MainWindow _owner )
2314 this.el = new Gtk.Entry();
2318 // set gobject values
2321 // user defined functions
2324 public class Xcls_MenuBar70 : Object
2326 public Gtk.MenuBar el;
2327 private Xcls_MainWindow _this;
2333 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2336 this.el = new Gtk.MenuBar();
2340 // set gobject values
2341 var child_0 = new Xcls_search_results( _this );
2343 this.el.add ( child_0.el );
2344 var child_1 = new Xcls_MenuItem73( _this );
2346 this.el.add ( child_1.el );
2347 var child_2 = new Xcls_statusbar_errors( _this );
2349 this.el.add ( child_2.el );
2350 var child_3 = new Xcls_statusbar_warnings( _this );
2352 this.el.add ( child_3.el );
2353 var child_4 = new Xcls_statusbar_depricated( _this );
2355 this.el.add ( child_4.el );
2356 var child_5 = new Xcls_statusbar_run( _this );
2358 this.el.add ( child_5.el );
2361 // user defined functions
2363 public class Xcls_search_results : Object
2365 public Gtk.ImageMenuItem el;
2366 private Xcls_MainWindow _this;
2370 public Xcls_ValaCompileErrors popup;
2373 public Xcls_search_results(Xcls_MainWindow _owner )
2376 _this.search_results = this;
2377 this.el = new Gtk.ImageMenuItem();
2381 // set gobject values
2382 this.el.always_show_image = true;
2383 this.el.label = "Matches";
2384 var child_0 = new Xcls_Image72( _this );
2386 this.el.set_image ( child_0.el );
2389 this.el.button_press_event.connect( () => {
2391 if (this.popup == null) {
2392 this.popup = new Xcls_ValaCompileErrors();
2393 this.popup.window = _this;
2397 this.popup.show(this.notices, this.el);
2403 // user defined functions
2405 public class Xcls_Image72 : Object
2407 public Gtk.Image el;
2408 private Xcls_MainWindow _this;
2414 public Xcls_Image72(Xcls_MainWindow _owner )
2417 this.el = new Gtk.Image();
2421 // set gobject values
2422 this.el.icon_name = "system-search";
2425 // user defined functions
2429 public class Xcls_MenuItem73 : Object
2431 public Gtk.MenuItem el;
2432 private Xcls_MainWindow _this;
2438 public Xcls_MenuItem73(Xcls_MainWindow _owner )
2441 this.el = new Gtk.MenuItem();
2445 // set gobject values
2446 this.el.label = "Compile Status:";
2449 // user defined functions
2452 public class Xcls_statusbar_errors : Object
2454 public Gtk.ImageMenuItem el;
2455 private Xcls_MainWindow _this;
2459 public Xcls_ValaCompileErrors popup;
2460 public Json.Object notices;
2463 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2466 _this.statusbar_errors = this;
2467 this.el = new Gtk.ImageMenuItem();
2470 this.notices = new Json.Object() ;
2472 // set gobject values
2473 this.el.always_show_image = true;
2474 this.el.label = "Errors";
2475 var child_0 = new Xcls_Image75( _this );
2477 this.el.set_image ( child_0.el );
2480 this.el.button_press_event.connect( () => {
2481 if (this.popup == null) {
2482 this.popup = new Xcls_ValaCompileErrors();
2483 this.popup.window = _this;
2487 this.popup.show(this.notices, this.el);
2492 // user defined functions
2493 public void setNotices (Json.Object nots, int qty) {
2495 this.el.label = qty.to_string() + " Errors";
2496 this.notices = nots;
2500 public class Xcls_Image75 : Object
2502 public Gtk.Image el;
2503 private Xcls_MainWindow _this;
2509 public Xcls_Image75(Xcls_MainWindow _owner )
2512 this.el = new Gtk.Image();
2516 // set gobject values
2517 this.el.icon_name = "dialog-error";
2520 // user defined functions
2524 public class Xcls_statusbar_warnings : Object
2526 public Gtk.ImageMenuItem el;
2527 private Xcls_MainWindow _this;
2531 public Xcls_ValaCompileErrors popup;
2532 public Json.Object notices;
2535 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2538 _this.statusbar_warnings = this;
2539 this.el = new Gtk.ImageMenuItem();
2542 this.notices = new Json.Object();
2544 // set gobject values
2545 this.el.always_show_image = true;
2546 this.el.label = "Warnings";
2547 var child_0 = new Xcls_Image77( _this );
2549 this.el.set_image ( child_0.el );
2552 this.el.button_press_event.connect( () => {
2553 if (this.popup == null) {
2554 this.popup = new Xcls_ValaCompileErrors();
2555 this.popup.window = _this;
2558 this.popup.show(this.notices, this.el);
2563 // user defined functions
2564 public void setNotices (Json.Object nots, int qty) {
2566 this.el.label = qty.to_string() + " Warnings";
2567 this.notices = nots;
2571 public class Xcls_Image77 : Object
2573 public Gtk.Image el;
2574 private Xcls_MainWindow _this;
2580 public Xcls_Image77(Xcls_MainWindow _owner )
2583 this.el = new Gtk.Image();
2587 // set gobject values
2588 this.el.icon_name = "dialog-warning";
2591 // user defined functions
2595 public class Xcls_statusbar_depricated : Object
2597 public Gtk.ImageMenuItem el;
2598 private Xcls_MainWindow _this;
2602 public Xcls_ValaCompileErrors popup;
2603 public Json.Object notices;
2606 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2609 _this.statusbar_depricated = this;
2610 this.el = new Gtk.ImageMenuItem();
2613 this.notices = new Json.Object();
2615 // set gobject values
2616 this.el.always_show_image = true;
2617 this.el.label = "Depricated";
2618 var child_0 = new Xcls_Image79( _this );
2620 this.el.set_image ( child_0.el );
2623 this.el.button_press_event.connect( () => {
2624 if (this.popup == null) {
2625 this.popup = new Xcls_ValaCompileErrors();
2626 this.popup.window = _this;
2630 this.popup.show(this.notices, this.el);
2635 // user defined functions
2636 public void setNotices (Json.Object nots, int qty) {
2638 this.el.label = qty.to_string() + " Depricated";
2639 this.notices = nots;
2643 public class Xcls_Image79 : Object
2645 public Gtk.Image el;
2646 private Xcls_MainWindow _this;
2652 public Xcls_Image79(Xcls_MainWindow _owner )
2655 this.el = new Gtk.Image();
2659 // set gobject values
2660 this.el.icon_name = "dialog-information";
2663 // user defined functions
2667 public class Xcls_statusbar_run : Object
2669 public Gtk.ImageMenuItem el;
2670 private Xcls_MainWindow _this;
2674 public Xcls_ValaCompileErrors popup;
2677 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2680 _this.statusbar_run = this;
2681 this.el = new Gtk.ImageMenuItem();
2685 // set gobject values
2686 this.el.always_show_image = true;
2687 this.el.label = "Run";
2688 var child_0 = new Xcls_Image81( _this );
2690 this.el.set_image ( child_0.el );
2693 this.el.button_press_event.connect( () => {
2694 if (_this.windowstate.file == null) {
2697 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2699 _this.windowstate.compile_results.show(this.el,true);
2705 // user defined functions
2707 public class Xcls_Image81 : Object
2709 public Gtk.Image el;
2710 private Xcls_MainWindow _this;
2716 public Xcls_Image81(Xcls_MainWindow _owner )
2719 this.el = new Gtk.Image();
2723 // set gobject values
2724 this.el.icon_name = "media-playback-start";
2727 // user defined functions