wxString msg; msg.Printf( _T("F.O.X. - Free Objects for Xtal structures\n") _T("Version 1.1.1\n\n") _T("(c) 2000-2001 Vincent FAVRE-NICOLIN, vincefn@users.sourceforge.net\n") _T("            & Radovan CERNY, University of Geneva\n\n") _T("http: _T("http: _T("Note: look for newer version on the above web sites,\n") _T("      or subscribe, to the mailing-list at :\n") _T("      http: _T("Project supported by the Swiss National Science Foundation (#21-53847.98)") );  wxMessageBox(msg, "About Fox", wxOK | wxICON_INFORMATION, this);
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; } }
void WXCrystMainFrame::OnAbout(wxCommandEvent& WXUNUSED(event)){   wxString msg;   msg.Printf( _T("F.O.X. - Free Objects for Xtal structures\n")               _T("Version 1.1.1\n\n")               _T("(c) 2000-2001 Vincent FAVRE-NICOLIN, vincefn@users.sourceforge.net\n")               _T("            & Radovan CERNY, University of Geneva\n\n")               _T("http://objcryst.sourceforge.net\n")               _T("http://www.ccp14.ac.uk/ccp/web-mirrors/objcryst/ (Mirror)\n\n")               _T("Note: look for newer version on the above web sites,\n")               _T("      or subscribe, to the mailing-list at :\n")               _T("      http://lists.sourceforge.net/lists/listinfo/objcryst-foxx\n\n")               _T("Project supported by the Swiss National Science Foundation (#21-53847.98)")              );   wxMessageBox(msg, "About Fox", wxOK | wxICON_INFORMATION, this);}void WXCrystMainFrame::OnLoad(wxCommandEvent& event){   wxFileDialog *open;   switch(event.GetId())   {		#if 0      case MENU_FILE_LOAD_OXY:      {         open= new wxFileDialog(this,"Choose File :",                                              "","","*.oxy",wxOPEN | wxFILE_MUST_EXIST);         if(open->ShowModal() != wxID_OK) return;         IOCrystFileLoadAllObject(open->GetPath().c_str());         break;      }		#endif      case MENU_FILE_LOAD:      {         open= new wxFileDialog(this,"Choose File :",                                              "","","*.xml",wxOPEN | wxFILE_MUST_EXIST);         if(open->ShowModal() != wxID_OK) return;         XMLCrystFileLoadAllObject(open->GetPath().c_str());         break;      }   }   open->Destroy();}