| 148 | { return codeEditor->editor; } |
| 149 | |
| 150 | void ScriptingEditor::editorInitialized() |
| 151 | { |
| 152 | JavascriptProcessor* sp = dynamic_cast<JavascriptProcessor*>(getProcessor()); |
| 153 | int editorOffset = dynamic_cast<ProcessorWithScriptingContent*>(getProcessor())->getCallbackEditorStateOffset(); |
| 154 | |
| 155 | for(int i = 0; i < sp->getNumSnippets(); i++) |
| 156 | { |
| 157 | if(getProcessor()->getEditorState(editorOffset + i + ProcessorWithScriptingContent::EditorStates::onInitShown)) |
| 158 | showCallback(i); |
| 159 | } |
| 160 | |
| 161 | setSize(getWidth(), getBodyHeight()); |
| 162 | |
| 163 | checkActiveSnippets(); |
| 164 | } |
| 165 | |
| 166 | bool ScriptingEditor::isInEditMode() const |
| 167 | { |
nothing calls this directly
no test coverage detected