MCPcopy Create free account
hub / github.com/christophhart/HISE / editorInitialized

Method editorInitialized

hi_scripting/scripting/components/ScriptingEditor.cpp:150–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148{ return codeEditor->editor; }
149
150void 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
166bool ScriptingEditor::isInEditMode() const
167{

Callers

nothing calls this directly

Calls 7

getProcessorFunction · 0.85
setSizeFunction · 0.85
getBodyHeightFunction · 0.85
getNumSnippetsMethod · 0.80
getEditorStateMethod · 0.80
getWidthFunction · 0.50

Tested by

no test coverage detected