void InstrumentVisualizer::update_() { name_->setText(temp_.getName().c_str()); vendor_->setText(temp_.getVendor().c_str()); model_->setText(temp_.getModel().c_str()); customizations_->setText(temp_.getCustomizations().c_str()); if (!isEditable()) { fillComboBox_(ion_optics_, &temp_.NamesOfIonOpticsType[temp_.getIonOptics()], 1); } else { fillComboBox_(ion_optics_, temp_.NamesOfIonOpticsType, Instrument::SIZE_OF_IONOPTICSTYPE); } }
void ModificationVisualizer::update_() { if (!isEditable()) { fillComboBox_(modificationspecificity_, &temp_.NamesOfSpecificityType[temp_.getSpecificityType()], 1); } else { fillComboBox_(modificationspecificity_, temp_.NamesOfSpecificityType, Modification::SIZE_OF_SPECIFICITYTYPE); modificationspecificity_->setCurrentIndex(temp_.getSpecificityType()); } treatmenttype_->setText(temp_.getType().c_str()); treatmenttype_->setReadOnly(true); treatmentcomment_->setText(temp_.getComment().c_str()); modificationname_->setText(temp_.getReagentName().c_str()); modificationmass_->setText(String(temp_.getMass()).c_str()); modificationAA_->setText(temp_.getAffectedAminoAcids().c_str()); }
void InstrumentSettingsVisualizer::update_() { if (!isEditable()) { fillComboBox_(instrumentsettings_scan_mode_, &temp_.NamesOfScanMode[temp_.getScanMode()], 1); fillComboBox_(instrumentsettings_polarity_, &IonSource::NamesOfPolarity[temp_.getPolarity()], 1); } else { fillComboBox_(instrumentsettings_scan_mode_, InstrumentSettings::NamesOfScanMode, InstrumentSettings::SIZE_OF_SCANMODE); fillComboBox_(instrumentsettings_polarity_, IonSource::NamesOfPolarity, IonSource::SIZE_OF_POLARITY); instrumentsettings_scan_mode_->setCurrentIndex(temp_.getScanMode()); zoom_scan_->setCurrentIndex(temp_.getZoomScan()); instrumentsettings_polarity_->setCurrentIndex(temp_.getPolarity()); } }
void SampleVisualizer::update_() { if (!isEditable()) { fillComboBox_(samplestate_, &temp_.NamesOfSampleState[temp_.getState()], 1); } else { fillComboBox_(samplestate_, temp_.NamesOfSampleState, Sample::SIZE_OF_SAMPLESTATE); samplestate_->setCurrentIndex(temp_.getState()); } samplename_->setText(temp_.getName().c_str()); samplenumber_->setText(temp_.getNumber().c_str()); sampleorganism_->setText(temp_.getOrganism().c_str()); samplecomment_->setText(temp_.getComment().c_str()); samplemass_->setText(String(temp_.getMass()).c_str()); samplevolume_->setText(String(temp_.getVolume()).c_str()); sampleconcentration_->setText(String(temp_.getConcentration()).c_str()); }
void TaggingVisualizer::update_() { if (!isEditable()) { fillComboBox_(modificationspecificity_, &temp_.NamesOfSpecificityType[temp_.getSpecificityType()], 1); fillComboBox_(taggingvariant_, &temp_.NamesOfIsotopeVariant[temp_.getVariant()], 1); } else { fillComboBox_(modificationspecificity_, temp_.NamesOfSpecificityType, Tagging::SIZE_OF_SPECIFICITYTYPE); fillComboBox_(taggingvariant_, temp_.NamesOfIsotopeVariant, Tagging::SIZE_OF_ISOTOPEVARIANT); modificationspecificity_->setCurrentIndex(temp_.getSpecificityType()); taggingvariant_->setCurrentIndex(temp_.getVariant()); } treatmenttype_->setText(temp_.getType().c_str()); treatmenttype_->setReadOnly(true); treatmentcomment_->setText(temp_.getComment().c_str()); modificationname_->setText(temp_.getReagentName().c_str()); modificationmass_->setText(String(temp_.getMass()).c_str()); modificationAA_->setText(temp_.getAffectedAminoAcids().c_str()); taggingmass_shift_->setText(String(temp_.getMassShift()).c_str()); }
void IonSourceVisualizer::update_() { if (!isEditable()) { fillComboBox_(inlet_type_, &temp_.NamesOfInletType[temp_.getInletType()], 1); fillComboBox_(ionization_method_, &temp_.NamesOfIonizationMethod[temp_.getIonizationMethod()], 1); fillComboBox_(polarity_, &temp_.NamesOfPolarity[temp_.getPolarity()], 1); } else { fillComboBox_(inlet_type_, temp_.NamesOfInletType, IonSource::SIZE_OF_INLETTYPE); fillComboBox_(ionization_method_, temp_.NamesOfIonizationMethod, IonSource::SIZE_OF_IONIZATIONMETHOD); fillComboBox_(polarity_, temp_.NamesOfPolarity, IonSource::SIZE_OF_POLARITY); inlet_type_->setCurrentIndex(temp_.getInletType()); ionization_method_->setCurrentIndex(temp_.getIonizationMethod()); polarity_->setCurrentIndex(temp_.getPolarity()); } order_->setText(String(temp_.getOrder()).c_str()); }
void MassAnalyzerVisualizer::update_() { if (!isEditable()) { fillComboBox_(type_, &temp_.NamesOfAnalyzerType[temp_.getType()], 1); fillComboBox_(res_method_, &temp_.NamesOfResolutionMethod[temp_.getResolutionMethod()], 1); fillComboBox_(res_type_, &temp_.NamesOfResolutionType[temp_.getResolutionType()], 1); fillComboBox_(scan_dir_, &temp_.NamesOfScanDirection[temp_.getScanDirection()], 1); fillComboBox_(scan_law_, &temp_.NamesOfScanLaw[temp_.getScanLaw()], 1); fillComboBox_(reflectron_state_, &temp_.NamesOfReflectronState[temp_.getReflectronState()], 1); } else { fillComboBox_(type_, temp_.NamesOfAnalyzerType, MassAnalyzer::SIZE_OF_ANALYZERTYPE); fillComboBox_(res_method_, temp_.NamesOfResolutionMethod, MassAnalyzer::SIZE_OF_RESOLUTIONMETHOD); fillComboBox_(res_type_, temp_.NamesOfResolutionType, MassAnalyzer::SIZE_OF_RESOLUTIONTYPE); fillComboBox_(scan_dir_, temp_.NamesOfScanDirection, MassAnalyzer::SIZE_OF_SCANDIRECTION); fillComboBox_(scan_law_, temp_.NamesOfScanLaw, MassAnalyzer::SIZE_OF_SCANLAW); fillComboBox_(reflectron_state_, temp_.NamesOfReflectronState, MassAnalyzer::SIZE_OF_REFLECTRONSTATE); type_->setCurrentIndex(temp_.getType()); res_method_->setCurrentIndex(temp_.getResolutionMethod()); res_type_->setCurrentIndex(temp_.getResolutionType()); scan_dir_->setCurrentIndex(temp_.getScanDirection()); scan_law_->setCurrentIndex(temp_.getScanLaw()); reflectron_state_->setCurrentIndex(temp_.getReflectronState()); } order_->setText(String(temp_.getOrder()).c_str()); res_->setText(String(temp_.getResolution()).c_str()); acc_->setText(String(temp_.getAccuracy()).c_str()); scan_rate_->setText(String(temp_.getScanRate()).c_str()); scan_time_->setText(String(temp_.getScanTime()).c_str()); TOF_->setText(String(temp_.getTOFTotalPathLength()).c_str()); iso_->setText(String(temp_.getIsolationWidth()).c_str()); final_MS_->setText(String(temp_.getFinalMSExponent()).c_str()); magnetic_fs_->setText(String(temp_.getMagneticFieldStrength()).c_str()); }