| 1489 | } |
| 1490 | |
| 1491 | void ScriptCreatedComponentWrappers::LabelWrapper::ValueChecker::timerCallback() |
| 1492 | { |
| 1493 | if(currentEditor.getComponent() == nullptr) |
| 1494 | return; |
| 1495 | |
| 1496 | auto thisText = currentEditor->getText(); |
| 1497 | |
| 1498 | if(lastValue != thisText) |
| 1499 | { |
| 1500 | lastValue = thisText; |
| 1501 | auto sc = parent.getScriptComponent(); |
| 1502 | sc->setValue(lastValue); |
| 1503 | |
| 1504 | dynamic_cast<ProcessorWithScriptingContent*>(parent.getProcessor())->controlCallback(sc, sc->getValue()); |
| 1505 | } |
| 1506 | } |
| 1507 | |
| 1508 | void ScriptCreatedComponentWrappers::LabelWrapper::editorShown(Label*, TextEditor& te) |
| 1509 | { |
nothing calls this directly
no test coverage detected