Matthias Kuhn
e025011799
Make Mr. Travis happy
2017-09-29 17:52:33 +02:00
Matthias Kuhn
f0b71499d1
Rename QgsField::defaultValue
...
It's now called QgsField::defaultValueDefinition, because it's only a
value after being evaluated
2017-09-29 17:52:31 +02:00
Matthias Kuhn
d6eb7ba3e7
Add "apply on update" option to default values
2017-09-29 17:52:28 +02:00
Denis Rouzaud
2eb3e64803
[sipify] properly handle python signatures
2017-06-12 11:35:16 +02:00
Denis Rouzaud
8231d7528b
sipify QgsExpressionContext, QgsFeatureRequest, QgsOptionalExpression
2017-05-17 15:20:31 +02:00
arnaud.morvan@camptocamp.com
8376a30f7a
Sipify QgsField
2017-05-01 01:05:33 +02:00
Harrissou Sant-anna
ef85cdcf83
Replace "eg" by "e.g." or "for example"
2016-12-30 00:03:22 +01: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
f99ea26bdf
Refactor constraint handling
...
- store constraint origin in QgsField
- move handling of constraint expressions to QgsField
2016-11-02 11:07:07 +10:00
Nyall Dawson
4efad04bd8
Move constraints to QgsField
2016-11-02 11:07:07 +10: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
Patrick Valsecchi
57d00949f7
Add an editor widget for QVariantList
2016-09-13 09:16:17 +02:00
Patrick Valsecchi
abc55f4c42
Add support for arrays in PostgresQL
...
Fix parsing of PostgresQL hstore. Had problems when the key or values were
containing comas.
2016-09-12 10:33:00 +02:00
Patrick Valsecchi
7169079f91
Smarter default edit widgets with plugins to pick them
...
Now the widgets factories can give a score on how good they could handle
a widget.
Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.
I took the opportunity to remove a few deprecated method in relation to
this.
2016-09-05 14:22:17 +02:00
Nyall Dawson
97d7b7339e
Move storage of field alias and default value to QgsField
...
This is a partial implementation - QMaps are still used internally
within QgsVectorLayer to track the alias/default values
between attribute edit operations.
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:55 +10:00
Matthias Kuhn
a529b448e7
Revert "Merge pull request #3338 from pvalsecc/editor_widgets_selection"
...
This reverts commit bbafbf48872eda48a2be8876cc89a0770552c6ad, reversing
changes made to 13ac0434e10fc7edd1eca665ea7c8b6cb5fd212d.
2016-08-29 19:22:04 +02:00
Patrick Valsecchi
24bde35ce6
Smarter default edit widgets with plugins to pick them
...
Now the widgets factories can give a score on how good they could handle
a widget.
Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.
I took the opportunity to remove a few deprecated method in relation to
this.
2016-08-29 07:42:50 +02:00
Matthias Kuhn
af0947826b
Add isNumeric and QML bindings to QgsField
2016-08-17 07:16:19 +02:00
Nyall Dawson
ed4d34fdbc
QgsFields returns QgsField value instead of const references
...
(since QgsField is implicitly shared)
2016-08-05 06:08:07 +10:00
Matthias Kuhn
4ae1b55566
Add not null constraint and visual feedback to widgets
2016-05-31 20:16:21 +02:00
Nyall Dawson
0fcff9f2a0
Allow direct QVariant creation from some QGIS metatypes
2016-05-20 09:48:18 +10:00
Nyall Dawson
87661a03cd
Move field icon calculation to QgsFields, show correct field type
...
icons in attribute table column filter menu (instead of new
attribute icon) and in field table in vector properties
2016-02-17 21:39:58 +11:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
Nyall Dawson
fe221d54bf
Don't return QStrings by reference, since they're implicitly shared
...
anyway
2015-10-28 09:47:44 +11:00
Juergen E. Fischer
0559939725
partly revert 3e0badc ( fixes #13645 and #13646 )
2015-10-22 01:14:42 +02:00
Juergen E. Fischer
3e0badcb55
Fix sip conversion from QgsFields to QList<QgsField> ( fixes #9208 )
2015-10-17 22:03:03 +02:00
Nyall Dawson
5ed3d1b73f
Use QString::arg multi argument method to avoid extra heap allocations
2015-10-15 17:51:06 +11:00
Juergen E. Fischer
8e2b791092
case-sensitivity of vector layer field ( fixes #13032 )
...
* fieldNameIndex: resort to case-insensitive lookup only if
case-sensitive lookup has no match
* file writer: fix handling of fields that only differ by case
2015-10-11 22:42:28 +02:00
Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Nyall Dawson
42d5b9b2aa
Python exceptions for invalid keys in QgsFields methods ( fix #13221 )
2015-08-16 16:08:04 +10:00
Juergen E. Fischer
edeafa95ac
indentation and minor sip updates
2015-05-03 17:10:32 +02:00
Nyall Dawson
bb648306b6
Implicit sharing for QgsFields
2015-05-03 20:57:36 +10:00
Nyall Dawson
fadaf12490
Implement implicit sharing for QgsField
2015-05-02 19:12:44 +10:00
Juergen E. Fischer
bfb8ab6893
edit widgets: keep default values of new feature's attributes until they are added
...
(fixes #12391 & #12386 )
2015-03-18 16:09:47 +01:00
Juergen E. Fischer
abd4a04399
sip update
2015-02-03 02:21:52 +01:00
Matthias Kuhn
7318c73012
Convert values to target field format
...
For the field calculator and virtual fields.
Fix #11000
Fix #10995
Fix #10993
2014-10-06 10:18:02 +02:00
Martin Dobias
071a5ec0c5
Fix #10912 (joined attributes are not correctly propagated in nested joins)
...
This commit makes QgsVectorLayerJoinBuffer listen to changes in fields
of joined vector layers in order to update the cache and inform parent layer
2014-09-09 20:17:51 +07:00
Juergen E. Fischer
c4c131ef75
sip sync
2014-05-27 23:32:42 +02:00
Martin Dobias
5a4f8d07a0
Change "added/deprecated in 2.1" notes to 2.4 for stuff related to threading
2014-02-21 17:33:09 +07:00
Martin Dobias
a3af93394e
Merge branch 'master' into threading-revival
...
Some features are still disabled - will be fixed later
Conflicts:
python/core/composer/qgscomposition.sip
python/core/diagram/qgsdiagram.sip
python/core/diagram/qgshistogramdiagram.sip
python/core/diagram/qgspiediagram.sip
python/core/diagram/qgstextdiagram.sip
python/core/qgsdiagramrendererv2.sip
python/core/qgsfield.sip
python/core/qgslabelsearchtree.sip
python/core/qgsmaprenderer.sip
python/core/qgsrenderchecker.sip
python/core/symbology-ng/qgssymbollayerv2.sip
python/gui/qgsmapcanvas.sip
src/app/composer/qgscomposerlegendwidget.cpp
src/app/qgisapp.cpp
src/core/composer/qgsatlascomposition.cpp
src/core/composer/qgscomposerattributetable.cpp
src/core/composer/qgscomposermap.cpp
src/core/composer/qgscomposition.cpp
src/core/composer/qgscomposition.h
src/core/diagram/qgsdiagram.h
src/core/diagram/qgshistogramdiagram.cpp
src/core/diagram/qgshistogramdiagram.h
src/core/diagram/qgspiediagram.cpp
src/core/diagram/qgspiediagram.h
src/core/diagram/qgstextdiagram.cpp
src/core/diagram/qgstextdiagram.h
src/core/qgsdiagramrendererv2.cpp
src/core/qgsdiagramrendererv2.h
src/core/qgsmaprenderer.cpp
src/core/qgsmaprenderer.h
src/core/qgsnetworkaccessmanager.h
src/core/qgspallabeling.cpp
src/core/qgsrenderchecker.h
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerfeatureiterator.cpp
src/core/qgsvectorlayerfeatureiterator.h
src/core/raster/qgsrasterlayer.cpp
src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
src/core/symbology-ng/qgssymbollayerv2.cpp
src/core/symbology-ng/qgssymbollayerv2.h
src/core/symbology-ng/qgssymbolv2.cpp
src/gui/qgshighlight.cpp
src/gui/qgsmapcanvas.cpp
src/gui/qgsmapcanvas.h
src/gui/qgsmapcanvasitem.cpp
src/gui/qgsmaptoolidentify.cpp
src/plugins/georeferencer/qgsgeorefplugingui.cpp
src/providers/memory/qgsmemoryfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.cpp
src/providers/ogr/qgsogrfeatureiterator.h
src/providers/ogr/qgsogrprovider.cpp
src/providers/oracle/qgsoraclefeatureiterator.cpp
src/providers/oracle/qgsoracleprovider.cpp
src/providers/postgres/qgspostgresconn.cpp
src/providers/postgres/qgspostgresfeatureiterator.cpp
src/providers/postgres/qgspostgresfeatureiterator.h
src/providers/wfs/qgswfsfeatureiterator.cpp
src/providers/wms/qgswmsprovider.cpp
src/providers/wms/qgswmsprovider.h
src/ui/qgsoptionsbase.ui
tests/src/core/CMakeLists.txt
tests/src/core/testqgscomposereffects.cpp
tests/src/core/testqgscomposerhtml.cpp
tests/src/core/testqgscomposerscalebar.cpp
tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Juergen E. Fischer
a9d8bd1e5b
update sip some bindings
2014-01-18 23:05:32 +01:00
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Matthias Kuhn
d1768b85fc
[SIP] Change all occurences of convert[From|To]Instance to convert[From|To]Type
...
Removal of these deprecated calls is expected to improve stability
2013-08-13 12:35:49 +02:00
Juergen E. Fischer
3854086d47
sip update
2013-06-23 16:00:24 +02:00
Matthias Kuhn
d0d381a024
Adjust data type
2013-06-16 14:58:50 +02:00
Matthias Kuhn
1aa8a17f98
Fix some memory management issues
...
aka reduce noise in valgrind memory analyzer
2013-06-15 15:01:54 +02:00
Matthias Kuhn
b6770be729
[ftools] Fix "Join attributes by location"
2013-06-15 11:43:15 +02:00
Radim Blazek
e5366b06c6
python QgsField.__len__() fix; fixes PyQgsMemoryProvider and PyQgsVectorLayer test on platforms with SIP < 4.10.3
2013-04-20 11:20:15 +02:00
Martin Dobias
81b0930498
QgsVectorLayer: large internal refactoring
...
Most important changes:
- introduced feature iterator for QgsVectorLayer
- vector editing moved to QgsVectorEditBuffer
- complete rework of undo/redo commands for vector layers
- geometry cache separated from editing (QgsVectorLayerCache)
- non-essential editing functionality moved to QgsVectorLayerEditUtils
2012-12-17 21:22:42 +01:00