| 212 | } |
| 213 | |
| 214 | void CtrlrValueMap::fillCombo (ComboBox &comboToFill, const bool clearBeforeFill) |
| 215 | { |
| 216 | if (clearBeforeFill) |
| 217 | { |
| 218 | comboToFill.clear(sendNotification); |
| 219 | } |
| 220 | |
| 221 | for (int i=0; i<values.size(); i++) |
| 222 | { |
| 223 | if (additionalData.contains (i)) |
| 224 | { |
| 225 | if (additionalData[i] == "") |
| 226 | { |
| 227 | comboToFill.addSeparator(); |
| 228 | } |
| 229 | else |
| 230 | { |
| 231 | comboToFill.addSectionHeading (additionalData[i]); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | if ((i+1) <= 0) |
| 236 | { |
| 237 | _WRN("CtrlrValueMap::fillCombo trying to insert an item with newItemId="+String(i+1)); |
| 238 | } |
| 239 | comboToFill.addItem (values[i].textRepresentation, i+1); |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | void CtrlrValueMap::setPair (const int index, const int value, const String &text) |
| 244 | { |
no test coverage detected