| 41 | } |
| 42 | |
| 43 | void SampleVisualizer::update_() |
| 44 | { |
| 45 | if (!isEditable()) |
| 46 | { |
| 47 | fillComboBox_(samplestate_, &temp_.NamesOfSampleState[temp_.getState()], 1); |
| 48 | } |
| 49 | else |
| 50 | { |
| 51 | fillComboBox_(samplestate_, temp_.NamesOfSampleState, Sample::SIZE_OF_SAMPLESTATE); |
| 52 | samplestate_->setCurrentIndex(temp_.getState()); |
| 53 | } |
| 54 | |
| 55 | samplename_->setText(temp_.getName().c_str()); |
| 56 | samplenumber_->setText(temp_.getNumber().c_str()); |
| 57 | sampleorganism_->setText(temp_.getOrganism().c_str()); |
| 58 | samplecomment_->setText(temp_.getComment().c_str()); |
| 59 | |
| 60 | samplemass_->setText(String(temp_.getMass()).c_str()); |
| 61 | samplevolume_->setText(String(temp_.getVolume()).c_str()); |
| 62 | sampleconcentration_->setText(String(temp_.getConcentration()).c_str()); |
| 63 | } |
| 64 | |
| 65 | void SampleVisualizer::store() |
| 66 | { |
nothing calls this directly
no test coverage detected