! @excsafety{Strong} -- For state of current project's tracks */
| 600 | |
| 601 | /*! @excsafety{Strong} -- For state of current project's tracks */ |
| 602 | void 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 | |
| 613 | void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt)) |
| 614 | { |
nothing calls this directly
no test coverage detected