| 111 | } |
| 112 | |
| 113 | bool AudacityCommand::SaveSettingsAsString(wxString & parms) |
| 114 | { |
| 115 | CommandParameters eap; |
| 116 | |
| 117 | if (mUIDialog && !TransferDataFromWindow()) |
| 118 | { |
| 119 | return false; |
| 120 | } |
| 121 | |
| 122 | ShuttleGetAutomation S; |
| 123 | S.mpEap = &eap; |
| 124 | bool bResult = VisitSettings( S ); |
| 125 | wxASSERT_MSG( bResult, "You did not define DefineParameters() for this command" ); |
| 126 | static_cast<void>(bResult); // fix unused variable warning in release mode |
| 127 | |
| 128 | return eap.GetParameters(parms); |
| 129 | } |
| 130 | |
| 131 | bool AudacityCommand::LoadSettingsFromString(const wxString & parms) |
| 132 | { |
no test coverage detected