Denis Rouzaud
15e4903890
sipify improvements
...
* add demo file and start a short doc
* fix some annotations
* do not display hidden line (SIP_SKIP, delete)
* use a defined var for SIP_SKIP
* remove constructor definition in header
* fix comment after method definition in header
* add a test for sipify itself
2017-03-30 15:13:01 +02:00
Denis Rouzaud
b0564becfd
also comment methods
...
fix comment starting on first line of block
2017-03-30 15:13:01 +02:00
Denis Rouzaud
7b08608f7f
sipify QgsVectorLayer, QgsFeature
2017-03-30 15:13:01 +02:00
Denis Rouzaud
ba6f736c02
remove comments from sipfiles (QgsVectorLayer and QgsFeature)
2017-03-30 15:13:01 +02:00
Nyall Dawson
0faf7c395f
Allow value fetching and histogram calculation to be canceled
2017-02-22 11:16:54 +10:00
Denis Rouzaud
7812d4fb17
remove the-prefix from source code
...
this might result in variables having the same name as some methods
2017-02-21 18:14:58 +01:00
Vincent Mora
77bf999094
Merge pull request #3905 from nextgis/25d_enhancement
...
[FEATURE] QGIS setting to choose default Z value
2017-02-13 09:11:27 +01:00
Nyall Dawson
4f7d9cddfe
Merge pull request #4064 from jgrocha/delete-style-from-db-provider-postgis
...
Delete style from db provider postgis
2017-02-06 08:34:24 +10:00
Jorge Gustavo Rocha
8b36ad5b90
Updated Qt connections to the new style qgis/QGIS-Enhancement-Proposals#77
...
Changed isDeleteStyleFromDBSupported to isDeleteStyleFromDbSupported
2017-02-05 19:35:47 +00:00
alisovenko
d780ba7593
Merged master fixed conflict.
2017-02-03 18:11:49 +03:00
Jorge Gustavo Rocha
738fbd455b
revert the SIP deleteStyleFromDatabase signature
2017-01-31 12:09:48 +00:00
Jorge Gustavo Rocha
e649280601
improve deleteStyleFromDatabase signature
2017-01-31 11:31:14 +00:00
Jorge Gustavo Rocha
8e989c1e38
improve deleteStyleFromDatabase signature
2017-01-31 10:46:49 +00:00
Martin Dobias
7683cfacd3
Rework vector joins so they do not use QgsProject::instance()
...
The basic idea is to split reading of XML definition and resolution of layer IDs into layers.
Also includes some cleanups in QgsProject and improvements in QgsVectorLayerJoinInfo.
2017-01-31 09:33:02 +08:00
Jorge Gustavo Rocha
6d6f288102
make deleteStyleFromDatabase consistent with other vectorlayer's methods
2017-01-30 23:48:20 +00:00
Nyall Dawson
6c7e2f1b87
Make QgsVectorLayer ctor default to ogr provider
2017-01-27 15:53:35 +10:00
Denis Rouzaud
b119744773
replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively ( #4000 )
...
* replace cancelling and cancelled by canceling and canceled, respectively
see https://github.com/qgis/qgis3_UIX_discussion/issues/19
* replace cancellation by cancelation
2017-01-16 22:27:14 +01:00
Denis Rouzaud
0a63d1f2c2
[spellcheck] properly look into various cases and add more fixes"
2017-01-16 16:39:20 +01:00
Denis Rouzaud
bf22cbfa9d
[spellcheck] fix case detection + some fixes
2017-01-16 10:56:42 +01:00
Nyall Dawson
231f6af0e1
Don't return const references to implicitly shared Qt classes
...
Instead return the inexpensive copies. Should provide extra safety
against issues like #14822
(refs #14822 )
2017-01-14 15:53:45 +10:00
Denis Rouzaud
6c74e4ea5d
spelling fixes
2017-01-12 22:01:50 +01:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
alisovenko
f8d70619db
Add SIP bindings
2017-01-11 09:51:38 +03:00
Harrissou Sant-anna
ef85cdcf83
Replace "eg" by "e.g." or "for example"
2016-12-30 00:03:22 +01:00
Matthias Kuhn
8b2ea98871
Add missing bindings
2016-12-20 01:20:08 +01:00
Harrissou Sant-anna
f9578bf60b
Replace selectedFeaturesIds by selectedFeatureIds
2016-12-07 00:19:11 +01:00
Nyall Dawson
6d0203d612
Change QgsVectorLayer::featureCount( QgsSymbol* symbol ) to instead
...
use a legend key string
Avoids crashes due to symbol pointer lifetime issues
2016-12-02 13:55:41 +10:00
Nyall Dawson
4682eaf6eb
Add QgsVectorLayer::uniqueStringsMatching() to retrieve
...
a list of unique strings matching a substring for a field
2016-11-16 14:19:24 +01:00
Nyall Dawson
4a5faa083f
Remove duplicate selectionChanged signal from QgsVectorLayer
...
If you don't want the extra info, just don't capture it...
2016-11-15 07:00:49 +10:00
arnaud.morvan@camptocamp.com
a8d9dea1fb
Add QgsExpressionContextGenerator inheritances in sip
2016-11-06 17:58:54 +01:00
Nyall Dawson
fac5bc0691
[FEATURE] Field constraints can be enforced or not
...
Non-enforced constraints just show a warning to the user, but
do not prevent committing the feature. Enforced constraints
block users from comitting non compliant features.
Any constraints detected by the provider are always
enforced.
2016-11-02 13:42:22 +10:00
Nyall Dawson
cb94b68d88
Move constraint handling to QgsFieldConstraints
...
Avoids cluttering QgsField API
2016-11-02 11:07:07 +10:00
Nyall Dawson
2500d75f5e
Move responsibility for storage of constraint expressions to QgsVectorLayer
2016-11-02 11:07:07 +10:00
Nyall Dawson
bd9f672aa7
Allow constraints to be added at a QgsVectorLayer level
2016-11-02 11:07:07 +10:00
Even Rouault
e237963274
SIP QgsVectorLayer: fix signatures for output parameter
...
saveStyleToDatabase() and getStyleFromDatabase() should define errMsg as
output parameter
And loadNamedStyle() also for theResultFlag.
2016-10-25 10:28:53 +02:00
Nyall Dawson
44289084e9
Optimise passing of variables by ref/value
2016-10-24 10:36:23 +10:00
rldhont
726bac5291
Last Redo [BUGFIX][QGIS Server] Joins was not reloaded if the layer is in cache
...
Add an accessor to QgsVectorLayer join buffer, to not duplicate QgsVectorLayerJoinBuffer::readXml code
2016-10-12 17:03:38 +02:00
Matthias Kuhn
ff52a9f29b
setAttributeAlias is now setFieldAlias
2016-10-01 15:39:03 +02:00
Matthias Kuhn
37e06ae587
Rename setAttributeAlias and removeAttributeAlias
2016-10-01 15:39:03 +02:00
Matthias Kuhn
b6779f63ff
Rename QgsFields::fieldNameIndex() to lookupField()
...
To have two clearly different names for tolerant/intolerant index lookup
2016-10-01 15:39:03 +02:00
Martin Dobias
a9105b7e7a
Remove QgsMapLayer::draw() method from API (replaced by createMapRenderer()) ( #3501 )
2016-09-16 18:32:36 +08:00
Matthias Kuhn
665df5fbd6
Merge pull request #3436 from aaime/scaledep
...
Export map level scale based dependencies in most vector symbology
2016-09-01 13:28:48 +02:00
Hugo Mercier
a86611b626
Cleanup layer dependency api
2016-09-01 09:58:37 +02:00
Andrea Aime
a25b0257a5
Export map level scale based dependencies in most vector symbology
2016-09-01 07:40:56 +02:00
Hugo Mercier
0749ba43ba
Rework layer dependencies
...
A new class QgsMapLayerDependency allows to represent different kinds
of dependencies between layers.
2016-08-31 14:40:13 +02:00
Hugo Mercier
1a5a7c5905
[Feature] Data dependencies between layers
...
This allows to declare data dependencies between layers. A data
dependency occurs when a data modification in a layer, not by direct
user manipulation may modify data of other layers.
This is the case for instance when geometry of a layer is updated by a
database trigger after modification of another layer's geometry.
2016-08-31 09:22:09 +02:00
Nyall Dawson
4d5bae22b8
[FEATURE] Client side default field values
...
Allows an expression to be set for a vector layer field which
is used to evaluate a default value for this field.
A new method,
QgsVectorLayer::defaultValue( int index,
const QgsFeature& feature = QgsFeature(),
QgsExpressionContext* context = nullptr )
has been added which evaluates the default value for a given field
using the optionally passed feature and expression context. This
allows default values to utilise properties of the feature
which exist at the time of calling, such as digitized geometries.
The expression context parameter allows variables to be used
in default value expressions, making it easier to eg insert
a user's name, current datetime, project path, etc
Default values are set using QgsVectorLayer::setDefaultValueExpression()
and retrieved using defaultValueExpression()
2016-08-30 12:39:55 +10:00
Matthias Kuhn
11c626d8e1
Add readOnly property to QgsVectorLayer
2016-08-19 16:36:57 +02:00
Matthias Kuhn
fd4fe83641
Doxymentation and sip bindings
2016-08-19 09:03:07 +02:00
Matthias Kuhn
5c20f0782a
Cleanup QgsEditFormConfig
...
* It's now implicitly shared, meaning that changes to the config
can be supervised and a signal is sent from QgsVectorLayer and
there is no risk of elements suddenly being deleted.
* Remove a bunch of methods that were in QgsVectorLayer for legacy
reasons.
2016-08-19 09:03:07 +02:00