Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/capture/capture.cpp
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
209 | // #1 Guide Deviation Check | 209 | // #1 Guide Deviation Check | ||
210 | guideDeviationCheck->setChecked(Options::enforceGuideDeviation()); | 210 | guideDeviationCheck->setChecked(Options::enforceGuideDeviation()); | ||
211 | connect(guideDeviationCheck, &QCheckBox::toggled, [ = ](bool checked) | 211 | connect(guideDeviationCheck, &QCheckBox::toggled, [ = ](bool checked) | ||
212 | { | 212 | { | ||
213 | Options::setEnforceGuideDeviation(checked); | 213 | Options::setEnforceGuideDeviation(checked); | ||
214 | }); | 214 | }); | ||
215 | 215 | | |||
216 | // #2 Guide Deviation Value | 216 | // #2 Guide Deviation Value | ||
217 | guideDeviation->setValue(Options::hFRDeviation()); | 217 | guideDeviation->setValue(Options::guideDeviation()); | ||
218 | connect(guideDeviation, &QDoubleSpinBox::editingFinished, [ = ]() | 218 | connect(guideDeviation, &QDoubleSpinBox::editingFinished, [ = ]() | ||
219 | { | 219 | { | ||
220 | Options::setGuideDeviation(guideDeviation->value()); | 220 | Options::setGuideDeviation(guideDeviation->value()); | ||
221 | }); | 221 | }); | ||
222 | 222 | | |||
223 | // 3. Autofocus HFR Check | 223 | // 3. Autofocus HFR Check | ||
224 | autofocusCheck->setChecked(Options::enforceAutofocus()); | 224 | autofocusCheck->setChecked(Options::enforceAutofocus()); | ||
225 | connect(autofocusCheck, &QCheckBox::toggled, [ = ](bool checked) | 225 | connect(autofocusCheck, &QCheckBox::toggled, [ = ](bool checked) | ||
Show All 17 Lines | |||||
243 | 243 | | |||
244 | // 6. Refocus Every Value | 244 | // 6. Refocus Every Value | ||
245 | refocusEveryN->setValue(Options::refocusEveryN()); | 245 | refocusEveryN->setValue(Options::refocusEveryN()); | ||
246 | connect(refocusEveryN, &QDoubleSpinBox::editingFinished, [ = ]() | 246 | connect(refocusEveryN, &QDoubleSpinBox::editingFinished, [ = ]() | ||
247 | { | 247 | { | ||
248 | Options::setRefocusEveryN(refocusEveryN->value()); | 248 | Options::setRefocusEveryN(refocusEveryN->value()); | ||
249 | }); | 249 | }); | ||
250 | 250 | | |||
251 | // 7. File settings: filter name | ||||
252 | filterCheck->setChecked(Options::fileSettingsUseFilter()); | ||||
253 | connect(filterCheck, &QCheckBox::toggled, [ = ](bool checked) | ||||
254 | { | ||||
255 | Options::setFileSettingsUseFilter(checked); | ||||
256 | }); | ||||
257 | | ||||
258 | // 8. File settings: duration | ||||
259 | expDurationCheck->setChecked(Options::fileSettingsUseDuration()); | ||||
260 | connect(expDurationCheck, &QCheckBox::toggled, [ = ](bool checked) | ||||
261 | { | ||||
262 | Options::setFileSettingsUseDuration(checked); | ||||
263 | }); | ||||
264 | | ||||
265 | // 9. File settings: timestamp | ||||
266 | ISOCheck->setChecked(Options::fileSettingsUseTimestamp()); | ||||
267 | connect(ISOCheck, &QCheckBox::toggled, [ = ](bool checked) | ||||
268 | { | ||||
269 | Options::setFileSettingsUseTimestamp(checked); | ||||
270 | }); | ||||
271 | | ||||
251 | QCheckBox * const checkBoxes[] = | 272 | QCheckBox * const checkBoxes[] = | ||
252 | { | 273 | { | ||
253 | guideDeviationCheck, | 274 | guideDeviationCheck, | ||
254 | refocusEveryNCheck, | 275 | refocusEveryNCheck, | ||
255 | guideDeviationCheck, | 276 | guideDeviationCheck, | ||
256 | }; | 277 | }; | ||
257 | for (const QCheckBox * control : checkBoxes) | 278 | for (const QCheckBox * control : checkBoxes) | ||
258 | connect(control, &QCheckBox::toggled, this, &Ekos::Capture::setDirty); | 279 | connect(control, &QCheckBox::toggled, this, &Ekos::Capture::setDirty); | ||
▲ Show 20 Lines • Show All 6275 Lines • Show Last 20 Lines |