QGIS API Documentation
4.3.0-Master (0cef2469b72)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgslocaldefaultsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslocaldefaultsettings.h
3
---------------------------
4
begin : January 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QGSLOCALDEFAULTSETTINGS_H
16
#define QGSLOCALDEFAULTSETTINGS_H
17
18
#include <memory>
19
20
#include "qgis_core.h"
21
#include "
qgis_sip.h
"
22
23
class
QgsBearingNumericFormat
;
24
class
QgsGeographicCoordinateNumericFormat
;
25
42
class
CORE_EXPORT
QgsLocalDefaultSettings
43
{
44
public
:
50
static
void
setBearingFormat
(
const
QgsBearingNumericFormat
*format );
51
59
static
std::unique_ptr<QgsBearingNumericFormat>
bearingFormat
();
60
68
static
void
setGeographicCoordinateFormat
(
const
QgsGeographicCoordinateNumericFormat
*format );
69
79
static
std::unique_ptr<QgsGeographicCoordinateNumericFormat>
geographicCoordinateFormat
();
80
};
81
82
#endif
// QGSLOCALDEFAULTSETTINGS_H
QgsBearingNumericFormat
A numeric formatter which returns a text representation of a direction/bearing.
Definition
qgsbearingnumericformat.h:29
QgsGeographicCoordinateNumericFormat
A numeric formatter which returns a text representation of a geographic coordinate (latitude or longi...
Definition
qgscoordinatenumericformat.h:29
QgsLocalDefaultSettings
Contains local default settings which should be respected when creating new objects such as QgsProjec...
Definition
qgslocaldefaultsettings.h:43
QgsLocalDefaultSettings::setBearingFormat
static void setBearingFormat(const QgsBearingNumericFormat *format)
Sets the default bearing format, which controls how angular bearings are displayed.
Definition
qgslocaldefaultsettings.cpp:30
QgsLocalDefaultSettings::geographicCoordinateFormat
static std::unique_ptr< QgsGeographicCoordinateNumericFormat > geographicCoordinateFormat()
Returns the default geographic coordinate format, which controls how geographic coordinates are displ...
Definition
qgslocaldefaultsettings.cpp:74
QgsLocalDefaultSettings::bearingFormat
static std::unique_ptr< QgsBearingNumericFormat > bearingFormat()
Returns the default bearing format, which controls how angular bearings are displayed.
Definition
qgslocaldefaultsettings.cpp:43
QgsLocalDefaultSettings::setGeographicCoordinateFormat
static void setGeographicCoordinateFormat(const QgsGeographicCoordinateNumericFormat *format)
Sets the default geographic coordinate format, which controls how geographic coordinates are displaye...
Definition
qgslocaldefaultsettings.cpp:61
qgis_sip.h
Generated on
for QGIS API Documentation by
1.17.0