MCPcopy Create free account
hub / github.com/GollyGang/ready / TransferDataFromWindow

Method TransferDataFromWindow

src/gui/RecordingDialog.cpp:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156// -----------------------------------------------------------------------------------------------
157
158bool RecordingDialog::TransferDataFromWindow()
159{
160 this->record_data_image = (this->source_combo->GetValue()==this->source_2D_data) || (this->source_combo->GetValue()==this->source_2D_data_all_chemicals);
161 this->record_all_chemicals = (this->source_combo->GetValue()==this->source_2D_data_all_chemicals);
162 this->recording_extension = string(this->extension_combo->GetValue().mb_str());
163 this->record_3D_surface = (this->source_combo->GetValue() == this->source_3D_surface);
164 recordingdir = this->folder_edit->GetValue(); // save folder in prefs
165 this->recording_prefix = string(this->folder_edit->GetValue().mb_str()) + "/" + string(this->filename_prefix_edit->GetValue().mb_str());
166 this->should_decimate = this->should_decimate_check->GetValue();
167 this->target_reduction_edit->GetValue().ToDouble(&this->target_reduction);
168 // TODO: save other settings in prefs too, if wanted
169 return true;
170}
171
172// -----------------------------------------------------------------------------------------------
173

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected