case ID_DIFFSINGLECRYST_MENU_IMPORT_HKLIOBSSIGMA: { wxFileDialog open(this,"Choose file to import from", "","","*.*",wxOPEN | wxFILE_MUST_EXIST); if(open.ShowModal() != wxID_OK) return; long nb=0; { wxTextEntryDialog dialog(this,"Number of reflections", "Enter The number of reflections to import","50", wxOK | wxCANCEL); if(wxID_OK!=dialog.ShowModal()) { VFN_DEBUG_EXIT("WXDiffractionSingleCrystal::OnMenuImport():Cancelled",6) return; } dialog.GetValue().ToLong(&nb); } mpData->ImportHklIobsSigma(open.GetPath().c_str(),nb); return; } case ID_DIFFSINGLECRYST_MENU_IMPORT_JANAM91: { }
case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_AG: mpData->SetWavelength("Ag");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_MO: mpData->SetWavelength("Mo");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_CU: mpData->SetWavelength("Cu");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_FE: mpData->SetWavelength("Fe");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_CR: mpData->SetWavelength("Cr");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_AGA1: mpData->SetWavelength("AgA1");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_MOA1: mpData->SetWavelength("MoA1");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_CUA1: mpData->SetWavelength("CuA1");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_FEA1: mpData->SetWavelength("FeA1");break; case ID_DIFFSINGLECRYST_MENU_WAVELENGTH_SET_CRA1: mpData->SetWavelength("CrA1");break;
void WXDiffractionSingleCrystal::OnMenuImport(wxCommandEvent & event){   switch(event.GetId())   {      case ID_DIFFSINGLECRYST_MENU_IMPORT_HKLIOBS:      {         wxFileDialog open(this,"Choose file to import from",                                        "","","*.*",wxOPEN | wxFILE_MUST_EXIST);         if(open.ShowModal() != wxID_OK) return;         long nb=0;         {            wxTextEntryDialog dialog(this,"Number of reflections",                                    "Enter The number of reflections to import","50",                                    wxOK | wxCANCEL);            if(wxID_OK!=dialog.ShowModal())            {               VFN_DEBUG_EXIT("WXDiffractionSingleCrystal::OnMenuImport():Cancelled",6)               return;            }            dialog.GetValue().ToLong(&nb);         }         mpData->ImportHklIobs(open.GetPath().c_str(),nb);         return;      }      case ID_DIFFSINGLECRYST_MENU_IMPORT_HKLIOBSSIGMA:      {         wxFileDialog open(this,"Choose file to import from",                                        "","","*.*",wxOPEN | wxFILE_MUST_EXIST);         if(open.ShowModal() != wxID_OK) return;         long nb=0;         {            wxTextEntryDialog dialog(this,"Number of reflections",                                    "Enter The number of reflections to import","50",                                    wxOK | wxCANCEL);            if(wxID_OK!=dialog.ShowModal())            {               VFN_DEBUG_EXIT("WXDiffractionSingleCrystal::OnMenuImport():Cancelled",6)               return;            }            dialog.GetValue().ToLong(&nb);         }         mpData->ImportHklIobsSigma(open.GetPath().c_str(),nb);         return;      }      case ID_DIFFSINGLECRYST_MENU_IMPORT_JANAM91:      {      }   }}