File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
python/core/auto_generated Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -857,6 +857,13 @@ Gets the registry of available scalebar renderers.
857
857
Returns registry of available project storage implementations.
858
858
859
859
.. versionadded:: 3.2
860
+ %End
861
+
862
+ static QgsBasemapPathRegistry *basemapPathRegistry() /KeepReference/;
863
+ %Docstring
864
+ Returns the registry of basemaps paths
865
+
866
+ .. versionadded:: 3.14
860
867
%End
861
868
862
869
static QString nullRepresentation();
Original file line number Diff line number Diff line change 15
15
16
16
#include " qgsapplication.h"
17
17
#include " qgsauthmanager.h"
18
+ #include " qgsbasemappathregistry.h"
18
19
#include " qgsdataitemproviderregistry.h"
19
20
#include " qgsexception.h"
20
21
#include " qgsgeometry.h"
@@ -2235,6 +2236,11 @@ QgsProjectStorageRegistry *QgsApplication::projectStorageRegistry()
2235
2236
return members ()->mProjectStorageRegistry ;
2236
2237
}
2237
2238
2239
+ QgsBasemapPathRegistry *QgsApplication::basemapPathRegistry ()
2240
+ {
2241
+ return members ()->mBasemapPathRegistry ;
2242
+ }
2243
+
2238
2244
QgsApplication::ApplicationMembers::ApplicationMembers ()
2239
2245
{
2240
2246
// don't use initializer lists or scoped pointers - as more objects are added here we
@@ -2369,6 +2375,7 @@ QgsApplication::ApplicationMembers::ApplicationMembers()
2369
2375
mScaleBarRendererRegistry = new QgsScaleBarRendererRegistry ();
2370
2376
mProfiler ->end ();
2371
2377
}
2378
+ mBasemapPathRegistry = new QgsBasemapPathRegistry ();
2372
2379
}
2373
2380
2374
2381
QgsApplication::ApplicationMembers::~ApplicationMembers ()
@@ -2402,6 +2409,7 @@ QgsApplication::ApplicationMembers::~ApplicationMembers()
2402
2409
delete mNumericFormatRegistry ;
2403
2410
delete mBookmarkManager ;
2404
2411
delete mConnectionRegistry ;
2412
+ delete mBasemapPathRegistry ;
2405
2413
}
2406
2414
2407
2415
QgsApplication::ApplicationMembers *QgsApplication::members ()
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class QgsFieldFormatterRegistry;
32
32
class QgsColorSchemeRegistry ;
33
33
class QgsPaintEffectRegistry ;
34
34
class QgsProjectStorageRegistry ;
35
+ class QgsBasemapPathRegistry ;
35
36
class QgsRendererRegistry ;
36
37
class QgsSvgCache ;
37
38
class QgsImageCache ;
@@ -789,6 +790,12 @@ class CORE_EXPORT QgsApplication : public QApplication
789
790
*/
790
791
static QgsProjectStorageRegistry *projectStorageRegistry () SIP_KEEPREFERENCE;
791
792
793
+ /* *
794
+ * Returns the registry of basemaps paths
795
+ * \since QGIS 3.14
796
+ */
797
+ static QgsBasemapPathRegistry *basemapPathRegistry () SIP_KEEPREFERENCE;
798
+
792
799
/* *
793
800
* This string is used to represent the value `NULL` throughout QGIS.
794
801
*
@@ -913,6 +920,7 @@ class CORE_EXPORT QgsApplication : public QApplication
913
920
QgsActionScopeRegistry *mActionScopeRegistry = nullptr ;
914
921
QgsAnnotationRegistry *mAnnotationRegistry = nullptr ;
915
922
QgsColorSchemeRegistry *mColorSchemeRegistry = nullptr ;
923
+ QgsBasemapPathRegistry *mBasemapPathRegistry = nullptr ;
916
924
QgsNumericFormatRegistry *mNumericFormatRegistry = nullptr ;
917
925
QgsFieldFormatterRegistry *mFieldFormatterRegistry = nullptr ;
918
926
QgsGpsConnectionRegistry *mGpsConnectionRegistry = nullptr ;
You can’t perform that action at this time.
0 commit comments