(state: PaneState & ExecutorState)
| 858 | } |
| 859 | |
| 860 | initToggleButtons(state: PaneState & ExecutorState): void { |
| 861 | this.toggleCompilation = this.domRoot.find('.toggle-compilation'); |
| 862 | this.toggleArgs = this.domRoot.find('.toggle-args'); |
| 863 | this.toggleStdin = this.domRoot.find('.toggle-stdin'); |
| 864 | this.toggleCompilerOut = this.domRoot.find('.toggle-compilerout'); |
| 865 | |
| 866 | if (!state.compilationPanelShown) { |
| 867 | this.hidePanel(this.toggleCompilation, this.panelCompilation); |
| 868 | } |
| 869 | |
| 870 | if (state.argsPanelShown) { |
| 871 | this.showPanel(this.toggleArgs, this.panelArgs); |
| 872 | } |
| 873 | |
| 874 | if (state.stdinPanelShown) { |
| 875 | this.showPanel(this.toggleStdin, this.panelStdin); |
| 876 | } |
| 877 | |
| 878 | if (!state.compilerOutShown) { |
| 879 | this.hidePanel(this.toggleCompilerOut, this.compilerOutputSection); |
| 880 | } |
| 881 | |
| 882 | if (state.wrap === true) { |
| 883 | this.contentRoot.addClass('wrap'); |
| 884 | this.wrapButton.prop('title', '[ON] ' + this.wrapTitle); |
| 885 | } else { |
| 886 | this.contentRoot.removeClass('wrap'); |
| 887 | this.wrapButton.prop('title', '[OFF] ' + this.wrapTitle); |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | onLibsChanged(): void { |
| 892 | this.updateState(); |
no test coverage detected