}
-
-
-
-
this.state = new_state;
-
-
-
this.buttonsShowHide();
-
switch (this.state) {
case State.PREVIEW: // this is the default state when working...
case State.CODE:
this.win.leftpane.el.show();
this.win.editpane.el.show();
-
- this.win.rooviewbox.el.hide();
+ this.win.rooviewbox.el.hide();
this.win.codeeditviewbox.el.show();
this.code_editor_tab.el.show_all();
break;
case State.CODEONLY:
-
this.win.leftpane.el.hide();
this.win.codeeditviewbox.el.show();
this.win.rooviewbox.el.hide();
this.code_editor_tab.el.show_all();
break;
-
+
+ case State.NONE:
+ break;
}