| 687 | } |
| 688 | |
| 689 | ChoiceParam* |
| 690 | UserParamHolder::createChoiceParam(const QString& name, |
| 691 | const QString& label) |
| 692 | { |
| 693 | boost::shared_ptr<KnobChoice> knob = _holder->createChoiceKnob( name.toStdString(), label.toStdString() ); |
| 694 | |
| 695 | if (knob) { |
| 696 | boost::shared_ptr<KnobPage> userPage = _holder->getOrCreateUserPageKnob(); |
| 697 | if (userPage) { |
| 698 | userPage->addKnob(knob); |
| 699 | } |
| 700 | |
| 701 | return new ChoiceParam(knob); |
| 702 | } else { |
| 703 | return 0; |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | ColorParam* |
| 708 | UserParamHolder::createColorParam(const QString& name, |
no test coverage detected