void StepScan::fillNormalizationCombobox( const Mantid::API::MatrixWorkspace_const_sptr & ws ) { // If there are more than 3 entries in the combobox (nothing, time, proton_charge) then // remove any stale ones while ( m_uiForm.normalization->count() > 3 ) { m_uiForm.normalization->removeItem(m_uiForm.normalization->count()-1); } for ( std::size_t i = 0; i < ws->getNumberHistograms(); ++i ) { const std::string monitorName = ws->getDetector(i)->getName(); m_uiForm.normalization->addItem( QString::fromStdString( monitorName ) ); } }