WXCrystValidateAllUserInput(); static long saveId=-1; static long saveId2=-1;
wxString msg; msg.Printf( _T("F.O.X. - Free Objects for Xtal structures\n") _T("Version 1.3\n\n") _T("(c) 2000-2002 Vincent FAVRE-NICOLIN, vincefn@users.sourceforge.net\n") _T("    2000-2001 Radovan CERNY, University of Geneva\n\n") _T("http: _T("http: _T("FOX comes with ABSOLUTELY NO WARRANTY. It is free software, and you are\n") _T("welcome to redistribute it under certain conditions. \n") _T("See the LICENSE file for details.") );  wxMessageBox(msg, "About Fox", wxOK | wxICON_INFORMATION, this); } void WXCrystMainFrame::OnLoad(wxCommandEvent& event) { wxFileDialog *open;
void WXCrystMainFrame::OnDebugTest(wxCommandEvent& event){   WXCrystValidateAllUserInput();   static long saveId=-1;   static long saveId2=-1;   switch(event.GetId())   {      case MENU_DEBUG_TEST1:      {         if(saveId==-1) saveId=gScattererRegistry.GetObj(0).CreateParamSet();         else gScattererRegistry.GetObj(0).SaveParamSet(saveId);         gScattererRegistry.GetObj(0).GlobalOptRandomMove(1);         gCrystalRegistry.GetObj(0).UpdateDisplay();         if(saveId2==-1) saveId2=gScattererRegistry.GetObj(0).CreateParamSet();         else gScattererRegistry.GetObj(0).SaveParamSet(saveId2);         break;      }      case MENU_DEBUG_TEST2:      {         gScattererRegistry.GetObj(0).RestoreParamSet(saveId);         gCrystalRegistry.GetObj(0).UpdateDisplay();         break;      }      case MENU_DEBUG_TEST3:      {         gScattererRegistry.GetObj(0).RestoreParamSet(saveId2);         gCrystalRegistry.GetObj(0).UpdateDisplay();         break;      }   }}