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

Method getParam

src/openms_gui/source/VISUAL/DIALOGS/TOPPViewPrefDialog.cpp:94–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 Param TOPPViewPrefDialog::getParam() const
95 {
96 Param p;
97 p.setValue("default_path", ui_->default_path->text().toStdString());
98 p.setValue("default_path_current", fromCheckState(ui_->default_path_current->checkState()));
99
100 p.setValue("plugins_path", ui_->plugins_path->text().toStdString());
101
102 p.setValue("use_cached_ms1", fromCheckState(ui_->use_cached_ms1->checkState()));
103 p.setValue("use_cached_ms2", fromCheckState(ui_->use_cached_ms2->checkState()));
104
105 p.setValue("default_map_view", ui_->map_default->currentText().toStdString());
106 p.setValue("intensity_cutoff", ui_->map_cutoff->currentText().toStdString());
107 p.setValue("on_file_change", ui_->on_file_change->currentText().toStdString());
108
109 p.setValue("1d:peak_color", ui_->color_1D->getColor().name().toStdString());
110 p.setValue("1d:highlighted_peak_color", ui_->selected_1D->getColor().name().toStdString());
111 p.setValue("1d:icon_color", ui_->icon_1D->getColor().name().toStdString());
112
113 p.setValue("2d:dot:gradient", ui_->peak_2D->gradient().toString());
114 p.setValue("2d:dot:feature_icon", ui_->feature_icon_2D->currentText().toStdString());
115 p.setValue("2d:dot:feature_icon_size", ui_->feature_icon_size_2D->value());
116
117 p.setValue("3d:dot:gradient", ui_->peak_3D->gradient().toString());
118 p.setValue("3d:dot:shade_mode", ui_->shade_3D->currentIndex());
119 p.setValue("3d:dot:line_width", ui_->line_width_3D->value());
120
121 // TSG view
122 ui_->param_editor_spec_gen_->store(); // to tsg_param_
123 p.insert(tsg_prefix, tsg_param_);
124 // from SpectrumAlignment
125 p.setValue("idview:align:tolerance", ui_->tolerance->value(), "Alignment tolerance value");
126 p.setValue("idview:align:is_relative_tolerance", ui_->unit->currentText().toStdString() == "ppm" ? "true" : "false", "Alignment tolerance unit (Da, ppm)");
127
128 param_ = p;
129
130 return param_;
131 }
132
133 void TOPPViewPrefDialog::browseDefaultPath_()
134 {

Callers 4

finishHoveringEdgeMethod · 0.45
foreachFunction · 0.45
foreachFunction · 0.45
preferencesDialogMethod · 0.45

Calls 8

fromCheckStateFunction · 0.85
getColorMethod · 0.80
gradientMethod · 0.80
setValueMethod · 0.45
toStringMethod · 0.45
valueMethod · 0.45
storeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected