QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Static Public Member Functions | List of all members
QgsLocalDefaultSettings Class Reference

Contains local default settings which should be respected when creating new objects such as QgsProjects. More...

#include <qgslocaldefaultsettings.h>

Static Public Member Functions

static QgsBearingNumericFormatbearingFormat ()
 Returns the default bearing format, which controls how angular bearings are displayed. More...
 
static QgsGeographicCoordinateNumericFormatgeographicCoordinateFormat ()
 Returns the default geographic coordinate format, which controls how geographic coordinates are displayed. More...
 
static void setBearingFormat (const QgsBearingNumericFormat *format)
 Sets the default bearing format, which controls how angular bearings are displayed. More...
 
static void setGeographicCoordinateFormat (const QgsGeographicCoordinateNumericFormat *format)
 Sets the default geographic coordinate format, which controls how geographic coordinates are displayed. More...
 

Detailed Description

Contains local default settings which should be respected when creating new objects such as QgsProjects.

This class contains a variety of default setting values. These values are local, profile specific settings which may have been configured or tweaked by the user (as opposed to global, fixed default settings).

The values encapsulated here should be inherited when creating new objects such as new QGIS projects.

Typically, the QgsSettings backend is used to store and retrieve these local settings.

Since
QGIS 3.12

Definition at line 40 of file qgslocaldefaultsettings.h.

Member Function Documentation

◆ bearingFormat()

QgsBearingNumericFormat * QgsLocalDefaultSettings::bearingFormat ( )
static

Returns the default bearing format, which controls how angular bearings are displayed.

This method returns a new object and the caller takes ownership of the returned value.

See also
setBearingFormat()

Definition at line 38 of file qgslocaldefaultsettings.cpp.

◆ geographicCoordinateFormat()

QgsGeographicCoordinateNumericFormat * QgsLocalDefaultSettings::geographicCoordinateFormat ( )
static

Returns the default geographic coordinate format, which controls how geographic coordinates are displayed.

This method returns a new object and the caller takes ownership of the returned value.

See also
setGeographicCoordinateFormat()
Since
QGIS 3.26

Definition at line 69 of file qgslocaldefaultsettings.cpp.

◆ setBearingFormat()

void QgsLocalDefaultSettings::setBearingFormat ( const QgsBearingNumericFormat format)
static

Sets the default bearing format, which controls how angular bearings are displayed.

See also
bearingFormat()

Definition at line 25 of file qgslocaldefaultsettings.cpp.

◆ setGeographicCoordinateFormat()

void QgsLocalDefaultSettings::setGeographicCoordinateFormat ( const QgsGeographicCoordinateNumericFormat format)
static

Sets the default geographic coordinate format, which controls how geographic coordinates are displayed.

See also
geographicCoordinateFormat()
Since
QGIS 3.26

Definition at line 56 of file qgslocaldefaultsettings.cpp.


The documentation for this class was generated from the following files: