2 * as state management is a bit too complicated inside the builder
3 * it's better to seperate this into this class
5 * This class has references to all the Class instances that make up the window..
8 public class WindowState : Object
10 public Xcls_MainWindow win;
21 PROJECT // project settings..
24 public State state = State.NONE;
26 public bool children_loaded = false;
30 public Project.Project project;
31 public JsRender.JsRender file;
35 public Xcls_WindowLeftTree left_tree;
36 public Xcls_WindowAddProp add_props;
37 public Xcls_LeftProps left_props;
38 public Xcls_ProjectSettings projectsettings;
39 public ValaProjectSettings vala_projectsettings;
40 public Xcls_RightPalete rightpalete;
41 public Editor code_editor;
42 public Xcls_WindowRooView window_rooview;
43 public Xcls_GtkView window_gladeview;
45 public Xcls_ClutterFiles clutterfiles;
47 public Xcls_WindowLeftProjects left_projects; // can not see where this is initialized..
49 public DialogTemplateSelect template_select;
51 public Xcls_PopoverFileDetails file_details;
54 public Xcls_ValaCompileResults compile_results;
57 public Xcls_DialogPluginWebkit webkit_plugin;
60 public Palete.ValaSource valasource; // the spawner that runs the vala compiler.
61 public Json.Object last_compile_result;
64 public WindowState(Xcls_MainWindow win)
73 // on clutter space...
74 this.projectEditInit();
76 this.projectListInit();
86 this.webkitViewInit();
90 this.fileDetailsInit();
92 this.webkit_plugin = new Xcls_DialogPluginWebkit();
93 this.template_select = new DialogTemplateSelect();
94 this.children_loaded = true;
96 this.left_tree.node_selected.connect((sel) => {
97 if (this.file.xtype == "Roo") {
98 this.window_rooview.sourceview.nodeSelected(sel);
100 this.window_gladeview.sourceview.nodeSelected(sel);
103 this.valasource = new Palete.ValaSource();
104 this.valasource.compiled.connect(this.valaCompiled);
106 this.compile_results = new Xcls_ValaCompileResults();
107 this.compile_results.window = this.win;
108 this.valasource.compile_output.connect(this.compile_results.addLine);
114 public void leftTreeInit()
117 this.left_tree = new Xcls_WindowLeftTree();
118 this.left_tree.ref();
119 this.left_tree.main_window = this.win;
121 this.win.tree.el.pack_start(this.left_tree.el,true, true,0);
122 this.left_tree.el.show_all();
124 this.left_tree.before_node_change.connect(() => {
125 return this.leftTreeBeforeChange();
129 this.left_tree.node_selected.connect((sel) => {
130 this.leftTreeNodeSelected(sel);
133 this.left_tree.changed.connect(() => {
136 if (this.left_tree.getActiveFile().xtype == "Roo" ) {
137 this.window_rooview.requestRedraw();
139 this.window_gladeview.loadFile(this.left_tree.getActiveFile());
146 public bool leftTreeBeforeChange()
148 if (this.state != State.CODE) {
149 this.left_props.finish_editing();
152 if (!this.code_editor.saveContents()) {
158 public void leftTreeNodeSelected(JsRender.Node? sel)
161 print("node_selected called %s\n", (sel == null) ? "NULL" : "a value");
164 this.left_props.el.hide();
166 this.left_props.el.show();
167 this.left_props.load(this.left_tree.getActiveFile(), sel);
168 switch (this.state) {
173 this.rightpalete.clear();
176 this.rightpalete.load(this.left_tree.getActiveFile().palete(), sel.fqn());
182 this.add_props.clear();
185 this.add_props.show(this.left_tree.getActiveFile().palete(), "props", sel.fqn());
191 this.add_props.clear();
194 this.add_props.show(this.left_tree.getActiveFile().palete(), "signals", sel.fqn());
198 this.switchState(State.PREVIEW);
211 public void propsListInit()
214 this.left_props =new Xcls_LeftProps();
215 this.left_props.ref();
216 this.left_props.main_window = this.win;
217 this.win.props.el.pack_start(this.left_props.el,true, true,0);
218 this.left_props.el.show_all();
220 this.left_props.show_editor.connect( (file, node, type, key) => {
221 this.switchState(State.CODE);
222 this.code_editor.show(
233 this.left_props.stop_editor.connect( () => {
234 if (this.state != State.CODE) {
238 var ret = this.code_editor.saveContents();
242 this.switchState(State.PREVIEW);
246 this.left_props.changed.connect(() => {
247 if (this.left_tree.getActiveFile().xtype == "Roo" ) {
248 this.window_rooview.requestRedraw();
250 this.window_gladeview.loadFile(this.left_tree.getActiveFile());
252 this.left_tree.model.updateSelected();
254 if (this.file.xtype=="Gtk") {
255 this.valasource.checkFileSpawn(this.file);
263 //------------- projects edit
265 public void projectEditInit()
267 this.projectsettings =new Xcls_ProjectSettings();
268 this.projectsettings.ref(); /// really?
270 this.vala_projectsettings =new ValaProjectSettings();
271 this.vala_projectsettings.ref();
272 this.vala_projectsettings.window = this.win;
274 ((Gtk.Container)(this.win.projecteditview.el.get_widget())).add(this.projectsettings.el);
275 //this.projectsettings.el.show_all();
277 var stage = this.win.projecteditview.el.get_stage();
278 stage.set_background_color( Clutter.Color.from_string("#000"));
280 this.projectsettings.buttonPressed.connect((btn) => {
281 if (this.left_tree.getActiveFile().xtype == "Roo" ) {
283 this.window_rooview.view.renderJS(true);
285 if (btn == "apply") {
286 this.window_rooview.view.renderJS(true);
290 // do nothing for gtk..
292 if (btn == "save" || btn == "apply") {
293 this.win.project.save();
296 this.switchState (State.PREVIEW);
301 // ----------- object adding
302 public void objectAddInit()
305 this.rightpalete = new Xcls_RightPalete();
306 this.rightpalete.ref(); /// really?
307 ((Gtk.Container)(this.win.objectview.el.get_widget())).add(this.rightpalete.el);
308 //this.projectsettings.el.show_all();
310 var stage = this.win.objectview.el.get_stage();
311 stage.set_background_color( Clutter.Color.from_string("#000"));
315 // ----------- properties adding list...
316 // listener uses the properties
317 public void propsAddInit()
320 this.add_props = new Xcls_WindowAddProp();
321 this.add_props.ref(); /// really?
322 ((Gtk.Container)(this.win.addpropsview.el.get_widget())).add(this.add_props.el);
323 //this.projectsettings.el.show_all();
325 var stage = this.win.addpropsview.el.get_stage();
326 stage.set_background_color( Clutter.Color.from_string("#000"));
329 this.add_props.select.connect( (key,type,skel, etype) => {
330 this.left_props.addProp(etype, key, skel, type);
334 public void propsAddShow()
338 public void propsAddHide()
346 // ----------- Add / Edit listener
347 // listener uses the properties
348 //public void listenerInit() { }
349 public void listenerShow()
353 public void listenerHide()
358 // -------------- codeEditor
360 public void codeEditInit()
362 this.code_editor = new Editor();
363 //this.code_editor.ref(); /// really?
364 ((Gtk.Container)(this.win.codeeditview.el.get_widget())).add(this.code_editor.el);
366 this.code_editor.window = this.win;
367 //this.projectsettings.el.show_all();
369 var stage = this.win.codeeditview.el.get_stage();
370 stage.set_background_color( Clutter.Color.from_string("#000"));
373 this.code_editor.save.connect( () => {
375 this.left_tree.model.updateSelected();
376 if (this.left_tree.getActiveFile().xtype == "Roo" ) {
377 this.window_rooview.requestRedraw();
379 this.window_gladeview.loadFile(this.left_tree.getActiveFile());
381 // we do not need to call spawn... - as it's already called by the editor?
387 // ----------- list of projects on left
388 public void projectListInit()
391 this.left_projects = new Xcls_WindowLeftProjects();
392 this.left_projects.ref();
393 this.win.leftpane.el.pack_start(this.left_projects.el,true, true,0);
394 this.left_projects.el.show_all();
395 this.left_projects.project_selected.connect((proj) => {
396 this.buttonsShowHide();
398 this.clutterfiles.loadProject(proj);
403 // ----------- file view
405 public void fileViewInit()
407 var stage = this.win.rooview.el.get_stage(); // seems odd...
408 this.clutterfiles = new Xcls_ClutterFiles();
409 this.clutterfiles.ref();
410 stage.add_child(this.clutterfiles.el);
411 this.clutterfiles.el.show();
414 this.clutterfiles.open.connect((file) => {
415 this.fileViewOpen(file);
417 this.clutterfiles.el.transitions_completed.connect(() => {
418 if (this.state == State.FILES) {
419 this.win.rooview.el.hide();
421 this.clutterfiles.el.hide();
429 public void fileDetailsInit()
431 this.file_details = new Xcls_PopoverFileDetails();
432 this.file_details.mainwindow = this.win;
433 // force it modal to the main window..
435 this.file_details.success.connect((project,file) =>
437 this.fileViewOpen(file);
442 public void fileViewOpen(JsRender.JsRender file, int line = -1)
444 this.win.project = file.project;
445 this.project = file.project;
449 if (file.xtype == "PlainFile") {
450 this.switchState (State.CODEONLY);
452 this.code_editor.show(file, null, "", "");
454 this.code_editor.scroll_to_line(line);
458 this.switchState (State.PREVIEW);
459 // this triggers loadItems..
460 this.left_tree.model.loadFile(file);
461 if (file.project.xtype == "Gtk" && line> -1 ) {
462 this.window_gladeview.scroll_to_line(line);
468 var ctr= ((Gtk.Container)(this.win.rooview.el.get_widget()));
469 var ctr_p= ((Gtk.Container)(this.win.projecteditview.el.get_widget()));
471 if (file.project.xtype == "Roo" ) {
472 ctr.foreach( (w) => { ctr.remove(w); });
473 ctr_p.foreach( (w) => { ctr_p.remove(w); });
474 ctr.add(this.window_rooview.el);
475 ctr_p.add(this.projectsettings.el);
476 if (file.xtype != "PlainFile") {
477 this.window_rooview.loadFile(file);
478 this.window_rooview.el.show_all();
480 this.projectsettings.el.show_all();
484 ctr.foreach( (w) => { ctr.remove(w); });
485 ctr_p.foreach( (w) => { ctr_p.remove(w); });
486 ctr.add(this.window_gladeview.el);
487 ctr_p.add(this.vala_projectsettings.el);
488 if (file.xtype != "PlainFile") {
489 this.window_gladeview.loadFile(file);
490 this.window_gladeview.el.show_all();
492 this.vala_projectsettings.el.show_all();
494 print("OPEN : " + file.name);
495 if (file.xtype != "PlainFile") {
496 this.win.editpane.el.set_position(this.win.editpane.el.max_position);
498 this.win.setTitle(file.project.name + " : " + file.name);
504 // --------- webkit view
505 public void webkitViewInit()
507 this.window_rooview =new Xcls_WindowRooView();
508 this.window_rooview.main_window = this.win;
509 this.window_rooview.ref();
510 ((Gtk.Container)(this.win.rooview.el.get_widget())).add(this.window_rooview.el);
511 this.window_rooview.el.show_all();
513 var stage = this.win.rooview.el.get_stage();
514 stage.set_background_color( Clutter.Color.from_string("#000"));
519 public void gtkViewInit()
521 this.window_gladeview =new Xcls_GtkView();
522 this.window_gladeview.ref();
523 this.window_gladeview.main_window = this.win;
526 public void easingSaveAll()
528 this.win.addpropsview.el.save_easing_state();
529 this.win.codeeditview.el.save_easing_state();
530 this.win.objectview.el.save_easing_state();
531 this.win.projecteditview.el.save_easing_state();
532 this.win.rooview.el.save_easing_state();
533 this.clutterfiles.el.save_easing_state();
536 public void easingRestoreAll()
538 this.win.addpropsview.el.restore_easing_state();
539 this.win.codeeditview.el.restore_easing_state();
540 this.win.objectview.el.restore_easing_state();
541 this.win.projecteditview.el.restore_easing_state();
542 this.win.rooview.el.restore_easing_state();
543 this.clutterfiles.el.restore_easing_state();
546 public void switchState(State new_state)
549 // if the new state and the old state are the same..
551 if (new_state == this.state) {
555 // save the easing state of everything..
556 this.easingSaveAll();
558 switch (this.state) {
561 if (this.left_tree.getActiveFile() != null) {
562 if (this.left_tree.getActiveFile().xtype == "Roo" ) {
563 this.window_rooview.createThumb();
565 this.window_gladeview.createThumb();
568 // normally we are going from preview to another state.
569 // and different windows hide the preview in differnt ways..
576 this.win.addpropsview.el.set_scale(0.0f,0.0f);
580 this.code_editor.saveContents();
582 this.win.codeeditview.el.set_scale(0.0f,0.0f);
586 // going from codeonly..
587 this.win.leftpane.el.show();
588 // enable re-calc of canvas..
589 while (Gtk.events_pending()) {
590 Gtk.main_iteration();
592 //this.code_editor.saveContents(); << not yet...
594 this.win.rooview.el.show();
595 this.win.codeeditview.el.set_scale(0.0f,0.0f);
601 this.win.objectview.el.set_scale(0.0f,0.0f);
605 if (this.win.project.xtype == "Gtk") {
606 this.vala_projectsettings.save();
609 this.win.projecteditview.el.set_scale(0.0f,0.0f);
612 case State.FILES: // goes to preview or codeonly...
615 if (new_state == State.CODEONLY) {
616 this.win.rooview.el.hide();
618 this.win.rooview.el.show();
621 this.win.rooview.el.set_easing_duration(1000);
622 this.win.rooview.el.set_rotation_angle(Clutter.RotateAxis.Y_AXIS, 0.0f);
623 this.win.rooview.el.set_scale(1.0f,1.0f);
624 this.win.rooview.el.set_pivot_point(0.5f,0.5f);
625 this.win.rooview.el.set_opacity(0xff);
629 this.clutterfiles.el.set_easing_duration(1000);
630 this.clutterfiles.el.set_pivot_point(0.5f,0.5f);
631 this.clutterfiles.el.set_rotation_angle(Clutter.RotateAxis.Y_AXIS, -180.0f);
632 this.clutterfiles.el.set_opacity(0);
634 //this.clutterfiles.el.hide();
642 var oldstate =this.state;
643 this.state = new_state;
647 this.buttonsShowHide();
650 switch (this.state) {
652 case State.PREVIEW: // this is the default state when working...
653 this.win.editpane.el.show(); // holder for tree and properties..
656 this.left_projects.el.hide();
657 if (oldstate != State.FILES) {
658 // it's handled above..
659 print ("changing state to preview from NOT files..");
662 this.win.rooview.el.set_scale(1.0f,1.0f);
671 var ae = this.left_tree.getActiveElement();
673 this.state = oldstate;
674 this.buttonsShowHide();
675 this.resizeCanvasElements();
676 this.easingRestoreAll();
679 this.add_props.el.show_all();
681 Palete.factory(this.win.project.xtype),
682 this.state == State.LISTENER ? "signals" : "props",
689 // -- FIXME? this needs to be State aware?
691 this.win.rooview.el.set_pivot_point(1.0f,0.5f);
693 this.win.addpropsview.el.set_scale(1.0f,1.0f);
697 var n = this.left_tree.getActiveElement();
699 if (this.file == null) {
700 this.state =oldstate;
701 this.buttonsShowHide();
702 this.resizeCanvasElements();
703 this.easingRestoreAll();
707 if (n == null && this.file.tree != null) {
708 this.state = oldstate;
709 this.buttonsShowHide();
710 this.resizeCanvasElements();
711 this.easingRestoreAll();
715 this.rightpalete.el.show_all();
716 this.rightpalete.load(this.left_tree.getActiveFile().palete(), n == null ? "*top" : n.fqn());
720 this.win.rooview.el.set_pivot_point(1.0f,0.5f);
721 this.win.objectview.el.set_scale(1.0f,1.0f);
727 this.win.codeeditview.el.show();
728 this.code_editor.el.show_all();
729 // caller needs to call editor - show....
730 this.win.codeeditview.el.set_scale(1.0f,1.0f);
731 this.win.rooview.el.set_pivot_point(1.0f,0.5f);
736 // going to codeonly..
737 this.win.codeeditview.el.show();
739 //while (Gtk.events_pending()) {
740 // Gtk.main_iteration();
743 this.win.leftpane.el.hide();
744 this.win.codeeditview.el.show();
745 //while (Gtk.events_pending()) {
746 // Gtk.main_iteration();
750 this.code_editor.el.show_all();
752 this.win.codeeditview.el.set_scale(1.0f,1.0f);
753 this.win.rooview.el.set_pivot_point(1.0f,0.5f);
758 if (this.win.project.xtype == "Roo") {
759 this.projectsettings.el.show_all();
760 this.projectsettings.show(this.win.project);
762 this.vala_projectsettings.el.show_all();
763 this.vala_projectsettings.show((Project.Gtk)this.win.project);
766 this.win.rooview.el.set_pivot_point(1.0f,1.0f); // bottom right..
768 this.win.projecteditview.el.set_scale(1.0f,1.0f);
773 case State.FILES: // can only get here from PREVIEW (or code-only) state.. in theory..
776 this.win.editpane.el.hide(); // holder for tree and properties..
778 this.left_projects.el.show();
780 // rotate the preview to hidden...
781 this.win.rooview.el.set_easing_duration(1000);
782 this.win.rooview.el.set_pivot_point(0.5f,0.5f);
783 this.win.rooview.el.set_rotation_angle(Clutter.RotateAxis.Y_AXIS, 180.0f);
784 this.win.rooview.el.set_opacity(0);
789 if (this.win.project != null) {
790 this.left_projects.selectProject(this.win.project);
794 this.clutterfiles.el.show();
796 this.clutterfiles.el.set_easing_duration(1000);
797 this.clutterfiles.el.set_pivot_point(0.5f,0.5f);
798 this.clutterfiles.el.set_rotation_angle(Clutter.RotateAxis.Y_AXIS, 0.0f);
799 this.clutterfiles.el.set_opacity(0xff);
807 this.resizeCanvasElements();
808 this.easingRestoreAll();
810 // run the animation.. - then load files...
811 GLib.Timeout.add(500, () =>{
812 this.resizeCanvasElements();
818 public int redraw_count = 0;
819 public void resizeCanvas() // called by window resize .. delays redraw
821 var rc = this.redraw_count;
822 this.redraw_count = 2;
824 GLib.Timeout.add(100, () =>{
825 return this.resizeCanvasQueue();
829 public bool resizeCanvasQueue()
831 //print("WindowState.resizeCanvasQueue %d\n", this.redraw_count);
833 if (this.redraw_count < 1) {
834 return false; // should not really happen...
840 if (this.redraw_count > 0) {
841 return true; // do it again in 1 second...
843 // got down to 0 or -1....
844 this.redraw_count = 0;
845 this.resizeCanvasElements();
849 public void resizeCanvasElements()
851 Gtk.Allocation alloc;
852 this.win.clutterembed.el.get_allocation(out alloc);
854 // print("WindowState.resizeCanvasElements\n");
855 if (!this.children_loaded || this.win.clutterembed == null) {
856 print("WindowState.resizeCanvasElements = ingnore not loaded or no clutterfiles\n");
860 var avail = alloc.width < 50.0f ? 0 : alloc.width - 50.0f;
861 var palsize = avail < 300.0f ? avail : 300.0f;
864 // -------- code edit min 600
866 var codesize = avail < 800.0f ? avail : 800.0f;
869 //print("set code size %f\n", codesize);
873 switch ( this.state) {
876 this.win.rooview.el.set_size(alloc.width-50, alloc.height);
880 this.clutterfiles.set_size(alloc.width-50, alloc.height);
885 this.win.projecteditview.el.set_size(alloc.width-50, alloc.height / 2.0f);
887 // this.win.rooview.el.save_easing_state();
888 //this.win.rooview.el.set_size(alloc.width / 2.0f, alloc.height / 2.0f);
890 this.win.rooview.el.set_scale(0.5f, 0.5f);
891 //this.win.rooview.el.restore_easing_state();
895 this.win.codeeditview.el.set_size(codesize, alloc.height);
896 var scale = avail > 0.0f ? (avail - codesize -10 ) / avail : 0.0f;
897 //this.win.rooview.el.save_easing_state();
899 this.win.rooview.el.set_scale(scale,scale);
900 // this.win.rooview.el.restore_easing_state();
904 this.win.codeeditview.el.set_size(codesize, alloc.height);
905 var scale = avail > 0.0f ? (avail - codesize -10 ) / avail : 0.0f;
906 //this.win.rooview.el.save_easing_state();
907 this.win.rooview.el.hide();
908 this.win.rooview.el.set_scale(scale,scale);
909 // this.win.rooview.el.restore_easing_state();
913 this.win.addpropsview.el.set_size(palsize, alloc.height);
914 var scale = avail > 0.0f ? (avail - palsize -10 ) / avail : 0.0f;
915 this.win.rooview.el.set_scale(scale,scale);
919 this.win.objectview.el.set_size(palsize, alloc.height);
920 var scale = avail > 0.0f ? (avail - palsize -10 ) / avail : 0.0f;
921 //this.win.rooview.el.save_easing_state();
922 this.win.rooview.el.set_scale(scale,scale);
923 // this.win.rooview.el.restore_easing_state();
928 // -- buttons show hide.....
930 public void buttonsShowHide()
932 // basically hide everything, then show the relivant..
934 this.win.backbutton.el.hide();
936 this.win.projectbutton.el.hide(); // show file nav...
937 this.win.editfilebutton.el.hide();
938 this.win.projecteditbutton.el.hide();
941 this.win.objectshowbutton.el.hide(); // add objects
942 this.win.addpropbutton.el.hide();
943 this.win.addlistenerbutton.el.hide();
947 this.win.addprojectbutton.el.hide();
948 this.win.addfilebutton.el.hide();
949 this.win.delprojectbutton.el.hide();
951 this.win.search_entry.el.hide();
952 this.win.search_results.el.hide();
953 switch (this.state) {
955 case State.PREVIEW: // this is the default state when working...
957 this.win.projectbutton.el.show(); // show file nav...
958 this.win.editfilebutton.el.show();
959 this.win.projecteditbutton.el.show();
962 this.win.objectshowbutton.el.show(); // add objects
963 this.win.addpropbutton.el.show();
964 this.win.addlistenerbutton.el.show();
965 this.win.search_entry.el.show();
966 this.win.search_results.el.show();
971 this.win.projectbutton.el.show();
972 this.win.search_entry.el.show();
973 this.win.search_results.el.show();
977 this.win.search_entry.el.show();
978 this.win.search_results.el.show();
979 this.win.backbutton.el.show();
980 this.win.objectshowbutton.el.show(); // add objects ?? can you do this from here?
981 this.win.addpropbutton.el.show();
982 this.win.addlistenerbutton.el.show();
989 this.win.backbutton.el.show();
990 this.win.objectshowbutton.el.show(); // add objects
991 this.win.addpropbutton.el.show();
992 this.win.addlistenerbutton.el.show();
997 this.win.backbutton.el.show();
1003 if (this.left_projects.getSelectedProject() != null ) {
1004 if (this.left_tree.getActiveFile() != null) {
1005 this.win.backbutton.el.show();
1007 this.win.addfilebutton.el.show();
1008 this.win.search_entry.el.show();
1009 this.win.search_results.el.show();
1013 this.win.addprojectbutton.el.show();
1014 this.win.delprojectbutton.el.show();
1027 public void valaCompiled(Json.Object obj)
1029 // vala has finished compiling...
1030 print("vala compiled");
1032 var buf = this.code_editor.buffer;
1033 buf.check_running = false;
1034 var has_errors = false;
1036 if (obj.has_member("ERR-TOTAL")) {
1037 if (obj.get_int_member("ERR-TOTAL")> 0) {
1040 this.win.statusbar_errors.setNotices( obj.get_object_member("ERR") , (int) obj.get_int_member("ERR-TOTAL"));
1042 this.win.statusbar_errors.setNotices( new Json.Object() , 0);
1045 if (obj.has_member("WARN-TOTAL")) {
1047 this.win.statusbar_warnings.setNotices(obj.get_object_member("WARN"), (int) obj.get_int_member("WARN-TOTAL"));
1049 this.win.statusbar_warnings.setNotices( new Json.Object() , 0);
1052 if (obj.has_member("DEPR-TOTAL")) {
1054 this.win.statusbar_depricated.setNotices( obj.get_object_member("DEPR"), (int) obj.get_int_member("DEPR-TOTAL"));
1057 this.win.statusbar_depricated.setNotices( new Json.Object(),0);
1060 buf.highlightErrorsJson("ERR", obj);
1061 buf.highlightErrorsJson("WARN", obj);
1062 buf.highlightErrorsJson("DEPR", obj);
1064 this.win.statusbar_compilestatus_label.el.hide();
1065 this.win.statusbar_run.el.hide();
1067 if (this.file.xtype == "Gtk") {
1068 this.win.statusbar_compilestatus_label.el.show();
1070 this.win.statusbar_run.el.hide();
1072 var gbuf = this.window_gladeview.sourceview;
1073 gbuf.highlightErrorsJson("ERR", obj);
1074 gbuf.highlightErrorsJson("WARN", obj);
1075 gbuf.highlightErrorsJson("DEPR", obj);
1078 this.last_compile_result = obj;