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

Method GetValue

src/TrackPanelAx.cpp:508–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506wxAccStatus TrackPanelAx::GetValue( int childId, wxString* strValue )
507#else
508wxAccStatus TrackPanelAx::GetValue( int WXUNUSED(childId), wxString* WXUNUSED(strValue) )
509#endif
510{
511#if defined(__WXMSW__)
512 return wxACC_NOT_IMPLEMENTED;
513#endif
514
515#if defined(__WXMAC__)
516 if( childId == wxACC_SELF )
517 {
518 *strValue = _("TrackView");
519 }
520 else
521 {
522 auto pFocus = mwFocus.lock();
523 if (!pFocus)
524 return wxACC_FAIL;
525
526 auto t = pFocus->FindTrack(childId);
527
528 if( t == NULL )
529 {
530 return wxACC_FAIL;
531 }
532 else
533 {
534 /* i18n-hint: The %d is replaced by the number of the track.*/
535 strValue->Printf(_("Track %d"), pFocus->TrackNum(t));
536 strValue->Append(" " + t->GetName());
537
538 // LLL: Remove these during "refactor"
539 auto pt = dynamic_cast<PlayableTrack *>(t.get());
540 if( pt && pt->GetMute() )
541 {
542 strValue->Append( _( " Mute On" ) );
543 }
544
545 if( pt && pt->GetSolo() )
546 {
547 strValue->Append( _( " Solo On" ) );
548 }
549 if( t->GetSelected() )
550 {
551 strValue->Append( _( " Select On" ) );
552 }
553 }
554 }
555 return wxACC_OK;
556#endif
557}
558
559// Gets the window with the keyboard focus.
560// If childId is 0 and child is NULL, no object in

Callers 15

OnAddMethod · 0.45
OnOkMethod · 0.45
OnItemSelectedMethod · 0.45
OnEditParamsMethod · 0.45
OnUsePresetMethod · 0.45
HandleMouseButtonDownMethod · 0.45
OnDatePicker_StartMethod · 0.45
OnTimeText_StartMethod · 0.45
OnDatePicker_EndMethod · 0.45
OnTimeText_EndMethod · 0.45
OnTimeText_DurationMethod · 0.45

Calls 9

TrackNumMethod · 0.80
lockMethod · 0.45
FindTrackMethod · 0.45
AppendMethod · 0.45
GetNameMethod · 0.45
getMethod · 0.45
GetMuteMethod · 0.45
GetSoloMethod · 0.45
GetSelectedMethod · 0.45

Tested by 1

OnBrushButtonMethod · 0.36