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_vbox vbox;
16 public Xcls_mainpane mainpane;
17 public Xcls_leftpane leftpane;
18 public Xcls_editpane editpane;
19 public Xcls_tree tree;
20 public Xcls_props props;
21 public Xcls_clutterembed clutterembed;
22 public Xcls_rooview rooview;
23 public Xcls_objectview objectview;
24 public Xcls_codeeditview codeeditview;
25 public Xcls_addpropsview addpropsview;
26 public Xcls_projecteditview projecteditview;
27 public Xcls_buttonlayout buttonlayout;
28 public Xcls_backbutton backbutton;
29 public Xcls_projectbutton projectbutton;
30 public Xcls_editfilebutton editfilebutton;
31 public Xcls_projecteditbutton projecteditbutton;
32 public Xcls_objectshowbutton objectshowbutton;
33 public Xcls_addpropbutton addpropbutton;
34 public Xcls_addlistenerbutton addlistenerbutton;
35 public Xcls_addprojectbutton addprojectbutton;
36 public Xcls_addfilebutton addfilebutton;
37 public Xcls_delprojectbutton delprojectbutton;
38 public Xcls_new_window new_window;
41 public Project.Project project;
43 public int no_windows;
44 public WindowState windowstate;
47 public Xcls_MainWindow()
50 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
54 this.title = "Application Builder";
56 this.windowstate = null;
59 this.el.border_width = 0;
60 this.el.default_height = 500;
61 this.el.default_width = 800;
62 var child_0 = new Xcls_vbox( _this );
64 this.el.add ( child_0.el );
71 this.el.delete_event.connect( ( event) => {
74 this.el.destroy.connect( () => {
75 Xcls_MainWindow.singleton().no_windows--;
77 if (Xcls_MainWindow.singleton().no_windows < 1) {
82 this.el.show.connect( ( ) => {
83 // hide the file editing..
85 //this.hideViewEditing();
89 // user defined functions
90 public void initChildren () {
91 // this needs putting in a better place..
92 this.windowstate = new WindowState(this);
96 var tl = new Clutter.Timeline(6000);
97 tl.set_repeat_count(-1);
106 public void show () {
111 public void setTitle (string str) {
112 this.el.set_title(this.title + " - " + str);
114 public class Xcls_vbox : Object
117 private Xcls_MainWindow _this;
123 public Xcls_vbox(Xcls_MainWindow _owner )
127 this.el = new Gtk.VBox( false, 0 );
131 // set gobject values
132 var child_0 = new Xcls_mainpane( _this );
134 this.el.pack_end ( child_0.el , true,true,0 );
137 // user defined functions
139 public class Xcls_mainpane : Object
141 public Gtk.HPaned el;
142 private Xcls_MainWindow _this;
146 public int lastWidth;
149 public Xcls_mainpane(Xcls_MainWindow _owner )
152 _this.mainpane = this;
153 this.el = new Gtk.HPaned();
158 // set gobject values
159 this.el.position = 400;
160 var child_0 = new Xcls_leftpane( _this );
162 this.el.add1 ( child_0.el );
163 var child_1 = new Xcls_VBox8( _this );
165 this.el.add2 ( child_1.el );
168 // user defined functions
170 public class Xcls_leftpane : Object
173 private Xcls_MainWindow _this;
179 public Xcls_leftpane(Xcls_MainWindow _owner )
182 _this.leftpane = this;
183 this.el = new Gtk.VBox( true, 0 );
187 // set gobject values
188 var child_0 = new Xcls_editpane( _this );
190 this.el.pack_start ( child_0.el , false,true,0 );
193 // user defined functions
195 public class Xcls_editpane : Object
197 public Gtk.VPaned el;
198 private Xcls_MainWindow _this;
204 public Xcls_editpane(Xcls_MainWindow _owner )
207 _this.editpane = this;
208 this.el = new Gtk.VPaned();
212 // set gobject values
213 var child_0 = new Xcls_tree( _this );
215 this.el.add1 ( child_0.el );
216 var child_1 = new Xcls_props( _this );
218 this.el.add2 ( child_1.el );
221 // user defined functions
223 public class Xcls_tree : Object
226 private Xcls_MainWindow _this;
232 public Xcls_tree(Xcls_MainWindow _owner )
236 this.el = new Gtk.VBox( true, 0 );
240 // set gobject values
243 // user defined functions
245 public class Xcls_props : Object
248 private Xcls_MainWindow _this;
254 public Xcls_props(Xcls_MainWindow _owner )
258 this.el = new Gtk.VBox( true, 0 );
262 // set gobject values
265 // user defined functions
267 public class Xcls_VBox8 : Object
270 private Xcls_MainWindow _this;
276 public Xcls_VBox8(Xcls_MainWindow _owner )
279 this.el = new Gtk.VBox( true, 0 );
283 // set gobject values
284 var child_0 = new Xcls_clutterembed( _this );
286 this.el.pack_start ( child_0.el , true,true,0 );
289 // user defined functions
291 public class Xcls_clutterembed : Object
293 public GtkClutter.Embed el;
294 private Xcls_MainWindow _this;
300 public Xcls_clutterembed(Xcls_MainWindow _owner )
303 _this.clutterembed = this;
304 this.el = new GtkClutter.Embed();
308 // set gobject values
309 var child_0 = new Xcls_rooview( _this );
311 this.el.get_stage().add_child ( child_0.el );
312 var child_1 = new Xcls_objectview( _this );
314 this.el.get_stage().add_child ( child_1.el );
315 var child_2 = new Xcls_codeeditview( _this );
317 this.el.get_stage().add_child ( child_2.el );
318 var child_3 = new Xcls_addpropsview( _this );
320 this.el.get_stage().add_child ( child_3.el );
321 var child_4 = new Xcls_projecteditview( _this );
323 this.el.get_stage().add_child ( child_4.el );
324 var child_5 = new Xcls_buttonlayout( _this );
326 this.el.get_stage().add_child ( child_5.el );
330 var stage = this.el.get_stage();
331 stage.set_background_color( Clutter.Color.from_string("#000"));
334 this.el.size_allocate.connect( ( alloc) => {
335 if (_this.windowstate == null) {
338 _this.windowstate.resizeCanvas();
343 // user defined functions
345 public class Xcls_rooview : Object
347 public GtkClutter.Actor el;
348 private Xcls_MainWindow _this;
354 public Xcls_rooview(Xcls_MainWindow _owner )
357 _this.rooview = this;
358 this.el = new GtkClutter.Actor();
362 // set gobject values
369 this.el.add_constraint(
370 new Clutter.AlignConstraint(
371 _this.clutterembed.el.get_stage(),
372 Clutter.AlignAxis.X_AXIS,
377 //this.el.set_position(100,100);
378 this.el.set_pivot_point(1.0f,1.0f);
380 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
381 _this.clutterembed.el.get_stage().height);
386 // user defined functions
388 public class Xcls_objectview : Object
390 public GtkClutter.Actor el;
391 private Xcls_MainWindow _this;
397 public Xcls_objectview(Xcls_MainWindow _owner )
400 _this.objectview = this;
401 this.el = new GtkClutter.Actor();
405 // set gobject values
412 this.el.add_constraint(
413 new Clutter.AlignConstraint(
414 _this.clutterembed.el.get_stage(),
415 Clutter.AlignAxis.X_AXIS,
420 this.el.fixed_x = 50.0f;
421 this.el.fixed_y = 0.0f;
422 //this.el.set_position(100,100);
423 this.el.set_pivot_point(0.0f,0.0f);
424 this.el.set_scale(0.0f,1.0f);
425 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
426 _this.clutterembed.el.get_stage().height);
431 // user defined functions
433 public class Xcls_codeeditview : Object
435 public GtkClutter.Actor el;
436 private Xcls_MainWindow _this;
442 public Xcls_codeeditview(Xcls_MainWindow _owner )
445 _this.codeeditview = this;
446 this.el = new GtkClutter.Actor();
450 // set gobject values
457 this.el.add_constraint(
458 new Clutter.AlignConstraint(
459 _this.clutterembed.el.get_stage(),
460 Clutter.AlignAxis.X_AXIS,
465 this.el.fixed_x = 50.0f;
466 this.el.fixed_y = 0.0f;
467 //this.el.set_position(100,100);
468 this.el.set_pivot_point(0.0f,0.0f);
469 this.el.set_scale(0.0f,1.0f);
470 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
471 _this.clutterembed.el.get_stage().height);
476 // user defined functions
478 public class Xcls_addpropsview : Object
480 public GtkClutter.Actor el;
481 private Xcls_MainWindow _this;
487 public Xcls_addpropsview(Xcls_MainWindow _owner )
490 _this.addpropsview = this;
491 this.el = new GtkClutter.Actor();
495 // set gobject values
502 this.el.add_constraint(
503 new Clutter.AlignConstraint(
504 _this.clutterembed.el.get_stage(),
505 Clutter.AlignAxis.X_AXIS,
510 this.el.fixed_x = 50.0f;
511 this.el.fixed_y = 0.0f;
512 //this.el.set_position(100,100);
513 this.el.set_pivot_point(0.0f,0.0f);
514 this.el.set_scale(0.0f,1.0f);
515 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
516 _this.clutterembed.el.get_stage().height);
521 // user defined functions
523 public class Xcls_projecteditview : Object
525 public GtkClutter.Actor el;
526 private Xcls_MainWindow _this;
532 public Xcls_projecteditview(Xcls_MainWindow _owner )
535 _this.projecteditview = this;
536 this.el = new GtkClutter.Actor();
540 // set gobject values
547 this.el.add_constraint(
548 new Clutter.AlignConstraint(
549 _this.clutterembed.el.get_stage(),
550 Clutter.AlignAxis.X_AXIS,
555 //this.el.set_position(100,100);
556 this.el.set_pivot_point(0.0f,0.0f);
557 this.el.set_scale(1.0f,0.0f);
558 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
559 _this.clutterembed.el.get_stage().height /2);
564 // user defined functions
566 public class Xcls_buttonlayout : Object
568 public Clutter.Actor el;
569 private Xcls_MainWindow _this;
575 public Xcls_buttonlayout(Xcls_MainWindow _owner )
578 _this.buttonlayout = this;
579 this.el = new Clutter.Actor();
583 // set gobject values
584 var child_0 = new Xcls_BoxLayout16( _this );
586 this.el.layout_manager = child_0.el;
587 var child_1 = new Xcls_backbutton( _this );
589 this.el.add_child ( child_1.el );
590 var child_2 = new Xcls_projectbutton( _this );
592 this.el.add_child ( child_2.el );
593 var child_3 = new Xcls_editfilebutton( _this );
595 this.el.add_child ( child_3.el );
596 var child_4 = new Xcls_projecteditbutton( _this );
598 this.el.add_child ( child_4.el );
599 var child_5 = new Xcls_objectshowbutton( _this );
601 this.el.add_child ( child_5.el );
602 var child_6 = new Xcls_addpropbutton( _this );
604 this.el.add_child ( child_6.el );
605 var child_7 = new Xcls_addlistenerbutton( _this );
607 this.el.add_child ( child_7.el );
608 var child_8 = new Xcls_addprojectbutton( _this );
610 this.el.add_child ( child_8.el );
611 var child_9 = new Xcls_addfilebutton( _this );
613 this.el.add_child ( child_9.el );
614 var child_10 = new Xcls_delprojectbutton( _this );
616 this.el.add_child ( child_10.el );
617 var child_11 = new Xcls_new_window( _this );
619 this.el.add_child ( child_11.el );
625 this.el.add_constraint(
626 new Clutter.AlignConstraint(
627 _this.clutterembed.el.get_stage(),
628 Clutter.AlignAxis.X_AXIS,
634 //this.el.set_position(100,100);
635 this.el.set_pivot_point(0.5f,0.5f);
637 _this.clutterembed.el.get_stage().height);
642 // user defined functions
644 public class Xcls_BoxLayout16 : Object
646 public Clutter.BoxLayout el;
647 private Xcls_MainWindow _this;
653 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
656 this.el = new Clutter.BoxLayout();
660 // set gobject values
661 this.el.orientation = Clutter.Orientation.VERTICAL;
664 // user defined functions
666 public class Xcls_backbutton : Object
668 public Clutter.Actor el;
669 private Xcls_MainWindow _this;
675 public Xcls_backbutton(Xcls_MainWindow _owner )
678 _this.backbutton = this;
679 this.el = new Clutter.Actor();
683 // set gobject values
684 var child_0 = new Xcls_Actor18( _this );
686 this.el.add_child ( child_0.el );
690 this.el.set_size(50,50);
693 // user defined functions
695 public class Xcls_Actor18 : Object
697 public GtkClutter.Actor el;
698 private Xcls_MainWindow _this;
704 public Xcls_Actor18(Xcls_MainWindow _owner )
707 this.el = new GtkClutter.Actor();
711 // set gobject values
712 var child_0 = new Xcls_Button19( _this );
717 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
720 // user defined functions
722 public class Xcls_Button19 : Object
724 public Gtk.Button el;
725 private Xcls_MainWindow _this;
731 public Xcls_Button19(Xcls_MainWindow _owner )
734 this.el = new Gtk.Button();
738 // set gobject values
739 this.el.width_request = 50;
740 this.el.height_request = 50;
741 this.el.tooltip_text = "Back";
742 var child_0 = new Xcls_Image20( _this );
744 this.el.set_image ( child_0.el );
747 this.el.clicked.connect( ( ) => {
749 _this.windowstate.switchState(WindowState.State.PREVIEW);
755 // user defined functions
757 public class Xcls_Image20 : Object
760 private Xcls_MainWindow _this;
766 public Xcls_Image20(Xcls_MainWindow _owner )
769 this.el = new Gtk.Image();
773 // set gobject values
774 this.el.icon_name = "go-previous";
777 // user defined functions
779 public class Xcls_projectbutton : Object
781 public Clutter.Actor el;
782 private Xcls_MainWindow _this;
788 public Xcls_projectbutton(Xcls_MainWindow _owner )
791 _this.projectbutton = this;
792 this.el = new Clutter.Actor();
796 // set gobject values
797 var child_0 = new Xcls_Actor22( _this );
799 this.el.add_child ( child_0.el );
803 this.el.set_size(50,50);
806 // user defined functions
808 public class Xcls_Actor22 : Object
810 public GtkClutter.Actor el;
811 private Xcls_MainWindow _this;
817 public Xcls_Actor22(Xcls_MainWindow _owner )
820 this.el = new GtkClutter.Actor();
824 // set gobject values
825 var child_0 = new Xcls_Button23( _this );
830 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
833 // user defined functions
835 public class Xcls_Button23 : Object
837 public Gtk.Button el;
838 private Xcls_MainWindow _this;
844 public Xcls_Button23(Xcls_MainWindow _owner )
847 this.el = new Gtk.Button();
851 // set gobject values
852 this.el.width_request = 50;
853 this.el.height_request = 50;
854 var child_0 = new Xcls_Image24( _this );
856 this.el.set_image ( child_0.el );
859 this.el.clicked.connect( ( ) => {
860 _this.windowstate.switchState(WindowState.State.FILES);
866 // user defined functions
868 public class Xcls_Image24 : Object
871 private Xcls_MainWindow _this;
877 public Xcls_Image24(Xcls_MainWindow _owner )
880 this.el = new Gtk.Image();
884 // set gobject values
885 this.el.icon_name = "document-open";
888 // user defined functions
890 public class Xcls_editfilebutton : Object
892 public Clutter.Actor el;
893 private Xcls_MainWindow _this;
899 public Xcls_editfilebutton(Xcls_MainWindow _owner )
902 _this.editfilebutton = this;
903 this.el = new Clutter.Actor();
907 // set gobject values
908 var child_0 = new Xcls_Actor26( _this );
910 this.el.add_child ( child_0.el );
914 this.el.set_size(50.0f,50.0f);
917 // user defined functions
919 public class Xcls_Actor26 : Object
921 public GtkClutter.Actor el;
922 private Xcls_MainWindow _this;
928 public Xcls_Actor26(Xcls_MainWindow _owner )
931 this.el = new GtkClutter.Actor();
935 // set gobject values
936 var child_0 = new Xcls_Button27( _this );
941 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
944 // user defined functions
946 public class Xcls_Button27 : Object
948 public Gtk.Button el;
949 private Xcls_MainWindow _this;
955 public Xcls_Button27(Xcls_MainWindow _owner )
958 this.el = new Gtk.Button();
962 // set gobject values
963 this.el.width_request = 50;
964 this.el.height_request = 50;
965 this.el.tooltip_text = "File Details";
966 var child_0 = new Xcls_Image28( _this );
968 this.el.set_image ( child_0.el );
971 this.el.clicked.connect( ( ) => {
973 // create a new file in project..
974 if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
977 _this.windowstate.new_file_dialog.show(_this.windowstate.left_tree.model.file);
985 // user defined functions
987 public class Xcls_Image28 : Object
990 private Xcls_MainWindow _this;
996 public Xcls_Image28(Xcls_MainWindow _owner )
999 this.el = new Gtk.Image();
1003 // set gobject values
1004 this.el.icon_name = "document-properties";
1007 // user defined functions
1009 public class Xcls_projecteditbutton : Object
1011 public Clutter.Actor el;
1012 private Xcls_MainWindow _this;
1018 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1021 _this.projecteditbutton = this;
1022 this.el = new Clutter.Actor();
1026 // set gobject values
1027 var child_0 = new Xcls_Actor30( _this );
1029 this.el.add_child ( child_0.el );
1033 this.el.set_size(50,50);
1036 // user defined functions
1038 public class Xcls_Actor30 : Object
1040 public GtkClutter.Actor el;
1041 private Xcls_MainWindow _this;
1047 public Xcls_Actor30(Xcls_MainWindow _owner )
1050 this.el = new GtkClutter.Actor();
1054 // set gobject values
1055 var child_0 = new Xcls_Button31( _this );
1060 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1063 // user defined functions
1065 public class Xcls_Button31 : Object
1067 public Gtk.Button el;
1068 private Xcls_MainWindow _this;
1074 public Xcls_Button31(Xcls_MainWindow _owner )
1077 this.el = new Gtk.Button();
1081 // set gobject values
1082 this.el.width_request = 50;
1083 this.el.height_request = 50;
1084 this.el.tooltip_text = "Project Details";
1085 var child_0 = new Xcls_Image32( _this );
1087 this.el.set_image ( child_0.el );
1090 this.el.clicked.connect( ( ) => {
1091 _this.windowstate.switchState(WindowState.State.PROJECT);
1098 // user defined functions
1100 public class Xcls_Image32 : Object
1102 public Gtk.Image el;
1103 private Xcls_MainWindow _this;
1109 public Xcls_Image32(Xcls_MainWindow _owner )
1112 this.el = new Gtk.Image();
1116 // set gobject values
1117 this.el.icon_name = "emblem-system";
1120 // user defined functions
1122 public class Xcls_objectshowbutton : Object
1124 public Clutter.Actor el;
1125 private Xcls_MainWindow _this;
1131 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1134 _this.objectshowbutton = this;
1135 this.el = new Clutter.Actor();
1139 // set gobject values
1140 var child_0 = new Xcls_Actor34( _this );
1142 this.el.add_child ( child_0.el );
1146 this.el.set_size(50,50);
1149 this.el.enter_event.connect( ( event) => {
1150 this.el.background_color = new Clutter.Color.from_string("#333");
1153 this.el.leave_event.connect( ( event) => {
1154 this.el.background_color = new Clutter.Color.from_string("#000");
1159 // user defined functions
1161 public class Xcls_Actor34 : Object
1163 public GtkClutter.Actor el;
1164 private Xcls_MainWindow _this;
1170 public Xcls_Actor34(Xcls_MainWindow _owner )
1173 this.el = new GtkClutter.Actor();
1177 // set gobject values
1178 var child_0 = new Xcls_Button35( _this );
1183 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1186 // user defined functions
1188 public class Xcls_Button35 : Object
1190 public Gtk.Button el;
1191 private Xcls_MainWindow _this;
1197 public Xcls_Button35(Xcls_MainWindow _owner )
1200 this.el = new Gtk.Button();
1204 // set gobject values
1205 this.el.width_request = 50;
1206 this.el.height_request = 50;
1207 this.el.tooltip_text = "Add Child Element";
1208 var child_0 = new Xcls_Image36( _this );
1210 this.el.set_image ( child_0.el );
1213 this.el.clicked.connect( ( ) => {
1215 _this.windowstate.switchState(WindowState.State.OBJECT);
1221 // user defined functions
1223 public class Xcls_Image36 : Object
1225 public Gtk.Image el;
1226 private Xcls_MainWindow _this;
1232 public Xcls_Image36(Xcls_MainWindow _owner )
1235 this.el = new Gtk.Image();
1239 // set gobject values
1240 this.el.icon_name = "list-add";
1243 // user defined functions
1245 public class Xcls_addpropbutton : Object
1247 public Clutter.Actor el;
1248 private Xcls_MainWindow _this;
1254 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1257 _this.addpropbutton = this;
1258 this.el = new Clutter.Actor();
1262 // set gobject values
1263 var child_0 = new Xcls_Actor38( _this );
1265 this.el.add_child ( child_0.el );
1269 this.el.set_size(50,50);
1272 // user defined functions
1274 public class Xcls_Actor38 : Object
1276 public GtkClutter.Actor el;
1277 private Xcls_MainWindow _this;
1283 public Xcls_Actor38(Xcls_MainWindow _owner )
1286 this.el = new GtkClutter.Actor();
1290 // set gobject values
1291 var child_0 = new Xcls_Button39( _this );
1296 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1299 // user defined functions
1301 public class Xcls_Button39 : Object
1303 public Gtk.Button el;
1304 private Xcls_MainWindow _this;
1310 public Xcls_Button39(Xcls_MainWindow _owner )
1313 this.el = new Gtk.Button();
1317 // set gobject values
1318 this.el.width_request = 50;
1319 this.el.height_request = 50;
1320 this.el.tooltip_text = "Add Property";
1321 var child_0 = new Xcls_Image40( _this );
1323 this.el.set_image ( child_0.el );
1326 this.el.clicked.connect( ( ) => {
1328 _this.windowstate.switchState(WindowState.State.PROP);
1334 // user defined functions
1336 public class Xcls_Image40 : Object
1338 public Gtk.Image el;
1339 private Xcls_MainWindow _this;
1345 public Xcls_Image40(Xcls_MainWindow _owner )
1348 this.el = new Gtk.Image();
1352 // set gobject values
1353 this.el.icon_name = "format-justify-left";
1356 // user defined functions
1358 public class Xcls_addlistenerbutton : Object
1360 public Clutter.Actor el;
1361 private Xcls_MainWindow _this;
1367 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1370 _this.addlistenerbutton = this;
1371 this.el = new Clutter.Actor();
1375 // set gobject values
1376 var child_0 = new Xcls_Actor42( _this );
1378 this.el.add_child ( child_0.el );
1382 this.el.set_size(50,50);
1385 // user defined functions
1387 public class Xcls_Actor42 : Object
1389 public GtkClutter.Actor el;
1390 private Xcls_MainWindow _this;
1396 public Xcls_Actor42(Xcls_MainWindow _owner )
1399 this.el = new GtkClutter.Actor();
1403 // set gobject values
1404 var child_0 = new Xcls_Button43( _this );
1409 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1412 // user defined functions
1414 public class Xcls_Button43 : Object
1416 public Gtk.Button el;
1417 private Xcls_MainWindow _this;
1423 public Xcls_Button43(Xcls_MainWindow _owner )
1426 this.el = new Gtk.Button();
1430 // set gobject values
1431 this.el.width_request = 50;
1432 this.el.height_request = 50;
1433 this.el.tooltip_text = "Add Event Code";
1434 var child_0 = new Xcls_Image44( _this );
1436 this.el.set_image ( child_0.el );
1439 this.el.clicked.connect( ( ) => {
1441 _this.windowstate.switchState(WindowState.State.LISTENER);
1448 // user defined functions
1450 public class Xcls_Image44 : Object
1452 public Gtk.Image el;
1453 private Xcls_MainWindow _this;
1459 public Xcls_Image44(Xcls_MainWindow _owner )
1462 this.el = new Gtk.Image();
1466 // set gobject values
1467 this.el.icon_name = "appointment-new";
1470 // user defined functions
1472 public class Xcls_addprojectbutton : Object
1474 public Clutter.Actor el;
1475 private Xcls_MainWindow _this;
1481 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1484 _this.addprojectbutton = this;
1485 this.el = new Clutter.Actor();
1489 // set gobject values
1490 var child_0 = new Xcls_Actor46( _this );
1492 this.el.add_child ( child_0.el );
1496 this.el.set_size(50.0f,50.0f);
1499 // user defined functions
1501 public class Xcls_Actor46 : Object
1503 public GtkClutter.Actor el;
1504 private Xcls_MainWindow _this;
1510 public Xcls_Actor46(Xcls_MainWindow _owner )
1513 this.el = new GtkClutter.Actor();
1517 // set gobject values
1518 var child_0 = new Xcls_Button47( _this );
1523 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1526 // user defined functions
1528 public class Xcls_Button47 : Object
1530 public Gtk.Button el;
1531 private Xcls_MainWindow _this;
1537 public Xcls_Button47(Xcls_MainWindow _owner )
1540 this.el = new Gtk.Button();
1544 // set gobject values
1545 this.el.width_request = 50;
1546 this.el.height_request = 50;
1547 this.el.tooltip_text = "New\nProj.";
1548 var child_0 = new Xcls_Image48( _this );
1550 this.el.set_image ( child_0.el );
1553 this.el.clicked.connect( ( ) => {
1555 // create a new file in project..
1556 //Xcls_DialogNewComponent.singleton().show(
1557 var pe = Xcls_EditProject.singleton();
1558 pe.el.set_transient_for(_this.el);
1559 pe.el.set_modal(true);
1568 _this.windowstate.left_projects.is_loaded = false;
1569 _this.windowstate.left_projects.load();
1570 _this.windowstate.left_projects.selectProject(p);
1577 // user defined functions
1579 public class Xcls_Image48 : Object
1581 public Gtk.Image el;
1582 private Xcls_MainWindow _this;
1588 public Xcls_Image48(Xcls_MainWindow _owner )
1591 this.el = new Gtk.Image();
1595 // set gobject values
1596 this.el.icon_name = "folder-new";
1599 // user defined functions
1601 public class Xcls_addfilebutton : Object
1603 public Clutter.Actor el;
1604 private Xcls_MainWindow _this;
1610 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1613 _this.addfilebutton = this;
1614 this.el = new Clutter.Actor();
1618 // set gobject values
1619 var child_0 = new Xcls_Actor50( _this );
1621 this.el.add_child ( child_0.el );
1625 this.el.set_size(50.0f,50.0f);
1628 // user defined functions
1630 public class Xcls_Actor50 : Object
1632 public GtkClutter.Actor el;
1633 private Xcls_MainWindow _this;
1639 public Xcls_Actor50(Xcls_MainWindow _owner )
1642 this.el = new GtkClutter.Actor();
1646 // set gobject values
1647 var child_0 = new Xcls_Button51( _this );
1652 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1655 // user defined functions
1657 public class Xcls_Button51 : Object
1659 public Gtk.Button el;
1660 private Xcls_MainWindow _this;
1666 public Xcls_Button51(Xcls_MainWindow _owner )
1669 this.el = new Gtk.Button();
1673 // set gobject values
1674 this.el.width_request = 50;
1675 this.el.height_request = 50;
1676 this.el.tooltip_text = "Add File";
1677 var child_0 = new Xcls_Image52( _this );
1679 this.el.set_image ( child_0.el );
1682 this.el.clicked.connect( () => {
1683 // create a new file in project..
1685 // what's the currently selected project...
1686 var proj = _this.windowstate.left_projects.getSelectedProject();
1694 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1695 _this.project = proj;
1696 _this.windowstate.new_file_dialog.show(f);
1702 // user defined functions
1704 public class Xcls_Image52 : Object
1706 public Gtk.Image el;
1707 private Xcls_MainWindow _this;
1713 public Xcls_Image52(Xcls_MainWindow _owner )
1716 this.el = new Gtk.Image();
1720 // set gobject values
1721 this.el.icon_name = "document-new";
1724 // user defined functions
1726 public class Xcls_delprojectbutton : Object
1728 public Clutter.Actor el;
1729 private Xcls_MainWindow _this;
1735 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1738 _this.delprojectbutton = this;
1739 this.el = new Clutter.Actor();
1743 // set gobject values
1744 var child_0 = new Xcls_Actor54( _this );
1746 this.el.add_child ( child_0.el );
1750 this.el.set_size(50,50);
1753 // user defined functions
1755 public class Xcls_Actor54 : Object
1757 public GtkClutter.Actor el;
1758 private Xcls_MainWindow _this;
1764 public Xcls_Actor54(Xcls_MainWindow _owner )
1767 this.el = new GtkClutter.Actor();
1771 // set gobject values
1772 var child_0 = new Xcls_Button55( _this );
1777 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1780 // user defined functions
1782 public class Xcls_Button55 : Object
1784 public Gtk.Button el;
1785 private Xcls_MainWindow _this;
1791 public Xcls_Button55(Xcls_MainWindow _owner )
1794 this.el = new Gtk.Button();
1798 // set gobject values
1799 this.el.width_request = 50;
1800 this.el.height_request = 50;
1801 this.el.tooltip_text = "Delelte Project";
1802 var child_0 = new Xcls_Image56( _this );
1804 this.el.set_image ( child_0.el );
1807 this.el.clicked.connect( ( ) => {
1809 var cd = DialogConfirm.singleton();
1810 cd.el.set_transient_for(_this.el);
1811 cd.el.set_modal(true);
1813 var project = _this.windowstate.left_projects.getSelectedProject();
1814 if (project == null) {
1815 print("SKIP - no project\n");
1820 if (Gtk.ResponseType.YES != cd.show("Confirm",
1821 "Are you sure you want to delete project %s".printf(project.name))) {
1827 Project.Project.remove(project);
1828 _this.project = null;
1830 _this.windowstate.left_projects.is_loaded = false;
1831 _this.windowstate.left_projects.load();
1832 _this.windowstate.clutterfiles.clearFiles();
1837 // user defined functions
1839 public class Xcls_Image56 : Object
1841 public Gtk.Image el;
1842 private Xcls_MainWindow _this;
1848 public Xcls_Image56(Xcls_MainWindow _owner )
1851 this.el = new Gtk.Image();
1855 // set gobject values
1856 this.el.icon_name = "user-trash";
1859 // user defined functions
1861 public class Xcls_new_window : Object
1863 public Clutter.Actor el;
1864 private Xcls_MainWindow _this;
1870 public Xcls_new_window(Xcls_MainWindow _owner )
1873 _this.new_window = this;
1874 this.el = new Clutter.Actor();
1878 // set gobject values
1879 var child_0 = new Xcls_Actor58( _this );
1881 this.el.add_child ( child_0.el );
1885 this.el.set_size(50,50);
1888 // user defined functions
1890 public class Xcls_Actor58 : Object
1892 public GtkClutter.Actor el;
1893 private Xcls_MainWindow _this;
1899 public Xcls_Actor58(Xcls_MainWindow _owner )
1902 this.el = new GtkClutter.Actor();
1906 // set gobject values
1907 var child_0 = new Xcls_Button59( _this );
1912 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el);
1915 // user defined functions
1917 public class Xcls_Button59 : Object
1919 public Gtk.Button el;
1920 private Xcls_MainWindow _this;
1926 public Xcls_Button59(Xcls_MainWindow _owner )
1929 this.el = new Gtk.Button();
1933 // set gobject values
1934 this.el.width_request = 50;
1935 this.el.height_request = 50;
1936 this.el.tooltip_text = "Open New Window";
1937 var child_0 = new Xcls_Image60( _this );
1939 this.el.set_image ( child_0.el );
1942 this.el.clicked.connect( ( ) => {
1943 Xcls_MainWindow.singleton().no_windows++;
1944 var w = new Xcls_MainWindow();
1949 w.windowstate.switchState(WindowState.State.FILES);
1953 // user defined functions
1955 public class Xcls_Image60 : Object
1957 public Gtk.Image el;
1958 private Xcls_MainWindow _this;
1964 public Xcls_Image60(Xcls_MainWindow _owner )
1967 this.el = new Gtk.Image();
1971 // set gobject values
1972 this.el.icon_name = "window-new";
1975 // user defined functions