| 331 | } |
| 332 | |
| 333 | std::shared_ptr<LayoutTextInputControl> LayoutRow::addTextInput(BString initialValue, bool readOnly) { |
| 334 | std::shared_ptr<LayoutTextInputControl> control = std::make_shared<LayoutTextInputControl>(shared_from_this()); |
| 335 | if (readOnly) { |
| 336 | control->setReadOnly(true); |
| 337 | } |
| 338 | if (initialValue.length()) { |
| 339 | control->setText(initialValue); |
| 340 | } |
| 341 | this->controls.push_back(control); |
| 342 | return control; |
| 343 | } |
| 344 | |
| 345 | void LayoutRow::setHelp(Msg helpId) { |
| 346 | this->help = getTranslation(helpId, false); |
no test coverage detected