QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
Signals | Public Member Functions | List of all members
QgsProjectDisplaySettings Class Reference

Contains settings and properties relating to how a QgsProject should display values such as map coordinates and bearings. More...

#include <qgsprojectdisplaysettings.h>

Inheritance diagram for QgsProjectDisplaySettings:
Inheritance graph
[legend]

Signals

void bearingFormatChanged ()
 Emitted when the bearing format changes. More...
 
void geographicCoordinateFormatChanged ()
 Emitted when the geographic coordinate format changes. More...
 

Public Member Functions

 QgsProjectDisplaySettings (QObject *parent=nullptr)
 Constructor for QgsProjectDisplaySettings with the specified parent object. More...
 
 ~QgsProjectDisplaySettings () override
 
const QgsBearingNumericFormatbearingFormat () const
 Returns the project bearing's format, which controls how bearings associated with the project are displayed. More...
 
const QgsGeographicCoordinateNumericFormatgeographicCoordinateFormat () const
 Returns the project's geographic coordinate format, which controls how geographic coordinates associated with the project are displayed. More...
 
bool readXml (const QDomElement &element, const QgsReadWriteContext &context)
 Reads the settings's state from a DOM element. More...
 
void reset ()
 Resets the settings to a default state. More...
 
void setBearingFormat (QgsBearingNumericFormat *format)
 Sets the project bearing format, which controls how bearings associated with the project are displayed. More...
 
void setGeographicCoordinateFormat (QgsGeographicCoordinateNumericFormat *format)
 Sets the project geographic coordinate format, which controls how geographic coordinates associated with the project are displayed. More...
 
QDomElement writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const
 Returns a DOM element representing the settings. More...
 

Detailed Description

Contains settings and properties relating to how a QgsProject should display values such as map coordinates and bearings.

Since
QGIS 3.12

Definition at line 37 of file qgsprojectdisplaysettings.h.

Constructor & Destructor Documentation

◆ QgsProjectDisplaySettings()

QgsProjectDisplaySettings::QgsProjectDisplaySettings ( QObject *  parent = nullptr)

Constructor for QgsProjectDisplaySettings with the specified parent object.

Definition at line 27 of file qgsprojectdisplaysettings.cpp.

◆ ~QgsProjectDisplaySettings()

QgsProjectDisplaySettings::~QgsProjectDisplaySettings ( )
overridedefault

Member Function Documentation

◆ bearingFormat()

const QgsBearingNumericFormat * QgsProjectDisplaySettings::bearingFormat ( ) const

Returns the project bearing's format, which controls how bearings associated with the project are displayed.

See also
setBearingFormat()
bearingFormatChanged()

Definition at line 53 of file qgsprojectdisplaysettings.cpp.

◆ bearingFormatChanged

void QgsProjectDisplaySettings::bearingFormatChanged ( )
signal

Emitted when the bearing format changes.

See also
setBearingFormat()
bearingFormat()

◆ geographicCoordinateFormat()

const QgsGeographicCoordinateNumericFormat * QgsProjectDisplaySettings::geographicCoordinateFormat ( ) const

Returns the project's geographic coordinate format, which controls how geographic coordinates associated with the project are displayed.

See also
setGeographicCoordinateFormat()
geographicCoordinateFormatChanged()

Definition at line 64 of file qgsprojectdisplaysettings.cpp.

◆ geographicCoordinateFormatChanged

void QgsProjectDisplaySettings::geographicCoordinateFormatChanged ( )
signal

Emitted when the geographic coordinate format changes.

See also
setGeographicCoordinateFormat()
geographicCoordinateFormat()

◆ readXml()

bool QgsProjectDisplaySettings::readXml ( const QDomElement &  element,
const QgsReadWriteContext context 
)

Reads the settings's state from a DOM element.

See also
writeXml()

Definition at line 69 of file qgsprojectdisplaysettings.cpp.

◆ reset()

void QgsProjectDisplaySettings::reset ( )

Resets the settings to a default state.

Definition at line 37 of file qgsprojectdisplaysettings.cpp.

◆ setBearingFormat()

void QgsProjectDisplaySettings::setBearingFormat ( QgsBearingNumericFormat format)

Sets the project bearing format, which controls how bearings associated with the project are displayed.

Ownership of format is transferred to the settings.

See also
bearingFormat()
bearingFormatChanged()

Definition at line 47 of file qgsprojectdisplaysettings.cpp.

◆ setGeographicCoordinateFormat()

void QgsProjectDisplaySettings::setGeographicCoordinateFormat ( QgsGeographicCoordinateNumericFormat format)

Sets the project geographic coordinate format, which controls how geographic coordinates associated with the project are displayed.

Ownership of format is transferred to the settings.

See also
geographicCoordinateFormat()
geographicCoordinateFormatChanged()
Since
QGIS 3.26

Definition at line 58 of file qgsprojectdisplaysettings.cpp.

◆ writeXml()

QDomElement QgsProjectDisplaySettings::writeXml ( QDomDocument &  doc,
const QgsReadWriteContext context 
) const

Returns a DOM element representing the settings.

See also
readXml()

Definition at line 114 of file qgsprojectdisplaysettings.cpp.


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