| 289 | } |
| 290 | |
| 291 | std::shared_ptr<LayoutRow> LayoutSection::addRow(Msg labelId, Msg helpId) { |
| 292 | std::shared_ptr<LayoutRow> row = std::make_shared<LayoutRow>(); |
| 293 | if (labelId != Msg::NONE) { |
| 294 | row->label = getTranslation(labelId); |
| 295 | } |
| 296 | if (helpId != Msg::NONE) { |
| 297 | row->help = getTranslation(helpId, false); |
| 298 | } |
| 299 | this->rows.push_back(row); |
| 300 | return row; |
| 301 | } |
| 302 | |
| 303 | std::shared_ptr<LayoutTextInputControl> LayoutSection::addTextInputRow(Msg labelId, Msg helpId, BString initialValue, bool readOnly) { |
| 304 | std::shared_ptr<LayoutRow> row = this->addRow(labelId, helpId); |
no test coverage detected