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_entry search_entry;
42 public Xcls_search_results search_results;
43 public Xcls_statusbar_errors statusbar_errors;
44 public Xcls_statusbar_warnings statusbar_warnings;
45 public Xcls_statusbar_depricated statusbar_depricated;
46 public Xcls_statusbar_run statusbar_run;
49 public Project.Project project;
51 public int no_windows;
52 public WindowState windowstate;
55 public Xcls_MainWindow()
58 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
62 this.title = "Application Builder";
64 this.windowstate = null;
67 this.el.border_width = 0;
68 this.el.default_height = 500;
69 this.el.default_width = 800;
70 var child_0 = new Xcls_headerbar( _this );
72 this.el.set_titlebar ( child_0.el );
73 var child_1 = new Xcls_vbox( _this );
75 this.el.add ( child_1.el );
82 this.el.delete_event.connect( ( event) => {
85 this.el.button_release_event.connect( (event) => {
87 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
88 print("SAVE: ctrl-f pressed");
92 // print(event.key.keyval)
97 this.el.destroy.connect( () => {
98 Xcls_MainWindow.singleton().no_windows--;
100 Resources.singleton().disconnect(_this.statusbar.handler_id);
103 if (Xcls_MainWindow.singleton().no_windows < 1) {
108 this.el.show.connect( ( ) => {
109 // hide the file editing..
111 //this.hideViewEditing();
112 _this.statusbar.el.hide();
113 _this.statusbar_errors.el.hide();
114 _this.statusbar_warnings.el.hide();
115 _this.statusbar_depricated.el.hide();
118 Resources.singleton().checkResources();
123 // user defined functions
124 public void initChildren () {
125 // this needs putting in a better place..
126 this.windowstate = new WindowState(this);
130 var tl = new Clutter.Timeline(6000);
131 tl.set_repeat_count(-1);
140 public void show () {
145 public void setTitle (string str) {
146 this.headerbar.el.set_title(this.title + " - " + str);
148 public class Xcls_headerbar : Object
150 public Gtk.HeaderBar el;
151 private Xcls_MainWindow _this;
157 public Xcls_headerbar(Xcls_MainWindow _owner )
160 _this.headerbar = this;
161 this.el = new Gtk.HeaderBar();
165 // set gobject values
166 this.el.title = "Application Builder";
167 this.el.show_close_button = true;
168 var child_0 = new Xcls_Box3( _this );
170 this.el.pack_start ( child_0.el );
173 // user defined functions
175 public class Xcls_Box3 : Object
178 private Xcls_MainWindow _this;
184 public Xcls_Box3(Xcls_MainWindow _owner )
187 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
191 // set gobject values
192 var child_0 = new Xcls_MenuButton4( _this );
194 this.el.add ( child_0.el );
197 // user defined functions
199 public class Xcls_MenuButton4 : Object
201 public Gtk.MenuButton el;
202 private Xcls_MainWindow _this;
208 public Xcls_MenuButton4(Xcls_MainWindow _owner )
211 this.el = new Gtk.MenuButton();
215 // set gobject values
216 this.el.use_popover = false;
217 var child_0 = new Xcls_topbarmenu( _this );
219 this.el.set_popup ( child_0.el );
220 var child_1 = new Xcls_Image10( _this );
222 this.el.set_image ( child_1.el );
225 // user defined functions
227 public class Xcls_topbarmenu : Object
230 private Xcls_MainWindow _this;
236 public Xcls_topbarmenu(Xcls_MainWindow _owner )
239 _this.topbarmenu = this;
240 this.el = new Gtk.Menu();
244 // set gobject values
245 var child_0 = new Xcls_MenuItem6( _this );
247 this.el.append ( child_0.el );
248 var child_1 = new Xcls_SeparatorMenuItem7( _this );
250 this.el.append ( child_1.el );
251 var child_2 = new Xcls_MenuItem8( _this );
253 this.el.append ( child_2.el );
254 var child_3 = new Xcls_MenuItem9( _this );
256 this.el.append ( child_3.el );
265 // user defined functions
267 public class Xcls_MenuItem6 : Object
269 public Gtk.MenuItem el;
270 private Xcls_MainWindow _this;
276 public Xcls_MenuItem6(Xcls_MainWindow _owner )
279 this.el = new Gtk.MenuItem();
283 // set gobject values
284 this.el.label = "Open a new Window";
287 this.el.activate.connect( ( ) => {
288 Xcls_MainWindow.singleton().no_windows++;
289 var w = new Xcls_MainWindow();
294 w.windowstate.switchState(WindowState.State.FILES);
298 // user defined functions
301 public class Xcls_SeparatorMenuItem7 : Object
303 public Gtk.SeparatorMenuItem el;
304 private Xcls_MainWindow _this;
310 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
313 this.el = new Gtk.SeparatorMenuItem();
317 // set gobject values
320 // user defined functions
323 public class Xcls_MenuItem8 : Object
325 public Gtk.MenuItem el;
326 private Xcls_MainWindow _this;
332 public Xcls_MenuItem8(Xcls_MainWindow _owner )
335 this.el = new Gtk.MenuItem();
339 // set gobject values
340 this.el.label = "Download updated Resources";
343 this.el.activate.connect( ( ) => {
344 Resources.singleton().fetchStart();
348 // user defined functions
351 public class Xcls_MenuItem9 : Object
353 public Gtk.MenuItem el;
354 private Xcls_MainWindow _this;
360 public Xcls_MenuItem9(Xcls_MainWindow _owner )
363 this.el = new Gtk.MenuItem();
367 // set gobject values
368 this.el.label = "About the Builder";
371 this.el.activate.connect( () => {
372 About.singleton().el.show();
376 // user defined functions
380 public class Xcls_Image10 : Object
383 private Xcls_MainWindow _this;
389 public Xcls_Image10(Xcls_MainWindow _owner )
392 this.el = new Gtk.Image();
396 // set gobject values
397 this.el.icon_name = "help-about";
400 // user defined functions
406 public class Xcls_vbox : Object
409 private Xcls_MainWindow _this;
415 public Xcls_vbox(Xcls_MainWindow _owner )
419 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
423 // set gobject values
424 this.el.homogeneous = false;
425 var child_0 = new Xcls_mainpane( _this );
427 this.el.pack_start ( child_0.el , true,true,0 );
428 var child_1 = new Xcls_Box66( _this );
430 this.el.pack_end ( child_1.el , false,true,0 );
433 // user defined functions
435 public class Xcls_mainpane : Object
438 private Xcls_MainWindow _this;
442 public int lastWidth;
445 public Xcls_mainpane(Xcls_MainWindow _owner )
448 _this.mainpane = this;
449 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
454 // set gobject values
455 this.el.position = 400;
456 var child_0 = new Xcls_leftpane( _this );
458 this.el.add1 ( child_0.el );
459 var child_1 = new Xcls_Box17( _this );
461 this.el.add2 ( child_1.el );
464 // user defined functions
466 public class Xcls_leftpane : Object
469 private Xcls_MainWindow _this;
475 public Xcls_leftpane(Xcls_MainWindow _owner )
478 _this.leftpane = this;
479 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
483 // set gobject values
484 var child_0 = new Xcls_editpane( _this );
486 this.el.pack_start ( child_0.el , true,true,0 );
489 // user defined functions
491 public class Xcls_editpane : Object
494 private Xcls_MainWindow _this;
500 public Xcls_editpane(Xcls_MainWindow _owner )
503 _this.editpane = this;
504 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
508 // set gobject values
509 var child_0 = new Xcls_tree( _this );
511 this.el.add1 ( child_0.el );
512 var child_1 = new Xcls_props( _this );
514 this.el.add2 ( child_1.el );
517 // user defined functions
519 public class Xcls_tree : Object
522 private Xcls_MainWindow _this;
528 public Xcls_tree(Xcls_MainWindow _owner )
532 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
536 // set gobject values
539 // user defined functions
542 public class Xcls_props : Object
545 private Xcls_MainWindow _this;
551 public Xcls_props(Xcls_MainWindow _owner )
555 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
559 // set gobject values
562 // user defined functions
567 public class Xcls_Box17 : Object
570 private Xcls_MainWindow _this;
576 public Xcls_Box17(Xcls_MainWindow _owner )
579 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
583 // set gobject values
584 var child_0 = new Xcls_clutterembed( _this );
586 this.el.pack_start ( child_0.el , true,true,0 );
589 // user defined functions
591 public class Xcls_clutterembed : Object
593 public GtkClutter.Embed el;
594 private Xcls_MainWindow _this;
600 public Xcls_clutterembed(Xcls_MainWindow _owner )
603 _this.clutterembed = this;
604 this.el = new GtkClutter.Embed();
608 // set gobject values
609 var child_0 = new Xcls_rooview( _this );
611 this.el.get_stage().add_child ( child_0.el );
612 var child_1 = new Xcls_objectview( _this );
614 this.el.get_stage().add_child ( child_1.el );
615 var child_2 = new Xcls_codeeditview( _this );
617 this.el.get_stage().add_child ( child_2.el );
618 var child_3 = new Xcls_addpropsview( _this );
620 this.el.get_stage().add_child ( child_3.el );
621 var child_4 = new Xcls_projecteditview( _this );
623 this.el.get_stage().add_child ( child_4.el );
624 var child_5 = new Xcls_buttonlayout( _this );
626 this.el.get_stage().add_child ( child_5.el );
630 var stage = this.el.get_stage();
631 stage.set_background_color( Clutter.Color.from_string("#000"));
634 this.el.size_allocate.connect( ( alloc) => {
635 if (_this.windowstate == null) {
638 _this.windowstate.resizeCanvas();
643 // user defined functions
645 public class Xcls_rooview : Object
647 public GtkClutter.Actor el;
648 private Xcls_MainWindow _this;
654 public Xcls_rooview(Xcls_MainWindow _owner )
657 _this.rooview = this;
658 this.el = new GtkClutter.Actor();
662 // set gobject values
669 this.el.add_constraint(
670 new Clutter.AlignConstraint(
671 _this.clutterembed.el.get_stage(),
672 Clutter.AlignAxis.X_AXIS,
677 //this.el.set_position(100,100);
678 this.el.set_pivot_point(1.0f,1.0f);
680 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
681 _this.clutterembed.el.get_stage().height);
686 // user defined functions
689 public class Xcls_objectview : Object
691 public GtkClutter.Actor el;
692 private Xcls_MainWindow _this;
698 public Xcls_objectview(Xcls_MainWindow _owner )
701 _this.objectview = this;
702 this.el = new GtkClutter.Actor();
706 // set gobject values
713 this.el.add_constraint(
714 new Clutter.AlignConstraint(
715 _this.clutterembed.el.get_stage(),
716 Clutter.AlignAxis.X_AXIS,
721 this.el.fixed_x = 50.0f;
722 this.el.fixed_y = 0.0f;
723 //this.el.set_position(100,100);
724 this.el.set_pivot_point(0.0f,0.0f);
725 this.el.set_scale(0.0f,1.0f);
726 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
727 _this.clutterembed.el.get_stage().height);
732 // user defined functions
735 public class Xcls_codeeditview : Object
737 public GtkClutter.Actor el;
738 private Xcls_MainWindow _this;
744 public Xcls_codeeditview(Xcls_MainWindow _owner )
747 _this.codeeditview = this;
748 this.el = new GtkClutter.Actor();
752 // set gobject values
759 this.el.add_constraint(
760 new Clutter.AlignConstraint(
761 _this.clutterembed.el.get_stage(),
762 Clutter.AlignAxis.X_AXIS,
767 this.el.fixed_x = 50.0f;
768 this.el.fixed_y = 0.0f;
769 //this.el.set_position(100,100);
770 this.el.set_pivot_point(0.0f,0.0f);
771 this.el.set_scale(0.0f,1.0f);
772 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
773 _this.clutterembed.el.get_stage().height);
778 // user defined functions
781 public class Xcls_addpropsview : Object
783 public GtkClutter.Actor el;
784 private Xcls_MainWindow _this;
790 public Xcls_addpropsview(Xcls_MainWindow _owner )
793 _this.addpropsview = this;
794 this.el = new GtkClutter.Actor();
798 // set gobject values
805 this.el.add_constraint(
806 new Clutter.AlignConstraint(
807 _this.clutterembed.el.get_stage(),
808 Clutter.AlignAxis.X_AXIS,
813 this.el.fixed_x = 50.0f;
814 this.el.fixed_y = 0.0f;
815 //this.el.set_position(100,100);
816 this.el.set_pivot_point(0.0f,0.0f);
817 this.el.set_scale(0.0f,1.0f);
818 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
819 _this.clutterembed.el.get_stage().height);
824 // user defined functions
827 public class Xcls_projecteditview : Object
829 public GtkClutter.Actor el;
830 private Xcls_MainWindow _this;
836 public Xcls_projecteditview(Xcls_MainWindow _owner )
839 _this.projecteditview = this;
840 this.el = new GtkClutter.Actor();
844 // set gobject values
851 this.el.add_constraint(
852 new Clutter.AlignConstraint(
853 _this.clutterembed.el.get_stage(),
854 Clutter.AlignAxis.X_AXIS,
859 //this.el.set_position(100,100);
860 this.el.set_pivot_point(0.0f,0.0f);
861 this.el.set_scale(1.0f,0.0f);
862 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
863 _this.clutterembed.el.get_stage().height /2);
868 // user defined functions
871 public class Xcls_buttonlayout : Object
873 public Clutter.Actor el;
874 private Xcls_MainWindow _this;
880 public Xcls_buttonlayout(Xcls_MainWindow _owner )
883 _this.buttonlayout = this;
884 this.el = new Clutter.Actor();
888 // set gobject values
889 var child_0 = new Xcls_BoxLayout25( _this );
891 this.el.layout_manager = child_0.el;
892 var child_1 = new Xcls_backbutton( _this );
894 this.el.add_child ( child_1.el );
895 var child_2 = new Xcls_projectbutton( _this );
897 this.el.add_child ( child_2.el );
898 var child_3 = new Xcls_editfilebutton( _this );
900 this.el.add_child ( child_3.el );
901 var child_4 = new Xcls_projecteditbutton( _this );
903 this.el.add_child ( child_4.el );
904 var child_5 = new Xcls_objectshowbutton( _this );
906 this.el.add_child ( child_5.el );
907 var child_6 = new Xcls_addpropbutton( _this );
909 this.el.add_child ( child_6.el );
910 var child_7 = new Xcls_addlistenerbutton( _this );
912 this.el.add_child ( child_7.el );
913 var child_8 = new Xcls_addprojectbutton( _this );
915 this.el.add_child ( child_8.el );
916 var child_9 = new Xcls_addfilebutton( _this );
918 this.el.add_child ( child_9.el );
919 var child_10 = new Xcls_delprojectbutton( _this );
921 this.el.add_child ( child_10.el );
927 this.el.add_constraint(
928 new Clutter.AlignConstraint(
929 _this.clutterembed.el.get_stage(),
930 Clutter.AlignAxis.X_AXIS,
936 //this.el.set_position(100,100);
937 this.el.set_pivot_point(0.5f,0.5f);
939 _this.clutterembed.el.get_stage().height);
944 // user defined functions
946 public class Xcls_BoxLayout25 : Object
948 public Clutter.BoxLayout el;
949 private Xcls_MainWindow _this;
955 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
958 this.el = new Clutter.BoxLayout();
962 // set gobject values
963 this.el.orientation = Clutter.Orientation.VERTICAL;
966 // user defined functions
969 public class Xcls_backbutton : Object
971 public Clutter.Actor el;
972 private Xcls_MainWindow _this;
978 public Xcls_backbutton(Xcls_MainWindow _owner )
981 _this.backbutton = this;
982 this.el = new Clutter.Actor();
986 // set gobject values
987 var child_0 = new Xcls_Actor27( _this );
989 this.el.add_child ( child_0.el );
993 this.el.set_size(50,50);
996 // user defined functions
998 public class Xcls_Actor27 : Object
1000 public GtkClutter.Actor el;
1001 private Xcls_MainWindow _this;
1007 public Xcls_Actor27(Xcls_MainWindow _owner )
1010 this.el = new GtkClutter.Actor();
1014 // set gobject values
1015 var child_0 = new Xcls_Button28( _this );
1020 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1023 // user defined functions
1025 public class Xcls_Button28 : Object
1027 public Gtk.Button el;
1028 private Xcls_MainWindow _this;
1034 public Xcls_Button28(Xcls_MainWindow _owner )
1037 this.el = new Gtk.Button();
1041 // set gobject values
1042 this.el.width_request = 50;
1043 this.el.height_request = 50;
1044 this.el.tooltip_text = "Back";
1045 var child_0 = new Xcls_Image29( _this );
1047 this.el.set_image ( child_0.el );
1050 this.el.clicked.connect( ( ) => {
1052 _this.windowstate.switchState(WindowState.State.PREVIEW);
1058 // user defined functions
1060 public class Xcls_Image29 : Object
1062 public Gtk.Image el;
1063 private Xcls_MainWindow _this;
1069 public Xcls_Image29(Xcls_MainWindow _owner )
1072 this.el = new Gtk.Image();
1076 // set gobject values
1077 this.el.icon_name = "go-previous";
1080 // user defined functions
1086 public class Xcls_projectbutton : Object
1088 public Clutter.Actor el;
1089 private Xcls_MainWindow _this;
1095 public Xcls_projectbutton(Xcls_MainWindow _owner )
1098 _this.projectbutton = this;
1099 this.el = new Clutter.Actor();
1103 // set gobject values
1104 var child_0 = new Xcls_Actor31( _this );
1106 this.el.add_child ( child_0.el );
1110 this.el.set_size(50,50);
1113 // user defined functions
1115 public class Xcls_Actor31 : Object
1117 public GtkClutter.Actor el;
1118 private Xcls_MainWindow _this;
1124 public Xcls_Actor31(Xcls_MainWindow _owner )
1127 this.el = new GtkClutter.Actor();
1131 // set gobject values
1132 var child_0 = new Xcls_Button32( _this );
1137 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1140 // user defined functions
1142 public class Xcls_Button32 : Object
1144 public Gtk.Button el;
1145 private Xcls_MainWindow _this;
1151 public Xcls_Button32(Xcls_MainWindow _owner )
1154 this.el = new Gtk.Button();
1158 // set gobject values
1159 this.el.width_request = 50;
1160 this.el.height_request = 50;
1161 var child_0 = new Xcls_Image33( _this );
1163 this.el.set_image ( child_0.el );
1166 this.el.clicked.connect( ( ) => {
1167 _this.windowstate.switchState(WindowState.State.FILES);
1173 // user defined functions
1175 public class Xcls_Image33 : Object
1177 public Gtk.Image el;
1178 private Xcls_MainWindow _this;
1184 public Xcls_Image33(Xcls_MainWindow _owner )
1187 this.el = new Gtk.Image();
1191 // set gobject values
1192 this.el.icon_name = "document-open";
1195 // user defined functions
1201 public class Xcls_editfilebutton : Object
1203 public Clutter.Actor el;
1204 private Xcls_MainWindow _this;
1210 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1213 _this.editfilebutton = this;
1214 this.el = new Clutter.Actor();
1218 // set gobject values
1219 var child_0 = new Xcls_Actor35( _this );
1221 this.el.add_child ( child_0.el );
1225 this.el.set_size(50.0f,50.0f);
1228 // user defined functions
1230 public class Xcls_Actor35 : Object
1232 public GtkClutter.Actor el;
1233 private Xcls_MainWindow _this;
1239 public Xcls_Actor35(Xcls_MainWindow _owner )
1242 this.el = new GtkClutter.Actor();
1246 // set gobject values
1247 var child_0 = new Xcls_Button36( _this );
1252 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1255 // user defined functions
1257 public class Xcls_Button36 : Object
1259 public Gtk.Button el;
1260 private Xcls_MainWindow _this;
1266 public Xcls_Button36(Xcls_MainWindow _owner )
1269 this.el = new Gtk.Button();
1273 // set gobject values
1274 this.el.width_request = 50;
1275 this.el.height_request = 50;
1276 this.el.tooltip_text = "File Details";
1277 var child_0 = new Xcls_Image37( _this );
1279 this.el.set_image ( child_0.el );
1282 this.el.clicked.connect( ( ) => {
1284 // create a new file in project..
1285 if (_this.project == null || _this.windowstate.file == null) {
1288 _this.windowstate.file_details.show(
1289 _this.windowstate.file, this.el
1298 // user defined functions
1300 public class Xcls_Image37 : Object
1302 public Gtk.Image el;
1303 private Xcls_MainWindow _this;
1309 public Xcls_Image37(Xcls_MainWindow _owner )
1312 this.el = new Gtk.Image();
1316 // set gobject values
1317 this.el.icon_name = "document-properties";
1320 // user defined functions
1326 public class Xcls_projecteditbutton : Object
1328 public Clutter.Actor el;
1329 private Xcls_MainWindow _this;
1335 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1338 _this.projecteditbutton = this;
1339 this.el = new Clutter.Actor();
1343 // set gobject values
1344 var child_0 = new Xcls_Actor39( _this );
1346 this.el.add_child ( child_0.el );
1350 this.el.set_size(50,50);
1353 // user defined functions
1355 public class Xcls_Actor39 : Object
1357 public GtkClutter.Actor el;
1358 private Xcls_MainWindow _this;
1364 public Xcls_Actor39(Xcls_MainWindow _owner )
1367 this.el = new GtkClutter.Actor();
1371 // set gobject values
1372 var child_0 = new Xcls_Button40( _this );
1377 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1380 // user defined functions
1382 public class Xcls_Button40 : Object
1384 public Gtk.Button el;
1385 private Xcls_MainWindow _this;
1391 public Xcls_Button40(Xcls_MainWindow _owner )
1394 this.el = new Gtk.Button();
1398 // set gobject values
1399 this.el.width_request = 50;
1400 this.el.height_request = 50;
1401 this.el.tooltip_text = "Project Details";
1402 var child_0 = new Xcls_Image41( _this );
1404 this.el.set_image ( child_0.el );
1407 this.el.clicked.connect( ( ) => {
1408 _this.windowstate.switchState(WindowState.State.PROJECT);
1415 // user defined functions
1417 public class Xcls_Image41 : Object
1419 public Gtk.Image el;
1420 private Xcls_MainWindow _this;
1426 public Xcls_Image41(Xcls_MainWindow _owner )
1429 this.el = new Gtk.Image();
1433 // set gobject values
1434 this.el.icon_name = "emblem-system";
1437 // user defined functions
1443 public class Xcls_objectshowbutton : Object
1445 public Clutter.Actor el;
1446 private Xcls_MainWindow _this;
1452 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1455 _this.objectshowbutton = this;
1456 this.el = new Clutter.Actor();
1460 // set gobject values
1461 var child_0 = new Xcls_Actor43( _this );
1463 this.el.add_child ( child_0.el );
1467 this.el.set_size(50,50);
1470 this.el.enter_event.connect( ( event) => {
1471 this.el.background_color = Clutter.Color.from_string("#333");
1474 this.el.leave_event.connect( ( event) => {
1475 this.el.background_color = Clutter.Color.from_string("#000");
1480 // user defined functions
1482 public class Xcls_Actor43 : Object
1484 public GtkClutter.Actor el;
1485 private Xcls_MainWindow _this;
1491 public Xcls_Actor43(Xcls_MainWindow _owner )
1494 this.el = new GtkClutter.Actor();
1498 // set gobject values
1499 var child_0 = new Xcls_Button44( _this );
1504 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1507 // user defined functions
1509 public class Xcls_Button44 : Object
1511 public Gtk.Button el;
1512 private Xcls_MainWindow _this;
1518 public Xcls_Button44(Xcls_MainWindow _owner )
1521 this.el = new Gtk.Button();
1525 // set gobject values
1526 this.el.width_request = 50;
1527 this.el.height_request = 50;
1528 this.el.tooltip_text = "Add Child Element";
1529 var child_0 = new Xcls_Image45( _this );
1531 this.el.set_image ( child_0.el );
1534 this.el.clicked.connect( ( ) => {
1536 _this.windowstate.switchState(WindowState.State.OBJECT);
1542 // user defined functions
1544 public class Xcls_Image45 : Object
1546 public Gtk.Image el;
1547 private Xcls_MainWindow _this;
1553 public Xcls_Image45(Xcls_MainWindow _owner )
1556 this.el = new Gtk.Image();
1560 // set gobject values
1561 this.el.icon_name = "list-add";
1564 // user defined functions
1570 public class Xcls_addpropbutton : Object
1572 public Clutter.Actor el;
1573 private Xcls_MainWindow _this;
1579 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1582 _this.addpropbutton = this;
1583 this.el = new Clutter.Actor();
1587 // set gobject values
1588 var child_0 = new Xcls_Actor47( _this );
1590 this.el.add_child ( child_0.el );
1594 this.el.set_size(50,50);
1597 // user defined functions
1599 public class Xcls_Actor47 : Object
1601 public GtkClutter.Actor el;
1602 private Xcls_MainWindow _this;
1608 public Xcls_Actor47(Xcls_MainWindow _owner )
1611 this.el = new GtkClutter.Actor();
1615 // set gobject values
1616 var child_0 = new Xcls_Button48( _this );
1621 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1624 // user defined functions
1626 public class Xcls_Button48 : Object
1628 public Gtk.Button el;
1629 private Xcls_MainWindow _this;
1635 public Xcls_Button48(Xcls_MainWindow _owner )
1638 this.el = new Gtk.Button();
1642 // set gobject values
1643 this.el.width_request = 50;
1644 this.el.height_request = 50;
1645 this.el.tooltip_text = "Add Property";
1646 var child_0 = new Xcls_Image49( _this );
1648 this.el.set_image ( child_0.el );
1651 this.el.clicked.connect( ( ) => {
1653 _this.windowstate.switchState(WindowState.State.PROP);
1659 // user defined functions
1661 public class Xcls_Image49 : Object
1663 public Gtk.Image el;
1664 private Xcls_MainWindow _this;
1670 public Xcls_Image49(Xcls_MainWindow _owner )
1673 this.el = new Gtk.Image();
1677 // set gobject values
1678 this.el.icon_name = "format-justify-left";
1681 // user defined functions
1687 public class Xcls_addlistenerbutton : Object
1689 public Clutter.Actor el;
1690 private Xcls_MainWindow _this;
1696 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1699 _this.addlistenerbutton = this;
1700 this.el = new Clutter.Actor();
1704 // set gobject values
1705 var child_0 = new Xcls_Actor51( _this );
1707 this.el.add_child ( child_0.el );
1711 this.el.set_size(50,50);
1714 // user defined functions
1716 public class Xcls_Actor51 : Object
1718 public GtkClutter.Actor el;
1719 private Xcls_MainWindow _this;
1725 public Xcls_Actor51(Xcls_MainWindow _owner )
1728 this.el = new GtkClutter.Actor();
1732 // set gobject values
1733 var child_0 = new Xcls_Button52( _this );
1738 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1741 // user defined functions
1743 public class Xcls_Button52 : Object
1745 public Gtk.Button el;
1746 private Xcls_MainWindow _this;
1752 public Xcls_Button52(Xcls_MainWindow _owner )
1755 this.el = new Gtk.Button();
1759 // set gobject values
1760 this.el.width_request = 50;
1761 this.el.height_request = 50;
1762 this.el.tooltip_text = "Add Event Code";
1763 var child_0 = new Xcls_Image53( _this );
1765 this.el.set_image ( child_0.el );
1768 this.el.clicked.connect( ( ) => {
1770 _this.windowstate.switchState(WindowState.State.LISTENER);
1777 // user defined functions
1779 public class Xcls_Image53 : Object
1781 public Gtk.Image el;
1782 private Xcls_MainWindow _this;
1788 public Xcls_Image53(Xcls_MainWindow _owner )
1791 this.el = new Gtk.Image();
1795 // set gobject values
1796 this.el.icon_name = "appointment-new";
1799 // user defined functions
1805 public class Xcls_addprojectbutton : Object
1807 public Clutter.Actor el;
1808 private Xcls_MainWindow _this;
1814 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1817 _this.addprojectbutton = this;
1818 this.el = new Clutter.Actor();
1822 // set gobject values
1823 var child_0 = new Xcls_Actor55( _this );
1825 this.el.add_child ( child_0.el );
1829 this.el.set_size(50.0f,50.0f);
1832 // user defined functions
1834 public class Xcls_Actor55 : Object
1836 public GtkClutter.Actor el;
1837 private Xcls_MainWindow _this;
1843 public Xcls_Actor55(Xcls_MainWindow _owner )
1846 this.el = new GtkClutter.Actor();
1850 // set gobject values
1851 var child_0 = new Xcls_Button56( _this );
1856 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1859 // user defined functions
1861 public class Xcls_Button56 : Object
1863 public Gtk.Button el;
1864 private Xcls_MainWindow _this;
1870 public Xcls_Button56(Xcls_MainWindow _owner )
1873 this.el = new Gtk.Button();
1877 // set gobject values
1878 this.el.width_request = 50;
1879 this.el.height_request = 50;
1880 this.el.tooltip_text = "New\nProj.";
1881 var child_0 = new Xcls_Image57( _this );
1883 this.el.set_image ( child_0.el );
1886 this.el.clicked.connect( ( ) => {
1888 // create a new file in project..
1889 //Xcls_DialogNewComponent.singleton().show(
1890 var pe = EditProject.singleton();
1891 pe.el.set_transient_for(_this.el);
1892 pe.el.set_modal(true);
1901 _this.windowstate.left_projects.is_loaded = false;
1902 _this.windowstate.left_projects.load();
1903 _this.windowstate.left_projects.selectProject(p);
1910 // user defined functions
1912 public class Xcls_Image57 : Object
1914 public Gtk.Image el;
1915 private Xcls_MainWindow _this;
1921 public Xcls_Image57(Xcls_MainWindow _owner )
1924 this.el = new Gtk.Image();
1928 // set gobject values
1929 this.el.icon_name = "folder-new";
1932 // user defined functions
1938 public class Xcls_addfilebutton : Object
1940 public Clutter.Actor el;
1941 private Xcls_MainWindow _this;
1947 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1950 _this.addfilebutton = this;
1951 this.el = new Clutter.Actor();
1955 // set gobject values
1956 var child_0 = new Xcls_Actor59( _this );
1958 this.el.add_child ( child_0.el );
1962 this.el.set_size(50.0f,50.0f);
1965 // user defined functions
1967 public class Xcls_Actor59 : Object
1969 public GtkClutter.Actor el;
1970 private Xcls_MainWindow _this;
1976 public Xcls_Actor59(Xcls_MainWindow _owner )
1979 this.el = new GtkClutter.Actor();
1983 // set gobject values
1984 var child_0 = new Xcls_Button60( _this );
1989 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1992 // user defined functions
1994 public class Xcls_Button60 : Object
1996 public Gtk.Button el;
1997 private Xcls_MainWindow _this;
2003 public Xcls_Button60(Xcls_MainWindow _owner )
2006 this.el = new Gtk.Button();
2010 // set gobject values
2011 this.el.width_request = 50;
2012 this.el.height_request = 50;
2013 this.el.tooltip_text = "Add File";
2014 var child_0 = new Xcls_Image61( _this );
2016 this.el.set_image ( child_0.el );
2019 this.el.clicked.connect( () => {
2020 // create a new file in project..
2021 print("add file selected\n");
2022 // what's the currently selected project...
2023 var proj = _this.windowstate.left_projects.getSelectedProject();
2026 print("no project selected?\n");
2030 print("creating file?");
2032 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2033 _this.project = proj;
2034 print("showing popup?");
2035 _this.windowstate.file_details.show(
2044 // user defined functions
2046 public class Xcls_Image61 : Object
2048 public Gtk.Image el;
2049 private Xcls_MainWindow _this;
2055 public Xcls_Image61(Xcls_MainWindow _owner )
2058 this.el = new Gtk.Image();
2062 // set gobject values
2063 this.el.icon_name = "document-new";
2066 // user defined functions
2072 public class Xcls_delprojectbutton : Object
2074 public Clutter.Actor el;
2075 private Xcls_MainWindow _this;
2081 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2084 _this.delprojectbutton = this;
2085 this.el = new Clutter.Actor();
2089 // set gobject values
2090 var child_0 = new Xcls_Actor63( _this );
2092 this.el.add_child ( child_0.el );
2096 this.el.set_size(50,50);
2099 // user defined functions
2101 public class Xcls_Actor63 : Object
2103 public GtkClutter.Actor el;
2104 private Xcls_MainWindow _this;
2110 public Xcls_Actor63(Xcls_MainWindow _owner )
2113 this.el = new GtkClutter.Actor();
2117 // set gobject values
2118 var child_0 = new Xcls_Button64( _this );
2123 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2126 // user defined functions
2128 public class Xcls_Button64 : Object
2130 public Gtk.Button el;
2131 private Xcls_MainWindow _this;
2137 public Xcls_Button64(Xcls_MainWindow _owner )
2140 this.el = new Gtk.Button();
2144 // set gobject values
2145 this.el.width_request = 50;
2146 this.el.height_request = 50;
2147 this.el.tooltip_text = "Delete Project";
2148 var child_0 = new Xcls_Image65( _this );
2150 this.el.set_image ( child_0.el );
2153 this.el.clicked.connect( ( ) => {
2155 var cd = DialogConfirm.singleton();
2156 cd.el.set_transient_for(_this.el);
2157 cd.el.set_modal(true);
2159 var project = _this.windowstate.left_projects.getSelectedProject();
2160 if (project == null) {
2161 print("SKIP - no project\n");
2166 if (Gtk.ResponseType.YES != cd.show("Confirm",
2167 "Are you sure you want to delete project %s".printf(project.name))) {
2173 Project.Project.remove(project);
2174 _this.project = null;
2176 _this.windowstate.left_projects.is_loaded = false;
2177 _this.windowstate.left_projects.load();
2178 _this.windowstate.clutterfiles.clearFiles();
2183 // user defined functions
2185 public class Xcls_Image65 : Object
2187 public Gtk.Image el;
2188 private Xcls_MainWindow _this;
2194 public Xcls_Image65(Xcls_MainWindow _owner )
2197 this.el = new Gtk.Image();
2201 // set gobject values
2202 this.el.icon_name = "user-trash";
2205 // user defined functions
2215 public class Xcls_Box66 : Object
2218 private Xcls_MainWindow _this;
2224 public Xcls_Box66(Xcls_MainWindow _owner )
2227 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2231 // set gobject values
2232 this.el.homogeneous = false;
2233 var child_0 = new Xcls_Label67( _this );
2235 this.el.pack_start ( child_0.el , true,true,0 );
2236 var child_1 = new Xcls_statusbar( _this );
2238 this.el.pack_start ( child_1.el , true,true,0 );
2239 var child_2 = new Xcls_search_entry( _this );
2241 this.el.pack_start ( child_2.el , false,true,0 );
2242 var child_3 = new Xcls_MenuBar70( _this );
2244 this.el.pack_end ( child_3.el , false,true,0 );
2247 // user defined functions
2249 public class Xcls_Label67 : Object
2251 public Gtk.Label el;
2252 private Xcls_MainWindow _this;
2258 public Xcls_Label67(Xcls_MainWindow _owner )
2261 this.el = new Gtk.Label( " " );
2265 // set gobject values
2268 // user defined functions
2271 public class Xcls_statusbar : Object
2273 public Gtk.ProgressBar el;
2274 private Xcls_MainWindow _this;
2278 public ulong handler_id;
2281 public Xcls_statusbar(Xcls_MainWindow _owner )
2284 _this.statusbar = this;
2285 this.el = new Gtk.ProgressBar();
2288 this.handler_id = -1;
2290 // set gobject values
2291 this.el.show_text = true;
2296 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2299 _this.mainpane.el.set_sensitive(true);
2303 _this.mainpane.el.set_sensitive(false);
2305 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2306 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2312 // user defined functions
2315 public class Xcls_search_entry : Object
2317 public Gtk.Entry el;
2318 private Xcls_MainWindow _this;
2324 public Xcls_search_entry(Xcls_MainWindow _owner )
2327 _this.search_entry = this;
2328 this.el = new Gtk.Entry();
2332 // set gobject values
2336 var description = Pango.FontDescription.from_string("monospace");
2337 description.set_size(8000);
2338 this.el.override_font(description);
2341 this.el.changed.connect( () => {
2342 if (this.el.text == "") {
2345 Gee.ArrayList<int> res = new Gee.ArrayList<int>();
2346 switch(_this.windowstate.state) {
2347 case WindowState.State.CODEONLY:
2348 case WindowState.State.CODE:
2349 // search the code being edited..
2350 res = _this.windowstate.code_editor.search(this.el.text);
2353 case WindowState.State.PREVIEW:
2354 if (_this.windowstate.file.xtype == "Gtk") {
2355 res = _this.windowstate.window_gladeview.search(this.el.text);
2362 _this.search_results.el.label = "%d Matches".printf(res.size);
2364 _this.search_results.el.label = "No Matches";
2372 // user defined functions
2375 public class Xcls_MenuBar70 : Object
2377 public Gtk.MenuBar el;
2378 private Xcls_MainWindow _this;
2384 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2387 this.el = new Gtk.MenuBar();
2391 // set gobject values
2392 var child_0 = new Xcls_search_results( _this );
2394 this.el.add ( child_0.el );
2395 var child_1 = new Xcls_MenuItem73( _this );
2397 this.el.add ( child_1.el );
2398 var child_2 = new Xcls_statusbar_errors( _this );
2400 this.el.add ( child_2.el );
2401 var child_3 = new Xcls_statusbar_warnings( _this );
2403 this.el.add ( child_3.el );
2404 var child_4 = new Xcls_statusbar_depricated( _this );
2406 this.el.add ( child_4.el );
2407 var child_5 = new Xcls_statusbar_run( _this );
2409 this.el.add ( child_5.el );
2412 // user defined functions
2414 public class Xcls_search_results : Object
2416 public Gtk.ImageMenuItem el;
2417 private Xcls_MainWindow _this;
2421 public Xcls_ValaCompileErrors popup;
2424 public Xcls_search_results(Xcls_MainWindow _owner )
2427 _this.search_results = this;
2428 this.el = new Gtk.ImageMenuItem();
2432 // set gobject values
2433 this.el.always_show_image = true;
2434 this.el.label = "Matches";
2435 var child_0 = new Xcls_Image72( _this );
2437 this.el.set_image ( child_0.el );
2440 this.el.button_press_event.connect( () => {
2442 if (this.popup == null) {
2443 this.popup = new Xcls_ValaCompileErrors();
2444 this.popup.window = _this;
2448 this.popup.show(this.notices, this.el);
2454 // user defined functions
2456 public class Xcls_Image72 : Object
2458 public Gtk.Image el;
2459 private Xcls_MainWindow _this;
2465 public Xcls_Image72(Xcls_MainWindow _owner )
2468 this.el = new Gtk.Image();
2472 // set gobject values
2473 this.el.icon_name = "system-search";
2474 this.el.sensitive = false;
2477 // user defined functions
2481 public class Xcls_MenuItem73 : Object
2483 public Gtk.MenuItem el;
2484 private Xcls_MainWindow _this;
2490 public Xcls_MenuItem73(Xcls_MainWindow _owner )
2493 this.el = new Gtk.MenuItem();
2497 // set gobject values
2498 this.el.label = "Compile Status:";
2501 // user defined functions
2504 public class Xcls_statusbar_errors : Object
2506 public Gtk.ImageMenuItem el;
2507 private Xcls_MainWindow _this;
2511 public Xcls_ValaCompileErrors popup;
2512 public Json.Object notices;
2515 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2518 _this.statusbar_errors = this;
2519 this.el = new Gtk.ImageMenuItem();
2522 this.notices = new Json.Object() ;
2524 // set gobject values
2525 this.el.always_show_image = true;
2526 this.el.label = "Errors";
2527 var child_0 = new Xcls_Image75( _this );
2529 this.el.set_image ( child_0.el );
2532 this.el.button_press_event.connect( () => {
2533 if (this.popup == null) {
2534 this.popup = new Xcls_ValaCompileErrors();
2535 this.popup.window = _this;
2539 this.popup.show(this.notices, this.el);
2544 // user defined functions
2545 public void setNotices (Json.Object nots, int qty) {
2547 this.el.label = qty.to_string() + " Errors";
2548 this.notices = nots;
2552 public class Xcls_Image75 : Object
2554 public Gtk.Image el;
2555 private Xcls_MainWindow _this;
2561 public Xcls_Image75(Xcls_MainWindow _owner )
2564 this.el = new Gtk.Image();
2568 // set gobject values
2569 this.el.icon_name = "dialog-error";
2572 // user defined functions
2576 public class Xcls_statusbar_warnings : Object
2578 public Gtk.ImageMenuItem el;
2579 private Xcls_MainWindow _this;
2583 public Xcls_ValaCompileErrors popup;
2584 public Json.Object notices;
2587 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2590 _this.statusbar_warnings = this;
2591 this.el = new Gtk.ImageMenuItem();
2594 this.notices = new Json.Object();
2596 // set gobject values
2597 this.el.always_show_image = true;
2598 this.el.label = "Warnings";
2599 var child_0 = new Xcls_Image77( _this );
2601 this.el.set_image ( child_0.el );
2604 this.el.button_press_event.connect( () => {
2605 if (this.popup == null) {
2606 this.popup = new Xcls_ValaCompileErrors();
2607 this.popup.window = _this;
2610 this.popup.show(this.notices, this.el);
2615 // user defined functions
2616 public void setNotices (Json.Object nots, int qty) {
2618 this.el.label = qty.to_string() + " Warnings";
2619 this.notices = nots;
2623 public class Xcls_Image77 : Object
2625 public Gtk.Image el;
2626 private Xcls_MainWindow _this;
2632 public Xcls_Image77(Xcls_MainWindow _owner )
2635 this.el = new Gtk.Image();
2639 // set gobject values
2640 this.el.icon_name = "dialog-warning";
2643 // user defined functions
2647 public class Xcls_statusbar_depricated : Object
2649 public Gtk.ImageMenuItem el;
2650 private Xcls_MainWindow _this;
2654 public Xcls_ValaCompileErrors popup;
2655 public Json.Object notices;
2658 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2661 _this.statusbar_depricated = this;
2662 this.el = new Gtk.ImageMenuItem();
2665 this.notices = new Json.Object();
2667 // set gobject values
2668 this.el.always_show_image = true;
2669 this.el.label = "Depricated";
2670 var child_0 = new Xcls_Image79( _this );
2672 this.el.set_image ( child_0.el );
2675 this.el.button_press_event.connect( () => {
2676 if (this.popup == null) {
2677 this.popup = new Xcls_ValaCompileErrors();
2678 this.popup.window = _this;
2682 this.popup.show(this.notices, this.el);
2687 // user defined functions
2688 public void setNotices (Json.Object nots, int qty) {
2690 this.el.label = qty.to_string() + " Depricated";
2691 this.notices = nots;
2695 public class Xcls_Image79 : Object
2697 public Gtk.Image el;
2698 private Xcls_MainWindow _this;
2704 public Xcls_Image79(Xcls_MainWindow _owner )
2707 this.el = new Gtk.Image();
2711 // set gobject values
2712 this.el.icon_name = "dialog-information";
2715 // user defined functions
2719 public class Xcls_statusbar_run : Object
2721 public Gtk.ImageMenuItem el;
2722 private Xcls_MainWindow _this;
2726 public Xcls_ValaCompileErrors popup;
2729 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2732 _this.statusbar_run = this;
2733 this.el = new Gtk.ImageMenuItem();
2737 // set gobject values
2738 this.el.always_show_image = true;
2739 this.el.label = "Run";
2740 var child_0 = new Xcls_Image81( _this );
2742 this.el.set_image ( child_0.el );
2745 this.el.button_press_event.connect( () => {
2746 if (_this.windowstate.file == null) {
2749 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2751 _this.windowstate.compile_results.show(this.el,true);
2757 // user defined functions
2759 public class Xcls_Image81 : Object
2761 public Gtk.Image el;
2762 private Xcls_MainWindow _this;
2768 public Xcls_Image81(Xcls_MainWindow _owner )
2771 this.el = new Gtk.Image();
2775 // set gobject values
2776 this.el.icon_name = "media-playback-start";
2779 // user defined functions