QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Contains settings and properties relating to how a QgsProject should display values such as map coordinates and bearings. More...
#include <qgsprojectdisplaysettings.h>
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 QgsBearingNumericFormat * | bearingFormat () const |
Returns the project bearing's format, which controls how bearings associated with the project are displayed. More... | |
const QgsGeographicCoordinateNumericFormat * | geographicCoordinateFormat () 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... | |
Contains settings and properties relating to how a QgsProject should display values such as map coordinates and bearings.
Definition at line 37 of file qgsprojectdisplaysettings.h.
QgsProjectDisplaySettings::QgsProjectDisplaySettings | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProjectDisplaySettings with the specified parent object.
Definition at line 27 of file qgsprojectdisplaysettings.cpp.
|
overridedefault |
const QgsBearingNumericFormat * QgsProjectDisplaySettings::bearingFormat | ( | ) | const |
Returns the project bearing's format, which controls how bearings associated with the project are displayed.
Definition at line 53 of file qgsprojectdisplaysettings.cpp.
|
signal |
Emitted when the bearing format changes.
const QgsGeographicCoordinateNumericFormat * QgsProjectDisplaySettings::geographicCoordinateFormat | ( | ) | const |
Returns the project's geographic coordinate format, which controls how geographic coordinates associated with the project are displayed.
Definition at line 64 of file qgsprojectdisplaysettings.cpp.
|
signal |
Emitted when the geographic coordinate format changes.
bool QgsProjectDisplaySettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the settings's state from a DOM element.
Definition at line 69 of file qgsprojectdisplaysettings.cpp.
void QgsProjectDisplaySettings::reset | ( | ) |
Resets the settings to a default state.
Definition at line 37 of file qgsprojectdisplaysettings.cpp.
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.
Definition at line 47 of file qgsprojectdisplaysettings.cpp.
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.
Definition at line 58 of file qgsprojectdisplaysettings.cpp.
QDomElement QgsProjectDisplaySettings::writeXml | ( | QDomDocument & | doc, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the settings.
Definition at line 114 of file qgsprojectdisplaysettings.cpp.