Martin Dobias
8d24e1744b
Added zmin/zmax parameters to limit usable zoom levels
2020-03-27 14:07:24 +01:00
Martin Dobias
5ec1890643
Moved to proper QgsMapLayer subclass + icon + optional tile borders
2020-03-27 12:08:40 +01:00
David Signer
81317996be
reading of all the custom properties to e.g. copy them to the offline project
2020-03-18 10:48:25 +10:00
Nyall Dawson
313b000147
Minor temporal properties cleanups and dox improvements
2020-02-24 20:35:25 +10:00
Samweli
c4355ab8b7
updates on map layers temporal properties classes
2020-02-08 08:26:21 +03:00
Samweli
930f7a596d
added new map layer temporal properties sub classes with tests
2020-02-08 08:26:21 +03:00
Samweli
8232f2db5a
edits per review on qgs map canvas
2020-02-08 08:26:21 +03:00
Samweli
618f257874
moved qgsabstracttemporal class to qgstemporalrangeobject class as per review suggestions
2020-02-08 08:26:21 +03:00
Samweli
62efb55af2
updates on tests and abstract temporal class
2020-02-08 08:26:21 +03:00
Alessandro Pasotti
90ac90b4a9
Weak relations and auto-restore when loading a style
2019-12-19 10:33:24 +01:00
Nyall Dawson
377848e2ad
Add QgsMapLayer::isTemporary to test whether a map layer is temporary
...
These include memory layer provider layers, or layers physically
stored inside a user's temporary folder (e.g. /tmp)
2019-11-09 13:43:03 +10:00
Alessandro Pasotti
faeaab1a57
Sipify
2019-10-31 17:33:49 +01:00
Alessandro Pasotti
73beaca45a
Address PR comments
2019-10-30 14:41:34 +01:00
Alessandro Pasotti
64949dc227
Check vector layer widget broken dependencies
2019-10-30 14:41:34 +01:00
Denis Rouzaud
758d7cff4a
run sipify to update deprecation annotations
2019-10-15 13:17:38 +02:00
Nyall Dawson
cb06519d16
[api] Add API to indicate that individual layers may be loaded without any
...
CRS validation, regardless of the user's settings
This avoids hacks put in place in other parts of QGIS code or in plugins
to temporarily deactivate the CRS validation prompt, providing a supported,
stable method to indicate that when loading a particular layer no CRS
validation is required.
2019-10-09 15:01:51 +10:00
Matthias Kuhn
61812648a3
Add API to hook into resolveReferences
2019-09-18 09:32:02 +02:00
Julien Cabieces
5b71e21613
[FEATURE] [needs-docs] Add circular data dependencies ( #30947 )
...
* [FEATURE] [needs-docs] Add circular data dependencies
2019-08-26 08:36:07 +02:00
Denis Rouzaud
e4faaf4988
add __repr__ for QgsMapLayer ( #31108 )
2019-08-06 13:36:14 +02:00
Nyall Dawson
51ed8c95b2
Dox++
2019-07-10 08:10:49 +10:00
Nyall Dawson
0cdad2307b
Add api to allow reading a QgsProject file without loading any layers
...
This causes the project to be read, but no data providers created for
layers (i.e. the same result as loading a project in the app and
choosing to leave bad layers in the project).
It's intended for occasions when you want to efficiently access properties
of a project without the (often very expensive) cost of actually
loading layers. E.g. to just read project metadata, parse the
layer tree structure, extract print layouts or renderer properties, etc.
2019-07-10 08:10:49 +10:00
Nyall Dawson
590d1aae9d
[FEATURE][API] Visitor API for style entities
...
Adds a new visitor pattern API for creation of visitors which visit
all the style entities (symbols, color ramps, text formats, and
label styles) associated with different objects. Can be used on a
renderer, map layer, or project wide level.
E.g. on a project wide level, allows collection of ALL the style
symbols/color ramps/text settings inside a project, including those
in layouts or annotations!
2019-07-06 12:36:54 +10:00
Alessandro Pasotti
103ef762ca
Factor out generateId for layers and fix QLR mutiple layers id import
2019-06-10 17:58:22 +02:00
Alessandro Pasotti
394a189682
Fix class documentation
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
5f3dc50ccc
Remove deprecated QgsCoordinateTransform ctor ...
...
... and add a getter for coordinateTransform to QgsMapLayer
The reason is that I think we should reduce the dataProvider API
usage and rely on the higher level QgsMapLayer API whenever it
is possible, QgsMapLayer checks for data provider validity
and returns a default constructed QgsCoordinateTransform instead
of crashing.
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
470759833e
coordinateTransformContext -> transformContext for consistency
...
I like "coordinateTransformContext" more btw.
2019-04-17 10:06:41 +10:00
Denis Rouzaud
375a0aa253
create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
...
the enum is moved out of the class
this will allow forward declaration more easily since the enum is not nested in the class
2019-03-24 21:40:33 -05:00
Nyall Dawson
107b48a430
Add NULLPTR macro for use in doxygen comments
...
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)
Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
a7ca08784c
Nullptr consistency in dox
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab
Sipify
2019-02-27 09:41:11 +10:00
Nyall Dawson
384d310233
Minor improvements to PyQGIS returns for SIP_OUT params
2019-02-05 04:55:34 +11:00
Denis Rouzaud
166e952c33
run sipify
2018-12-19 08:04:27 -04:00
Denis Rouzaud
32e844f9f8
fix multiline comments on out params
2018-12-18 17:29:04 -04:00
Denis Rouzaud
edfb7e1465
run sipify
2018-12-18 17:17:25 -04:00
Alessandro Pasotti
f02345bd8b
Remove unnecessary project from test data
2018-11-05 10:27:02 +01:00
Alessandro Pasotti
eb02004b60
Store original style as QDomDocument instead of an XML string
2018-11-05 10:27:02 +01:00
Alessandro Pasotti
a4182c1e04
Remove unnecessary project from test data
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
bc424d09c1
Store original style as QDomDocument instead of an XML string
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
3fe7848c16
Noted in the method documentation that dataProvider() may return null
2018-11-05 10:24:35 +01:00
Alessandro Pasotti
f856b4c8e3
Renamed originalXmlProperties methods and variables
2018-11-05 10:24:35 +01:00
Alessandro Pasotti
c32d542be5
Move setDataSource to QgsMapLayer
...
also setter and getter for providerType
2018-11-05 10:24:35 +01:00
Matthias Kuhn
1c359f8acd
Add a new QML category "Geometry Options"
...
And rename QgsGeometryFixes to QgsGeometryOptions
2018-09-19 13:51:00 +02:00
Denis Rouzaud
3724f9e9e2
use a model for select map layer style categories ( #7907 )
...
this avoids cluttering QgsMapLayer and reduces a bit code redundancy
2018-09-14 09:38:52 -08:00
Denis Rouzaud
4cdf0a2851
fixes: HIG guidelines, sipify, initialize, doxygen warnings
...
fix doxygen warning + docs
sipify
fix doxygen warning
initialize
2018-09-14 16:35:30 +10:00
Denis Rouzaud
97376b8217
single dialog to load style (QML, SLD, DB)
2018-09-14 16:35:30 +10:00
Denis Rouzaud
0cfa77db7f
fix documentation
2018-09-14 16:35:30 +10:00
Denis Rouzaud
5e6c382328
single dialog to save all types (QML, SLD, DataBase)
2018-09-14 16:35:30 +10:00
Denis Rouzaud
cb9774022f
create dialog for saving different styles
2018-09-14 16:35:30 +10:00
Denis Rouzaud
0df5b9e593
better API doc, own category for 3D, fix leak
2018-09-14 16:35:30 +10:00
Denis Rouzaud
e91a42def6
categories in paste style
2018-09-14 16:35:30 +10:00