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

Method OnRecord

src/toolbars/ControlToolBar.cpp:602–611  ·  view source on GitHub ↗

! @excsafety{Strong} -- For state of current project's tracks */

Source from the content-addressed store, hash-verified

600
601/*! @excsafety{Strong} -- For state of current project's tracks */
602void ControlToolBar::OnRecord(wxCommandEvent &evt)
603{
604 // TODO: It would be neater if Menu items and Toolbar buttons used the same code for
605 // enabling/disabling, and all fell into the same action routines.
606 // Here instead we reduplicate some logic (from CommandHandler) because it isn't
607 // normally used for buttons.
608
609 bool altAppearance = mRecord->WasShiftDown();
610 ProjectAudioManager::Get( mProject ).OnRecord( altAppearance );
611}
612
613void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt))
614{

Callers

nothing calls this directly

Calls 2

GetFunction · 0.85
WasShiftDownMethod · 0.80

Tested by

no test coverage detected