QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
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... | |
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... | |
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... | |
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 36 of file qgsprojectdisplaysettings.h.
QgsProjectDisplaySettings::QgsProjectDisplaySettings | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProjectDisplaySettings with the specified parent object.
Definition at line 25 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 48 of file qgsprojectdisplaysettings.cpp.
|
signal |
Emitted when the bearing format changes.
bool QgsProjectDisplaySettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the settings's state from a DOM element.
Definition at line 53 of file qgsprojectdisplaysettings.cpp.
void QgsProjectDisplaySettings::reset | ( | ) |
Resets the settings to a default state.
Definition at line 34 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 42 of file qgsprojectdisplaysettings.cpp.
QDomElement QgsProjectDisplaySettings::writeXml | ( | QDomDocument & | doc, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the settings.
Definition at line 62 of file qgsprojectdisplaysettings.cpp.