MCPcopy Create free account
hub / github.com/audacity/audacity / CanSetKey

Method CanSetKey

src/widgets/KeyView.cpp:337–349  ·  view source on GitHub ↗

Use to determine if a key can be assigned to the given index

Source from the content-addressed store, hash-verified

335// Use to determine if a key can be assigned to the given index
336//
337bool
338KeyView::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

Callers 2

SetKeyForSelectedMethod · 0.80
OnSelectedMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected