diff options
author | Alexander V. Wolf <aw@altspu.ru> | 2024-02-28 12:31:19 +0700 |
---|---|---|
committer | Alexander V. Wolf <aw@altspu.ru> | 2024-02-28 12:31:19 +0700 |
commit | de3b26d32ff18ba0b152e2f78c46973eccb36bc5 (patch) | |
tree | 3aa3969e58066536d8daac6da91cc75bd83b03fc | |
parent | 25ffdd2b6d5da61307a8606ce8c4fa10fc621209 (diff) |
Added ability to set a sub-arcminute lower limit for angular size (fixed #3647)
-rw-r--r-- | src/gui/ConfigurationDialog.cpp | 72 | ||||
-rw-r--r-- | src/gui/viewDialog.ui | 16 |
2 files changed, 47 insertions, 41 deletions
diff --git a/src/gui/ConfigurationDialog.cpp b/src/gui/ConfigurationDialog.cpp index 8651ec39a0..d71f3b0919 100644 --- a/src/gui/ConfigurationDialog.cpp +++ b/src/gui/ConfigurationDialog.cpp @@ -1001,57 +1001,57 @@ void ConfigurationDialog::saveAllSettings() conf->setValue("viewing/line_thickness", propMgr->getStelPropertyValue("GridLinesMgr.lineThickness").toInt()); conf->setValue("viewing/part_thickness", propMgr->getStelPropertyValue("GridLinesMgr.partThickness").toInt()); - conf->setValue("viewing/constellation_font_size", propMgr->getStelPropertyValue("ConstellationMgr.fontSize").toInt()); - conf->setValue("viewing/flag_constellation_drawing", propMgr->getStelPropertyValue("ConstellationMgr.linesDisplayed").toBool()); - conf->setValue("viewing/flag_constellation_name", propMgr->getStelPropertyValue("ConstellationMgr.namesDisplayed").toBool()); + conf->setValue("viewing/constellation_font_size", propMgr->getStelPropertyValue("ConstellationMgr.fontSize").toInt()); + conf->setValue("viewing/flag_constellation_drawing", propMgr->getStelPropertyValue("ConstellationMgr.linesDisplayed").toBool()); + conf->setValue("viewing/flag_constellation_name", propMgr->getStelPropertyValue("ConstellationMgr.namesDisplayed").toBool()); conf->setValue("viewing/flag_constellation_boundaries", propMgr->getStelPropertyValue("ConstellationMgr.boundariesDisplayed").toBool()); - conf->setValue("viewing/flag_constellation_art", propMgr->getStelPropertyValue("ConstellationMgr.artDisplayed").toBool()); + conf->setValue("viewing/flag_constellation_art", propMgr->getStelPropertyValue("ConstellationMgr.artDisplayed").toBool()); conf->setValue("viewing/flag_constellation_isolate_selected", propMgr->getStelPropertyValue("ConstellationMgr.isolateSelected").toBool()); conf->setValue("viewing/flag_landscape_autoselection", propMgr->getStelPropertyValue("LandscapeMgr.flagLandscapeAutoSelection").toBool()); conf->setValue("viewing/flag_light_pollution_database", propMgr->getStelPropertyValue("LandscapeMgr.flagUseLightPollutionFromDatabase").toBool()); conf->setValue("viewing/flag_environment_auto_enable", propMgr->getStelPropertyValue("LandscapeMgr.flagEnvironmentAutoEnabling").toBool()); - conf->setValue("viewing/constellation_art_intensity", propMgr->getStelPropertyValue("ConstellationMgr.artIntensity").toFloat()); - conf->setValue("viewing/constellation_name_style", ConstellationMgr::getConstellationDisplayStyleString(static_cast<ConstellationMgr::ConstellationDisplayStyle> (propMgr->getStelPropertyValue("ConstellationMgr.constellationDisplayStyle").toInt()) )); + conf->setValue("viewing/constellation_art_intensity", propMgr->getStelPropertyValue("ConstellationMgr.artIntensity").toFloat()); + conf->setValue("viewing/constellation_name_style", ConstellationMgr::getConstellationDisplayStyleString(static_cast<ConstellationMgr::ConstellationDisplayStyle> (propMgr->getStelPropertyValue("ConstellationMgr.constellationDisplayStyle").toInt()) )); conf->setValue("viewing/constellation_line_thickness", propMgr->getStelPropertyValue("ConstellationMgr.constellationLineThickness").toInt()); conf->setValue("viewing/constellation_boundaries_thickness", propMgr->getStelPropertyValue("ConstellationMgr.constellationBoundariesThickness").toInt()); - conf->setValue("viewing/asterism_font_size", propMgr->getStelPropertyValue("AsterismMgr.fontSize").toInt()); - conf->setValue("viewing/flag_asterism_drawing", propMgr->getStelPropertyValue("AsterismMgr.linesDisplayed").toBool()); - conf->setValue("viewing/flag_asterism_name", propMgr->getStelPropertyValue("AsterismMgr.namesDisplayed").toBool()); - conf->setValue("viewing/asterism_line_thickness", propMgr->getStelPropertyValue("AsterismMgr.asterismLineThickness").toInt()); - conf->setValue("viewing/flag_rayhelper_drawing", propMgr->getStelPropertyValue("AsterismMgr.rayHelpersDisplayed").toBool()); - conf->setValue("viewing/rayhelper_line_thickness", propMgr->getStelPropertyValue("AsterismMgr.rayHelperThickness").toInt()); - conf->setValue("viewing/sky_brightness_label_threshold", propMgr->getStelPropertyValue("StelSkyDrawer.daylightLabelThreshold").toFloat()); - conf->setValue("viewing/flag_night", StelApp::getInstance().getVisionModeNight()); - conf->setValue("astro/flag_stars", propMgr->getStelPropertyValue("StarMgr.flagStarsDisplayed").toBool()); - conf->setValue("astro/flag_star_name", propMgr->getStelPropertyValue("StarMgr.flagLabelsDisplayed").toBool()); - conf->setValue("astro/flag_star_additional_names", propMgr->getStelPropertyValue("StarMgr.flagAdditionalNamesDisplayed").toBool()); - conf->setValue("astro/flag_star_designation_usage", propMgr->getStelPropertyValue("StarMgr.flagDesignationLabels").toBool()); + conf->setValue("viewing/asterism_font_size", propMgr->getStelPropertyValue("AsterismMgr.fontSize").toInt()); + conf->setValue("viewing/flag_asterism_drawing", propMgr->getStelPropertyValue("AsterismMgr.linesDisplayed").toBool()); + conf->setValue("viewing/flag_asterism_name", propMgr->getStelPropertyValue("AsterismMgr.namesDisplayed").toBool()); + conf->setValue("viewing/asterism_line_thickness", propMgr->getStelPropertyValue("AsterismMgr.asterismLineThickness").toInt()); + conf->setValue("viewing/flag_rayhelper_drawing", propMgr->getStelPropertyValue("AsterismMgr.rayHelpersDisplayed").toBool()); + conf->setValue("viewing/rayhelper_line_thickness", propMgr->getStelPropertyValue("AsterismMgr.rayHelperThickness").toInt()); + conf->setValue("viewing/sky_brightness_label_threshold",propMgr->getStelPropertyValue("StelSkyDrawer.daylightLabelThreshold").toFloat()); + conf->setValue("viewing/flag_night", StelApp::getInstance().getVisionModeNight()); + conf->setValue("astro/flag_stars", propMgr->getStelPropertyValue("StarMgr.flagStarsDisplayed").toBool()); + conf->setValue("astro/flag_star_name", propMgr->getStelPropertyValue("StarMgr.flagLabelsDisplayed").toBool()); + conf->setValue("astro/flag_star_additional_names", propMgr->getStelPropertyValue("StarMgr.flagAdditionalNamesDisplayed").toBool()); + conf->setValue("astro/flag_star_designation_usage", propMgr->getStelPropertyValue("StarMgr.flagDesignationLabels").toBool()); conf->setValue("astro/flag_star_designation_dbl", propMgr->getStelPropertyValue("StarMgr.flagDblStarsDesignation").toBool()); conf->setValue("astro/flag_star_designation_var", propMgr->getStelPropertyValue("StarMgr.flagVarStarsDesignation").toBool()); - conf->setValue("astro/flag_star_designation_hip", propMgr->getStelPropertyValue("StarMgr.flagHIPDesignation").toBool()); - conf->setValue("stars/labels_amount", propMgr->getStelPropertyValue("StarMgr.labelsAmount").toDouble()); - conf->setValue("astro/nebula_hints_amount", propMgr->getStelPropertyValue("NebulaMgr.hintsAmount").toDouble()); - conf->setValue("astro/nebula_labels_amount", propMgr->getStelPropertyValue("NebulaMgr.labelsAmount").toDouble()); + conf->setValue("astro/flag_star_designation_hip", propMgr->getStelPropertyValue("StarMgr.flagHIPDesignation").toBool()); + conf->setValue("stars/labels_amount", propMgr->getStelPropertyValue("StarMgr.labelsAmount").toDouble()); + conf->setValue("astro/nebula_hints_amount", propMgr->getStelPropertyValue("NebulaMgr.hintsAmount").toDouble()); + conf->setValue("astro/nebula_labels_amount", propMgr->getStelPropertyValue("NebulaMgr.labelsAmount").toDouble()); conf->setValue("astro/flag_nebula_hints_proportional", propMgr->getStelPropertyValue("NebulaMgr.hintsProportional").toBool()); conf->setValue("astro/flag_surface_brightness_usage", propMgr->getStelPropertyValue("NebulaMgr.flagSurfaceBrightnessUsage").toBool()); - conf->setValue("gui/flag_surface_brightness_arcsec", propMgr->getStelPropertyValue("NebulaMgr.flagSurfaceBrightnessArcsecUsage").toBool()); - conf->setValue("gui/flag_surface_brightness_short", propMgr->getStelPropertyValue("NebulaMgr.flagSurfaceBrightnessShortNotationUsage").toBool()); - conf->setValue("astro/flag_dso_designation_usage", propMgr->getStelPropertyValue("NebulaMgr.flagDesignationLabels").toBool()); - conf->setValue("astro/flag_dso_outlines_usage", propMgr->getStelPropertyValue("NebulaMgr.flagOutlinesDisplayed").toBool()); - conf->setValue("astro/flag_dso_additional_names", propMgr->getStelPropertyValue("NebulaMgr.flagAdditionalNamesDisplayed").toBool()); - conf->setValue("astro/flag_nebula_name", propMgr->getStelPropertyValue("NebulaMgr.flagHintDisplayed").toBool()); - conf->setValue("astro/flag_use_type_filter", propMgr->getStelPropertyValue("NebulaMgr.flagTypeFiltersUsage").toBool()); + conf->setValue("gui/flag_surface_brightness_arcsec", propMgr->getStelPropertyValue("NebulaMgr.flagSurfaceBrightnessArcsecUsage").toBool()); + conf->setValue("gui/flag_surface_brightness_short", propMgr->getStelPropertyValue("NebulaMgr.flagSurfaceBrightnessShortNotationUsage").toBool()); + conf->setValue("astro/flag_dso_designation_usage", propMgr->getStelPropertyValue("NebulaMgr.flagDesignationLabels").toBool()); + conf->setValue("astro/flag_dso_outlines_usage", propMgr->getStelPropertyValue("NebulaMgr.flagOutlinesDisplayed").toBool()); + conf->setValue("astro/flag_dso_additional_names", propMgr->getStelPropertyValue("NebulaMgr.flagAdditionalNamesDisplayed").toBool()); + conf->setValue("astro/flag_nebula_name", propMgr->getStelPropertyValue("NebulaMgr.flagHintDisplayed").toBool()); + conf->setValue("astro/flag_use_type_filter", propMgr->getStelPropertyValue("NebulaMgr.flagTypeFiltersUsage").toBool()); conf->setValue("astro/flag_nebula_display_no_texture", !propMgr->getStelPropertyValue("StelSkyLayerMgr.flagShow").toBool() ); - conf->setValue("astro/flag_size_limits_usage", propMgr->getStelPropertyValue("NebulaMgr.flagUseSizeLimits").toBool()); - conf->setValue("astro/size_limit_min", QString::number(propMgr->getStelPropertyValue("NebulaMgr.minSizeLimit").toDouble(), 'f', 0)); - conf->setValue("astro/size_limit_max", QString::number(propMgr->getStelPropertyValue("NebulaMgr.maxSizeLimit").toDouble(), 'f', 0)); + conf->setValue("astro/flag_size_limits_usage", propMgr->getStelPropertyValue("NebulaMgr.flagUseSizeLimits").toBool()); + conf->setValue("astro/size_limit_min", QString::number(propMgr->getStelPropertyValue("NebulaMgr.minSizeLimit").toDouble(), 'f', 2)); + conf->setValue("astro/size_limit_max", QString::number(propMgr->getStelPropertyValue("NebulaMgr.maxSizeLimit").toDouble(), 'f', 2)); - conf->setValue("projection/type", core->getCurrentProjectionTypeKey()); - conf->setValue("astro/flag_nutation", core->getUseNutation()); - conf->setValue("astro/flag_aberration", core->getUseAberration()); - conf->setValue("astro/aberration_factor", core->getAberrationFactor()); + conf->setValue("projection/type", core->getCurrentProjectionTypeKey()); + conf->setValue("astro/flag_nutation", core->getUseNutation()); + conf->setValue("astro/flag_aberration", core->getUseAberration()); + conf->setValue("astro/aberration_factor", core->getAberrationFactor()); conf->setValue("astro/flag_topocentric_coordinates", core->getUseTopocentricCoordinates()); // view dialog / DSO tag settings diff --git a/src/gui/viewDialog.ui b/src/gui/viewDialog.ui index a6a01adfae..fed280ff75 100644 --- a/src/gui/viewDialog.ui +++ b/src/gui/viewDialog.ui @@ -2585,7 +2585,7 @@ <string/> </property> <property name="text"> - <string>Limit angular size (arcmin):</string> + <string>Limit angular size:</string> </property> </widget> </item> @@ -2616,11 +2616,14 @@ <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> + <property name="suffix"> + <string notr="true">'</string> + </property> <property name="decimals"> - <number>0</number> + <number>2</number> </property> <property name="minimum"> - <double>1.000000000000000</double> + <double>0.010000000000000</double> </property> <property name="maximum"> <double>1200.000000000000000</double> @@ -2651,11 +2654,14 @@ <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> + <property name="suffix"> + <string notr="true">'</string> + </property> <property name="decimals"> - <number>0</number> + <number>2</number> </property> <property name="minimum"> - <double>1.000000000000000</double> + <double>0.010000000000000</double> </property> <property name="maximum"> <double>600.000000000000000</double> |