<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 7, 2017 at 9:37 AM, Richard Duivenvoorde <span dir="ltr"><<a href="mailto:richard@duif.net" target="_blank">richard@duif.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Ale,<br>
<br>
yep agreed! And now (while most users do not have real 3.0 configs/settings) is the only time to do this...<br>
as people will loose all connections etc etc<br>
<br>
I would even be ok, to use python style names, so no capitals and use of underscores:<br>
<br>
/BetterAttributeTable/geometry<br>
becomes<br>
better_attribute_table/geometr<wbr>y<br>
<br>
etc etc<br>
<br>
Let's clean up :-)<br>
<br>
Regards,<br>
<br>
Richard<div><div class="h5"><br></div></div></blockquote><div><br><br></div><div>Hi Richard, <br><br></div><div>thanks for the feed-back, the original plan was to have all setting keys case-insensitive  (lowercase) but that was reverted yesterday, because some setting keys have been used to store values (i.e. strings) as a part of the key, like for example the name of a WMS/WFS or plugin site description.<br><br></div><div>I'm afraid we are forced to live with that.<br><br></div><div>BTW, the new QgsSettings class supports namespaced settings, we have "gui", "core", "server", "plugins", "misc", so we should be able to organize the setting keys in a more logical manner.<br><br><br><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
On 2017-03-06 11:05, Alessandro Pasotti wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
the current keys naming for the settings is not very consistent, what<br>
do you guys think about cleaning it a bit?<br>
<br>
I was thinking at:<br>
<br>
1. adding an 'app' section to QgsSettings::Section enum, to store<br>
namespaced settings for the application<br>
2. remove the '/' at the beginning of the keys (it's completely<br>
unuseful)<br>
3. enforce namespacing with the use of Sections on all keys used in<br>
the '/src/*' folders<br>
<br>
This is a quick grep|sort|uniq of the setting keys:<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/defaultSnapGridOffse<wbr>tX<br>
/Composer/defaultSnapGridOffse<wbr>tY<br>
/Composer/defaultSnapGridResol<wbr>ution<br>
/Composer/defaultSnapTolerance<wbr>Pixels<br>
/Composer/geometry<br>
composer/searchPathsForTemplat<wbr>es<br>
/ComposerUI/state<br>
CptCity/archiveName<br>
CptCity/baseDir<br>
crs<br>
database<br>
/dataitem/directoryHiddenColum<wbr>ns<br>
/Db2/connections/selected<br>
dboptions<br>
dbworkspace<br>
Digitizing<br>
/digitizing/simplify_tolerance<br>
/digitizing/simplify_tolerance<wbr>_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/crsTrans<wbr>form<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/customDi<wbr>r<br>
/GRASS/modules/debug<br>
/GRASS/newMapsetWizard/openMap<wbr>set<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/lastcomp<wbr>ression<br>
/Plugin-GeoReferencer/lastPDFR<wbr>eportDir<br>
/Plugin-GeoReferencer/lastresa<wbr>mpling<br>
/Plugin-GeoReferencer/lasttran<wbr>sformation<br>
/Plugin-GeoReferencer/loadinqg<wbr>is<br>
/Plugin-GeoReferencer/targetsr<wbr>s<br>
/Plugin-GeoReferencer/Transfor<wbr>mSettingsWindow/geometry<br>
/Plugin-Georeferencer/user_spe<wbr>cified_resolution<br>
/Plugin-GeoReferencer/user_spe<wbr>cified_resx<br>
/Plugin-GeoReferencer/user_spe<wbr>cified_resy<br>
/Plugin-Georeferencer/word_fil<wbr>e_checkbox<br>
/Plugin-GeoReferencer/zeroastr<wbr>ans<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_<wbr>data_path<br>
plugins/searchPathsForPlugins<br>
port<br>
/PostgreSQL/connections/select<wbr>ed<br>
previewImage<br>
/Projections/defaultBehavior<br>
/Projections/layerDefaultCrs<br>
/Projections/otfTransformEnabl<wbr>ed<br>
/Projections/projectDefaultCrs<br>
/Projections/showDatumTransfor<wbr>mDialog<br>
proxy/proxyEnabled<br>
proxy/proxyExcludedUrls<br>
proxy/proxyHost<br>
proxy/proxyPassword<br>
proxy/proxyPort<br>
proxy/proxyType<br>
proxy/proxyUser<br>
pythonConsole/fontfamilytextEd<wbr>itor<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_blu<wbr>e<br>
/qgis/default_canvas_color_gre<wbr>en<br>
/qgis/default_canvas_color_red<br>
/qgis/default_measure_color_bl<wbr>ue<br>
/qgis/default_measure_color_gr<wbr>een<br>
/qgis/default_measure_color_re<wbr>d<br>
/qgis/default_selection_color_<wbr>alpha<br>
/qgis/default_selection_color_<wbr>blue<br>
/qgis/default_selection_color_<wbr>green<br>
/qgis/default_selection_color_<wbr>red<br>
/qgis/digitizing/default_snap_<wbr>enabled<br>
/qgis/digitizing/default_snap_<wbr>mode<br>
/qgis/digitizing/default_snapp<wbr>ing_tolerance<br>
/qgis/digitizing/default_snapp<wbr>ing_tolerance_unit<br>
/qgis/digitizing/disable_enter<wbr>_attribute_values_dialog<br>
/qgis/digitizing/fill_color_al<wbr>pha<br>
/qgis/digitizing/fill_color_bl<wbr>ue<br>
/qgis/digitizing/fill_color_gr<wbr>een<br>
/qgis/digitizing/fill_color_re<wbr>d<br>
/qgis/digitizing/line_color_al<wbr>pha<br>
/qgis/digitizing/line_color_al<wbr>pha_scale<br>
/qgis/digitizing/line_color_bl<wbr>ue<br>
/qgis/digitizing/line_color_gr<wbr>een<br>
/qgis/digitizing/line_color_re<wbr>d<br>
/qgis/digitizing/line_ghost<br>
/qgis/digitizing/line_width<br>
/qgis/digitizing/marker_only_f<wbr>or_selected<br>
/qgis/digitizing/marker_size<br>
/qgis/digitizing/marker_style<br>
/qgis/digitizing/reuseLastValu<wbr>es<br>
/qgis/digitizing/search_radius<wbr>_vertex_edit<br>
/qgis/digitizing/search_radius<wbr>_vertex_edit_unit<br>
/qgis/digitizing/validate_geom<wbr>etries<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/segmentationToleranceTyp<wbr>e<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/updateStyleT<wbr>oMinMax<br>
/Raster/histogram/zoomToMinMax<br>
referer<br>
savePassword<br>
saveUsername<br>
service<br>
smoothPixmapTransform<br>
/SpatiaLite/connections/%1/sql<wbr>itepath<br>
/SpatiaLite/connections/select<wbr>ed<br>
SpatialQuery/geometry<br>
sslmode<br>
/StatisticalSummaryDock/checke<wbr>d_%1<br>
/StatisticalSummaryDock/checke<wbr>d_missing_values<br>
style/lastStyleDir<br>
svg/searchPathsForSVG<br>
/Themes<br>
title<br>
/UI/annotationTool<br>
UI/autoApplyStyling<br>
/UI/ComposerManager/templatePa<wbr>th<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/lastAuthImportBundleOpenFil<wbr>eDir<br>
UI/lastAuthImportCertOpenFileD<wbr>ir<br>
UI/lastAuthImportSslOpenFileDi<wbr>r<br>
UI/lastAuthOpenFileDir<br>
/UI/lastComposerTemplateDir<br>
UI/lastComposerTemplateDir<br>
/UI/lastExternalResourceWidget<wbr>DefaultPath<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_p<wbr>rovided<br>
/Windows/AttributeSelectionDia<wbr>log/geometry<br>
/Windows/BetterAttributeTable/<wbr>geometry<br>
/Windows/Bookmarks/geometry<br>
/Windows/Bookmarks/headerstate<br>
/Windows/Bookmarks/LastUsedDir<wbr>ectory<br>
/Windows/ChangeLabelProps/geom<wbr>etry<br>
/Windows/ColorDialog/activeCom<wbr>ponent<br>
/Windows/ColorDialog/activeSch<wbr>eme<br>
/Windows/ColorDialog/activeTab<br>
/Windows/ColorDialog/customCol<wbr>or1<br>
/Windows/ColorDialog/customCol<wbr>or10<br>
/Windows/ColorDialog/customCol<wbr>or11<br>
/Windows/ColorDialog/customCol<wbr>or12<br>
/Windows/ColorDialog/customCol<wbr>or13<br>
/Windows/ColorDialog/customCol<wbr>or14<br>
/Windows/ColorDialog/customCol<wbr>or15<br>
/Windows/ColorDialog/customCol<wbr>or16<br>
/Windows/ColorDialog/customCol<wbr>or2<br>
/Windows/ColorDialog/customCol<wbr>or3<br>
/Windows/ColorDialog/customCol<wbr>or4<br>
/Windows/ColorDialog/customCol<wbr>or5<br>
/Windows/ColorDialog/customCol<wbr>or6<br>
/Windows/ColorDialog/customCol<wbr>or7<br>
/Windows/ColorDialog/customCol<wbr>or8<br>
/Windows/ColorDialog/customCol<wbr>or9<br>
/Windows/ColorDialog/geometry<br>
/Windows/ColorDialog/sampleRad<wbr>ius<br>
/Windows/ComposerImageExportOp<wbr>tionsDialog/geometry<br>
/Windows/ComposerManager/geome<wbr>try<br>
/Windows/ComposerTableBackgrou<wbr>ndColorsDialog/geometry<br>
/Windows/CptCityColorRampV2Dia<wbr>log/geometry<br>
/Windows/CptCityColorRampV2Dia<wbr>log/splitter<br>
/Windows/CustomProjection/geom<wbr>etry<br>
/Windows/DatumTransformDialog/<wbr>columnWidths/%1<br>
/Windows/DatumTransformDialog/<wbr>geometry<br>
/Windows/DatumTransformDialog/<wbr>hideDeprecated<br>
/Windows/DatumTransformDialog/<wbr>rememberSelection<br>
/Windows/Db2SourceSelect/colum<wbr>nWidths/%1<br>
/Windows/Db2SourceSelect/geome<wbr>try<br>
/Windows/Db2SourceSelect/HoldD<wbr>ialogOpen<br>
/Windows/DecorationCopyright/g<wbr>eometry<br>
/Windows/DecorationNorthArrow/<wbr>geometry<br>
/Windows/DecorationScaleBar/ge<wbr>ometry<br>
/Windows/Diagrams/OptionsSplit<wbr>State<br>
/Windows/Diagrams/Tab<br>
/Windows/EmbedLayer/geometry<br>
/Windows/ExpressionBuilderDial<wbr>og/geometry<br>
/Windows/ExpressionSelectionDi<wbr>alog/geometry<br>
/Windows/GradientEditor/geomet<wbr>ry<br>
/Windows/Labeling/FontPreviewS<wbr>plitState<br>
/Windows/Labeling/OptionsSplit<wbr>State<br>
/Windows/Labeling/Tab<br>
/Windows/loadStyleFromDb/geome<wbr>try<br>
/Windows/Measure/geometry<br>
/Windows/Measure/h<br>
/Windows/Measure/hNoTable<br>
/Windows/MergeAttributes/geome<wbr>try<br>
/Windows/MessageViewer/geometr<wbr>y<br>
/Windows/MSSQLSourceSelect/col<wbr>umnWidths/%1<br>
/Windows/MSSQLSourceSelect/geo<wbr>metry<br>
/Windows/MSSQLSourceSelect/Hol<wbr>dDialogOpen<br>
/Windows/NewGeoPackageLayer/ge<wbr>ometry<br>
/Windows/NewMemoryLayer/geomet<wbr>ry<br>
/Windows/NewSpatiaLiteLayer/ge<wbr>ometry<br>
/Windows/NewVectorLayer/geomet<wbr>ry<br>
/Windows/OGRDatabaseConnection<wbr>/geometry<br>
/Windows/OpenVectorLayer/geome<wbr>try<br>
/Windows/PgSourceSelect/column<wbr>Widths/%1<br>
/Windows/PgSourceSelect/geomet<wbr>ry<br>
/Windows/PgSourceSelect/HoldDi<wbr>alogOpen<br>
/Windows/PluginManager/secondS<wbr>plitterState<br>
/Windows/ProjectionSelector/ge<wbr>ometry<br>
/Windows/QgsAttributeTypeDialo<wbr>g/geometry<br>
/Windows/QgsDelAttrDialog/geom<wbr>etry<br>
/Windows/QgsExpressionBuilderW<wbr>idget/editorsplitter<br>
/Windows/QgsExpressionBuilderW<wbr>idget/functionsplitter<br>
/Windows/QgsExpressionBuilderW<wbr>idget/splitter<br>
/Windows/QgsFieldCalculator/ge<wbr>ometry<br>
/Windows/QgsGrassNewMapset/geo<wbr>metry<br>
/Windows/QgsOrganizeTableColum<wbr>nsDialog/geometry<br>
/Windows/QgsRendererRulePropsD<wbr>ialog/geometry<br>
/Windows/QueryBuilder/geometry<br>
/Windows/RasterCalc/geometry<br>
/Windows/saveStyleToDb/geometr<wbr>y<br>
/Windows/SelectByForm/geometry<br>
/Windows/ShortcutsDialog/geome<wbr>try<br>
/Windows/SourceSelectDialog/ge<wbr>ometry<br>
/Windows/SourceSelectDialog/Us<wbr>eTitleLayerName<br>
/Windows/SpatiaLiteSourceSelec<wbr>t/geometry<br>
/Windows/SpatiaLiteSourceSelec<wbr>t/HoldDialogOpen<br>
/Windows/StyleV2Manager/geomet<wbr>ry<br>
/Windows/StyleV2Manager/splitt<wbr>er<br>
/Windows/SvgSelectorDialog/geo<wbr>metry<br>
/Windows/SvgSelectorWidget/Rel<wbr>ativePath<br>
/Windows/symbolLevelsDlg/geome<wbr>try<br>
/Windows/SymbolSelectorWidget/<wbr>geometry<br>
/Windows/TextFormatDialog/geom<wbr>etry<br>
/Windows/VectorLayerSaveAs/geo<wbr>metry<br>
/Windows/WFSSourceSelect/Featu<wbr>reCurrentViewExtent<br>
/Windows/WFSSourceSelect/geome<wbr>try<br>
/Windows/WFSSourceSelect/HoldD<wbr>ialogOpen<br>
/Windows/WFSSourceSelect/UseTi<wbr>tleLayerName<br>
/Windows/WMSSourceSelect/geome<wbr>try<br>
/Windows/WMTSDimensions/geomet<wbr>ry<br>
zmax<br>
zmin<br>
<br>
--<br>
Alessandro Pasotti<br></div></div>
w3:   <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a> [1]<br>
<br>
Links:<br>
------<br>
[1] <a href="http://www.itopen.it" rel="noreferrer" target="_blank">http://www.itopen.it</a><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>