Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/align/opsalign.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 43 | #ifdef Q_OS_OSX | |||
---|---|---|---|---|---|
46 | if (Options::astrometrySolverIsInternal()) | 46 | if (Options::astrometrySolverIsInternal()) | ||
47 | kcfg_AstrometrySolverBinary->setEnabled(false); | 47 | kcfg_AstrometrySolverBinary->setEnabled(false); | ||
48 | 48 | | |||
49 | connect(kcfg_AstrometryWCSIsInternal, SIGNAL(clicked()), this, SLOT(toggleWCSInternal())); | 49 | connect(kcfg_AstrometryWCSIsInternal, SIGNAL(clicked()), this, SLOT(toggleWCSInternal())); | ||
50 | kcfg_AstrometryWCSIsInternal->setToolTip(i18n("Internal or External wcsinfo?")); | 50 | kcfg_AstrometryWCSIsInternal->setToolTip(i18n("Internal or External wcsinfo?")); | ||
51 | if (Options::astrometryWCSIsInternal()) | 51 | if (Options::astrometryWCSIsInternal()) | ||
52 | kcfg_AstrometryWCSInfo->setEnabled(false); | 52 | kcfg_AstrometryWCSInfo->setEnabled(false); | ||
53 | 53 | | |||
54 | connect(kcfg_SextractorIsInternal, SIGNAL(clicked()), this, SLOT(toggleSextractorInternal())); | ||||
55 | kcfg_SextractorIsInternal->setToolTip(i18n("Internal or External sextractor?")); | ||||
56 | if (Options::sextractorIsInternal()) | ||||
57 | kcfg_SextractorBinary->setEnabled(false); | ||||
58 | | ||||
54 | connect(kcfg_UseDefaultPython, SIGNAL(clicked()), this, SLOT(togglePythonDefault())); | 59 | connect(kcfg_UseDefaultPython, SIGNAL(clicked()), this, SLOT(togglePythonDefault())); | ||
55 | kcfg_PythonExecPath->setVisible(!Options::useDefaultPython()); | 60 | kcfg_PythonExecPath->setVisible(!Options::useDefaultPython()); | ||
56 | SetupPython->setVisible(Options::useDefaultPython()); | 61 | SetupPython->setVisible(Options::useDefaultPython()); | ||
57 | 62 | | |||
58 | #else | 63 | #else | ||
59 | kcfg_AstrometrySolverIsInternal->setVisible(false); | 64 | kcfg_AstrometrySolverIsInternal->setVisible(false); | ||
60 | kcfg_AstrometryWCSIsInternal->setVisible(false); | 65 | kcfg_AstrometryWCSIsInternal->setVisible(false); | ||
66 | kcfg_SextractorIsInternal->setVisible(false); | ||||
61 | 67 | | |||
62 | kcfg_UseDefaultPython->setVisible(false); | 68 | kcfg_UseDefaultPython->setVisible(false); | ||
63 | pythonLabel->setVisible(false); | 69 | pythonLabel->setVisible(false); | ||
64 | SetupPython->setVisible(false); | 70 | SetupPython->setVisible(false); | ||
65 | kcfg_PythonExecPath->setVisible(false); | 71 | kcfg_PythonExecPath->setVisible(false); | ||
66 | 72 | | |||
67 | #endif | 73 | #endif | ||
68 | 74 | | |||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | |||||
178 | { | 184 | { | ||
179 | kcfg_AstrometryWCSInfo->setEnabled(!kcfg_AstrometryWCSIsInternal->isChecked()); | 185 | kcfg_AstrometryWCSInfo->setEnabled(!kcfg_AstrometryWCSIsInternal->isChecked()); | ||
180 | if (kcfg_AstrometryWCSIsInternal->isChecked()) | 186 | if (kcfg_AstrometryWCSIsInternal->isChecked()) | ||
181 | kcfg_AstrometryWCSInfo->setText("*Internal wcsinfo*"); | 187 | kcfg_AstrometryWCSInfo->setText("*Internal wcsinfo*"); | ||
182 | else | 188 | else | ||
183 | kcfg_AstrometryWCSInfo->setText(KSUtils::getDefaultPath("AstrometryWCSInfo")); | 189 | kcfg_AstrometryWCSInfo->setText(KSUtils::getDefaultPath("AstrometryWCSInfo")); | ||
184 | } | 190 | } | ||
185 | 191 | | |||
192 | void OpsAlign::toggleSextractorInternal() | ||||
193 | { | ||||
194 | kcfg_SextractorBinary->setEnabled(!kcfg_SextractorIsInternal->isChecked()); | ||||
195 | if (kcfg_SextractorIsInternal->isChecked()) | ||||
196 | kcfg_SextractorBinary->setText("*Internal Sextractor*"); | ||||
197 | else | ||||
198 | kcfg_SextractorBinary->setText(KSUtils::getDefaultPath("SextractorBinary")); | ||||
199 | } | ||||
200 | | ||||
186 | void OpsAlign::togglePythonDefault() | 201 | void OpsAlign::togglePythonDefault() | ||
187 | { | 202 | { | ||
188 | bool defaultPython = kcfg_UseDefaultPython->isChecked(); | 203 | bool defaultPython = kcfg_UseDefaultPython->isChecked(); | ||
189 | kcfg_PythonExecPath->setVisible(!defaultPython); | 204 | kcfg_PythonExecPath->setVisible(!defaultPython); | ||
190 | SetupPython->setVisible(defaultPython); | 205 | SetupPython->setVisible(defaultPython); | ||
191 | } | 206 | } | ||
192 | 207 | | |||
193 | void OpsAlign::slotApply() | 208 | void OpsAlign::slotApply() | ||
194 | { | 209 | { | ||
195 | emit settingsUpdated(); | 210 | emit settingsUpdated(); | ||
196 | } | 211 | } | ||
197 | } | 212 | } |