QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
core
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
36
class
CORE_EXPORT
QgsProjectDisplaySettings
:
public
QObject
37
{
38
Q_OBJECT
39
40
public
:
41
45
QgsProjectDisplaySettings
( QObject *parent =
nullptr
);
46
47
~
QgsProjectDisplaySettings
()
override
;
48
52
void
reset();
53
62
void
setBearingFormat(
QgsBearingNumericFormat
*format
SIP_TRANSFER
);
63
70
const
QgsBearingNumericFormat
*bearingFormat()
const
;
71
76
bool
readXml(
const
QDomElement &element,
const
QgsReadWriteContext
&context );
77
82
QDomElement writeXml( QDomDocument &doc,
const
QgsReadWriteContext
&context )
const
;
83
84
signals:
85
92
void
bearingFormatChanged();
93
94
private
:
95
std::unique_ptr< QgsBearingNumericFormat > mBearingFormat;
96
97
};
98
99
#endif // QGSPROJECTDISPLAYSETTINGS_H
QgsReadWriteContext
Definition:
qgsreadwritecontext.h:34
QgsProjectDisplaySettings
Contains settings and properties relating to how a QgsProject should display values such as map coord...
Definition:
qgsprojectdisplaysettings.h:36
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsBearingNumericFormat
Definition:
qgsbearingnumericformat.h:28
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17