| 1322 | // --------------------------------------------------------------------- |
| 1323 | |
| 1324 | void MyFrame::OnGenerateInitialPattern(wxCommandEvent& event) |
| 1325 | { |
| 1326 | try |
| 1327 | { |
| 1328 | this->system->GenerateInitialPattern(); |
| 1329 | } |
| 1330 | catch(const exception& e) |
| 1331 | { |
| 1332 | MonospaceMessageBox(_("Generating an initial pattern caused an error:\n\n")+wxString(e.what(),wxConvUTF8),_("Error"),wxART_ERROR); |
| 1333 | } |
| 1334 | catch(...) |
| 1335 | { |
| 1336 | wxMessageBox(_("Generating an initial pattern caused an unknown error")); |
| 1337 | } |
| 1338 | // (we allow the user to proceed because they might now want to change other things to match) |
| 1339 | |
| 1340 | this->is_running = false; |
| 1341 | this->UpdateWindows(); |
| 1342 | } |
| 1343 | |
| 1344 | // --------------------------------------------------------------------- |
| 1345 |
nothing calls this directly
no test coverage detected