QGIS API Documentation
4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
src
core
metadata
qgslayermetadataformatter.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayermetadataformatter.h
3
---------------------------
4
begin : September 2017
5
copyright : (C) 2017 by Etienne Trimaille
6
email : etienne dot trimaille at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSLAYERMETADATAFORMATTER_H
19
#define QGSLAYERMETADATAFORMATTER_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgslayermetadata.h
"
24
25
#include <QCoreApplication>
26
32
class
CORE_EXPORT
QgsLayerMetadataFormatter
33
{
34
Q_DECLARE_TR_FUNCTIONS(
QgsLayerMetadataFormatter
)
35
36
public
:
40
QgsLayerMetadataFormatter
(
const
QgsLayerMetadata
&metadata );
41
46
QString
accessSectionHtml
()
const
;
47
52
QString
contactsSectionHtml
()
const
;
53
59
QString
extentSectionHtml
(
const
bool
showSpatialExtent =
true
)
const
;
60
65
QString
identificationSectionHtml
()
const
;
66
71
QString
historySectionHtml
()
const
;
72
77
QString
linksSectionHtml
()
const
;
78
79
private
:
80
QgsLayerMetadata
mMetadata;
81
};
82
83
#endif
// QGSLAYERMETADATAFORMATTER_H
QgsLayerMetadataFormatter::linksSectionHtml
QString linksSectionHtml() const
Formats the "Links" section according to a metadata object.
Definition
qgslayermetadataformatter.cpp:295
QgsLayerMetadataFormatter::extentSectionHtml
QString extentSectionHtml(const bool showSpatialExtent=true) const
Formats the "Extents" section according to a metadata object (extent and temporal).
Definition
qgslayermetadataformatter.cpp:147
QgsLayerMetadataFormatter::QgsLayerMetadataFormatter
QgsLayerMetadataFormatter(const QgsLayerMetadata &metadata)
Constructor for QgsLayerMetadataFormatter.
Definition
qgslayermetadataformatter.cpp:26
QgsLayerMetadataFormatter::contactsSectionHtml
QString contactsSectionHtml() const
Formats the "Contacts" section according to a metadata object.
Definition
qgslayermetadataformatter.cpp:53
QgsLayerMetadataFormatter::identificationSectionHtml
QString identificationSectionHtml() const
Formats the "Identification" section according to a metadata object.
Definition
qgslayermetadataformatter.cpp:220
QgsLayerMetadataFormatter::historySectionHtml
QString historySectionHtml() const
Formats the "History" section according to a metadata object.
Definition
qgslayermetadataformatter.cpp:269
QgsLayerMetadataFormatter::accessSectionHtml
QString accessSectionHtml() const
Formats the "Access" section according to a metadata object.
Definition
qgslayermetadataformatter.cpp:30
QgsLayerMetadata
A structured metadata store for a map layer.
Definition
qgslayermetadata.h:56
qgis_sip.h
qgslayermetadata.h
Generated on
for QGIS API Documentation by
1.15.0