QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsmapviewsmanager.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmapviewsmanager.h
3 ------------------
4 Date : December 2021
5 Copyright : (C) 2021 Belgacem Nedjima
6 Email : gb underscore nedjima at esi dot dz
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
16#ifndef QGSMAPVIEWSMANAGER_H
17#define QGSMAPVIEWSMANAGER_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
21#include <QObject>
22#include <QDomDocument>
23#include <QDomElement>
24#include <QMap>
25
26class QgsProject;
27
40class CORE_EXPORT QgsMapViewsManager : public QObject
41{
42 Q_OBJECT
43
44 public:
45
51
57 bool readXml( const QDomElement &element, const QDomDocument &doc );
58
63 QDomElement writeXml( QDomDocument &doc ) const;
64
66 void clear();
67
73 QDomElement get3DViewSettings( const QString &name ) const SIP_SKIP;
74
80 void register3DViewSettings( const QString &name, const QDomElement &dom ) SIP_SKIP;
81
87 QStringList get3DViewsNames() const SIP_SKIP;
88
94 QList<QDomElement> get3DViews() const SIP_SKIP;
95
97 void remove3DView( const QString &name );
98
100 void rename3DView( const QString &oldTitle, const QString &newTitle );
101
107 void set3DViewInitiallyVisible( const QString &name, bool visible ) SIP_SKIP;
108
114 bool is3DViewOpen( const QString &name ) SIP_SKIP;
115
116 signals:
119
120 private:
121 QMap<QString, QDomElement> m3DMapViewsDom;
122};
123
124
125#endif // QGSMAPVIEWSMANAGER_H
Manages storage of a set of views.
void views3DListChanged()
Emitted when the views list has changed (whenever a view was removed, added, renamed....
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:107
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_SKIP
Definition qgis_sip.h:126