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();
111 // user defined functions
112 public void initChildren () {
113 // this needs putting in a better place..
114 this.windowstate = new WindowState(this);
118 var tl = new Clutter.Timeline(6000);
119 tl.set_repeat_count(-1);
128 public void show () {
133 public void setTitle (string str) {
134 this.headerbar.el.set_title(this.title + " - " + str);
136 public class Xcls_headerbar : Object
138 public Gtk.HeaderBar el;
139 private Xcls_MainWindow _this;
145 public Xcls_headerbar(Xcls_MainWindow _owner )
148 _this.headerbar = this;
149 this.el = new Gtk.HeaderBar();
153 // set gobject values
154 this.el.title = "Application Builder";
155 this.el.show_close_button = true;
156 var child_0 = new Xcls_Box3( _this );
158 this.el.pack_start ( child_0.el );
161 // user defined functions
163 public class Xcls_Box3 : Object
166 private Xcls_MainWindow _this;
172 public Xcls_Box3(Xcls_MainWindow _owner )
175 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
179 // set gobject values
180 var child_0 = new Xcls_MenuButton4( _this );
182 this.el.add ( child_0.el );
185 // user defined functions
187 public class Xcls_MenuButton4 : Object
189 public Gtk.MenuButton el;
190 private Xcls_MainWindow _this;
196 public Xcls_MenuButton4(Xcls_MainWindow _owner )
199 this.el = new Gtk.MenuButton();
203 // set gobject values
204 this.el.use_popover = false;
205 var child_0 = new Xcls_topbarmenu( _this );
207 this.el.set_popup ( child_0.el );
208 var child_1 = new Xcls_Image10( _this );
210 this.el.set_image ( child_1.el );
213 // user defined functions
215 public class Xcls_topbarmenu : Object
218 private Xcls_MainWindow _this;
224 public Xcls_topbarmenu(Xcls_MainWindow _owner )
227 _this.topbarmenu = this;
228 this.el = new Gtk.Menu();
232 // set gobject values
233 var child_0 = new Xcls_MenuItem6( _this );
235 this.el.append ( child_0.el );
236 var child_1 = new Xcls_SeparatorMenuItem7( _this );
238 this.el.append ( child_1.el );
239 var child_2 = new Xcls_MenuItem8( _this );
241 this.el.append ( child_2.el );
242 var child_3 = new Xcls_MenuItem9( _this );
244 this.el.append ( child_3.el );
253 // user defined functions
255 public class Xcls_MenuItem6 : Object
257 public Gtk.MenuItem el;
258 private Xcls_MainWindow _this;
264 public Xcls_MenuItem6(Xcls_MainWindow _owner )
267 this.el = new Gtk.MenuItem();
271 // set gobject values
272 this.el.label = "Open a new Window";
275 this.el.activate.connect( ( ) => {
276 Xcls_MainWindow.singleton().no_windows++;
277 var w = new Xcls_MainWindow();
282 w.windowstate.switchState(WindowState.State.FILES);
286 // user defined functions
289 public class Xcls_SeparatorMenuItem7 : Object
291 public Gtk.SeparatorMenuItem el;
292 private Xcls_MainWindow _this;
298 public Xcls_SeparatorMenuItem7(Xcls_MainWindow _owner )
301 this.el = new Gtk.SeparatorMenuItem();
305 // set gobject values
308 // user defined functions
311 public class Xcls_MenuItem8 : Object
313 public Gtk.MenuItem el;
314 private Xcls_MainWindow _this;
320 public Xcls_MenuItem8(Xcls_MainWindow _owner )
323 this.el = new Gtk.MenuItem();
327 // set gobject values
328 this.el.label = "Download updated Resources";
331 this.el.activate.connect( ( ) => {
332 Resources.singleton().fetchStart();
336 // user defined functions
339 public class Xcls_MenuItem9 : Object
341 public Gtk.MenuItem el;
342 private Xcls_MainWindow _this;
348 public Xcls_MenuItem9(Xcls_MainWindow _owner )
351 this.el = new Gtk.MenuItem();
355 // set gobject values
356 this.el.label = "About the Builder";
359 this.el.activate.connect( () => {
360 About.singleton().el.show();
364 // user defined functions
368 public class Xcls_Image10 : Object
371 private Xcls_MainWindow _this;
377 public Xcls_Image10(Xcls_MainWindow _owner )
380 this.el = new Gtk.Image();
384 // set gobject values
385 this.el.icon_name = "help-about";
388 // user defined functions
394 public class Xcls_vbox : Object
397 private Xcls_MainWindow _this;
403 public Xcls_vbox(Xcls_MainWindow _owner )
407 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
411 // set gobject values
412 this.el.homogeneous = false;
413 var child_0 = new Xcls_mainpane( _this );
415 this.el.pack_start ( child_0.el , true,true,0 );
416 var child_1 = new Xcls_Box66( _this );
418 this.el.pack_end ( child_1.el , false,true,0 );
421 // user defined functions
423 public class Xcls_mainpane : Object
426 private Xcls_MainWindow _this;
430 public int lastWidth;
433 public Xcls_mainpane(Xcls_MainWindow _owner )
436 _this.mainpane = this;
437 this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
442 // set gobject values
443 this.el.position = 400;
444 var child_0 = new Xcls_leftpane( _this );
446 this.el.add1 ( child_0.el );
447 var child_1 = new Xcls_Box17( _this );
449 this.el.add2 ( child_1.el );
452 // user defined functions
454 public class Xcls_leftpane : Object
457 private Xcls_MainWindow _this;
463 public Xcls_leftpane(Xcls_MainWindow _owner )
466 _this.leftpane = this;
467 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
471 // set gobject values
472 var child_0 = new Xcls_editpane( _this );
474 this.el.pack_start ( child_0.el , true,true,0 );
477 // user defined functions
479 public class Xcls_editpane : Object
482 private Xcls_MainWindow _this;
488 public Xcls_editpane(Xcls_MainWindow _owner )
491 _this.editpane = this;
492 this.el = new Gtk.Paned( Gtk.Orientation.VERTICAL );
496 // set gobject values
497 var child_0 = new Xcls_tree( _this );
499 this.el.add1 ( child_0.el );
500 var child_1 = new Xcls_props( _this );
502 this.el.add2 ( child_1.el );
505 // user defined functions
507 public class Xcls_tree : Object
510 private Xcls_MainWindow _this;
516 public Xcls_tree(Xcls_MainWindow _owner )
520 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
524 // set gobject values
527 // user defined functions
530 public class Xcls_props : Object
533 private Xcls_MainWindow _this;
539 public Xcls_props(Xcls_MainWindow _owner )
543 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
547 // set gobject values
550 // user defined functions
555 public class Xcls_Box17 : Object
558 private Xcls_MainWindow _this;
564 public Xcls_Box17(Xcls_MainWindow _owner )
567 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
571 // set gobject values
572 var child_0 = new Xcls_clutterembed( _this );
574 this.el.pack_start ( child_0.el , true,true,0 );
577 // user defined functions
579 public class Xcls_clutterembed : Object
581 public GtkClutter.Embed el;
582 private Xcls_MainWindow _this;
588 public Xcls_clutterembed(Xcls_MainWindow _owner )
591 _this.clutterembed = this;
592 this.el = new GtkClutter.Embed();
596 // set gobject values
597 var child_0 = new Xcls_rooview( _this );
599 this.el.get_stage().add_child ( child_0.el );
600 var child_1 = new Xcls_objectview( _this );
602 this.el.get_stage().add_child ( child_1.el );
603 var child_2 = new Xcls_codeeditview( _this );
605 this.el.get_stage().add_child ( child_2.el );
606 var child_3 = new Xcls_addpropsview( _this );
608 this.el.get_stage().add_child ( child_3.el );
609 var child_4 = new Xcls_projecteditview( _this );
611 this.el.get_stage().add_child ( child_4.el );
612 var child_5 = new Xcls_buttonlayout( _this );
614 this.el.get_stage().add_child ( child_5.el );
618 var stage = this.el.get_stage();
619 stage.set_background_color( Clutter.Color.from_string("#000"));
622 this.el.size_allocate.connect( ( alloc) => {
623 if (_this.windowstate == null) {
626 _this.windowstate.resizeCanvas();
631 // user defined functions
633 public class Xcls_rooview : Object
635 public GtkClutter.Actor el;
636 private Xcls_MainWindow _this;
642 public Xcls_rooview(Xcls_MainWindow _owner )
645 _this.rooview = this;
646 this.el = new GtkClutter.Actor();
650 // set gobject values
657 this.el.add_constraint(
658 new Clutter.AlignConstraint(
659 _this.clutterembed.el.get_stage(),
660 Clutter.AlignAxis.X_AXIS,
665 //this.el.set_position(100,100);
666 this.el.set_pivot_point(1.0f,1.0f);
668 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
669 _this.clutterembed.el.get_stage().height);
674 // user defined functions
677 public class Xcls_objectview : Object
679 public GtkClutter.Actor el;
680 private Xcls_MainWindow _this;
686 public Xcls_objectview(Xcls_MainWindow _owner )
689 _this.objectview = this;
690 this.el = new GtkClutter.Actor();
694 // set gobject values
701 this.el.add_constraint(
702 new Clutter.AlignConstraint(
703 _this.clutterembed.el.get_stage(),
704 Clutter.AlignAxis.X_AXIS,
709 this.el.fixed_x = 50.0f;
710 this.el.fixed_y = 0.0f;
711 //this.el.set_position(100,100);
712 this.el.set_pivot_point(0.0f,0.0f);
713 this.el.set_scale(0.0f,1.0f);
714 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
715 _this.clutterembed.el.get_stage().height);
720 // user defined functions
723 public class Xcls_codeeditview : Object
725 public GtkClutter.Actor el;
726 private Xcls_MainWindow _this;
732 public Xcls_codeeditview(Xcls_MainWindow _owner )
735 _this.codeeditview = this;
736 this.el = new GtkClutter.Actor();
740 // set gobject values
747 this.el.add_constraint(
748 new Clutter.AlignConstraint(
749 _this.clutterembed.el.get_stage(),
750 Clutter.AlignAxis.X_AXIS,
755 this.el.fixed_x = 50.0f;
756 this.el.fixed_y = 0.0f;
757 //this.el.set_position(100,100);
758 this.el.set_pivot_point(0.0f,0.0f);
759 this.el.set_scale(0.0f,1.0f);
760 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
761 _this.clutterembed.el.get_stage().height);
766 // user defined functions
769 public class Xcls_addpropsview : Object
771 public GtkClutter.Actor el;
772 private Xcls_MainWindow _this;
778 public Xcls_addpropsview(Xcls_MainWindow _owner )
781 _this.addpropsview = this;
782 this.el = new GtkClutter.Actor();
786 // set gobject values
793 this.el.add_constraint(
794 new Clutter.AlignConstraint(
795 _this.clutterembed.el.get_stage(),
796 Clutter.AlignAxis.X_AXIS,
801 this.el.fixed_x = 50.0f;
802 this.el.fixed_y = 0.0f;
803 //this.el.set_position(100,100);
804 this.el.set_pivot_point(0.0f,0.0f);
805 this.el.set_scale(0.0f,1.0f);
806 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
807 _this.clutterembed.el.get_stage().height);
812 // user defined functions
815 public class Xcls_projecteditview : Object
817 public GtkClutter.Actor el;
818 private Xcls_MainWindow _this;
824 public Xcls_projecteditview(Xcls_MainWindow _owner )
827 _this.projecteditview = this;
828 this.el = new GtkClutter.Actor();
832 // set gobject values
839 this.el.add_constraint(
840 new Clutter.AlignConstraint(
841 _this.clutterembed.el.get_stage(),
842 Clutter.AlignAxis.X_AXIS,
847 //this.el.set_position(100,100);
848 this.el.set_pivot_point(0.0f,0.0f);
849 this.el.set_scale(1.0f,0.0f);
850 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
851 _this.clutterembed.el.get_stage().height /2);
856 // user defined functions
859 public class Xcls_buttonlayout : Object
861 public Clutter.Actor el;
862 private Xcls_MainWindow _this;
868 public Xcls_buttonlayout(Xcls_MainWindow _owner )
871 _this.buttonlayout = this;
872 this.el = new Clutter.Actor();
876 // set gobject values
877 var child_0 = new Xcls_BoxLayout25( _this );
879 this.el.layout_manager = child_0.el;
880 var child_1 = new Xcls_backbutton( _this );
882 this.el.add_child ( child_1.el );
883 var child_2 = new Xcls_projectbutton( _this );
885 this.el.add_child ( child_2.el );
886 var child_3 = new Xcls_editfilebutton( _this );
888 this.el.add_child ( child_3.el );
889 var child_4 = new Xcls_projecteditbutton( _this );
891 this.el.add_child ( child_4.el );
892 var child_5 = new Xcls_objectshowbutton( _this );
894 this.el.add_child ( child_5.el );
895 var child_6 = new Xcls_addpropbutton( _this );
897 this.el.add_child ( child_6.el );
898 var child_7 = new Xcls_addlistenerbutton( _this );
900 this.el.add_child ( child_7.el );
901 var child_8 = new Xcls_addprojectbutton( _this );
903 this.el.add_child ( child_8.el );
904 var child_9 = new Xcls_addfilebutton( _this );
906 this.el.add_child ( child_9.el );
907 var child_10 = new Xcls_delprojectbutton( _this );
909 this.el.add_child ( child_10.el );
915 this.el.add_constraint(
916 new Clutter.AlignConstraint(
917 _this.clutterembed.el.get_stage(),
918 Clutter.AlignAxis.X_AXIS,
924 //this.el.set_position(100,100);
925 this.el.set_pivot_point(0.5f,0.5f);
927 _this.clutterembed.el.get_stage().height);
932 // user defined functions
934 public class Xcls_BoxLayout25 : Object
936 public Clutter.BoxLayout el;
937 private Xcls_MainWindow _this;
943 public Xcls_BoxLayout25(Xcls_MainWindow _owner )
946 this.el = new Clutter.BoxLayout();
950 // set gobject values
951 this.el.orientation = Clutter.Orientation.VERTICAL;
954 // user defined functions
957 public class Xcls_backbutton : Object
959 public Clutter.Actor el;
960 private Xcls_MainWindow _this;
966 public Xcls_backbutton(Xcls_MainWindow _owner )
969 _this.backbutton = this;
970 this.el = new Clutter.Actor();
974 // set gobject values
975 var child_0 = new Xcls_Actor27( _this );
977 this.el.add_child ( child_0.el );
981 this.el.set_size(50,50);
984 // user defined functions
986 public class Xcls_Actor27 : Object
988 public GtkClutter.Actor el;
989 private Xcls_MainWindow _this;
995 public Xcls_Actor27(Xcls_MainWindow _owner )
998 this.el = new GtkClutter.Actor();
1002 // set gobject values
1003 var child_0 = new Xcls_Button28( _this );
1008 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1011 // user defined functions
1013 public class Xcls_Button28 : Object
1015 public Gtk.Button el;
1016 private Xcls_MainWindow _this;
1022 public Xcls_Button28(Xcls_MainWindow _owner )
1025 this.el = new Gtk.Button();
1029 // set gobject values
1030 this.el.width_request = 50;
1031 this.el.height_request = 50;
1032 this.el.tooltip_text = "Back";
1033 var child_0 = new Xcls_Image29( _this );
1035 this.el.set_image ( child_0.el );
1038 this.el.clicked.connect( ( ) => {
1040 _this.windowstate.switchState(WindowState.State.PREVIEW);
1046 // user defined functions
1048 public class Xcls_Image29 : Object
1050 public Gtk.Image el;
1051 private Xcls_MainWindow _this;
1057 public Xcls_Image29(Xcls_MainWindow _owner )
1060 this.el = new Gtk.Image();
1064 // set gobject values
1065 this.el.icon_name = "go-previous";
1068 // user defined functions
1074 public class Xcls_projectbutton : Object
1076 public Clutter.Actor el;
1077 private Xcls_MainWindow _this;
1083 public Xcls_projectbutton(Xcls_MainWindow _owner )
1086 _this.projectbutton = this;
1087 this.el = new Clutter.Actor();
1091 // set gobject values
1092 var child_0 = new Xcls_Actor31( _this );
1094 this.el.add_child ( child_0.el );
1098 this.el.set_size(50,50);
1101 // user defined functions
1103 public class Xcls_Actor31 : Object
1105 public GtkClutter.Actor el;
1106 private Xcls_MainWindow _this;
1112 public Xcls_Actor31(Xcls_MainWindow _owner )
1115 this.el = new GtkClutter.Actor();
1119 // set gobject values
1120 var child_0 = new Xcls_Button32( _this );
1125 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1128 // user defined functions
1130 public class Xcls_Button32 : Object
1132 public Gtk.Button el;
1133 private Xcls_MainWindow _this;
1139 public Xcls_Button32(Xcls_MainWindow _owner )
1142 this.el = new Gtk.Button();
1146 // set gobject values
1147 this.el.width_request = 50;
1148 this.el.height_request = 50;
1149 var child_0 = new Xcls_Image33( _this );
1151 this.el.set_image ( child_0.el );
1154 this.el.clicked.connect( ( ) => {
1155 _this.windowstate.switchState(WindowState.State.FILES);
1161 // user defined functions
1163 public class Xcls_Image33 : Object
1165 public Gtk.Image el;
1166 private Xcls_MainWindow _this;
1172 public Xcls_Image33(Xcls_MainWindow _owner )
1175 this.el = new Gtk.Image();
1179 // set gobject values
1180 this.el.icon_name = "document-open";
1183 // user defined functions
1189 public class Xcls_editfilebutton : Object
1191 public Clutter.Actor el;
1192 private Xcls_MainWindow _this;
1198 public Xcls_editfilebutton(Xcls_MainWindow _owner )
1201 _this.editfilebutton = this;
1202 this.el = new Clutter.Actor();
1206 // set gobject values
1207 var child_0 = new Xcls_Actor35( _this );
1209 this.el.add_child ( child_0.el );
1213 this.el.set_size(50.0f,50.0f);
1216 // user defined functions
1218 public class Xcls_Actor35 : Object
1220 public GtkClutter.Actor el;
1221 private Xcls_MainWindow _this;
1227 public Xcls_Actor35(Xcls_MainWindow _owner )
1230 this.el = new GtkClutter.Actor();
1234 // set gobject values
1235 var child_0 = new Xcls_Button36( _this );
1240 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1243 // user defined functions
1245 public class Xcls_Button36 : Object
1247 public Gtk.Button el;
1248 private Xcls_MainWindow _this;
1254 public Xcls_Button36(Xcls_MainWindow _owner )
1257 this.el = new Gtk.Button();
1261 // set gobject values
1262 this.el.width_request = 50;
1263 this.el.height_request = 50;
1264 this.el.tooltip_text = "File Details";
1265 var child_0 = new Xcls_Image37( _this );
1267 this.el.set_image ( child_0.el );
1270 this.el.clicked.connect( ( ) => {
1272 // create a new file in project..
1273 if (_this.project == null || _this.windowstate.file == null) {
1276 _this.windowstate.file_details.show(
1277 _this.windowstate.file, this.el
1286 // user defined functions
1288 public class Xcls_Image37 : Object
1290 public Gtk.Image el;
1291 private Xcls_MainWindow _this;
1297 public Xcls_Image37(Xcls_MainWindow _owner )
1300 this.el = new Gtk.Image();
1304 // set gobject values
1305 this.el.icon_name = "document-properties";
1308 // user defined functions
1314 public class Xcls_projecteditbutton : Object
1316 public Clutter.Actor el;
1317 private Xcls_MainWindow _this;
1323 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1326 _this.projecteditbutton = this;
1327 this.el = new Clutter.Actor();
1331 // set gobject values
1332 var child_0 = new Xcls_Actor39( _this );
1334 this.el.add_child ( child_0.el );
1338 this.el.set_size(50,50);
1341 // user defined functions
1343 public class Xcls_Actor39 : Object
1345 public GtkClutter.Actor el;
1346 private Xcls_MainWindow _this;
1352 public Xcls_Actor39(Xcls_MainWindow _owner )
1355 this.el = new GtkClutter.Actor();
1359 // set gobject values
1360 var child_0 = new Xcls_Button40( _this );
1365 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1368 // user defined functions
1370 public class Xcls_Button40 : Object
1372 public Gtk.Button el;
1373 private Xcls_MainWindow _this;
1379 public Xcls_Button40(Xcls_MainWindow _owner )
1382 this.el = new Gtk.Button();
1386 // set gobject values
1387 this.el.width_request = 50;
1388 this.el.height_request = 50;
1389 this.el.tooltip_text = "Project Details";
1390 var child_0 = new Xcls_Image41( _this );
1392 this.el.set_image ( child_0.el );
1395 this.el.clicked.connect( ( ) => {
1396 _this.windowstate.switchState(WindowState.State.PROJECT);
1403 // user defined functions
1405 public class Xcls_Image41 : Object
1407 public Gtk.Image el;
1408 private Xcls_MainWindow _this;
1414 public Xcls_Image41(Xcls_MainWindow _owner )
1417 this.el = new Gtk.Image();
1421 // set gobject values
1422 this.el.icon_name = "emblem-system";
1425 // user defined functions
1431 public class Xcls_objectshowbutton : Object
1433 public Clutter.Actor el;
1434 private Xcls_MainWindow _this;
1440 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1443 _this.objectshowbutton = this;
1444 this.el = new Clutter.Actor();
1448 // set gobject values
1449 var child_0 = new Xcls_Actor43( _this );
1451 this.el.add_child ( child_0.el );
1455 this.el.set_size(50,50);
1458 this.el.enter_event.connect( ( event) => {
1459 this.el.background_color = Clutter.Color.from_string("#333");
1462 this.el.leave_event.connect( ( event) => {
1463 this.el.background_color = Clutter.Color.from_string("#000");
1468 // user defined functions
1470 public class Xcls_Actor43 : Object
1472 public GtkClutter.Actor el;
1473 private Xcls_MainWindow _this;
1479 public Xcls_Actor43(Xcls_MainWindow _owner )
1482 this.el = new GtkClutter.Actor();
1486 // set gobject values
1487 var child_0 = new Xcls_Button44( _this );
1492 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1495 // user defined functions
1497 public class Xcls_Button44 : Object
1499 public Gtk.Button el;
1500 private Xcls_MainWindow _this;
1506 public Xcls_Button44(Xcls_MainWindow _owner )
1509 this.el = new Gtk.Button();
1513 // set gobject values
1514 this.el.width_request = 50;
1515 this.el.height_request = 50;
1516 this.el.tooltip_text = "Add Child Element";
1517 var child_0 = new Xcls_Image45( _this );
1519 this.el.set_image ( child_0.el );
1522 this.el.clicked.connect( ( ) => {
1524 _this.windowstate.switchState(WindowState.State.OBJECT);
1530 // user defined functions
1532 public class Xcls_Image45 : Object
1534 public Gtk.Image el;
1535 private Xcls_MainWindow _this;
1541 public Xcls_Image45(Xcls_MainWindow _owner )
1544 this.el = new Gtk.Image();
1548 // set gobject values
1549 this.el.icon_name = "list-add";
1552 // user defined functions
1558 public class Xcls_addpropbutton : Object
1560 public Clutter.Actor el;
1561 private Xcls_MainWindow _this;
1567 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1570 _this.addpropbutton = this;
1571 this.el = new Clutter.Actor();
1575 // set gobject values
1576 var child_0 = new Xcls_Actor47( _this );
1578 this.el.add_child ( child_0.el );
1582 this.el.set_size(50,50);
1585 // user defined functions
1587 public class Xcls_Actor47 : Object
1589 public GtkClutter.Actor el;
1590 private Xcls_MainWindow _this;
1596 public Xcls_Actor47(Xcls_MainWindow _owner )
1599 this.el = new GtkClutter.Actor();
1603 // set gobject values
1604 var child_0 = new Xcls_Button48( _this );
1609 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1612 // user defined functions
1614 public class Xcls_Button48 : Object
1616 public Gtk.Button el;
1617 private Xcls_MainWindow _this;
1623 public Xcls_Button48(Xcls_MainWindow _owner )
1626 this.el = new Gtk.Button();
1630 // set gobject values
1631 this.el.width_request = 50;
1632 this.el.height_request = 50;
1633 this.el.tooltip_text = "Add Property";
1634 var child_0 = new Xcls_Image49( _this );
1636 this.el.set_image ( child_0.el );
1639 this.el.clicked.connect( ( ) => {
1641 _this.windowstate.switchState(WindowState.State.PROP);
1647 // user defined functions
1649 public class Xcls_Image49 : Object
1651 public Gtk.Image el;
1652 private Xcls_MainWindow _this;
1658 public Xcls_Image49(Xcls_MainWindow _owner )
1661 this.el = new Gtk.Image();
1665 // set gobject values
1666 this.el.icon_name = "format-justify-left";
1669 // user defined functions
1675 public class Xcls_addlistenerbutton : Object
1677 public Clutter.Actor el;
1678 private Xcls_MainWindow _this;
1684 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1687 _this.addlistenerbutton = this;
1688 this.el = new Clutter.Actor();
1692 // set gobject values
1693 var child_0 = new Xcls_Actor51( _this );
1695 this.el.add_child ( child_0.el );
1699 this.el.set_size(50,50);
1702 // user defined functions
1704 public class Xcls_Actor51 : Object
1706 public GtkClutter.Actor el;
1707 private Xcls_MainWindow _this;
1713 public Xcls_Actor51(Xcls_MainWindow _owner )
1716 this.el = new GtkClutter.Actor();
1720 // set gobject values
1721 var child_0 = new Xcls_Button52( _this );
1726 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1729 // user defined functions
1731 public class Xcls_Button52 : Object
1733 public Gtk.Button el;
1734 private Xcls_MainWindow _this;
1740 public Xcls_Button52(Xcls_MainWindow _owner )
1743 this.el = new Gtk.Button();
1747 // set gobject values
1748 this.el.width_request = 50;
1749 this.el.height_request = 50;
1750 this.el.tooltip_text = "Add Event Code";
1751 var child_0 = new Xcls_Image53( _this );
1753 this.el.set_image ( child_0.el );
1756 this.el.clicked.connect( ( ) => {
1758 _this.windowstate.switchState(WindowState.State.LISTENER);
1765 // user defined functions
1767 public class Xcls_Image53 : Object
1769 public Gtk.Image el;
1770 private Xcls_MainWindow _this;
1776 public Xcls_Image53(Xcls_MainWindow _owner )
1779 this.el = new Gtk.Image();
1783 // set gobject values
1784 this.el.icon_name = "appointment-new";
1787 // user defined functions
1793 public class Xcls_addprojectbutton : Object
1795 public Clutter.Actor el;
1796 private Xcls_MainWindow _this;
1802 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1805 _this.addprojectbutton = this;
1806 this.el = new Clutter.Actor();
1810 // set gobject values
1811 var child_0 = new Xcls_Actor55( _this );
1813 this.el.add_child ( child_0.el );
1817 this.el.set_size(50.0f,50.0f);
1820 // user defined functions
1822 public class Xcls_Actor55 : Object
1824 public GtkClutter.Actor el;
1825 private Xcls_MainWindow _this;
1831 public Xcls_Actor55(Xcls_MainWindow _owner )
1834 this.el = new GtkClutter.Actor();
1838 // set gobject values
1839 var child_0 = new Xcls_Button56( _this );
1844 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1847 // user defined functions
1849 public class Xcls_Button56 : Object
1851 public Gtk.Button el;
1852 private Xcls_MainWindow _this;
1858 public Xcls_Button56(Xcls_MainWindow _owner )
1861 this.el = new Gtk.Button();
1865 // set gobject values
1866 this.el.width_request = 50;
1867 this.el.height_request = 50;
1868 this.el.tooltip_text = "New\nProj.";
1869 var child_0 = new Xcls_Image57( _this );
1871 this.el.set_image ( child_0.el );
1874 this.el.clicked.connect( ( ) => {
1876 // create a new file in project..
1877 //Xcls_DialogNewComponent.singleton().show(
1878 var pe = EditProject.singleton();
1879 pe.el.set_transient_for(_this.el);
1880 pe.el.set_modal(true);
1889 _this.windowstate.left_projects.is_loaded = false;
1890 _this.windowstate.left_projects.load();
1891 _this.windowstate.left_projects.selectProject(p);
1898 // user defined functions
1900 public class Xcls_Image57 : Object
1902 public Gtk.Image el;
1903 private Xcls_MainWindow _this;
1909 public Xcls_Image57(Xcls_MainWindow _owner )
1912 this.el = new Gtk.Image();
1916 // set gobject values
1917 this.el.icon_name = "folder-new";
1920 // user defined functions
1926 public class Xcls_addfilebutton : Object
1928 public Clutter.Actor el;
1929 private Xcls_MainWindow _this;
1935 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1938 _this.addfilebutton = this;
1939 this.el = new Clutter.Actor();
1943 // set gobject values
1944 var child_0 = new Xcls_Actor59( _this );
1946 this.el.add_child ( child_0.el );
1950 this.el.set_size(50.0f,50.0f);
1953 // user defined functions
1955 public class Xcls_Actor59 : Object
1957 public GtkClutter.Actor el;
1958 private Xcls_MainWindow _this;
1964 public Xcls_Actor59(Xcls_MainWindow _owner )
1967 this.el = new GtkClutter.Actor();
1971 // set gobject values
1972 var child_0 = new Xcls_Button60( _this );
1977 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1980 // user defined functions
1982 public class Xcls_Button60 : Object
1984 public Gtk.Button el;
1985 private Xcls_MainWindow _this;
1991 public Xcls_Button60(Xcls_MainWindow _owner )
1994 this.el = new Gtk.Button();
1998 // set gobject values
1999 this.el.width_request = 50;
2000 this.el.height_request = 50;
2001 this.el.tooltip_text = "Add File";
2002 var child_0 = new Xcls_Image61( _this );
2004 this.el.set_image ( child_0.el );
2007 this.el.clicked.connect( () => {
2008 // create a new file in project..
2009 print("add file selected\n");
2010 // what's the currently selected project...
2011 var proj = _this.windowstate.left_projects.getSelectedProject();
2014 print("no project selected?\n");
2018 print("creating file?");
2020 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
2021 _this.project = proj;
2022 print("showing popup?");
2023 _this.windowstate.file_details.show(
2032 // user defined functions
2034 public class Xcls_Image61 : Object
2036 public Gtk.Image el;
2037 private Xcls_MainWindow _this;
2043 public Xcls_Image61(Xcls_MainWindow _owner )
2046 this.el = new Gtk.Image();
2050 // set gobject values
2051 this.el.icon_name = "document-new";
2054 // user defined functions
2060 public class Xcls_delprojectbutton : Object
2062 public Clutter.Actor el;
2063 private Xcls_MainWindow _this;
2069 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
2072 _this.delprojectbutton = this;
2073 this.el = new Clutter.Actor();
2077 // set gobject values
2078 var child_0 = new Xcls_Actor63( _this );
2080 this.el.add_child ( child_0.el );
2084 this.el.set_size(50,50);
2087 // user defined functions
2089 public class Xcls_Actor63 : Object
2091 public GtkClutter.Actor el;
2092 private Xcls_MainWindow _this;
2098 public Xcls_Actor63(Xcls_MainWindow _owner )
2101 this.el = new GtkClutter.Actor();
2105 // set gobject values
2106 var child_0 = new Xcls_Button64( _this );
2111 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
2114 // user defined functions
2116 public class Xcls_Button64 : Object
2118 public Gtk.Button el;
2119 private Xcls_MainWindow _this;
2125 public Xcls_Button64(Xcls_MainWindow _owner )
2128 this.el = new Gtk.Button();
2132 // set gobject values
2133 this.el.width_request = 50;
2134 this.el.height_request = 50;
2135 this.el.tooltip_text = "Delete Project";
2136 var child_0 = new Xcls_Image65( _this );
2138 this.el.set_image ( child_0.el );
2141 this.el.clicked.connect( ( ) => {
2143 var cd = DialogConfirm.singleton();
2144 cd.el.set_transient_for(_this.el);
2145 cd.el.set_modal(true);
2147 var project = _this.windowstate.left_projects.getSelectedProject();
2148 if (project == null) {
2149 print("SKIP - no project\n");
2154 if (Gtk.ResponseType.YES != cd.show("Confirm",
2155 "Are you sure you want to delete project %s".printf(project.name))) {
2161 Project.Project.remove(project);
2162 _this.project = null;
2164 _this.windowstate.left_projects.is_loaded = false;
2165 _this.windowstate.left_projects.load();
2166 _this.windowstate.clutterfiles.clearFiles();
2171 // user defined functions
2173 public class Xcls_Image65 : Object
2175 public Gtk.Image el;
2176 private Xcls_MainWindow _this;
2182 public Xcls_Image65(Xcls_MainWindow _owner )
2185 this.el = new Gtk.Image();
2189 // set gobject values
2190 this.el.icon_name = "user-trash";
2193 // user defined functions
2203 public class Xcls_Box66 : Object
2206 private Xcls_MainWindow _this;
2212 public Xcls_Box66(Xcls_MainWindow _owner )
2215 this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
2219 // set gobject values
2220 this.el.homogeneous = false;
2221 var child_0 = new Xcls_Label67( _this );
2223 this.el.pack_start ( child_0.el , true,true,0 );
2224 var child_1 = new Xcls_statusbar( _this );
2226 this.el.pack_start ( child_1.el , true,true,0 );
2227 var child_2 = new Xcls_search_entry( _this );
2229 this.el.pack_start ( child_2.el , false,true,0 );
2230 var child_3 = new Xcls_MenuBar70( _this );
2232 this.el.pack_end ( child_3.el , false,true,0 );
2235 // user defined functions
2237 public class Xcls_Label67 : Object
2239 public Gtk.Label el;
2240 private Xcls_MainWindow _this;
2246 public Xcls_Label67(Xcls_MainWindow _owner )
2249 this.el = new Gtk.Label( " " );
2253 // set gobject values
2256 // user defined functions
2259 public class Xcls_statusbar : Object
2261 public Gtk.ProgressBar el;
2262 private Xcls_MainWindow _this;
2266 public ulong handler_id;
2269 public Xcls_statusbar(Xcls_MainWindow _owner )
2272 _this.statusbar = this;
2273 this.el = new Gtk.ProgressBar();
2276 this.handler_id = -1;
2278 // set gobject values
2279 this.el.show_text = true;
2284 this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {
2287 _this.mainpane.el.set_sensitive(true);
2291 _this.mainpane.el.set_sensitive(false);
2293 this.el.set_fraction ((1.0f * pos) / (1.0f * total));
2294 this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string()));
2300 // user defined functions
2303 public class Xcls_search_entry : Object
2305 public Gtk.Entry el;
2306 private Xcls_MainWindow _this;
2312 public Xcls_search_entry(Xcls_MainWindow _owner )
2315 _this.search_entry = this;
2316 this.el = new Gtk.Entry();
2320 // set gobject values
2324 var description = Pango.FontDescription.from_string("monospace");
2325 description.set_size(8000);
2326 this.el.override_font(description);
2329 this.el.changed.connect( () => {
2330 if (this.el.text == "") {
2333 Gee.ArrayList<int> res = new Gee.ArrayList<int>();
2334 switch(_this.windowstate.state) {
2335 case WindowState.State.CODEONLY:
2336 case WindowState.State.CODE:
2337 // search the code being edited..
2338 res = _this.windowstate.code_editor.search(this.el.text);
2341 case WindowState.State.PREVIEW:
2342 if (_this.windowstate.file.xtype == "Gtk") {
2343 var res = _this.windowstate.window_gladeview.search(this.el.text);
2349 _this.search_results.el.label = "%d Matches".printf(res.size);
2351 _this.search_results.el.label = "No Matches";
2359 // user defined functions
2362 public class Xcls_MenuBar70 : Object
2364 public Gtk.MenuBar el;
2365 private Xcls_MainWindow _this;
2371 public Xcls_MenuBar70(Xcls_MainWindow _owner )
2374 this.el = new Gtk.MenuBar();
2378 // set gobject values
2379 var child_0 = new Xcls_search_results( _this );
2381 this.el.add ( child_0.el );
2382 var child_1 = new Xcls_MenuItem73( _this );
2384 this.el.add ( child_1.el );
2385 var child_2 = new Xcls_statusbar_errors( _this );
2387 this.el.add ( child_2.el );
2388 var child_3 = new Xcls_statusbar_warnings( _this );
2390 this.el.add ( child_3.el );
2391 var child_4 = new Xcls_statusbar_depricated( _this );
2393 this.el.add ( child_4.el );
2394 var child_5 = new Xcls_statusbar_run( _this );
2396 this.el.add ( child_5.el );
2399 // user defined functions
2401 public class Xcls_search_results : Object
2403 public Gtk.ImageMenuItem el;
2404 private Xcls_MainWindow _this;
2408 public Xcls_ValaCompileErrors popup;
2411 public Xcls_search_results(Xcls_MainWindow _owner )
2414 _this.search_results = this;
2415 this.el = new Gtk.ImageMenuItem();
2419 // set gobject values
2420 this.el.always_show_image = true;
2421 this.el.label = "Matches";
2422 var child_0 = new Xcls_Image72( _this );
2424 this.el.set_image ( child_0.el );
2427 this.el.button_press_event.connect( () => {
2429 if (this.popup == null) {
2430 this.popup = new Xcls_ValaCompileErrors();
2431 this.popup.window = _this;
2435 this.popup.show(this.notices, this.el);
2441 // user defined functions
2443 public class Xcls_Image72 : Object
2445 public Gtk.Image el;
2446 private Xcls_MainWindow _this;
2452 public Xcls_Image72(Xcls_MainWindow _owner )
2455 this.el = new Gtk.Image();
2459 // set gobject values
2460 this.el.icon_name = "system-search";
2461 this.el.sensitive = false;
2464 // user defined functions
2468 public class Xcls_MenuItem73 : Object
2470 public Gtk.MenuItem el;
2471 private Xcls_MainWindow _this;
2477 public Xcls_MenuItem73(Xcls_MainWindow _owner )
2480 this.el = new Gtk.MenuItem();
2484 // set gobject values
2485 this.el.label = "Compile Status:";
2488 // user defined functions
2491 public class Xcls_statusbar_errors : Object
2493 public Gtk.ImageMenuItem el;
2494 private Xcls_MainWindow _this;
2498 public Xcls_ValaCompileErrors popup;
2499 public Json.Object notices;
2502 public Xcls_statusbar_errors(Xcls_MainWindow _owner )
2505 _this.statusbar_errors = this;
2506 this.el = new Gtk.ImageMenuItem();
2509 this.notices = new Json.Object() ;
2511 // set gobject values
2512 this.el.always_show_image = true;
2513 this.el.label = "Errors";
2514 var child_0 = new Xcls_Image75( _this );
2516 this.el.set_image ( child_0.el );
2519 this.el.button_press_event.connect( () => {
2520 if (this.popup == null) {
2521 this.popup = new Xcls_ValaCompileErrors();
2522 this.popup.window = _this;
2526 this.popup.show(this.notices, this.el);
2531 // user defined functions
2532 public void setNotices (Json.Object nots, int qty) {
2534 this.el.label = qty.to_string() + " Errors";
2535 this.notices = nots;
2539 public class Xcls_Image75 : Object
2541 public Gtk.Image el;
2542 private Xcls_MainWindow _this;
2548 public Xcls_Image75(Xcls_MainWindow _owner )
2551 this.el = new Gtk.Image();
2555 // set gobject values
2556 this.el.icon_name = "dialog-error";
2559 // user defined functions
2563 public class Xcls_statusbar_warnings : Object
2565 public Gtk.ImageMenuItem el;
2566 private Xcls_MainWindow _this;
2570 public Xcls_ValaCompileErrors popup;
2571 public Json.Object notices;
2574 public Xcls_statusbar_warnings(Xcls_MainWindow _owner )
2577 _this.statusbar_warnings = this;
2578 this.el = new Gtk.ImageMenuItem();
2581 this.notices = new Json.Object();
2583 // set gobject values
2584 this.el.always_show_image = true;
2585 this.el.label = "Warnings";
2586 var child_0 = new Xcls_Image77( _this );
2588 this.el.set_image ( child_0.el );
2591 this.el.button_press_event.connect( () => {
2592 if (this.popup == null) {
2593 this.popup = new Xcls_ValaCompileErrors();
2594 this.popup.window = _this;
2597 this.popup.show(this.notices, this.el);
2602 // user defined functions
2603 public void setNotices (Json.Object nots, int qty) {
2605 this.el.label = qty.to_string() + " Warnings";
2606 this.notices = nots;
2610 public class Xcls_Image77 : Object
2612 public Gtk.Image el;
2613 private Xcls_MainWindow _this;
2619 public Xcls_Image77(Xcls_MainWindow _owner )
2622 this.el = new Gtk.Image();
2626 // set gobject values
2627 this.el.icon_name = "dialog-warning";
2630 // user defined functions
2634 public class Xcls_statusbar_depricated : Object
2636 public Gtk.ImageMenuItem el;
2637 private Xcls_MainWindow _this;
2641 public Xcls_ValaCompileErrors popup;
2642 public Json.Object notices;
2645 public Xcls_statusbar_depricated(Xcls_MainWindow _owner )
2648 _this.statusbar_depricated = this;
2649 this.el = new Gtk.ImageMenuItem();
2652 this.notices = new Json.Object();
2654 // set gobject values
2655 this.el.always_show_image = true;
2656 this.el.label = "Depricated";
2657 var child_0 = new Xcls_Image79( _this );
2659 this.el.set_image ( child_0.el );
2662 this.el.button_press_event.connect( () => {
2663 if (this.popup == null) {
2664 this.popup = new Xcls_ValaCompileErrors();
2665 this.popup.window = _this;
2669 this.popup.show(this.notices, this.el);
2674 // user defined functions
2675 public void setNotices (Json.Object nots, int qty) {
2677 this.el.label = qty.to_string() + " Depricated";
2678 this.notices = nots;
2682 public class Xcls_Image79 : Object
2684 public Gtk.Image el;
2685 private Xcls_MainWindow _this;
2691 public Xcls_Image79(Xcls_MainWindow _owner )
2694 this.el = new Gtk.Image();
2698 // set gobject values
2699 this.el.icon_name = "dialog-information";
2702 // user defined functions
2706 public class Xcls_statusbar_run : Object
2708 public Gtk.ImageMenuItem el;
2709 private Xcls_MainWindow _this;
2713 public Xcls_ValaCompileErrors popup;
2716 public Xcls_statusbar_run(Xcls_MainWindow _owner )
2719 _this.statusbar_run = this;
2720 this.el = new Gtk.ImageMenuItem();
2724 // set gobject values
2725 this.el.always_show_image = true;
2726 this.el.label = "Run";
2727 var child_0 = new Xcls_Image81( _this );
2729 this.el.set_image ( child_0.el );
2732 this.el.button_press_event.connect( () => {
2733 if (_this.windowstate.file == null) {
2736 _this.windowstate.valasource.spawnExecute(_this.windowstate.file);
2738 _this.windowstate.compile_results.show(this.el,true);
2744 // user defined functions
2746 public class Xcls_Image81 : Object
2748 public Gtk.Image el;
2749 private Xcls_MainWindow _this;
2755 public Xcls_Image81(Xcls_MainWindow _owner )
2758 this.el = new Gtk.Image();
2762 // set gobject values
2763 this.el.icon_name = "media-playback-start";
2766 // user defined functions