<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>the current keys naming for the settings is not very consistent, what do you guys think about cleaning it a bit?<br><br></div>I was thinking at:<br><br></div>1. adding an 'app' section to QgsSettings::Section enum, to store namespaced settings for the application<br></div>2. remove the '/' at the beginning of the keys (it's completely unuseful)<br></div>3. enforce namespacing with the use of Sections on all keys used in the '/src/*' folders<br><br></div>This is a quick grep|sort|uniq of the setting keys:<br><div><div><div><div><div><div><br><br>allowGeometrylessTables<br>/BetterAttributeTable/geometry<br>/browser/favourites<br>/browser/hiddenPaths<br>cache/directory<br>cache/size<br>/colors/palettecolors<br>/colors/palettelabels<br>/colors/recent<br>/ColorWidgets/textWidgetFormat<br>/Composer/defaultFont<br>/Composer/defaultSnapGridOffsetX<br>/Composer/defaultSnapGridOffsetY<br>/Composer/defaultSnapGridResolution<br>/Composer/defaultSnapTolerancePixels<br>/Composer/geometry<br>composer/searchPathsForTemplates<br>/ComposerUI/state<br>CptCity/archiveName<br>CptCity/baseDir<br>crs<br>database<br>/dataitem/directoryHiddenColumns<br>/Db2/connections/selected<br>dboptions<br>dbworkspace<br>Digitizing<br>/digitizing/simplify_tolerance<br>/digitizing/simplify_tolerance_units<br>dpiMode<br>/Error/dialog/detail<br>estimatedMetadata<br>/eVis/browser-geometry<br>/eVis/db-geometry<br>fontFamily<br>/fontFamily<br>fontPointSize<br>/fontPointSize<br>geometryColumnsOnly<br>/gps/lastPort<br>/GradientEditor/plotAlpha<br>/GradientEditor/plotHue<br>/GradientEditor/plotLightness<br>/GradientEditor/plotSaturation<br>/GRASS/browser/import/crsTransform<br>/GRASS/browser/import/external<br>/GRASS/gidbase/custom<br>/GRASS/gidbase/customDir<br>/GRASS/lastDirectOutputDir<br>/GRASS/lastGisdbase<br>/GRASS/lastLocation<br>/GRASS/lastMapset<br>/GRASS/modules/config/custom<br>/GRASS/modules/config/customDir<br>/GRASS/modules/debug<br>/GRASS/newMapsetWizard/openMapset<br>/GRASS/region/color<br>/GRASS/region/on<br>/GRASS/region/width<br>/GRASS/showTopoLayers<br>/GRASS/windows/tools/geometry<br>groupBoxCustom<br>help/helpSearchPath<br>/HelpViewer/geometry<br>/HistogramWidget/showMean<br>/HistogramWidget/showStdev<br>host<br>iconSize<br>/IconSize<br>ignoreAxisOrientation<br>ignoreGetFeatureInfoURI<br>ignoreGetMapURI<br>invertAxisOrientation<br>lastColorMapDir<br>locale<br>locale/overrideFlag<br>locale/userLocale<br>/Map/highlight/buffer<br>/Map/highlight/color<br>/Map/highlight/colorAlpha<br>/Map/highlight/minWidth<br>/Map/identifyMode<br>/Map/logCanvasRefreshEvent<br>Map/scales<br>/Map/searchRadiusMM<br>/MSSQL/connections/selected<br>/ogr/connections/selectedtype<br>/osm/lastDir<br>password<br>path<br>/Plugin-GeoReferencer/lastcompression<br>/Plugin-GeoReferencer/lastPDFReportDir<br>/Plugin-GeoReferencer/lastresampling<br>/Plugin-GeoReferencer/lasttransformation<br>/Plugin-GeoReferencer/loadinqgis<br>/Plugin-GeoReferencer/targetsrs<br>/Plugin-GeoReferencer/TransformSettingsWindow/geometry<br>/Plugin-Georeferencer/user_specified_resolution<br>/Plugin-GeoReferencer/user_specified_resx<br>/Plugin-GeoReferencer/user_specified_resy<br>/Plugin-Georeferencer/word_file_checkbox<br>/Plugin-GeoReferencer/zeroastrans<br>/Plugin-GPS/devicelist<br>/Plugin-GPS/geometry<br>/Plugin-GPS/gpsbabelpath<br>/Plugin-GPS/gpxdirectory<br>/Plugin-GPS/importdirectory<br>/Plugin-GPS/lastdldevice<br>/Plugin-GPS/lastdlport<br>/Plugin-GPS/lastImportFilter<br>/Plugin-GPS/lastTab<br>/Plugin-GPS/lastuldevice<br>/Plugin-GPS/lastulport<br>Plugin-OfflineEditing/geometry<br>Plugin-OfflineEditing/offline_data_path<br>plugins/searchPathsForPlugins<br>port<br>/PostgreSQL/connections/selected<br>previewImage<br>/Projections/defaultBehavior<br>/Projections/layerDefaultCrs<br>/Projections/otfTransformEnabled<br>/Projections/projectDefaultCrs<br>/Projections/showDatumTransformDialog<br>proxy/proxyEnabled<br>proxy/proxyExcludedUrls<br>proxy/proxyHost<br>proxy/proxyPassword<br>proxy/proxyPort<br>proxy/proxyType<br>proxy/proxyUser<br>pythonConsole/fontfamilytextEditor<br>pythonConsole/fontsizeEditor<br>/qgis/addDb2DC<br>/qgis/addMSSQLDC<br>/qgis/addPostgisDC<br>qgis/askToSaveProjectChanges<br>/qgis/attributeTableBehavior<br>/qgis/attributeTableLastView<br>/qgis/attributeTableRowCache<br>/qgis/attributeTableView<br>/qgis/capitalizeLayerName<br>/qgis/checkVersion<br>/Qgis/connections-wms/selected<br>/qgis/copyFeatureFormat<br>/qgis/copyGeometryAsWKT<br>/qgis/default_canvas_color_blue<br>/qgis/default_canvas_color_green<br>/qgis/default_canvas_color_red<br>/qgis/default_measure_color_blue<br>/qgis/default_measure_color_green<br>/qgis/default_measure_color_red<br>/qgis/default_selection_color_alpha<br>/qgis/default_selection_color_blue<br>/qgis/default_selection_color_green<br>/qgis/default_selection_color_red<br>/qgis/digitizing/default_snap_enabled<br>/qgis/digitizing/default_snap_mode<br>/qgis/digitizing/default_snapping_tolerance<br>/qgis/digitizing/default_snapping_tolerance_unit<br>/qgis/digitizing/disable_enter_attribute_values_dialog<br>/qgis/digitizing/fill_color_alpha<br>/qgis/digitizing/fill_color_blue<br>/qgis/digitizing/fill_color_green<br>/qgis/digitizing/fill_color_red<br>/qgis/digitizing/line_color_alpha<br>/qgis/digitizing/line_color_alpha_scale<br>/qgis/digitizing/line_color_blue<br>/qgis/digitizing/line_color_green<br>/qgis/digitizing/line_color_red<br>/qgis/digitizing/line_ghost<br>/qgis/digitizing/line_width<br>/qgis/digitizing/marker_only_for_selected<br>/qgis/digitizing/marker_size<br>/qgis/digitizing/marker_style<br>/qgis/digitizing/reuseLastValues<br>/qgis/digitizing/search_radius_vertex_edit<br>/qgis/digitizing/search_radius_vertex_edit_unit<br>/qgis/digitizing/validate_geometries<br>/qgis/dockAttributeTable<br>/qgis/enableMacros<br>/qgis/enableMapTips<br>Qgis/helpQgisHomePageUrl<br>/qgis/ignoreShapeEncoding<br>/qgis/legendDoubleClickAction<br>/qgis/live_color_dialogs<br>/qgis/magnifier_factor_default<br>/qgis/measure/angleunits<br>/qgis/measure/decimalplaces<br>/qgis/measure/displayunits<br>/qgis/measure/keepbaseunit<br>/qgis/messageTimeout<br>/qgis/native_color_dialogs<br>/qgis/new_layers_visible<br>/qgis/newProjectDefault<br>/qgis/overwriteStyle<br>/qgis/projectTemplateDir<br>/qgis/projOpenAtLaunch<br>/qgis/projOpenAtLaunchPath<br>/qgis/projOpenedOKAtLaunch<br>/qgis/promptForRasterSublayers<br>/qgis/promptForSublayers<br>Qgis/QgisApiUrl<br>Qgis/reportaBugUrl<br>/qgis/scanItemsFastScanUris<br>/qgis/scanItemsInBrowser2<br>/qgis/scanZipInBrowser2<br>/qgis/segmentationTolerance<br>/qgis/segmentationToleranceType<br>/qgis/showLegendClassifiers<br>/qgis/showTips%1<br>/qgis/simplifyAlgorithm<br>/qgis/simplifyDrawingHints<br>/qgis/simplifyDrawingTol<br>/qgis/simplifyLocal<br>/qgis/simplifyMaxScale<br>qgis/stylesheet/groupBoxCustom<br>Qgis/supportProvidersUrl<br>/qgis/warnOldProjectVersion<br>/qgis/wheel_action<br>/qgis/WMSSearchUrl<br>/qgis/zoom_factor<br>/Raster/defaultPalette<br>/Raster/histogram/drawLines<br>/Raster/histogram/showMarkers<br>/Raster/histogram/updateStyleToMinMax<br>/Raster/histogram/zoomToMinMax<br>referer<br>savePassword<br>saveUsername<br>service<br>smoothPixmapTransform<br>/SpatiaLite/connections/%1/sqlitepath<br>/SpatiaLite/connections/selected<br>SpatialQuery/geometry<br>sslmode<br>/StatisticalSummaryDock/checked_%1<br>/StatisticalSummaryDock/checked_missing_values<br>style/lastStyleDir<br>svg/searchPathsForSVG<br>/Themes<br>title<br>/UI/annotationTool<br>UI/autoApplyStyling<br>/UI/ComposerManager/templatePath<br>/UI/Customization/enabled<br>/UI/defaultAddDbLayerAction<br>/UI/defaultFeatureService<br>/UI/defaultMapService<br>/UI/defaultMoveTool<br>/UI/defaultNewLayer<br>/UI/defaultPointSymbolAction<br>/UI/encoding<br>/UI/geometry<br>UI/lastAuthImportBundleOpenFileDir<br>UI/lastAuthImportCertOpenFileDir<br>UI/lastAuthImportSslOpenFileDir<br>UI/lastAuthOpenFileDir<br>/UI/lastComposerTemplateDir<br>UI/lastComposerTemplateDir<br>/UI/lastExternalResourceWidgetDefaultPath<br>UI/lastMatchToSymbolsDir<br>/UI/lastProjectDir<br>/UI/lastRasterFileDir<br>/UI/lastSaveAsImageDir<br>/UI/lastSaveAsImageFilter<br>/UI/lastSaveAsSvgFile<br>/UI/lastSpatiaLiteDir<br>/UI/lastSVGMarkerDir<br>/UI/LastUsedDirectory<br>/UI/lastVectorFileFilterDir<br>/UI/lastVectorFormat<br>/UI/measureTool<br>/UI/missingDirectory<br>/UI/recentProjections<br>/UI/recentProjectionsAuthId<br>/UI/recentProjectionsProj4<br>/UI/recentProjectsList<br>/UI/selectTool<br>/UI/state<br>/UI/styleUndoMergeTimeout<br>/UI/tileScaleEnabled<br>UI/UITheme<br>url<br>username<br>userTablesOnly<br>/variables/names<br>/variables/values<br>wfs/max_feature_count_if_not_provided<br>/Windows/AttributeSelectionDialog/geometry<br>/Windows/BetterAttributeTable/geometry<br>/Windows/Bookmarks/geometry<br>/Windows/Bookmarks/headerstate<br>/Windows/Bookmarks/LastUsedDirectory<br>/Windows/ChangeLabelProps/geometry<br>/Windows/ColorDialog/activeComponent<br>/Windows/ColorDialog/activeScheme<br>/Windows/ColorDialog/activeTab<br>/Windows/ColorDialog/customColor1<br>/Windows/ColorDialog/customColor10<br>/Windows/ColorDialog/customColor11<br>/Windows/ColorDialog/customColor12<br>/Windows/ColorDialog/customColor13<br>/Windows/ColorDialog/customColor14<br>/Windows/ColorDialog/customColor15<br>/Windows/ColorDialog/customColor16<br>/Windows/ColorDialog/customColor2<br>/Windows/ColorDialog/customColor3<br>/Windows/ColorDialog/customColor4<br>/Windows/ColorDialog/customColor5<br>/Windows/ColorDialog/customColor6<br>/Windows/ColorDialog/customColor7<br>/Windows/ColorDialog/customColor8<br>/Windows/ColorDialog/customColor9<br>/Windows/ColorDialog/geometry<br>/Windows/ColorDialog/sampleRadius<br>/Windows/ComposerImageExportOptionsDialog/geometry<br>/Windows/ComposerManager/geometry<br>/Windows/ComposerTableBackgroundColorsDialog/geometry<br>/Windows/CptCityColorRampV2Dialog/geometry<br>/Windows/CptCityColorRampV2Dialog/splitter<br>/Windows/CustomProjection/geometry<br>/Windows/DatumTransformDialog/columnWidths/%1<br>/Windows/DatumTransformDialog/geometry<br>/Windows/DatumTransformDialog/hideDeprecated<br>/Windows/DatumTransformDialog/rememberSelection<br>/Windows/Db2SourceSelect/columnWidths/%1<br>/Windows/Db2SourceSelect/geometry<br>/Windows/Db2SourceSelect/HoldDialogOpen<br>/Windows/DecorationCopyright/geometry<br>/Windows/DecorationNorthArrow/geometry<br>/Windows/DecorationScaleBar/geometry<br>/Windows/Diagrams/OptionsSplitState<br>/Windows/Diagrams/Tab<br>/Windows/EmbedLayer/geometry<br>/Windows/ExpressionBuilderDialog/geometry<br>/Windows/ExpressionSelectionDialog/geometry<br>/Windows/GradientEditor/geometry<br>/Windows/Labeling/FontPreviewSplitState<br>/Windows/Labeling/OptionsSplitState<br>/Windows/Labeling/Tab<br>/Windows/loadStyleFromDb/geometry<br>/Windows/Measure/geometry<br>/Windows/Measure/h<br>/Windows/Measure/hNoTable<br>/Windows/MergeAttributes/geometry<br>/Windows/MessageViewer/geometry<br>/Windows/MSSQLSourceSelect/columnWidths/%1<br>/Windows/MSSQLSourceSelect/geometry<br>/Windows/MSSQLSourceSelect/HoldDialogOpen<br>/Windows/NewGeoPackageLayer/geometry<br>/Windows/NewMemoryLayer/geometry<br>/Windows/NewSpatiaLiteLayer/geometry<br>/Windows/NewVectorLayer/geometry<br>/Windows/OGRDatabaseConnection/geometry<br>/Windows/OpenVectorLayer/geometry<br>/Windows/PgSourceSelect/columnWidths/%1<br>/Windows/PgSourceSelect/geometry<br>/Windows/PgSourceSelect/HoldDialogOpen<br>/Windows/PluginManager/secondSplitterState<br>/Windows/ProjectionSelector/geometry<br>/Windows/QgsAttributeTypeDialog/geometry<br>/Windows/QgsDelAttrDialog/geometry<br>/Windows/QgsExpressionBuilderWidget/editorsplitter<br>/Windows/QgsExpressionBuilderWidget/functionsplitter<br>/Windows/QgsExpressionBuilderWidget/splitter<br>/Windows/QgsFieldCalculator/geometry<br>/Windows/QgsGrassNewMapset/geometry<br>/Windows/QgsOrganizeTableColumnsDialog/geometry<br>/Windows/QgsRendererRulePropsDialog/geometry<br>/Windows/QueryBuilder/geometry<br>/Windows/RasterCalc/geometry<br>/Windows/saveStyleToDb/geometry<br>/Windows/SelectByForm/geometry<br>/Windows/ShortcutsDialog/geometry<br>/Windows/SourceSelectDialog/geometry<br>/Windows/SourceSelectDialog/UseTitleLayerName<br>/Windows/SpatiaLiteSourceSelect/geometry<br>/Windows/SpatiaLiteSourceSelect/HoldDialogOpen<br>/Windows/StyleV2Manager/geometry<br>/Windows/StyleV2Manager/splitter<br>/Windows/SvgSelectorDialog/geometry<br>/Windows/SvgSelectorWidget/RelativePath<br>/Windows/symbolLevelsDlg/geometry<br>/Windows/SymbolSelectorWidget/geometry<br>/Windows/TextFormatDialog/geometry<br>/Windows/VectorLayerSaveAs/geometry<br>/Windows/WFSSourceSelect/FeatureCurrentViewExtent<br>/Windows/WFSSourceSelect/geometry<br>/Windows/WFSSourceSelect/HoldDialogOpen<br>/Windows/WFSSourceSelect/UseTitleLayerName<br>/Windows/WMSSourceSelect/geometry<br>/Windows/WMTSDimensions/geometry<br>zmax<br>zmin<br clear="all"><div><div><div><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div></div></div></div></div></div></div></div></div>