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.destroy.connect( () => {
86 Xcls_MainWindow.singleton().no_windows--;
88 Resources.singleton().disconnect(_this.statusbar.handler_id);
91 if (Xcls_MainWindow.singleton().no_windows < 1) {
96 this.el.show.connect( ( ) => {
97 // hide the file editing..
99 //this.hideViewEditing();
100 _this.statusbar.el.hide();
101 _this.statusbar_errors.el.hide();
102 _this.statusbar_warnings.el.hide();
103 _this.statusbar_depricated.el.hide();
106 Resources.singleton().checkResources();
109 this.el.key_release_event.connect( (event) => {
111 if (this.search_entry.el.is_visible()) {
112 if (event.keyval == Gdk.Key.f && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
113 print("SAVE: ctrl-f pressed");
114 this.search_entry.el.grab_focus();
118 if (event.keyval == Gdk.Key.g && (event.state & Gdk.ModifierType.CONTROL_MASK ) > 0 ) {
119 print("SAVE: ctrl-g pressed");
120 //this.search_entry.el.grab_focus();
124 // print(event.key.keyval)
131 // user defined functions
132 public void initChildren () {
133 // this needs putting in a better place..
134 this.windowstate = new WindowState(this);
138 var tl = new Clutter.Timeline(6000);
139 tl.set_repeat_count(-1);
148 public void show () {
153 public void setTitle (string str) {
154 this.headerbar.el.set_title(this.title + " - " + str);
156 public class Xcls_headerbar : Object
158 public Gtk.HeaderBar el;
159 private Xcls_MainWindow _this;
165 public Xcls_headerbar(Xcls_MainWindow _owner )
168 _this.headerbar = this;
169 this.el = new Gtk.HeaderBar();
173 // set gobject values
174 this.el.title = "Application Builder";
175 this.el.show_close_button = true;
176 var child_0 = new Xcls_Box3( _this );
178 this.el.pack_start ( child_0.el );
181 // user defined functions
183 public class Xcls_Box3 : Object
186 private Xcls_MainWindow _this;
192 public Xcls_Box3(Xcls_MainWindow _owner )
195 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
199 // set gobject values
200 var child_0 = new Xcls_MenuButton4( _this );
202 this.el.add ( child_0.el );
205 // user defined functions
207 public class Xcls_MenuButton4 : Object
209 public Gtk.MenuButton el;
210 private Xcls_MainWindow _this;
216 public Xcls_MenuButton4(Xcls_MainWindow _owner )
219 this.el = new Gtk.MenuButton();
223 // set gobject values
224 this.el.use_popover = false;
225 var child_0 = new Xcls_topbarmenu( _this );
227 this.el.set_popup ( child_0.el );
228 var child_1 = new Xcls_Image10( _this );
230 this.el.set_image ( child_1.el );
233 // user defined functions
235 public class Xcls_topbarmenu : Object
238 private Xcls_MainWindow _this;
244 public Xcls_topbarmenu(Xcls_MainWindow _owner )
247 _this.topbarmenu = this;
248 this.el = new Gtk.Menu();
252 // set gobject values
253 var child_0 = new Xcls_MenuItem6( _this );
255 this.el.append ( child_0.el );
256 var child_1 = new Xcls_SeparatorMenuItem7( _this );
258 this.el.append ( child_1.el );
259 var child_2 = new Xcls_MenuItem8( _this );
261 this.el.append ( child_2.el );
262 var child_3 = new Xcls_MenuItem9( _this );
264 this.el.append ( child_3.el );
273 // user defined functions
275 public class Xcls_MenuItem6 : Object
277 public Gtk.MenuItem el;
278 private Xcls_MainWindow _this;
284 public Xcls_MenuItem6(Xcls_MainWindow _owner )
287 this.el = new Gtk.MenuItem();
291 // set gobject values
292 this.el.label = "Open a new Window";
295 this.el.activate.connect( ( ) => {
296 Xcls_MainWindow.singleton().no_windows++;
297 var w = new Xcls_MainWindow();
302 w.windowstate.switchState(WindowState.State.FILES);
306 // user defined functions
309 public class Xcls_SeparatorMenuItem7 : Object
311 public Gtk.SeparatorMenuItem el;
312 private Xcls_MainWindow _this;
318 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
321 this.el = new Gtk.SeparatorMenuItem();
325 // set gobject values
328 // user defined functions
331 public class Xcls_MenuItem8 : Object
333 public Gtk.MenuItem el;
334 private Xcls_MainWindow _this;
340 public Xcls_MenuItem8(Xcls_MainWindow _owner )
343 this.el = new Gtk.MenuItem();
347 // set gobject values
348 this.el.label = "Download updated Resources";
351 this.el.activate.connect( ( ) => {
352 Resources.singleton().fetchStart();
356 // user defined functions
359 public class Xcls_MenuItem9 : Object
361 public Gtk.MenuItem el;
362 private Xcls_MainWindow _this;
368 public Xcls_MenuItem9(Xcls_MainWindow _owner )
371 this.el = new Gtk.MenuItem();
375 // set gobject values
376 this.el.label = "About the Builder";
379 this.el.activate.connect( () => {
380 About.singleton().el.show();
384 // user defined functions
388 public class Xcls_Image10 : Object
391 private Xcls_MainWindow _this;
397 public Xcls_Image10(Xcls_MainWindow _owner )
400 this.el = new Gtk.Image();
404 // set gobject values
405 this.el.icon_name = "help-about";
408 // user defined functions
414 public class Xcls_vbox : Object
417 private Xcls_MainWindow _this;
423 public Xcls_vbox(Xcls_MainWindow _owner )
427 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
431 // set gobject values
432 this.el.homogeneous = false;
433 var child_0 = new Xcls_mainpane( _this );
435 this.el.pack_start ( child_0.el , true,true,0 );
436 var child_1 = new Xcls_Box66( _this );
438 this.el.pack_end ( child_1.el , false,true,0 );
441 // user defined functions
443 public class Xcls_mainpane : Object
446 private Xcls_MainWindow _this;
450 public int lastWidth;
453 public Xcls_mainpane(Xcls_MainWindow _owner )
456 _this.mainpane = this;
457 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
462 // set gobject values
463 this.el.position = 400;
464 var child_0 = new Xcls_leftpane( _this );
466 this.el.add1 ( child_0.el );
467 var child_1 = new Xcls_Box17( _this );
469 this.el.add2 ( child_1.el );
472 // user defined functions
474 public class Xcls_leftpane : Object
477 private Xcls_MainWindow _this;
483 public Xcls_leftpane(Xcls_MainWindow _owner )
486 _this.leftpane = this;
487 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
491 // set gobject values
492 var child_0 = new Xcls_editpane( _this );
494 this.el.pack_start ( child_0.el , true,true,0 );
497 // user defined functions
499 public class Xcls_editpane : Object
502 private Xcls_MainWindow _this;
508 public Xcls_editpane(Xcls_MainWindow _owner )
511 _this.editpane = this;
512 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
516 // set gobject values
517 var child_0 = new Xcls_tree( _this );
519 this.el.add1 ( child_0.el );
520 var child_1 = new Xcls_props( _this );
522 this.el.add2 ( child_1.el );
525 // user defined functions
527 public class Xcls_tree : Object
530 private Xcls_MainWindow _this;
536 public Xcls_tree(Xcls_MainWindow _owner )
540 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
544 // set gobject values
547 // user defined functions
550 public class Xcls_props : Object
553 private Xcls_MainWindow _this;
559 public Xcls_props(Xcls_MainWindow _owner )
563 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
567 // set gobject values
570 // user defined functions
575 public class Xcls_Box17 : Object
578 private Xcls_MainWindow _this;
584 public Xcls_Box17(Xcls_MainWindow _owner )
587 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
591 // set gobject values
592 var child_0 = new Xcls_clutterembed( _this );
594 this.el.pack_start ( child_0.el , true,true,0 );
597 // user defined functions
599 public class Xcls_clutterembed : Object
601 public GtkClutter.Embed el;
602 private Xcls_MainWindow _this;
608 public Xcls_clutterembed(Xcls_MainWindow _owner )
611 _this.clutterembed = this;
612 this.el = new GtkClutter.Embed();
616 // set gobject values
617 var child_0 = new Xcls_rooview( _this );
619 this.el.get_stage().add_child ( child_0.el );
620 var child_1 = new Xcls_objectview( _this );
622 this.el.get_stage().add_child ( child_1.el );
623 var child_2 = new Xcls_codeeditview( _this );
625 this.el.get_stage().add_child ( child_2.el );
626 var child_3 = new Xcls_addpropsview( _this );
628 this.el.get_stage().add_child ( child_3.el );
629 var child_4 = new Xcls_projecteditview( _this );
631 this.el.get_stage().add_child ( child_4.el );
632 var child_5 = new Xcls_buttonlayout( _this );
634 this.el.get_stage().add_child ( child_5.el );
638 var stage = this.el.get_stage();
639 stage.set_background_color( Clutter.Color.from_string("#000"));
642 this.el.size_allocate.connect( ( alloc) => {
643 if (_this.windowstate == null) {
646 _this.windowstate.resizeCanvas();
651 // user defined functions
653 public class Xcls_rooview : Object
655 public GtkClutter.Actor el;
656 private Xcls_MainWindow _this;
662 public Xcls_rooview(Xcls_MainWindow _owner )
665 _this.rooview = this;
666 this.el = new GtkClutter.Actor();
670 // set gobject values
677 this.el.add_constraint(
678 new Clutter.AlignConstraint(
679 _this.clutterembed.el.get_stage(),
680 Clutter.AlignAxis.X_AXIS,
685 //this.el.set_position(100,100);
686 this.el.set_pivot_point(1.0f,1.0f);
688 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
689 _this.clutterembed.el.get_stage().height);
694 // user defined functions
697 public class Xcls_objectview : Object
699 public GtkClutter.Actor el;
700 private Xcls_MainWindow _this;
706 public Xcls_objectview(Xcls_MainWindow _owner )
709 _this.objectview = this;
710 this.el = new GtkClutter.Actor();
714 // set gobject values
721 this.el.add_constraint(
722 new Clutter.AlignConstraint(
723 _this.clutterembed.el.get_stage(),
724 Clutter.AlignAxis.X_AXIS,
729 this.el.fixed_x = 50.0f;
730 this.el.fixed_y = 0.0f;
731 //this.el.set_position(100,100);
732 this.el.set_pivot_point(0.0f,0.0f);
733 this.el.set_scale(0.0f,1.0f);
734 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
735 _this.clutterembed.el.get_stage().height);
740 // user defined functions
743 public class Xcls_codeeditview : Object
745 public GtkClutter.Actor el;
746 private Xcls_MainWindow _this;
752 public Xcls_codeeditview(Xcls_MainWindow _owner )
755 _this.codeeditview = this;
756 this.el = new GtkClutter.Actor();
760 // set gobject values
767 this.el.add_constraint(
768 new Clutter.AlignConstraint(
769 _this.clutterembed.el.get_stage(),
770 Clutter.AlignAxis.X_AXIS,
775 this.el.fixed_x = 50.0f;
776 this.el.fixed_y = 0.0f;
777 //this.el.set_position(100,100);
778 this.el.set_pivot_point(0.0f,0.0f);
779 this.el.set_scale(0.0f,1.0f);
780 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
781 _this.clutterembed.el.get_stage().height);
786 // user defined functions
789 public class Xcls_addpropsview : Object
791 public GtkClutter.Actor el;
792 private Xcls_MainWindow _this;
798 public Xcls_addpropsview(Xcls_MainWindow _owner )
801 _this.addpropsview = this;
802 this.el = new GtkClutter.Actor();
806 // set gobject values
813 this.el.add_constraint(
814 new Clutter.AlignConstraint(
815 _this.clutterembed.el.get_stage(),
816 Clutter.AlignAxis.X_AXIS,
821 this.el.fixed_x = 50.0f;
822 this.el.fixed_y = 0.0f;
823 //this.el.set_position(100,100);
824 this.el.set_pivot_point(0.0f,0.0f);
825 this.el.set_scale(0.0f,1.0f);
826 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
827 _this.clutterembed.el.get_stage().height);
832 // user defined functions
835 public class Xcls_projecteditview : Object
837 public GtkClutter.Actor el;
838 private Xcls_MainWindow _this;
844 public Xcls_projecteditview(Xcls_MainWindow _owner )
847 _this.projecteditview = this;
848 this.el = new GtkClutter.Actor();
852 // set gobject values
859 this.el.add_constraint(
860 new Clutter.AlignConstraint(
861 _this.clutterembed.el.get_stage(),
862 Clutter.AlignAxis.X_AXIS,
867 //this.el.set_position(100,100);
868 this.el.set_pivot_point(0.0f,0.0f);
869 this.el.set_scale(1.0f,0.0f);
870 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
871 _this.clutterembed.el.get_stage().height /2);
876 // user defined functions
879 public class Xcls_buttonlayout : Object
881 public Clutter.Actor el;
882 private Xcls_MainWindow _this;
888 public Xcls_buttonlayout(Xcls_MainWindow _owner )
891 _this.buttonlayout = this;
892 this.el = new Clutter.Actor();
896 // set gobject values
897 var child_0 = new Xcls_BoxLayout25( _this );
899 this.el.layout_manager = child_0.el;
900 var child_1 = new Xcls_backbutton( _this );
902 this.el.add_child ( child_1.el );
903 var child_2 = new Xcls_projectbutton( _this );
905 this.el.add_child ( child_2.el );
906 var child_3 = new Xcls_editfilebutton( _this );
908 this.el.add_child ( child_3.el );
909 var child_4 = new Xcls_projecteditbutton( _this );
911 this.el.add_child ( child_4.el );
912 var child_5 = new Xcls_objectshowbutton( _this );
914 this.el.add_child ( child_5.el );
915 var child_6 = new Xcls_addpropbutton( _this );
917 this.el.add_child ( child_6.el );
918 var child_7 = new Xcls_addlistenerbutton( _this );
920 this.el.add_child ( child_7.el );
921 var child_8 = new Xcls_addprojectbutton( _this );
923 this.el.add_child ( child_8.el );
924 var child_9 = new Xcls_addfilebutton( _this );
926 this.el.add_child ( child_9.el );
927 var child_10 = new Xcls_delprojectbutton( _this );
929 this.el.add_child ( child_10.el );
935 this.el.add_constraint(
936 new Clutter.AlignConstraint(
937 _this.clutterembed.el.get_stage(),
938 Clutter.AlignAxis.X_AXIS,
944 //this.el.set_position(100,100);
945 this.el.set_pivot_point(0.5f,0.5f);
947 _this.clutterembed.el.get_stage().height);
952 // user defined functions
954 public class Xcls_BoxLayout25 : Object
956 public Clutter.BoxLayout el;
957 private Xcls_MainWindow _this;
963 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
966 this.el = new Clutter.BoxLayout();
970 // set gobject values
971 this.el.orientation = Clutter.Orientation.VERTICAL;
974 // user defined functions
977 public class Xcls_backbutton : Object
979 public Clutter.Actor el;
980 private Xcls_MainWindow _this;
986 public Xcls_backbutton(Xcls_MainWindow _owner )
989 _this.backbutton = this;
990 this.el = new Clutter.Actor();
994 // set gobject values
995 var child_0 = new Xcls_Actor27( _this );
997 this.el.add_child ( child_0.el );
1001 this.el.set_size(50,50);
1004 // user defined functions
1006 public class Xcls_Actor27 : Object
1008 public GtkClutter.Actor el;
1009 private Xcls_MainWindow _this;
1015 public Xcls_Actor27(Xcls_MainWindow _owner )
1018 this.el = new GtkClutter.Actor();
1022 // set gobject values
1023 var child_0 = new Xcls_Button28( _this );
1028 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1031 // user defined functions
1033 public class Xcls_Button28 : Object
1035 public Gtk.Button el;
1036 private Xcls_MainWindow _this;
1042 public Xcls_Button28(Xcls_MainWindow _owner )
1045 this.el = new Gtk.Button();
1049 // set gobject values
1050 this.el.width_request = 50;
1051 this.el.height_request = 50;
1052 this.el.tooltip_text = "Back";
1053 var child_0 = new Xcls_Image29( _this );
1055 this.el.set_image ( child_0.el );
1058 this.el.clicked.connect( ( ) => {
1060 _this.windowstate.switchState(WindowState.State.PREVIEW);
1066 // user defined functions
1068 public class Xcls_Image29 : Object
1070 public Gtk.Image el;
1071 private Xcls_MainWindow _this;
1077 public Xcls_Image29(Xcls_MainWindow _owner )
1080 this.el = new Gtk.Image();
1084 // set gobject values
1085 this.el.icon_name = "go-previous";
1088 // user defined functions
1094 public class Xcls_projectbutton : Object
1096 public Clutter.Actor el;
1097 private Xcls_MainWindow _this;
1103 public Xcls_projectbutton(Xcls_MainWindow _owner )
1106 _this.projectbutton = this;
1107 this.el = new Clutter.Actor();
1111 // set gobject values
1112 var child_0 = new Xcls_Actor31( _this );
1114 this.el.add_child ( child_0.el );
1118 this.el.set_size(50,50);
1121 // user defined functions
1123 public class Xcls_Actor31 : Object
1125 public GtkClutter.Actor el;
1126 private Xcls_MainWindow _this;
1132 public Xcls_Actor31(Xcls_MainWindow _owner )
1135 this.el = new GtkClutter.Actor();
1139 // set gobject values
1140 var child_0 = new Xcls_Button32( _this );
1145 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1148 // user defined functions
1150 public class Xcls_Button32 : Object
1152 public Gtk.Button el;
1153 private Xcls_MainWindow _this;
1159 public Xcls_Button32(Xcls_MainWindow _owner )
1162 this.el = new Gtk.Button();
1166 // set gobject values
1167 this.el.width_request = 50;
1168 this.el.height_request = 50;
1169 var child_0 = new Xcls_Image33( _this );
1171 this.el.set_image ( child_0.el );
1174 this.el.clicked.connect( ( ) => {
1175 _this.windowstate.switchState(WindowState.State.FILES);
1181 // user defined functions
1183 public class Xcls_Image33 : Object
1185 public Gtk.Image el;
1186 private Xcls_MainWindow _this;
1192 public Xcls_Image33(Xcls_MainWindow _owner )
1195 this.el = new Gtk.Image();
1199 // set gobject values
1200 this.el.icon_name = "document-open";
1203 // user defined functions
1209 public class Xcls_editfilebutton : Object
1211 public Clutter.Actor el;
1212 private Xcls_MainWindow _this;
1218 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1221 _this.editfilebutton = this;
1222 this.el = new Clutter.Actor();
1226 // set gobject values
1227 var child_0 = new Xcls_Actor35( _this );
1229 this.el.add_child ( child_0.el );
1233 this.el.set_size(50.0f,50.0f);
1236 // user defined functions
1238 public class Xcls_Actor35 : Object
1240 public GtkClutter.Actor el;
1241 private Xcls_MainWindow _this;
1247 public Xcls_Actor35(Xcls_MainWindow _owner )
1250 this.el = new GtkClutter.Actor();
1254 // set gobject values
1255 var child_0 = new Xcls_Button36( _this );
1260 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1263 // user defined functions
1265 public class Xcls_Button36 : Object
1267 public Gtk.Button el;
1268 private Xcls_MainWindow _this;
1274 public Xcls_Button36(Xcls_MainWindow _owner )
1277 this.el = new Gtk.Button();
1281 // set gobject values
1282 this.el.width_request = 50;
1283 this.el.height_request = 50;
1284 this.el.tooltip_text = "File Details";
1285 var child_0 = new Xcls_Image37( _this );
1287 this.el.set_image ( child_0.el );
1290 this.el.clicked.connect( ( ) => {
1292 // create a new file in project..
1293 if (_this.project == null || _this.windowstate.file == null) {
1296 _this.windowstate.file_details.show(
1297 _this.windowstate.file, this.el
1306 // user defined functions
1308 public class Xcls_Image37 : Object
1310 public Gtk.Image el;
1311 private Xcls_MainWindow _this;
1317 public Xcls_Image37(Xcls_MainWindow _owner )
1320 this.el = new Gtk.Image();
1324 // set gobject values
1325 this.el.icon_name = "document-properties";
1328 // user defined functions
1334 public class Xcls_projecteditbutton : Object
1336 public Clutter.Actor el;
1337 private Xcls_MainWindow _this;
1343 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1346 _this.projecteditbutton = this;
1347 this.el = new Clutter.Actor();
1351 // set gobject values
1352 var child_0 = new Xcls_Actor39( _this );
1354 this.el.add_child ( child_0.el );
1358 this.el.set_size(50,50);
1361 // user defined functions
1363 public class Xcls_Actor39 : Object
1365 public GtkClutter.Actor el;
1366 private Xcls_MainWindow _this;
1372 public Xcls_Actor39(Xcls_MainWindow _owner )
1375 this.el = new GtkClutter.Actor();
1379 // set gobject values
1380 var child_0 = new Xcls_Button40( _this );
1385 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1388 // user defined functions
1390 public class Xcls_Button40 : Object
1392 public Gtk.Button el;
1393 private Xcls_MainWindow _this;
1399 public Xcls_Button40(Xcls_MainWindow _owner )
1402 this.el = new Gtk.Button();
1406 // set gobject values
1407 this.el.width_request = 50;
1408 this.el.height_request = 50;
1409 this.el.tooltip_text = "Project Details";
1410 var child_0 = new Xcls_Image41( _this );
1412 this.el.set_image ( child_0.el );
1415 this.el.clicked.connect( ( ) => {
1416 _this.windowstate.switchState(WindowState.State.PROJECT);
1423 // user defined functions
1425 public class Xcls_Image41 : Object
1427 public Gtk.Image el;
1428 private Xcls_MainWindow _this;
1434 public Xcls_Image41(Xcls_MainWindow _owner )
1437 this.el = new Gtk.Image();
1441 // set gobject values
1442 this.el.icon_name = "emblem-system";
1445 // user defined functions
1451 public class Xcls_objectshowbutton : Object
1453 public Clutter.Actor el;
1454 private Xcls_MainWindow _this;
1460 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1463 _this.objectshowbutton = this;
1464 this.el = new Clutter.Actor();
1468 // set gobject values
1469 var child_0 = new Xcls_Actor43( _this );
1471 this.el.add_child ( child_0.el );
1475 this.el.set_size(50,50);
1478 this.el.enter_event.connect( ( event) => {
1479 this.el.background_color = Clutter.Color.from_string("#333");
1482 this.el.leave_event.connect( ( event) => {
1483 this.el.background_color = Clutter.Color.from_string("#000");
1488 // user defined functions
1490 public class Xcls_Actor43 : Object
1492 public GtkClutter.Actor el;
1493 private Xcls_MainWindow _this;
1499 public Xcls_Actor43(Xcls_MainWindow _owner )
1502 this.el = new GtkClutter.Actor();
1506 // set gobject values
1507 var child_0 = new Xcls_Button44( _this );
1512 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1515 // user defined functions
1517 public class Xcls_Button44 : Object
1519 public Gtk.Button el;
1520 private Xcls_MainWindow _this;
1526 public Xcls_Button44(Xcls_MainWindow _owner )
1529 this.el = new Gtk.Button();
1533 // set gobject values
1534 this.el.width_request = 50;
1535 this.el.height_request = 50;
1536 this.el.tooltip_text = "Add Child Element";
1537 var child_0 = new Xcls_Image45( _this );
1539 this.el.set_image ( child_0.el );
1542 this.el.clicked.connect( ( ) => {
1544 _this.windowstate.switchState(WindowState.State.OBJECT);
1550 // user defined functions
1552 public class Xcls_Image45 : Object
1554 public Gtk.Image el;
1555 private Xcls_MainWindow _this;
1561 public Xcls_Image45(Xcls_MainWindow _owner )
1564 this.el = new Gtk.Image();
1568 // set gobject values
1569 this.el.icon_name = "list-add";
1572 // user defined functions
1578 public class Xcls_addpropbutton : Object
1580 public Clutter.Actor el;
1581 private Xcls_MainWindow _this;
1587 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1590 _this.addpropbutton = this;
1591 this.el = new Clutter.Actor();
1595 // set gobject values
1596 var child_0 = new Xcls_Actor47( _this );
1598 this.el.add_child ( child_0.el );
1602 this.el.set_size(50,50);
1605 // user defined functions
1607 public class Xcls_Actor47 : Object
1609 public GtkClutter.Actor el;
1610 private Xcls_MainWindow _this;
1616 public Xcls_Actor47(Xcls_MainWindow _owner )
1619 this.el = new GtkClutter.Actor();
1623 // set gobject values
1624 var child_0 = new Xcls_Button48( _this );
1629 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1632 // user defined functions
1634 public class Xcls_Button48 : Object
1636 public Gtk.Button el;
1637 private Xcls_MainWindow _this;
1643 public Xcls_Button48(Xcls_MainWindow _owner )
1646 this.el = new Gtk.Button();
1650 // set gobject values
1651 this.el.width_request = 50;
1652 this.el.height_request = 50;
1653 this.el.tooltip_text = "Add Property";
1654 var child_0 = new Xcls_Image49( _this );
1656 this.el.set_image ( child_0.el );
1659 this.el.clicked.connect( ( ) => {
1661 _this.windowstate.switchState(WindowState.State.PROP);
1667 // user defined functions
1669 public class Xcls_Image49 : Object
1671 public Gtk.Image el;
1672 private Xcls_MainWindow _this;
1678 public Xcls_Image49(Xcls_MainWindow _owner )
1681 this.el = new Gtk.Image();
1685 // set gobject values
1686 this.el.icon_name = "format-justify-left";
1689 // user defined functions
1695 public class Xcls_addlistenerbutton : Object
1697 public Clutter.Actor el;
1698 private Xcls_MainWindow _this;
1704 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1707 _this.addlistenerbutton = this;
1708 this.el = new Clutter.Actor();
1712 // set gobject values
1713 var child_0 = new Xcls_Actor51( _this );
1715 this.el.add_child ( child_0.el );
1719 this.el.set_size(50,50);
1722 // user defined functions
1724 public class Xcls_Actor51 : Object
1726 public GtkClutter.Actor el;
1727 private Xcls_MainWindow _this;
1733 public Xcls_Actor51(Xcls_MainWindow _owner )
1736 this.el = new GtkClutter.Actor();
1740 // set gobject values
1741 var child_0 = new Xcls_Button52( _this );
1746 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1749 // user defined functions
1751 public class Xcls_Button52 : Object
1753 public Gtk.Button el;
1754 private Xcls_MainWindow _this;
1760 public Xcls_Button52(Xcls_MainWindow _owner )
1763 this.el = new Gtk.Button();
1767 // set gobject values
1768 this.el.width_request = 50;
1769 this.el.height_request = 50;
1770 this.el.tooltip_text = "Add Event Code";
1771 var child_0 = new Xcls_Image53( _this );
1773 this.el.set_image ( child_0.el );
1776 this.el.clicked.connect( ( ) => {
1778 _this.windowstate.switchState(WindowState.State.LISTENER);
1785 // user defined functions
1787 public class Xcls_Image53 : Object
1789 public Gtk.Image el;
1790 private Xcls_MainWindow _this;
1796 public Xcls_Image53(Xcls_MainWindow _owner )
1799 this.el = new Gtk.Image();
1803 // set gobject values
1804 this.el.icon_name = "appointment-new";
1807 // user defined functions
1813 public class Xcls_addprojectbutton : Object
1815 public Clutter.Actor el;
1816 private Xcls_MainWindow _this;
1822 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1825 _this.addprojectbutton = this;
1826 this.el = new Clutter.Actor();
1830 // set gobject values
1831 var child_0 = new Xcls_Actor55( _this );
1833 this.el.add_child ( child_0.el );
1837 this.el.set_size(50.0f,50.0f);
1840 // user defined functions
1842 public class Xcls_Actor55 : Object
1844 public GtkClutter.Actor el;
1845 private Xcls_MainWindow _this;
1851 public Xcls_Actor55(Xcls_MainWindow _owner )
1854 this.el = new GtkClutter.Actor();
1858 // set gobject values
1859 var child_0 = new Xcls_Button56( _this );
1864 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1867 // user defined functions
1869 public class Xcls_Button56 : Object
1871 public Gtk.Button el;
1872 private Xcls_MainWindow _this;
1878 public Xcls_Button56(Xcls_MainWindow _owner )
1881 this.el = new Gtk.Button();
1885 // set gobject values
1886 this.el.width_request = 50;
1887 this.el.height_request = 50;
1888 this.el.tooltip_text = "New\nProj.";
1889 var child_0 = new Xcls_Image57( _this );
1891 this.el.set_image ( child_0.el );
1894 this.el.clicked.connect( ( ) => {
1896 // create a new file in project..
1897 //Xcls_DialogNewComponent.singleton().show(
1898 var pe = EditProject.singleton();
1899 pe.el.set_transient_for(_this.el);
1900 pe.el.set_modal(true);
1909 _this.windowstate.left_projects.is_loaded = false;
1910 _this.windowstate.left_projects.load();
1911 _this.windowstate.left_projects.selectProject(p);
1918 // user defined functions
1920 public class Xcls_Image57 : Object
1922 public Gtk.Image el;
1923 private Xcls_MainWindow _this;
1929 public Xcls_Image57(Xcls_MainWindow _owner )
1932 this.el = new Gtk.Image();
1936 // set gobject values
1937 this.el.icon_name = "folder-new";
1940 // user defined functions
1946 public class Xcls_addfilebutton : Object
1948 public Clutter.Actor el;
1949 private Xcls_MainWindow _this;
1955 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1958 _this.addfilebutton = this;
1959 this.el = new Clutter.Actor();
1963 // set gobject values
1964 var child_0 = new Xcls_Actor59( _this );
1966 this.el.add_child ( child_0.el );
1970 this.el.set_size(50.0f,50.0f);
1973 // user defined functions
1975 public class Xcls_Actor59 : Object
1977 public GtkClutter.Actor el;
1978 private Xcls_MainWindow _this;
1984 public Xcls_Actor59(Xcls_MainWindow _owner )
1987 this.el = new GtkClutter.Actor();
1991 // set gobject values
1992 var child_0 = new Xcls_Button60( _this );
1997 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2000 // user defined functions
2002 public class Xcls_Button60 : Object
2004 public Gtk.Button el;
2005 private Xcls_MainWindow _this;
2011 public Xcls_Button60(Xcls_MainWindow _owner )
2014 this.el = new Gtk.Button();
2018 // set gobject values
2019 this.el.width_request = 50;
2020 this.el.height_request = 50;
2021 this.el.tooltip_text = "Add File";
2022 var child_0 = new Xcls_Image61( _this );
2024 this.el.set_image ( child_0.el );
2027 this.el.clicked.connect( () => {
2028 // create a new file in project..
2029 print("add file selected\n");
2030 // what's the currently selected project...
2031 var proj = _this.windowstate.left_projects.getSelectedProject();
2034 print("no project selected?\n");
2038 print("creating file?");
2040 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2041 _this.project = proj;
2042 print("showing popup?");
2043 _this.windowstate.file_details.show(
2052 // user defined functions
2054 public class Xcls_Image61 : Object
2056 public Gtk.Image el;
2057 private Xcls_MainWindow _this;
2063 public Xcls_Image61(Xcls_MainWindow _owner )
2066 this.el = new Gtk.Image();
2070 // set gobject values
2071 this.el.icon_name = "document-new";
2074 // user defined functions
2080 public class Xcls_delprojectbutton : Object
2082 public Clutter.Actor el;
2083 private Xcls_MainWindow _this;
2089 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2092 _this.delprojectbutton = this;
2093 this.el = new Clutter.Actor();
2097 // set gobject values
2098 var child_0 = new Xcls_Actor63( _this );
2100 this.el.add_child ( child_0.el );
2104 this.el.set_size(50,50);
2107 // user defined functions
2109 public class Xcls_Actor63 : Object
2111 public GtkClutter.Actor el;
2112 private Xcls_MainWindow _this;
2118 public Xcls_Actor63(Xcls_MainWindow _owner )
2121 this.el = new GtkClutter.Actor();
2125 // set gobject values
2126 var child_0 = new Xcls_Button64( _this );
2131 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2134 // user defined functions
2136 public class Xcls_Button64 : Object
2138 public Gtk.Button el;
2139 private Xcls_MainWindow _this;
2145 public Xcls_Button64(Xcls_MainWindow _owner )
2148 this.el = new Gtk.Button();
2152 // set gobject values
2153 this.el.width_request = 50;
2154 this.el.height_request = 50;
2155 this.el.tooltip_text = "Delete Project";
2156 var child_0 = new Xcls_Image65( _this );
2158 this.el.set_image ( child_0.el );
2161 this.el.clicked.connect( ( ) => {
2163 var cd = DialogConfirm.singleton();
2164 cd.el.set_transient_for(_this.el);
2165 cd.el.set_modal(true);
2167 var project = _this.windowstate.left_projects.getSelectedProject();
2168 if (project == null) {
2169 print("SKIP - no project\n");
2174 if (Gtk.ResponseType.YES != cd.show("Confirm",
2175 "Are you sure you want to delete project %s".printf(project.name))) {
2181 Project.Project.remove(project);
2182 _this.project = null;
2184 _this.windowstate.left_projects.is_loaded = false;
2185 _this.windowstate.left_projects.load();
2186 _this.windowstate.clutterfiles.clearFiles();
2191 // user defined functions
2193 public class Xcls_Image65 : Object
2195 public Gtk.Image el;
2196 private Xcls_MainWindow _this;
2202 public Xcls_Image65(Xcls_MainWindow _owner )
2205 this.el = new Gtk.Image();
2209 // set gobject values
2210 this.el.icon_name = "user-trash";
2213 // user defined functions
2223 public class Xcls_Box66 : Object
2226 private Xcls_MainWindow _this;
2232 public Xcls_Box66(Xcls_MainWindow _owner )
2235 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2239 // set gobject values
2240 this.el.homogeneous = false;
2241 var child_0 = new Xcls_Label67( _this );
2243 this.el.pack_start ( child_0.el , true,true,0 );
2244 var child_1 = new Xcls_statusbar( _this );
2246 this.el.pack_start ( child_1.el , true,true,0 );
2247 var child_2 = new Xcls_search_entry( _this );
2249 this.el.pack_start ( child_2.el , false,true,0 );
2250 var child_3 = new Xcls_MenuBar70( _this );
2252 this.el.pack_end ( child_3.el , false,true,0 );
2255 // user defined functions
2257 public class Xcls_Label67 : Object
2259 public Gtk.Label el;
2260 private Xcls_MainWindow _this;
2266 public Xcls_Label67(Xcls_MainWindow _owner )
2269 this.el = new Gtk.Label( " " );
2273 // set gobject values
2276 // user defined functions
2279 public class Xcls_statusbar : Object
2281 public Gtk.ProgressBar el;
2282 private Xcls_MainWindow _this;
2286 public ulong handler_id;
2289 public Xcls_statusbar(Xcls_MainWindow _owner )
2292 _this.statusbar = this;
2293 this.el = new Gtk.ProgressBar();
2296 this.handler_id = -1;
2298 // set gobject values
2299 this.el.show_text = true;
2304 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2307 _this.mainpane.el.set_sensitive(true);
2311 _this.mainpane.el.set_sensitive(false);
2313 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2314 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2320 // user defined functions
2323 public class Xcls_search_entry : Object
2325 public Gtk.Entry el;
2326 private Xcls_MainWindow _this;
2332 public Xcls_search_entry(Xcls_MainWindow _owner )
2335 _this.search_entry = this;
2336 this.el = new Gtk.Entry();
2340 // set gobject values
2344 var description = Pango.FontDescription.from_string("monospace");
2345 description.set_size(8000);
2346 this.el.override_font(description);
2349 this.el.changed.connect( () => {
2350 if (this.el.text == "") {
2353 Gee.ArrayList<int> res = new Gee.ArrayList<int>();
2354 switch(_this.windowstate.state) {
2355 case WindowState.State.CODEONLY:
2356 case WindowState.State.CODE:
2357 // search the code being edited..
2358 res = _this.windowstate.code_editor.search(this.el.text);
2361 case WindowState.State.PREVIEW:
2362 if (_this.windowstate.file.xtype == "Gtk") {
2363 res = _this.windowstate.window_gladeview.search(this.el.text);
2370 _this.search_results.el.label = "%d Matches".printf(res.size);
2372 _this.search_results.el.label = "No Matches";
2380 // user defined functions
2383 public class Xcls_MenuBar70 : Object
2385 public Gtk.MenuBar el;
2386 private Xcls_MainWindow _this;
2392 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2395 this.el = new Gtk.MenuBar();
2399 // set gobject values
2400 var child_0 = new Xcls_search_results( _this );
2402 this.el.add ( child_0.el );
2403 var child_1 = new Xcls_MenuItem73( _this );
2405 this.el.add ( child_1.el );
2406 var child_2 = new Xcls_statusbar_errors( _this );
2408 this.el.add ( child_2.el );
2409 var child_3 = new Xcls_statusbar_warnings( _this );
2411 this.el.add ( child_3.el );
2412 var child_4 = new Xcls_statusbar_depricated( _this );
2414 this.el.add ( child_4.el );
2415 var child_5 = new Xcls_statusbar_run( _this );
2417 this.el.add ( child_5.el );
2420 // user defined functions
2422 public class Xcls_search_results : Object
2424 public Gtk.ImageMenuItem el;
2425 private Xcls_MainWindow _this;
2429 public Xcls_ValaCompileErrors popup;
2432 public Xcls_search_results(Xcls_MainWindow _owner )
2435 _this.search_results = this;
2436 this.el = new Gtk.ImageMenuItem();
2440 // set gobject values
2441 this.el.always_show_image = true;
2442 this.el.label = "Matches";
2443 var child_0 = new Xcls_Image72( _this );
2445 this.el.set_image ( child_0.el );
2448 this.el.button_press_event.connect( () => {
2450 if (this.popup == null) {
2451 this.popup = new Xcls_ValaCompileErrors();
2452 this.popup.window = _this;
2456 this.popup.show(this.notices, this.el);
2462 // user defined functions
2464 public class Xcls_Image72 : Object
2466 public Gtk.Image el;
2467 private Xcls_MainWindow _this;
2473 public Xcls_Image72(Xcls_MainWindow _owner )
2476 this.el = new Gtk.Image();
2480 // set gobject values
2481 this.el.icon_name = "system-search";
2482 this.el.sensitive = false;
2485 // user defined functions
2489 public class Xcls_MenuItem73 : Object
2491 public Gtk.MenuItem el;
2492 private Xcls_MainWindow _this;
2498 public Xcls_MenuItem73(Xcls_MainWindow _owner )
2501 this.el = new Gtk.MenuItem();
2505 // set gobject values
2506 this.el.label = "Compile Status:";
2509 // user defined functions
2512 public class Xcls_statusbar_errors : Object
2514 public Gtk.ImageMenuItem el;
2515 private Xcls_MainWindow _this;
2519 public Xcls_ValaCompileErrors popup;
2520 public Json.Object notices;
2523 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2526 _this.statusbar_errors = this;
2527 this.el = new Gtk.ImageMenuItem();
2530 this.notices = new Json.Object() ;
2532 // set gobject values
2533 this.el.always_show_image = true;
2534 this.el.label = "Errors";
2535 var child_0 = new Xcls_Image75( _this );
2537 this.el.set_image ( child_0.el );
2540 this.el.button_press_event.connect( () => {
2541 if (this.popup == null) {
2542 this.popup = new Xcls_ValaCompileErrors();
2543 this.popup.window = _this;
2547 this.popup.show(this.notices, this.el);
2552 // user defined functions
2553 public void setNotices (Json.Object nots, int qty) {
2555 this.el.label = qty.to_string() + " Errors";
2556 this.notices = nots;
2560 public class Xcls_Image75 : Object
2562 public Gtk.Image el;
2563 private Xcls_MainWindow _this;
2569 public Xcls_Image75(Xcls_MainWindow _owner )
2572 this.el = new Gtk.Image();
2576 // set gobject values
2577 this.el.icon_name = "dialog-error";
2580 // user defined functions
2584 public class Xcls_statusbar_warnings : Object
2586 public Gtk.ImageMenuItem el;
2587 private Xcls_MainWindow _this;
2591 public Xcls_ValaCompileErrors popup;
2592 public Json.Object notices;
2595 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2598 _this.statusbar_warnings = this;
2599 this.el = new Gtk.ImageMenuItem();
2602 this.notices = new Json.Object();
2604 // set gobject values
2605 this.el.always_show_image = true;
2606 this.el.label = "Warnings";
2607 var child_0 = new Xcls_Image77( _this );
2609 this.el.set_image ( child_0.el );
2612 this.el.button_press_event.connect( () => {
2613 if (this.popup == null) {
2614 this.popup = new Xcls_ValaCompileErrors();
2615 this.popup.window = _this;
2618 this.popup.show(this.notices, this.el);
2623 // user defined functions
2624 public void setNotices (Json.Object nots, int qty) {
2626 this.el.label = qty.to_string() + " Warnings";
2627 this.notices = nots;
2631 public class Xcls_Image77 : Object
2633 public Gtk.Image el;
2634 private Xcls_MainWindow _this;
2640 public Xcls_Image77(Xcls_MainWindow _owner )
2643 this.el = new Gtk.Image();
2647 // set gobject values
2648 this.el.icon_name = "dialog-warning";
2651 // user defined functions
2655 public class Xcls_statusbar_depricated : Object
2657 public Gtk.ImageMenuItem el;
2658 private Xcls_MainWindow _this;
2662 public Xcls_ValaCompileErrors popup;
2663 public Json.Object notices;
2666 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2669 _this.statusbar_depricated = this;
2670 this.el = new Gtk.ImageMenuItem();
2673 this.notices = new Json.Object();
2675 // set gobject values
2676 this.el.always_show_image = true;
2677 this.el.label = "Depricated";
2678 var child_0 = new Xcls_Image79( _this );
2680 this.el.set_image ( child_0.el );
2683 this.el.button_press_event.connect( () => {
2684 if (this.popup == null) {
2685 this.popup = new Xcls_ValaCompileErrors();
2686 this.popup.window = _this;
2690 this.popup.show(this.notices, this.el);
2695 // user defined functions
2696 public void setNotices (Json.Object nots, int qty) {
2698 this.el.label = qty.to_string() + " Depricated";
2699 this.notices = nots;
2703 public class Xcls_Image79 : Object
2705 public Gtk.Image el;
2706 private Xcls_MainWindow _this;
2712 public Xcls_Image79(Xcls_MainWindow _owner )
2715 this.el = new Gtk.Image();
2719 // set gobject values
2720 this.el.icon_name = "dialog-information";
2723 // user defined functions
2727 public class Xcls_statusbar_run : Object
2729 public Gtk.ImageMenuItem el;
2730 private Xcls_MainWindow _this;
2734 public Xcls_ValaCompileErrors popup;
2737 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2740 _this.statusbar_run = this;
2741 this.el = new Gtk.ImageMenuItem();
2745 // set gobject values
2746 this.el.always_show_image = true;
2747 this.el.label = "Run";
2748 var child_0 = new Xcls_Image81( _this );
2750 this.el.set_image ( child_0.el );
2753 this.el.button_press_event.connect( () => {
2754 if (_this.windowstate.file == null) {
2757 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2759 _this.windowstate.compile_results.show(this.el,true);
2765 // user defined functions
2767 public class Xcls_Image81 : Object
2769 public Gtk.Image el;
2770 private Xcls_MainWindow _this;
2776 public Xcls_Image81(Xcls_MainWindow _owner )
2779 this.el = new Gtk.Image();
2783 // set gobject values
2784 this.el.icon_name = "media-playback-start";
2787 // user defined functions