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 int no_windows;
42 public Project.Project project;
43 public bool children_loaded;
44 public Xcls_WindowLeftProjects left_projects;
45 public Xcls_WindowRooView window_rooview;
46 public Xcls_WindowLeftTree left_tree;
47 public Editor code_editor;
48 public Xcls_DialogNewComponent new_file_dialog;
49 public Xcls_ProjectSettings projectsettings;
50 public Xcls_ClutterFiles clutterfiles;
51 public Xcls_LeftProps left_props;
52 public Xcls_RightPalete rightpalete;
54 public ValaProjectSettings vala_projectsettings;
55 public Xcls_WindowAddProp add_props;
56 public WindowState windowstate;
57 public Xcls_GtkView window_gladeview;
60 public Xcls_MainWindow()
63 this.el = new Gtk.Window( Gtk.WindowType.TOPLEVEL );
68 this.children_loaded = false;
69 this.left_projects = null;
70 this.window_rooview = null;
71 this.left_tree = null;
72 this.code_editor = null;
73 this.new_file_dialog = null;
74 this.projectsettings = null;
75 this.clutterfiles = null;
76 this.left_props = null;
77 this.rightpalete = null;
78 this.title = "Application Builder";
79 this.vala_projectsettings = null;
80 this.add_props = null;
81 this.windowstate = null;
82 this.window_gladeview = null;
85 this.el.border_width = 0;
86 this.el.default_height = 500;
87 this.el.default_width = 800;
88 var child_0 = new Xcls_vbox( _this );
90 this.el.add ( child_0.el );
96 this.el.delete_event.connect( ( event) => {
99 this.el.destroy.connect( () => {
100 Xcls_MainWindow.singleton().no_windows--;
102 if (Xcls_MainWindow.singleton().no_windows < 1) {
107 this.el.show.connect( ( ) => {
108 // hide the file editing..
110 //this.hideViewEditing();
114 // user defined functions
115 public void initChildren () {
116 // this needs putting in a better place..
117 this.windowstate = new WindowState(this);
121 var tl = new Clutter.Timeline(6000);
122 tl.set_repeat_count(-1);
126 this.children_loaded = true;
132 public void setTitle (string str) {
133 this.el.set_title(this.title + " - " + str);
135 public void show () {
136 this.left_tree =new Xcls_WindowLeftTree();
137 _this.vbox.el.pack_start(this.left_tree.el,true, true,0);
141 public class Xcls_vbox : Object
144 private Xcls_MainWindow _this;
150 public Xcls_vbox(Xcls_MainWindow _owner )
154 this.el = new Gtk.VBox( false, 0 );
158 // set gobject values
159 var child_0 = new Xcls_mainpane( _this );
161 this.el.pack_end ( child_0.el , true,true,0 );
164 // user defined functions
166 public class Xcls_mainpane : Object
168 public Gtk.HPaned el;
169 private Xcls_MainWindow _this;
173 public int lastWidth;
176 public Xcls_mainpane(Xcls_MainWindow _owner )
179 _this.mainpane = this;
180 this.el = new Gtk.HPaned();
185 // set gobject values
186 this.el.position = 400;
187 var child_0 = new Xcls_leftpane( _this );
189 this.el.add1 ( child_0.el );
190 var child_1 = new Xcls_VBox8( _this );
192 this.el.add2 ( child_1.el );
195 // user defined functions
197 public class Xcls_leftpane : Object
200 private Xcls_MainWindow _this;
206 public Xcls_leftpane(Xcls_MainWindow _owner )
209 _this.leftpane = this;
210 this.el = new Gtk.VBox( true, 0 );
214 // set gobject values
215 var child_0 = new Xcls_editpane( _this );
217 this.el.pack_start ( child_0.el , false,true,0 );
220 // user defined functions
222 public class Xcls_editpane : Object
224 public Gtk.VPaned el;
225 private Xcls_MainWindow _this;
231 public Xcls_editpane(Xcls_MainWindow _owner )
234 _this.editpane = this;
235 this.el = new Gtk.VPaned();
239 // set gobject values
240 var child_0 = new Xcls_tree( _this );
242 this.el.add1 ( child_0.el );
243 var child_1 = new Xcls_props( _this );
245 this.el.add2 ( child_1.el );
248 // user defined functions
250 public class Xcls_tree : Object
253 private Xcls_MainWindow _this;
259 public Xcls_tree(Xcls_MainWindow _owner )
263 this.el = new Gtk.VBox( true, 0 );
267 // set gobject values
270 // user defined functions
272 public class Xcls_props : Object
275 private Xcls_MainWindow _this;
281 public Xcls_props(Xcls_MainWindow _owner )
285 this.el = new Gtk.VBox( true, 0 );
289 // set gobject values
292 // user defined functions
294 public class Xcls_VBox8 : Object
297 private Xcls_MainWindow _this;
303 public Xcls_VBox8(Xcls_MainWindow _owner )
306 this.el = new Gtk.VBox( true, 0 );
310 // set gobject values
311 var child_0 = new Xcls_clutterembed( _this );
313 this.el.pack_start ( child_0.el , true,true,0 );
316 // user defined functions
318 public class Xcls_clutterembed : Object
320 public GtkClutter.Embed el;
321 private Xcls_MainWindow _this;
327 public Xcls_clutterembed(Xcls_MainWindow _owner )
330 _this.clutterembed = this;
331 this.el = new GtkClutter.Embed();
335 // set gobject values
336 var child_0 = new Xcls_rooview( _this );
338 this.el.get_stage().add_child ( child_0.el );
339 var child_1 = new Xcls_objectview( _this );
341 this.el.get_stage().add_child ( child_1.el );
342 var child_2 = new Xcls_codeeditview( _this );
344 this.el.get_stage().add_child ( child_2.el );
345 var child_3 = new Xcls_addpropsview( _this );
347 this.el.get_stage().add_child ( child_3.el );
348 var child_4 = new Xcls_projecteditview( _this );
350 this.el.get_stage().add_child ( child_4.el );
351 var child_5 = new Xcls_buttonlayout( _this );
353 this.el.get_stage().add_child ( child_5.el );
357 var stage = this.el.get_stage();
358 stage.set_background_color( Clutter.Color.from_string("#000"));
360 this.el.size_allocate.connect( ( alloc) => {
361 _this.windowstate.resizeCanvasElements(alloc);
366 // user defined functions
368 public class Xcls_rooview : Object
370 public GtkClutter.Actor el;
371 private Xcls_MainWindow _this;
377 public Xcls_rooview(Xcls_MainWindow _owner )
380 _this.rooview = this;
381 this.el = new GtkClutter.Actor();
385 // set gobject values
392 this.el.add_constraint(
393 new Clutter.AlignConstraint(
394 _this.clutterembed.el.get_stage(),
395 Clutter.AlignAxis.X_AXIS,
400 //this.el.set_position(100,100);
401 this.el.set_pivot_point(1.0f,1.0f);
403 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
404 _this.clutterembed.el.get_stage().height);
408 // user defined functions
410 public class Xcls_objectview : Object
412 public GtkClutter.Actor el;
413 private Xcls_MainWindow _this;
419 public Xcls_objectview(Xcls_MainWindow _owner )
422 _this.objectview = this;
423 this.el = new GtkClutter.Actor();
427 // set gobject values
434 this.el.add_constraint(
435 new Clutter.AlignConstraint(
436 _this.clutterembed.el.get_stage(),
437 Clutter.AlignAxis.X_AXIS,
442 this.el.fixed_x = 50.0f;
443 this.el.fixed_y = 0.0f;
444 //this.el.set_position(100,100);
445 this.el.set_pivot_point(0.0f,0.0f);
446 this.el.set_scale(0.0f,1.0f);
447 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
448 _this.clutterembed.el.get_stage().height);
452 // user defined functions
454 public class Xcls_codeeditview : Object
456 public GtkClutter.Actor el;
457 private Xcls_MainWindow _this;
463 public Xcls_codeeditview(Xcls_MainWindow _owner )
466 _this.codeeditview = this;
467 this.el = new GtkClutter.Actor();
471 // set gobject values
478 this.el.add_constraint(
479 new Clutter.AlignConstraint(
480 _this.clutterembed.el.get_stage(),
481 Clutter.AlignAxis.X_AXIS,
486 this.el.fixed_x = 50.0f;
487 this.el.fixed_y = 0.0f;
488 //this.el.set_position(100,100);
489 this.el.set_pivot_point(0.0f,0.0f);
490 this.el.set_scale(0.0f,1.0f);
491 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
492 _this.clutterembed.el.get_stage().height);
496 // user defined functions
498 public class Xcls_addpropsview : Object
500 public GtkClutter.Actor el;
501 private Xcls_MainWindow _this;
507 public Xcls_addpropsview(Xcls_MainWindow _owner )
510 _this.addpropsview = this;
511 this.el = new GtkClutter.Actor();
515 // set gobject values
522 this.el.add_constraint(
523 new Clutter.AlignConstraint(
524 _this.clutterembed.el.get_stage(),
525 Clutter.AlignAxis.X_AXIS,
530 this.el.fixed_x = 50.0f;
531 this.el.fixed_y = 0.0f;
532 //this.el.set_position(100,100);
533 this.el.set_pivot_point(0.0f,0.0f);
534 this.el.set_scale(0.0f,1.0f);
535 this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,
536 _this.clutterembed.el.get_stage().height);
540 // user defined functions
542 public class Xcls_projecteditview : Object
544 public GtkClutter.Actor el;
545 private Xcls_MainWindow _this;
551 public Xcls_projecteditview(Xcls_MainWindow _owner )
554 _this.projecteditview = this;
555 this.el = new GtkClutter.Actor();
559 // set gobject values
566 this.el.add_constraint(
567 new Clutter.AlignConstraint(
568 _this.clutterembed.el.get_stage(),
569 Clutter.AlignAxis.X_AXIS,
574 //this.el.set_position(100,100);
575 this.el.set_pivot_point(0.0f,0.0f);
576 this.el.set_scale(1.0f,0.0f);
577 this.el.set_size(_this.clutterembed.el.get_stage().width-50,
578 _this.clutterembed.el.get_stage().height /2);
582 // user defined functions
584 public class Xcls_buttonlayout : Object
586 public Clutter.Actor el;
587 private Xcls_MainWindow _this;
593 public Xcls_buttonlayout(Xcls_MainWindow _owner )
596 _this.buttonlayout = this;
597 this.el = new Clutter.Actor();
601 // set gobject values
602 var child_0 = new Xcls_BoxLayout16( _this );
604 this.el.layout_manager = child_0.el;
605 var child_1 = new Xcls_backbutton( _this );
607 this.el.add_child ( child_1.el );
608 var child_2 = new Xcls_projectbutton( _this );
610 this.el.add_child ( child_2.el );
611 var child_3 = new Xcls_editfilebutton( _this );
613 this.el.add_child ( child_3.el );
614 var child_4 = new Xcls_projecteditbutton( _this );
616 this.el.add_child ( child_4.el );
617 var child_5 = new Xcls_objectshowbutton( _this );
619 this.el.add_child ( child_5.el );
620 var child_6 = new Xcls_addpropbutton( _this );
622 this.el.add_child ( child_6.el );
623 var child_7 = new Xcls_addlistenerbutton( _this );
625 this.el.add_child ( child_7.el );
626 var child_8 = new Xcls_addprojectbutton( _this );
628 this.el.add_child ( child_8.el );
629 var child_9 = new Xcls_addfilebutton( _this );
631 this.el.add_child ( child_9.el );
632 var child_10 = new Xcls_delprojectbutton( _this );
634 this.el.add_child ( child_10.el );
635 var child_11 = new Xcls_new_window( _this );
637 this.el.add_child ( child_11.el );
643 this.el.add_constraint(
644 new Clutter.AlignConstraint(
645 _this.clutterembed.el.get_stage(),
646 Clutter.AlignAxis.X_AXIS,
652 //this.el.set_position(100,100);
653 this.el.set_pivot_point(0.5f,0.5f);
655 _this.clutterembed.el.get_stage().height);
659 // user defined functions
661 public class Xcls_BoxLayout16 : Object
663 public Clutter.BoxLayout el;
664 private Xcls_MainWindow _this;
670 public Xcls_BoxLayout16(Xcls_MainWindow _owner )
673 this.el = new Clutter.BoxLayout();
677 // set gobject values
678 this.el.orientation = Clutter.Orientation.VERTICAL;
681 // user defined functions
683 public class Xcls_backbutton : Object
685 public Clutter.Actor el;
686 private Xcls_MainWindow _this;
692 public Xcls_backbutton(Xcls_MainWindow _owner )
695 _this.backbutton = this;
696 this.el = new Clutter.Actor();
700 // set gobject values
701 var child_0 = new Xcls_Actor18( _this );
703 this.el.add_child ( child_0.el );
707 this.el.set_size(50,50); }
709 // user defined functions
711 public class Xcls_Actor18 : Object
713 public GtkClutter.Actor el;
714 private Xcls_MainWindow _this;
720 public Xcls_Actor18(Xcls_MainWindow _owner )
723 this.el = new GtkClutter.Actor();
727 // set gobject values
728 var child_0 = new Xcls_Button19( _this );
733 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
735 // user defined functions
737 public class Xcls_Button19 : Object
739 public Gtk.Button el;
740 private Xcls_MainWindow _this;
746 public Xcls_Button19(Xcls_MainWindow _owner )
749 this.el = new Gtk.Button();
753 // set gobject values
754 this.el.width_request = 50;
755 this.el.height_request = 50;
756 this.el.tooltip_text = "Back";
757 var child_0 = new Xcls_Image20( _this );
759 this.el.set_image ( child_0.el );
762 this.el.clicked.connect( ( ) => {
764 _this.windowstate.switchState(WindowState.State.PREVIEW);
770 // user defined functions
772 public class Xcls_Image20 : Object
775 private Xcls_MainWindow _this;
781 public Xcls_Image20(Xcls_MainWindow _owner )
784 this.el = new Gtk.Image();
788 // set gobject values
789 this.el.icon_name = "go-previous";
792 // user defined functions
794 public class Xcls_projectbutton : Object
796 public Clutter.Actor el;
797 private Xcls_MainWindow _this;
803 public Xcls_projectbutton(Xcls_MainWindow _owner )
806 _this.projectbutton = this;
807 this.el = new Clutter.Actor();
811 // set gobject values
812 var child_0 = new Xcls_Actor22( _this );
814 this.el.add_child ( child_0.el );
818 this.el.set_size(50,50); }
820 // user defined functions
822 public class Xcls_Actor22 : Object
824 public GtkClutter.Actor el;
825 private Xcls_MainWindow _this;
831 public Xcls_Actor22(Xcls_MainWindow _owner )
834 this.el = new GtkClutter.Actor();
838 // set gobject values
839 var child_0 = new Xcls_Button23( _this );
844 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
846 // user defined functions
848 public class Xcls_Button23 : Object
850 public Gtk.Button el;
851 private Xcls_MainWindow _this;
857 public Xcls_Button23(Xcls_MainWindow _owner )
860 this.el = new Gtk.Button();
864 // set gobject values
865 this.el.width_request = 50;
866 this.el.height_request = 50;
867 var child_0 = new Xcls_Image24( _this );
869 this.el.set_image ( child_0.el );
872 this.el.clicked.connect( ( ) => {
873 _this.windowstate.switchState(WindowState.State.PROJECT);
879 // user defined functions
881 public class Xcls_Image24 : Object
884 private Xcls_MainWindow _this;
890 public Xcls_Image24(Xcls_MainWindow _owner )
893 this.el = new Gtk.Image();
897 // set gobject values
898 this.el.icon_name = "document-open";
901 // user defined functions
903 public class Xcls_editfilebutton : Object
905 public Clutter.Actor el;
906 private Xcls_MainWindow _this;
912 public Xcls_editfilebutton(Xcls_MainWindow _owner )
915 _this.editfilebutton = this;
916 this.el = new Clutter.Actor();
920 // set gobject values
921 var child_0 = new Xcls_Actor26( _this );
923 this.el.add_child ( child_0.el );
927 this.el.set_size(50.0f,50.0f); }
929 // user defined functions
931 public class Xcls_Actor26 : Object
933 public GtkClutter.Actor el;
934 private Xcls_MainWindow _this;
940 public Xcls_Actor26(Xcls_MainWindow _owner )
943 this.el = new GtkClutter.Actor();
947 // set gobject values
948 var child_0 = new Xcls_Button27( _this );
953 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
955 // user defined functions
957 public class Xcls_Button27 : Object
959 public Gtk.Button el;
960 private Xcls_MainWindow _this;
966 public Xcls_Button27(Xcls_MainWindow _owner )
969 this.el = new Gtk.Button();
973 // set gobject values
974 this.el.width_request = 50;
975 this.el.height_request = 50;
976 this.el.tooltip_text = "File Details";
977 var child_0 = new Xcls_Image28( _this );
979 this.el.set_image ( child_0.el );
982 this.el.clicked.connect( ( ) => {
984 // create a new file in project..
985 if (_this.project == null || _this.left_tree.model.file == null) {
988 _this.windowstate.new_file_dialog.show(_this.left_tree.model.file);
996 // user defined functions
998 public class Xcls_Image28 : Object
1000 public Gtk.Image el;
1001 private Xcls_MainWindow _this;
1007 public Xcls_Image28(Xcls_MainWindow _owner )
1010 this.el = new Gtk.Image();
1014 // set gobject values
1015 this.el.icon_name = "document-properties";
1018 // user defined functions
1020 public class Xcls_projecteditbutton : Object
1022 public Clutter.Actor el;
1023 private Xcls_MainWindow _this;
1029 public Xcls_projecteditbutton(Xcls_MainWindow _owner )
1032 _this.projecteditbutton = this;
1033 this.el = new Clutter.Actor();
1037 // set gobject values
1038 var child_0 = new Xcls_Actor30( _this );
1040 this.el.add_child ( child_0.el );
1044 this.el.set_size(50,50); }
1046 // user defined functions
1048 public class Xcls_Actor30 : Object
1050 public GtkClutter.Actor el;
1051 private Xcls_MainWindow _this;
1057 public Xcls_Actor30(Xcls_MainWindow _owner )
1060 this.el = new GtkClutter.Actor();
1064 // set gobject values
1065 var child_0 = new Xcls_Button31( _this );
1070 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1072 // user defined functions
1074 public class Xcls_Button31 : Object
1076 public Gtk.Button el;
1077 private Xcls_MainWindow _this;
1083 public Xcls_Button31(Xcls_MainWindow _owner )
1086 this.el = new Gtk.Button();
1090 // set gobject values
1091 this.el.width_request = 50;
1092 this.el.height_request = 50;
1093 this.el.tooltip_text = "Project Details";
1094 var child_0 = new Xcls_Image32( _this );
1096 this.el.set_image ( child_0.el );
1099 this.el.clicked.connect( ( ) => {
1100 _this.windowstate.switchState(WindowState.State.PROJECT);
1107 // user defined functions
1109 public class Xcls_Image32 : Object
1111 public Gtk.Image el;
1112 private Xcls_MainWindow _this;
1118 public Xcls_Image32(Xcls_MainWindow _owner )
1121 this.el = new Gtk.Image();
1125 // set gobject values
1126 this.el.icon_name = "emblem-system";
1129 // user defined functions
1131 public class Xcls_objectshowbutton : Object
1133 public Clutter.Actor el;
1134 private Xcls_MainWindow _this;
1140 public Xcls_objectshowbutton(Xcls_MainWindow _owner )
1143 _this.objectshowbutton = this;
1144 this.el = new Clutter.Actor();
1148 // set gobject values
1149 var child_0 = new Xcls_Actor34( _this );
1151 this.el.add_child ( child_0.el );
1155 this.el.set_size(50,50);
1157 this.el.enter_event.connect( ( event) => {
1158 this.el.background_color = new Clutter.Color.from_string("#333");
1161 this.el.leave_event.connect( ( event) => {
1162 this.el.background_color = new Clutter.Color.from_string("#000");
1167 // user defined functions
1169 public class Xcls_Actor34 : Object
1171 public GtkClutter.Actor el;
1172 private Xcls_MainWindow _this;
1178 public Xcls_Actor34(Xcls_MainWindow _owner )
1181 this.el = new GtkClutter.Actor();
1185 // set gobject values
1186 var child_0 = new Xcls_Button35( _this );
1191 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1193 // user defined functions
1195 public class Xcls_Button35 : Object
1197 public Gtk.Button el;
1198 private Xcls_MainWindow _this;
1204 public Xcls_Button35(Xcls_MainWindow _owner )
1207 this.el = new Gtk.Button();
1211 // set gobject values
1212 this.el.width_request = 50;
1213 this.el.height_request = 50;
1214 this.el.tooltip_text = "Add Child Element";
1215 var child_0 = new Xcls_Image36( _this );
1217 this.el.set_image ( child_0.el );
1220 this.el.clicked.connect( ( ) => {
1222 _this.windowstate.switchState(WindowState.State.OBJECT);
1228 // user defined functions
1230 public class Xcls_Image36 : Object
1232 public Gtk.Image el;
1233 private Xcls_MainWindow _this;
1239 public Xcls_Image36(Xcls_MainWindow _owner )
1242 this.el = new Gtk.Image();
1246 // set gobject values
1247 this.el.icon_name = "list-add";
1250 // user defined functions
1252 public class Xcls_addpropbutton : Object
1254 public Clutter.Actor el;
1255 private Xcls_MainWindow _this;
1261 public Xcls_addpropbutton(Xcls_MainWindow _owner )
1264 _this.addpropbutton = this;
1265 this.el = new Clutter.Actor();
1269 // set gobject values
1270 var child_0 = new Xcls_Actor38( _this );
1272 this.el.add_child ( child_0.el );
1276 this.el.set_size(50,50); }
1278 // user defined functions
1280 public class Xcls_Actor38 : Object
1282 public GtkClutter.Actor el;
1283 private Xcls_MainWindow _this;
1289 public Xcls_Actor38(Xcls_MainWindow _owner )
1292 this.el = new GtkClutter.Actor();
1296 // set gobject values
1297 var child_0 = new Xcls_Button39( _this );
1302 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1304 // user defined functions
1306 public class Xcls_Button39 : Object
1308 public Gtk.Button el;
1309 private Xcls_MainWindow _this;
1315 public Xcls_Button39(Xcls_MainWindow _owner )
1318 this.el = new Gtk.Button();
1322 // set gobject values
1323 this.el.width_request = 50;
1324 this.el.height_request = 50;
1325 this.el.tooltip_text = "Add Property";
1326 var child_0 = new Xcls_Image40( _this );
1328 this.el.set_image ( child_0.el );
1331 this.el.clicked.connect( ( ) => {
1333 _this.windowstate.switchState(WindowState.State.PROP);
1339 // user defined functions
1341 public class Xcls_Image40 : Object
1343 public Gtk.Image el;
1344 private Xcls_MainWindow _this;
1350 public Xcls_Image40(Xcls_MainWindow _owner )
1353 this.el = new Gtk.Image();
1357 // set gobject values
1358 this.el.icon_name = "format-justify-left";
1361 // user defined functions
1363 public class Xcls_addlistenerbutton : Object
1365 public Clutter.Actor el;
1366 private Xcls_MainWindow _this;
1372 public Xcls_addlistenerbutton(Xcls_MainWindow _owner )
1375 _this.addlistenerbutton = this;
1376 this.el = new Clutter.Actor();
1380 // set gobject values
1381 var child_0 = new Xcls_Actor42( _this );
1383 this.el.add_child ( child_0.el );
1387 this.el.set_size(50,50); }
1389 // user defined functions
1391 public class Xcls_Actor42 : Object
1393 public GtkClutter.Actor el;
1394 private Xcls_MainWindow _this;
1400 public Xcls_Actor42(Xcls_MainWindow _owner )
1403 this.el = new GtkClutter.Actor();
1407 // set gobject values
1408 var child_0 = new Xcls_Button43( _this );
1413 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1415 // user defined functions
1417 public class Xcls_Button43 : Object
1419 public Gtk.Button el;
1420 private Xcls_MainWindow _this;
1426 public Xcls_Button43(Xcls_MainWindow _owner )
1429 this.el = new Gtk.Button();
1433 // set gobject values
1434 this.el.width_request = 50;
1435 this.el.height_request = 50;
1436 this.el.tooltip_text = "Add Event Code";
1437 var child_0 = new Xcls_Image44( _this );
1439 this.el.set_image ( child_0.el );
1442 this.el.clicked.connect( ( ) => {
1444 _this.windowstate.switchState(WindowState.State.LISTENER);
1451 // user defined functions
1453 public class Xcls_Image44 : Object
1455 public Gtk.Image el;
1456 private Xcls_MainWindow _this;
1462 public Xcls_Image44(Xcls_MainWindow _owner )
1465 this.el = new Gtk.Image();
1469 // set gobject values
1470 this.el.icon_name = "appointment-new";
1473 // user defined functions
1475 public class Xcls_addprojectbutton : Object
1477 public Clutter.Actor el;
1478 private Xcls_MainWindow _this;
1484 public Xcls_addprojectbutton(Xcls_MainWindow _owner )
1487 _this.addprojectbutton = this;
1488 this.el = new Clutter.Actor();
1492 // set gobject values
1493 var child_0 = new Xcls_Actor46( _this );
1495 this.el.add_child ( child_0.el );
1499 this.el.set_size(50.0f,50.0f); }
1501 // user defined functions
1503 public class Xcls_Actor46 : Object
1505 public GtkClutter.Actor el;
1506 private Xcls_MainWindow _this;
1512 public Xcls_Actor46(Xcls_MainWindow _owner )
1515 this.el = new GtkClutter.Actor();
1519 // set gobject values
1520 var child_0 = new Xcls_Button47( _this );
1525 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1527 // user defined functions
1529 public class Xcls_Button47 : Object
1531 public Gtk.Button el;
1532 private Xcls_MainWindow _this;
1538 public Xcls_Button47(Xcls_MainWindow _owner )
1541 this.el = new Gtk.Button();
1545 // set gobject values
1546 this.el.width_request = 50;
1547 this.el.height_request = 50;
1548 this.el.tooltip_text = "New\nProj.";
1549 var child_0 = new Xcls_Image48( _this );
1551 this.el.set_image ( child_0.el );
1554 this.el.clicked.connect( ( ) => {
1556 // create a new file in project..
1557 //Xcls_DialogNewComponent.singleton().show(
1558 var pe = Xcls_EditProject.singleton();
1559 pe.el.set_transient_for(_this.el);
1560 pe.el.set_modal(true);
1569 _this.windowstate.left_projects.is_loaded = false;
1570 _this.windowstate.left_projects.load();
1571 _this.windowstate.left_projects.selectProject(p);
1578 // user defined functions
1580 public class Xcls_Image48 : Object
1582 public Gtk.Image el;
1583 private Xcls_MainWindow _this;
1589 public Xcls_Image48(Xcls_MainWindow _owner )
1592 this.el = new Gtk.Image();
1596 // set gobject values
1597 this.el.icon_name = "folder-new";
1600 // user defined functions
1602 public class Xcls_addfilebutton : Object
1604 public Clutter.Actor el;
1605 private Xcls_MainWindow _this;
1611 public Xcls_addfilebutton(Xcls_MainWindow _owner )
1614 _this.addfilebutton = this;
1615 this.el = new Clutter.Actor();
1619 // set gobject values
1620 var child_0 = new Xcls_Actor50( _this );
1622 this.el.add_child ( child_0.el );
1626 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); }
1654 // user defined functions
1656 public class Xcls_Button51 : Object
1658 public Gtk.Button el;
1659 private Xcls_MainWindow _this;
1665 public Xcls_Button51(Xcls_MainWindow _owner )
1668 this.el = new Gtk.Button();
1672 // set gobject values
1673 this.el.width_request = 50;
1674 this.el.height_request = 50;
1675 this.el.tooltip_text = "Add File";
1676 var child_0 = new Xcls_Image52( _this );
1678 this.el.set_image ( child_0.el );
1681 this.el.clicked.connect( () => {
1682 // create a new file in project..
1684 // what's the currently selected project...
1685 var proj = _this.left_projects.getSelectedProject();
1693 var f = JsRender.JsRender.factory(proj.xtype, proj, "");
1694 _this.project = proj;
1695 _this.windowstate.new_file_dialog.show(f);
1701 // user defined functions
1703 public class Xcls_Image52 : Object
1705 public Gtk.Image el;
1706 private Xcls_MainWindow _this;
1712 public Xcls_Image52(Xcls_MainWindow _owner )
1715 this.el = new Gtk.Image();
1719 // set gobject values
1720 this.el.icon_name = "document-new";
1723 // user defined functions
1725 public class Xcls_delprojectbutton : Object
1727 public Clutter.Actor el;
1728 private Xcls_MainWindow _this;
1734 public Xcls_delprojectbutton(Xcls_MainWindow _owner )
1737 _this.delprojectbutton = this;
1738 this.el = new Clutter.Actor();
1742 // set gobject values
1743 var child_0 = new Xcls_Actor54( _this );
1745 this.el.add_child ( child_0.el );
1749 this.el.set_size(50,50); }
1751 // user defined functions
1753 public class Xcls_Actor54 : Object
1755 public GtkClutter.Actor el;
1756 private Xcls_MainWindow _this;
1762 public Xcls_Actor54(Xcls_MainWindow _owner )
1765 this.el = new GtkClutter.Actor();
1769 // set gobject values
1770 var child_0 = new Xcls_Button55( _this );
1775 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1777 // user defined functions
1779 public class Xcls_Button55 : Object
1781 public Gtk.Button el;
1782 private Xcls_MainWindow _this;
1788 public Xcls_Button55(Xcls_MainWindow _owner )
1791 this.el = new Gtk.Button();
1795 // set gobject values
1796 this.el.width_request = 50;
1797 this.el.height_request = 50;
1798 this.el.tooltip_text = "Delelte Project";
1799 var child_0 = new Xcls_Image56( _this );
1801 this.el.set_image ( child_0.el );
1804 this.el.clicked.connect( ( ) => {
1806 var cd = DialogConfirm.singleton();
1807 cd.el.set_transient_for(_this.el);
1808 cd.el.set_modal(true);
1810 var project = _this.left_projects.getSelectedProject();
1811 if (project == null) {
1812 print("SKIP - no project\n");
1817 if (Gtk.ResponseType.YES != cd.show("Confirm",
1818 "Are you sure you want to delete project %s".printf(project.name))) {
1824 Project.Project.remove(project);
1825 _this.project = null;
1827 _this.windowstate.left_projects.is_loaded = false;
1828 _this.windowstate.left_projects.load();
1829 _this.windowstate.clutterfiles.clearFiles();
1834 // user defined functions
1836 public class Xcls_Image56 : Object
1838 public Gtk.Image el;
1839 private Xcls_MainWindow _this;
1845 public Xcls_Image56(Xcls_MainWindow _owner )
1848 this.el = new Gtk.Image();
1852 // set gobject values
1853 this.el.icon_name = "user-trash";
1856 // user defined functions
1858 public class Xcls_new_window : Object
1860 public Clutter.Actor el;
1861 private Xcls_MainWindow _this;
1867 public Xcls_new_window(Xcls_MainWindow _owner )
1870 _this.new_window = this;
1871 this.el = new Clutter.Actor();
1875 // set gobject values
1876 var child_0 = new Xcls_Actor58( _this );
1878 this.el.add_child ( child_0.el );
1882 this.el.set_size(50,50); }
1884 // user defined functions
1886 public class Xcls_Actor58 : Object
1888 public GtkClutter.Actor el;
1889 private Xcls_MainWindow _this;
1895 public Xcls_Actor58(Xcls_MainWindow _owner )
1898 this.el = new GtkClutter.Actor();
1902 // set gobject values
1903 var child_0 = new Xcls_Button59( _this );
1908 ((Gtk.Container)(this.el.get_widget())).add ( child_0.el); }
1910 // user defined functions
1912 public class Xcls_Button59 : Object
1914 public Gtk.Button el;
1915 private Xcls_MainWindow _this;
1921 public Xcls_Button59(Xcls_MainWindow _owner )
1924 this.el = new Gtk.Button();
1928 // set gobject values
1929 this.el.width_request = 50;
1930 this.el.height_request = 50;
1931 this.el.tooltip_text = "Open New Window";
1932 var child_0 = new Xcls_Image60( _this );
1934 this.el.set_image ( child_0.el );
1937 this.el.clicked.connect( ( ) => {
1938 Xcls_MainWindow.singleton().no_windows++;
1939 var w = new Xcls_MainWindow();
1944 w.windowstate.switchState(WindowState.State.FILES);
1948 // user defined functions
1950 public class Xcls_Image60 : Object
1952 public Gtk.Image el;
1953 private Xcls_MainWindow _this;
1959 public Xcls_Image60(Xcls_MainWindow _owner )
1962 this.el = new Gtk.Image();
1966 // set gobject values
1967 this.el.icon_name = "window-new";
1970 // user defined functions