QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
project
qgsprojectdisplaysettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojectdisplaysettings.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 QGSPROJECTDISPLAYSETTINGS_H
16
#define QGSPROJECTDISPLAYSETTINGS_H
17
18
#include "qgis_core.h"
19
#include "
qgis_sip.h
"
20
#include <QObject>
21
#include <QVector>
22
#include <memory>
23
24
class
QDomElement;
25
class
QgsReadWriteContext
;
26
class
QDomDocument;
27
class
QgsBearingNumericFormat
;
28
class
QgsGeographicCoordinateNumericFormat
;
29
37
class
CORE_EXPORT
QgsProjectDisplaySettings
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
42
46
QgsProjectDisplaySettings
( QObject *parent =
nullptr
);
47
48
~
QgsProjectDisplaySettings
()
override
;
49
53
void
reset();
54
63
void
setBearingFormat(
QgsBearingNumericFormat
*format
SIP_TRANSFER
);
64
71
const
QgsBearingNumericFormat
*bearingFormat()
const
;
72
83
void
setGeographicCoordinateFormat(
QgsGeographicCoordinateNumericFormat
*format
SIP_TRANSFER
);
84
91
const
QgsGeographicCoordinateNumericFormat
*geographicCoordinateFormat()
const
;
92
97
bool
readXml(
const
QDomElement &element,
const
QgsReadWriteContext
&context );
98
103
QDomElement writeXml( QDomDocument &doc,
const
QgsReadWriteContext
&context )
const
;
104
105
signals:
106
113
void
bearingFormatChanged();
114
121
void
geographicCoordinateFormatChanged();
122
123
private
:
124
std::unique_ptr< QgsBearingNumericFormat > mBearingFormat;
125
std::unique_ptr< QgsGeographicCoordinateNumericFormat > mGeographicCoordinateFormat;
126
127
};
128
129
#endif // QGSPROJECTDISPLAYSETTINGS_H
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:34
QgsGeographicCoordinateNumericFormat
A numeric formatter which returns a text representation of a geographic coordinate (latitude or longi...
Definition:
qgscoordinatenumericformat.h:28
QgsProjectDisplaySettings
Contains settings and properties relating to how a QgsProject should display values such as map coord...
Definition:
qgsprojectdisplaysettings.h:37
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsBearingNumericFormat
A numeric formatter which returns a text representation of a direction/bearing.
Definition:
qgsbearingnumericformat.h:28
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17