void Slider::onCreate(const Slider * Id) { Inherited::onCreate(Id); if(Id != NULL) { FieldContainerUnrecPtr TheFC(NULL); if(Id->getKnobButton() != NULL) { TheFC = Id->getKnobButton()->shallowCopy(); setKnobButton(dynamic_pointer_cast<Button>(TheFC)); } if(Id->getTrackDrawObject() != NULL) { TheFC = Id->getTrackDrawObject()->shallowCopy(); setTrackDrawObject(dynamic_pointer_cast<UIDrawObjectCanvas>(TheFC)); } if(Id->getMinTrackDrawObject() != NULL) { TheFC = Id->getMinTrackDrawObject()->shallowCopy(); setMinTrackDrawObject(dynamic_pointer_cast<UIDrawObjectCanvas>(TheFC)); } if(Id->getMaxTrackDrawObject() != NULL) { TheFC = Id->getMaxTrackDrawObject()->shallowCopy(); setMaxTrackDrawObject(dynamic_pointer_cast<UIDrawObjectCanvas>(TheFC)); } setLabelPrototype(Id->getLabelPrototype()); } }
void SpinnerDefaultEditor::onCreate(const SpinnerDefaultEditor * Id) { if(Id != NULL && Id->getTextField() != NULL) { FieldContainerUnrecPtr TheFC(Id->getTextField()->shallowCopy()); setTextField(dynamic_pointer_cast<TextField>(TheFC)); } }
void Spinner::onCreate(const Spinner * Id) { Inherited::onCreate(Id); if(Id != NULL && Id->getNextButton() != NULL && Id->getPreviousButton() != NULL) { FieldContainerUnrecPtr TheFC(NULL); TheFC = Id->getNextButton()->shallowCopy(); setNextButton(dynamic_pointer_cast<Button>(TheFC)); TheFC = Id->getPreviousButton()->shallowCopy(); setPreviousButton(dynamic_pointer_cast<Button>(TheFC)); } }