| 481 | |
| 482 | |
| 483 | ScriptCreatedComponentWrappers::SliderWrapper::SliderWrapper(ScriptContentComponent *content, ScriptingApi::Content::ScriptSlider *sc, int index) : |
| 484 | ScriptCreatedComponentWrapper(content, index) |
| 485 | { |
| 486 | HiSlider *s; |
| 487 | |
| 488 | s = new HiSlider(sc->name.toString()); |
| 489 | |
| 490 | MouseCursor cursor; |
| 491 | |
| 492 | |
| 493 | |
| 494 | s->addListener(this); |
| 495 | s->setValue(sc->value, dontSendNotification); |
| 496 | |
| 497 | s->setup(getProcessor(), getIndex(), sc->name.toString()); |
| 498 | |
| 499 | if(auto obj = sc->modObject.getDynamicObject()) |
| 500 | s->setModifierObject(sc->modObject); |
| 501 | |
| 502 | component = s; |
| 503 | |
| 504 | initAllProperties(); |
| 505 | |
| 506 | s->updateValue(dontSendNotification); |
| 507 | |
| 508 | if (setMouseCursorFromParentPanel(sc, cursor)) |
| 509 | s->setMouseCursor(cursor); |
| 510 | } |
| 511 | |
| 512 | void ScriptCreatedComponentWrappers::SliderWrapper::updateFilmstrip() |
| 513 | { |
nothing calls this directly
no test coverage detected