MCPcopy Create free account
hub / github.com/GollyGang/ready / OnGenerateInitialPattern

Method OnGenerateInitialPattern

src/gui/frame.cpp:1324–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322// ---------------------------------------------------------------------
1323
1324void 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

Callers

nothing calls this directly

Calls 3

UpdateWindowsMethod · 0.95
MonospaceMessageBoxClass · 0.85

Tested by

no test coverage detected