16#ifndef QGSSETTINGSENTRYIMPL_H
17#define QGSSETTINGSENTRYIMPL_H
44 const QString §ion,
45 const QVariant &defaultValue = QVariant(),
46 const QString &description = QString(),
64 const QString &pluginName,
65 const QVariant &defaultValue = QVariant(),
66 const QString &description = QString(),
67 Qgis::SettingsOptions options = Qgis::SettingsOptions() );
69 sipCpp =
new sipQgsSettingsEntryVariant(
QgsSettingsEntryVariant( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), *a2, *a3, *a4 ) );
103 const QString §ion,
104 const QString &defaultValue = QString(),
105 const QString &description = QString(),
106 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
110 , mMinLength( minLength )
111 , mMaxLength( maxLength )
128 const QString &pluginName,
129 const QString &defaultValue = QString(),
130 const QString &description = QString(),
131 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
133 int maxLength = -1 );
135 sipCpp =
new sipQgsSettingsEntryString(
QgsSettingsEntryString( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), *a2, *a3, *a4 ) );
146 void setMinLength(
int minLength );
151 int minLength()
const;
158 void setMaxLength(
int maxLength );
163 int maxLength()
const;
196 const QString §ion,
197 const QStringList &defaultValue = QStringList(),
198 const QString &description = QString(),
217 const QString &pluginName,
218 const QStringList &defaultValue = QStringList(),
219 const QString &description = QString(),
220 Qgis::SettingsOptions options = Qgis::SettingsOptions() );
222 sipCpp =
new sipQgsSettingsEntryStringList(
QgsSettingsEntryStringList( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), *a2, *a3, *a4 ) );
255 const QString §ion,
256 bool defaultValue =
false,
257 const QString &description = QString(),
275 const QString &pluginName,
276 bool defaultValue =
false,
277 const QString &description = QString(),
278 Qgis::SettingsOptions options = Qgis::SettingsOptions() );
280 sipCpp =
new sipQgsSettingsEntryBool(
QgsSettingsEntryBool( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), a2, *a3, *a4 ) );
315 const QString §ion,
316 qlonglong defaultValue = 0,
317 const QString &description = QString(),
318 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
319 qlonglong minValue = std::numeric_limits<qlonglong>::min(),
320 qlonglong maxValue = std::numeric_limits<qlonglong>::max() )
SIP_MAKE_PRIVATE
322 , mMinValue( minValue )
323 , mMaxValue( maxValue )
341 const QString &pluginName,
342 qlonglong defaultValue = 0,
343 const QString &description = QString(),
344 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
345 qlonglong minValue = std::numeric_limits<qlonglong>::min(),
346 qlonglong maxValue = std::numeric_limits<qlonglong>::max() );
348 sipCpp =
new sipQgsSettingsEntryInteger(
QgsSettingsEntryInteger( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), a2, *a3, *a4, a5, a6 ) );
359 void setMinValue( qlonglong minValue );
364 qlonglong minValue()
const;
371 void setMaxValue( qlonglong maxValue );
376 qlonglong maxValue()
const;
412 const QString §ion,
413 double defaultValue = 0.0,
414 const QString &description = QString(),
415 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
416 double minValue = std::numeric_limits<double>::lowest(),
417 double maxValue = std::numeric_limits<double>::max(),
420 , mMinValue( minValue )
421 , mMaxValue( maxValue )
422 , mDisplayHintDecimals( displayDecimals )
441 const QString &pluginName,
443 const QString &description = QString(),
444 Qgis::SettingsOptions options = Qgis::SettingsOptions(),
445 double minValue = std::numeric_limits<double>::lowest(),
446 double maxValue = std::numeric_limits<double>::max(),
447 int displayDecimals = 1 );
449 sipCpp =
new sipQgsSettingsEntryDouble(
QgsSettingsEntryDouble( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), a2, *a3, *a4, a5, a6, a7 ) );
461 void setMinValue(
double minValue );
466 double minValue()
const;
473 void setMaxValue(
double maxValue );
478 double maxValue()
const;
485 void setDisplayHintDecimals(
int displayHintDecimals );
490 int displayHintDecimals()
const;
498 int mDisplayHintDecimals;
525 const QString §ion,
526 const QColor &defaultValue = QColor(),
527 const QString &description = QString(),
545 const QString &pluginName,
546 const QColor &defaultValue = QColor(),
547 const QString &description = QString(),
548 Qgis::SettingsOptions options = Qgis::SettingsOptions() );
550 sipCpp =
new sipQgsSettingsEntryColor(
QgsSettingsEntryColor( *a0, QStringLiteral(
"plugins/%1" ).arg( *a1 ), *a2, *a3, *a4 ) );
SettingsType
Types of settings entries.
A boolean settings entry.
QgsSettingsEntryBool(const QString &key, const QString §ion, bool defaultValue=false, const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions()) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryBool.
Base abstract class for settings entry which are passed by reference.
virtual Qgis::SettingsType settingsType() const override=0
Returns the settings entry type.
virtual T convertFromVariant(const QVariant &value) const =0
Converts the variant value to the value type of the setting.
virtual bool checkValue(const T &value) const
Check if the value is valid.
T value(const QString &dynamicKeyPart=QString()) const
Returns settings value.
Base abstract class for settings entry which are passed by value.
QgsSettingsEntryColor(const QString &key, const QString §ion, const QColor &defaultValue=QColor(), const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions()) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryColor.
QgsSettingsEntryDouble(const QString &key, const QString §ion, double defaultValue=0.0, const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions(), double minValue=std::numeric_limits< double >::lowest(), double maxValue=std::numeric_limits< double >::max(), int displayDecimals=1) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryDouble.
An integer settings entry.
QgsSettingsEntryInteger(const QString &key, const QString §ion, qlonglong defaultValue=0, const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions(), qlonglong minValue=std::numeric_limits< qlonglong >::min(), qlonglong maxValue=std::numeric_limits< qlonglong >::max()) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryInteger.
A string list settings entry.
QgsSettingsEntryStringList(const QString &key, const QString §ion, const QStringList &defaultValue=QStringList(), const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions()) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryStringList.
QgsSettingsEntryString(const QString &key, const QString §ion, const QString &defaultValue=QString(), const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions(), int minLength=0, int maxLength=-1) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryString.
A variant settings entry.
QgsSettingsEntryVariant(const QString &key, const QString §ion, const QVariant &defaultValue=QVariant(), const QString &description=QString(), Qgis::SettingsOptions options=Qgis::SettingsOptions()) SIP_MAKE_PRIVATE
Constructor for QgsSettingsEntryVariant.