Use to determine if a key can be assigned to the given index
| 335 | // Use to determine if a key can be assigned to the given index |
| 336 | // |
| 337 | bool |
| 338 | KeyView::CanSetKey(int index) const |
| 339 | { |
| 340 | // Make sure index is valid |
| 341 | if (index < 0 || index >= (int) mNodes.size()) |
| 342 | { |
| 343 | wxASSERT(false); |
| 344 | return false; |
| 345 | } |
| 346 | |
| 347 | // Parents can't be assigned keys |
| 348 | return !mNodes[index].isparent; |
| 349 | } |
| 350 | |
| 351 | // |
| 352 | // Sets the key for the given index |
no test coverage detected