MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setMergeLayers

Method setMergeLayers

src/openms_gui/source/VISUAL/DIALOGS/TOPPViewOpenDialog.cpp:149–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 void TOPPViewOpenDialog::setMergeLayers(const std::map<Size, String> & layers)
150 {
151 // remove all items
152 ui_->merge_combo_->clear();
153
154 if (!layers.empty())
155 {
156 ui_->merge_->setEnabled(true);
157 ui_->merge_combo_->setEnabled(true);
158 UInt i = 0;
159 for (const auto& it : layers)
160 {
161 ui_->merge_combo_->insertItem(i++, it.second.toQString(), (int)(it.first));
162 }
163 }
164 else
165 {
166 ui_->merge_->setEnabled(false);
167 ui_->merge_combo_->setEnabled(false);
168 }
169 }
170
171 Int TOPPViewOpenDialog::getMergeLayer() const
172 {

Callers 1

addDataMethod · 0.80

Calls 3

clearMethod · 0.45
emptyMethod · 0.45
toQStringMethod · 0.45

Tested by

no test coverage detected