diff --git a/src/app/options/qgsoptions.cpp b/src/app/options/qgsoptions.cpp index 70932cb11c7a..bacdc2977fc8 100644 --- a/src/app/options/qgsoptions.cpp +++ b/src/app/options/qgsoptions.cpp @@ -1160,6 +1160,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QListsetClearValue( 5.0 ); mTracingConvertToCurveCheckBox->setChecked( mSettings->value( QStringLiteral( "/qgis/digitizing/convert_to_curve" ), false ).toBool() ); + mTracingCustomAngleToleranceSpinBox->setValue( mSettings->value( QStringLiteral( "/qgis/digitizing/convert_to_curve_angle_tolerance" ), 1e-6 ).toDouble() ); + mTracingCustomAngleToleranceSpinBox->setClearValue( 1e-6 ); + mTracingCustomDistanceToleranceSpinBox->setValue( mSettings->value( QStringLiteral( "/qgis/digitizing/convert_to_curve_distance_tolerance" ), 1e-6 ).toDouble() ); + mTracingCustomDistanceToleranceSpinBox->setClearValue( 1e-6 ); // load gdal driver list only when gdal tab is first opened mLoadedGdalDriverList = false; @@ -1782,6 +1786,8 @@ void QgsOptions::saveOptions() mSettings->setValue( QStringLiteral( "/qgis/digitizing/offset_miter_limit" ), mCurveOffsetMiterLimitComboBox->value() ); mSettings->setValue( QStringLiteral( "/qgis/digitizing/convert_to_curve" ), mTracingConvertToCurveCheckBox->isChecked() ); + mSettings->setValue( QStringLiteral( "/qgis/digitizing/convert_to_curve_angle_tolerance" ), mTracingCustomAngleToleranceSpinBox->value() ); + mSettings->setValue( QStringLiteral( "/qgis/digitizing/convert_to_curve_distance_tolerance" ), mTracingCustomDistanceToleranceSpinBox->value() ); // default scale list QString myPaths; diff --git a/src/ui/qgsoptionsbase.ui b/src/ui/qgsoptionsbase.ui index a3c1fef14bce..90c4d0a645bc 100644 --- a/src/ui/qgsoptionsbase.ui +++ b/src/ui/qgsoptionsbase.ui @@ -7,7 +7,7 @@ 0 0 1029 - 730 + 744 @@ -332,7 +332,7 @@ - 0 + 9 @@ -361,8 +361,8 @@ 0 0 - 843 - 1019 + 846 + 743 @@ -1133,8 +1133,8 @@ 0 0 - 843 - 1084 + 846 + 940 @@ -1672,8 +1672,8 @@ 0 0 - 857 - 679 + 861 + 691 @@ -1864,8 +1864,8 @@ 0 0 - 857 - 679 + 861 + 691 @@ -1947,8 +1947,8 @@ 0 0 - 843 - 804 + 861 + 691 @@ -2356,8 +2356,8 @@ 0 0 - 843 - 1198 + 846 + 844 @@ -3161,8 +3161,8 @@ 0 0 - 857 - 679 + 861 + 691 @@ -3371,15 +3371,15 @@ + + dpi + 0 1000000 - - dpi - @@ -3417,6 +3417,9 @@ 0 + + + mm @@ -3424,20 +3427,17 @@ 2 - 999.00 + 999.000000000000000 0.200000000000000 - 0.10 + 0.100000000000000 true - - - @@ -3475,6 +3475,9 @@ 0 + + + mm @@ -3482,20 +3485,17 @@ 2 - 999.00 + 999.000000000000000 0.200000000000000 - 20.00 + 20.000000000000000 true - - - @@ -3540,15 +3540,15 @@ - - ms - + + ms + 0 @@ -3606,8 +3606,8 @@ 0 0 - 843 - 709 + 861 + 691 @@ -4123,8 +4123,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 857 - 679 + 861 + 691 @@ -4303,8 +4303,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 843 - 956 + 846 + 714 @@ -4888,6 +4888,46 @@ The bigger the number, the faster zooming with the mouse wheel will be. + + + + Angle tolerance when tracing curves + + + + + + + Distance tolerance when tracing curves + + + + + + + This specifies the maximum angular deviation (in radians) allowed for a series of points to be converted to a curve. + + + 10 + + + 9999.000000000000000 + + + + + + + This specifies the maximum deviation allowed between the original location of vertices and where they would fall on the candidate curved geometry for a series of points to be converted to a curve. + + + 10 + + + 9999.000000000000000 + + + @@ -4937,8 +4977,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 857 - 679 + 861 + 691 @@ -5218,8 +5258,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 857 - 679 + 861 + 691 @@ -5490,8 +5530,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 843 - 699 + 437 + 513 @@ -5971,7 +6011,7 @@ The bigger the number, the faster zooming with the mouse wheel will be. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Fira Sans'; font-size:11pt; font-weight:400; font-style:normal;"> +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.14286pt; font-weight:400; font-style:normal;"> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Noto Sans'; font-size:10pt;"><br /></p></body></html> @@ -6337,6 +6377,8 @@ p, li { white-space: pre-wrap; } mOffsetQuadSegSpinBox mCurveOffsetMiterLimitComboBox mTracingConvertToCurveCheckBox + mTracingCustomAngleToleranceSpinBox + mTracingCustomDistanceToleranceSpinBox mOptionsScrollArea_12 mComposerFontComboBox mGridStyleComboBox