Skip to content
Permalink
Browse files
Removed setting entries from the python api
  • Loading branch information
domi4484 committed Apr 29, 2021
1 parent 221d9f7 commit 810af987d3f6baa4fa54feaba379783789ca76f0
@@ -614,7 +614,6 @@ should be canceled.
.. versionadded:: 3.10
%End

const QgsSettingsEntryStringList settingsSearchPathForTemplates;

public slots:

@@ -141,9 +141,6 @@ This list is updated when preparing the search
.. versionadded:: 3.16
%End

const QgsSettingsEntryBool settingsLocatorFilterEnabled;
const QgsSettingsEntryBool settingsLocatorFilterDefault;
const QgsSettingsEntryString settingsLocatorFilterPrefix;

signals:

@@ -343,7 +343,6 @@ Forwards an external browser login closure request to the authentication handler
.. versionadded:: 3.20
%End

const QgsSettingsEntryInteger settingsNetworkTimeout;


signals:
@@ -93,10 +93,6 @@ Returns the authentication configuration for the parser.
Returns the settings key used for a feed with the given ``baseUrl``.
%End

const QgsSettingsEntryInteger settingsFeedLastFetchTime;
const QgsSettingsEntryString settingsFeedLanguage;
const QgsSettingsEntryDouble settingsFeedLatitude;
const QgsSettingsEntryDouble settingsFeedLongitude;

public slots:

@@ -53,10 +53,6 @@ Converts a source ``type`` to a string representation.

static const QString TEMPORARY_OUTPUT;

const QgsSettingsEntryBool settingsPreferFilenameAsLayerName;
const QgsSettingsEntryString settingsTempPath;
const QgsSettingsEntryInteger settingsDefaultOutputVectorLayerExt;
const QgsSettingsEntryInteger settingsDefaultOutputRasterLayerExt;
};

/************************************************************************
@@ -1003,11 +1003,6 @@ Emits the signal to collect all the strings of .qgs to be included in ts file
.. versionadded:: 3.4
%End

const QgsSettingsEntryString settingsLocaleUserLocale;
const QgsSettingsEntryBool settingsLocaleOverrideFlag;
const QgsSettingsEntryString settingsLocaleGlobalLocale;
const QgsSettingsEntryBool settingsLocaleShowGroupSeparator;
const QgsSettingsEntryStringList settingsSearchPathsForSVG;

%If (ANDROID)
//dummy method to workaround sip generation issue
@@ -118,7 +118,6 @@ Read the geometry options from ``node``.
.. versionadded:: 3.4
%End

const QgsSettingsEntryString settingsGeometryValidationDefaultChecks;

signals:

@@ -60,7 +60,6 @@ Since the paths are stored by order of preference, lower positions in the list t
Unregisters a localized path
%End

const QgsSettingsEntryStringList settingsLocalizedDataPaths;

private:
QgsLocalizedDataPathRegistry( const QgsLocalizedDataPathRegistry &other );
@@ -157,7 +157,6 @@ Returns map settings with which this job was started.



const QgsSettingsEntryBool settingsLogCanvasRefreshEvent;

signals:

@@ -5,66 +5,6 @@
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSettingsEntryEnumFlag_settingsDigitizingOffsetCapStyle
{
%TypeHeaderCode
#include "qgssettingsregistrycore.h"
#include "qgssettingsentry.h"
typedef QgsSettingsEntryEnumFlag<QgsGeometry::EndCapStyle> QgsSettingsEntryEnumFlag_settingsDigitizingOffsetCapStyle;
%End
public:
QgsSettingsEntryEnumFlag_settingsDigitizingOffsetCapStyle( const QString &key, QgsSettings::Section section, const QgsGeometry::EndCapStyle &defaultValue, const QString &description = QString() );
QString key( const QString &dynamicKeyPart = QString() ) const;
QgsGeometry::EndCapStyle value( const QString &dynamicKeyPart = QString(), bool useDefaultValueOverride = false, const QgsGeometry::EndCapStyle &defaultValueOverride = QgsGeometry::EndCapStyle() ) const;
};
class QgsSettingsEntryEnumFlag_settingsDigitizingOffsetJoinStyle
{
%TypeHeaderCode
#include "qgssettingsregistrycore.h"
#include "qgssettingsentry.h"
typedef QgsSettingsEntryEnumFlag<QgsGeometry::JoinStyle> QgsSettingsEntryEnumFlag_settingsDigitizingOffsetJoinStyle;
%End
public:
QgsSettingsEntryEnumFlag_settingsDigitizingOffsetJoinStyle( const QString &key, QgsSettings::Section section, const QgsGeometry::JoinStyle &defaultValue, const QString &description = QString() );
QString key( const QString &dynamicKeyPart = QString() ) const;
QgsGeometry::JoinStyle value( const QString &dynamicKeyPart = QString(), bool useDefaultValueOverride = false, const QgsGeometry::JoinStyle &defaultValueOverride = QgsGeometry::JoinStyle() ) const;
};
class QgsSettingsEntryEnumFlag_settingsDigitizingSearchRadiusVertexEditUnit
{
%TypeHeaderCode
#include "qgssettingsregistrycore.h"
#include "qgssettingsentry.h"
typedef QgsSettingsEntryEnumFlag<QgsTolerance::UnitType> QgsSettingsEntryEnumFlag_settingsDigitizingSearchRadiusVertexEditUnit;
%End
public:
QgsSettingsEntryEnumFlag_settingsDigitizingSearchRadiusVertexEditUnit( const QString &key, QgsSettings::Section section, const QgsTolerance::UnitType &defaultValue, const QString &description = QString() );
QString key( const QString &dynamicKeyPart = QString() ) const;
QgsTolerance::UnitType value( const QString &dynamicKeyPart = QString(), bool useDefaultValueOverride = false, const QgsTolerance::UnitType &defaultValueOverride = QgsTolerance::UnitType() ) const;
};
class QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnappingToleranceUnit
{
%TypeHeaderCode
#include "qgssettingsregistrycore.h"
#include "qgssettingsentry.h"
typedef QgsSettingsEntryEnumFlag<QgsTolerance::UnitType> QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnappingToleranceUnit;
%End
public:
QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnappingToleranceUnit( const QString &key, QgsSettings::Section section, const QgsTolerance::UnitType &defaultValue, const QString &description = QString() );
QString key( const QString &dynamicKeyPart = QString() ) const;
QgsTolerance::UnitType value( const QString &dynamicKeyPart = QString(), bool useDefaultValueOverride = false, const QgsTolerance::UnitType &defaultValueOverride = QgsTolerance::UnitType() ) const;
};
class QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnapType
{
%TypeHeaderCode
#include "qgssettingsregistrycore.h"
#include "qgssettingsentry.h"
typedef QgsSettingsEntryEnumFlag<QgsSnappingConfig::SnappingTypes> QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnapType;
%End
public:
QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnapType( const QString &key, QgsSettings::Section section, const QgsSnappingConfig::SnappingTypes &defaultValue, const QString &description = QString() );
QString key( const QString &dynamicKeyPart = QString() ) const;
QgsSnappingConfig::SnappingTypes value( const QString &dynamicKeyPart = QString(), bool useDefaultValueOverride = false, const QgsSnappingConfig::SnappingTypes &defaultValueOverride = QgsSnappingConfig::SnappingTypes() ) const;
};



@@ -91,79 +31,6 @@ Constructor for QgsSettingsRegistryCore.

virtual ~QgsSettingsRegistryCore();

const QgsSettingsEntryInteger settingsDigitizingStreamTolerance;

const QgsSettingsEntryInteger settingsDigitizingLineWidth;

const QgsSettingsEntryInteger settingsDigitizingLineColorRed;

const QgsSettingsEntryInteger settingsDigitizingLineColorGreen;

const QgsSettingsEntryInteger settingsDigitizingLineColorBlue;

const QgsSettingsEntryInteger settingsDigitizingLineColorAlpha;

const QgsSettingsEntryDouble settingsDigitizingLineColorAlphaScale;

const QgsSettingsEntryInteger settingsDigitizingFillColorRed;

const QgsSettingsEntryInteger settingsDigitizingFillColorGreen;

const QgsSettingsEntryInteger settingsDigitizingFillColorBlue;

const QgsSettingsEntryInteger settingsDigitizingFillColorAlpha;

const QgsSettingsEntryBool settingsDigitizingLineGhost;

const QgsSettingsEntryDouble settingsDigitizingDefaultZValue;

const QgsSettingsEntryBool settingsDigitizingDefaultSnapEnabled;

const QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnapType settingsDigitizingDefaultSnapType;

const QgsSettingsEntryDouble settingsDigitizingDefaultSnappingTolerance;

const QgsSettingsEntryEnumFlag_settingsDigitizingDefaultSnappingToleranceUnit settingsDigitizingDefaultSnappingToleranceUnit;

const QgsSettingsEntryDouble settingsDigitizingSearchRadiusVertexEdit;

const QgsSettingsEntryEnumFlag_settingsDigitizingSearchRadiusVertexEditUnit settingsDigitizingSearchRadiusVertexEditUnit;

const QgsSettingsEntryColor settingsDigitizingSnapColor;

const QgsSettingsEntryBool settingsDigitizingSnapTooltip;

const QgsSettingsEntryBool settingsDigitizingSnapInvisibleFeature;

const QgsSettingsEntryBool settingsDigitizingMarkerOnlyForSelected;

const QgsSettingsEntryString settingsDigitizingMarkerStyle;

const QgsSettingsEntryDouble settingsDigitizingMarkerSizeMm;

const QgsSettingsEntryBool settingsDigitizingReuseLastValues;

const QgsSettingsEntryBool settingsDigitizingDisableEnterAttributeValuesDialog;

const QgsSettingsEntryInteger settingsDigitizingValidateGeometries;

const QgsSettingsEntryEnumFlag_settingsDigitizingOffsetJoinStyle settingsDigitizingOffsetJoinStyle;

const QgsSettingsEntryInteger settingsDigitizingOffsetQuadSeg;

const QgsSettingsEntryDouble settingsDigitizingOffsetMiterLimit;

const QgsSettingsEntryBool settingsDigitizingConvertToCurve;

const QgsSettingsEntryDouble settingsDigitizingConvertToCurveAngleTolerance;

const QgsSettingsEntryDouble settingsDigitizingConvertToCurveDistanceTolerance;

const QgsSettingsEntryEnumFlag_settingsDigitizingOffsetCapStyle settingsDigitizingOffsetCapStyle;

const QgsSettingsEntryBool settingsDigitizingOffsetShowAdvanced;

const QgsSettingsEntryInteger settingsDigitizingTracingMaxFeatureCount;

};

@@ -658,8 +658,10 @@ class CORE_EXPORT QgsLayout : public QGraphicsScene, public QgsExpressionContext
*/
bool accept( QgsStyleEntityVisitorInterface *visitor ) const;

#ifndef SIP_RUN
//! Settings entry search path for templates
static const inline QgsSettingsEntryStringList settingsSearchPathForTemplates = QgsSettingsEntryStringList( QStringLiteral( "Layout/searchPathsForTemplates" ), QgsSettings::Core, QStringList(), QObject::tr( "Search path for templates" ) );
#endif

public slots:

@@ -153,12 +153,14 @@ class CORE_EXPORT QgsLocator : public QObject
*/
QStringList completionList() const {return mAutocompletionList;}

#ifndef SIP_RUN
//! Settings entry locator filter enabled
static const inline QgsSettingsEntryBool settingsLocatorFilterEnabled = QgsSettingsEntryBool( QStringLiteral( "locator_filters/enabled_%1" ), QgsSettings::Gui, true, "Locator filter enabled" );
//! Settings entry locator filter default value
static const inline QgsSettingsEntryBool settingsLocatorFilterDefault = QgsSettingsEntryBool( QStringLiteral( "locator_filters/default_%1" ), QgsSettings::Gui, false, "Locator filter default value" );
//! Settings entry locator filter prefix
static const inline QgsSettingsEntryString settingsLocatorFilterPrefix = QgsSettingsEntryString( QStringLiteral( "locator_filters/prefix_%1" ), QgsSettings::Gui, QString(), "Locator filter prefix" );
#endif

signals:

@@ -530,8 +530,10 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
*/
void requestAuthCloseBrowser() const;

#ifndef SIP_RUN
//! Settings entry network timeout
static const inline QgsSettingsEntryInteger settingsNetworkTimeout = QgsSettingsEntryInteger( QStringLiteral( "/qgis/networkAndProxy/networkTimeout" ), QgsSettings::NoSection, 60000, QObject::tr( "Network timeout" ) );
#endif


signals:
@@ -111,6 +111,7 @@ class CORE_EXPORT QgsNewsFeedParser : public QObject
*/
static QString keyForFeed( const QString &baseUrl );

#ifndef SIP_RUN
//! Settings entry last fetch time
static const inline QgsSettingsEntryInteger settingsFeedLastFetchTime = QgsSettingsEntryInteger( QStringLiteral( "%1/lastFetchTime" ), QgsSettings::Core, 0, QObject::tr( "Feed last fetch time" ), 0 );
//! Settings entry feed language
@@ -119,6 +120,7 @@ class CORE_EXPORT QgsNewsFeedParser : public QObject
static const inline QgsSettingsEntryDouble settingsFeedLatitude = QgsSettingsEntryDouble( QStringLiteral( "%1/latitude" ), QgsSettings::Core, 0.0, QObject::tr( "Feed latitude" ) );
//! Settings entry feed longitude
static const inline QgsSettingsEntryDouble settingsFeedLongitude = QgsSettingsEntryDouble( QStringLiteral( "%1/longitude" ), QgsSettings::Core, 0.0, QObject::tr( "Feed longitude" ) );
#endif

public slots:

@@ -99,6 +99,7 @@ class CORE_EXPORT QgsProcessing
*/
static const QString TEMPORARY_OUTPUT;

#ifndef SIP_RUN
//! Settings entry prefer filename as layer name
static const inline QgsSettingsEntryBool settingsPreferFilenameAsLayerName = QgsSettingsEntryBool( QStringLiteral( "Processing/Configuration/PREFER_FILENAME_AS_LAYER_NAME" ), QgsSettings::NoSection, true, QObject::tr( "Prefer filename as layer name" ) );
//! Settings entry temp path
@@ -107,6 +108,7 @@ class CORE_EXPORT QgsProcessing
static const inline QgsSettingsEntryInteger settingsDefaultOutputVectorLayerExt = QgsSettingsEntryInteger( QStringLiteral( "Processing/Configuration/DefaultOutputVectorLayerExt" ), QgsSettings::NoSection, -1 );
//! Settings entry default output raster layer ext
static const inline QgsSettingsEntryInteger settingsDefaultOutputRasterLayerExt = QgsSettingsEntryInteger( QStringLiteral( "Processing/Configuration/DefaultOutputRasterLayerExt" ), QgsSettings::NoSection, -1 );
#endif
};

#endif // QGSPROCESSING_H
@@ -944,6 +944,7 @@ class CORE_EXPORT QgsApplication : public QApplication
*/
void collectTranslatableObjects( QgsTranslationContext *translationContext );

#ifndef SIP_RUN
//! Settings entry locale user locale
static const inline QgsSettingsEntryString settingsLocaleUserLocale = QgsSettingsEntryString( QStringLiteral( "locale/userLocale" ), QgsSettings::NoSection, QString() );
//! Settings entry locale override flag
@@ -954,6 +955,7 @@ class CORE_EXPORT QgsApplication : public QApplication
static const inline QgsSettingsEntryBool settingsLocaleShowGroupSeparator = QgsSettingsEntryBool( QStringLiteral( "locale/showGroupSeparator" ), QgsSettings::NoSection, false );
//! Settings entry search path for SVG
static const inline QgsSettingsEntryStringList settingsSearchPathsForSVG = QgsSettingsEntryStringList( QStringLiteral( "svg/searchPathsForSVG" ), QgsSettings::NoSection, QStringList() );
#endif

#ifdef SIP_RUN
SIP_IF_FEATURE( ANDROID )
@@ -132,8 +132,10 @@ class CORE_EXPORT QgsGeometryOptions : public QObject
*/
void readXml( const QDomNode &node );

#ifndef SIP_RUN
//! Settings entry search path for templates
static const inline QgsSettingsEntryString settingsGeometryValidationDefaultChecks = QgsSettingsEntryString( QStringLiteral( "geometry_validation/default_checks" ), QgsSettings::NoSection, QString() );
#endif

signals:

@@ -66,8 +66,10 @@ class CORE_EXPORT QgsLocalizedDataPathRegistry
//! Unregisters a localized path
void unregisterPath( const QString &path );

#ifndef SIP_RUN
//! Settings entry localized data paths
static const inline QgsSettingsEntryStringList settingsLocalizedDataPaths = QgsSettingsEntryStringList( QStringLiteral( "/qgis/localized_data_paths" ), QgsSettings::NoSection, QStringList() );
#endif

private:
#ifdef SIP_RUN
@@ -344,8 +344,10 @@ class CORE_EXPORT QgsMapRendererJob : public QObject
*/
static const QString LABEL_PREVIEW_CACHE_ID SIP_SKIP;

#ifndef SIP_RUN
//! Settings entry log canvas refresh event
static const inline QgsSettingsEntryBool settingsLogCanvasRefreshEvent = QgsSettingsEntryBool( QStringLiteral( "Map/logCanvasRefreshEvent" ), QgsSettings::NoSection, false );
#endif

signals:

@@ -48,6 +48,7 @@ class CORE_EXPORT QgsSettingsRegistryCore : public QgsSettingsRegistry
*/
virtual ~QgsSettingsRegistryCore();

#ifndef SIP_RUN
//! Settings entry digitizing stream tolerance
static const inline QgsSettingsEntryInteger settingsDigitizingStreamTolerance = QgsSettingsEntryInteger( QStringLiteral( "/qgis/digitizing/stream_tolerance" ), QgsSettings::NoSection, 2 );

@@ -158,6 +159,7 @@ class CORE_EXPORT QgsSettingsRegistryCore : public QgsSettingsRegistry

//! Settings entry digitizing tracing max feature count
static const inline QgsSettingsEntryInteger settingsDigitizingTracingMaxFeatureCount = QgsSettingsEntryInteger( QStringLiteral( "/qgis/digitizing/tracing_max_feature_count" ), QgsSettings::NoSection, 10000 );
#endif

};

0 comments on commit 810af98

Please sign in to comment.