Matthias Kuhn
cf77ffe85b
Config interface for apply on update default values
2017-09-29 17:52:33 +02:00
Harrissou Sant-anna
9f18050e62
Filling the help infrastructure ( #5064 )
...
* Filling the help infrastructure
Add missing help button and links to user manual
* Remove unneeded comment
* remove unneeded comment
* Remove unneeded comment
2017-08-24 12:24:32 +02:00
Matthias Kuhn
9581fe0a10
[FEATURE] Add snapping results to default value calculation
...
... as @snapping_results variable
2017-07-07 12:58:55 +02:00
Nyall Dawson
4a5c9a7ba3
Make a new global QgsGui singleton
...
Move QgsEditorWidgetRegistry from being a singleton itself to
instead being a member of the QgsGui singleton
2017-05-15 07:32:01 +10:00
Alessandro Pasotti
1822caa803
QgsSettings: removed leading slashs from keys
2017-03-08 11:11:47 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
dccf8c9e13
run astyle on src/app
2017-03-03 09:09:37 +01:00
Matthias Kuhn
928f360c77
Make attribute table aware of disappearing field formatters
2016-12-20 01:20:08 +01:00
Matthias Kuhn
1b5e577fd3
Generic code cleanup
2016-12-20 01:20:08 +01:00
Matthias Kuhn
22c492e6e5
Rename QgsFieldKit to QgsFieldFormatter
2016-12-20 01:20:08 +01:00
Matthias Kuhn
9fd0802939
Remove QgsEditorWidgetConfig
...
This is replaced with a QVariantMap. It was never really more than this in the
past and with the switch to QgsConfigurationProperties, there is really no
longer any reason to assume that this will change.
2016-12-20 01:20:08 +01:00
Matthias Kuhn
82d1871f8c
Put field kit into use
2016-12-20 01:20:08 +01:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08: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
4efad04bd8
Move constraints to QgsField
2016-11-02 11:07:07 +10:00
Nyall Dawson
f6c1bf7f5b
Add gui for setting/exposing constraints in field properties
...
Provider set constraints cannot be changed by users, ie
if a not null constraint is set on the field at the database
then QGIS users cannot clear this constraint.
2016-11-02 11:07:07 +10:00
Nyall Dawson
4166a3ea62
Fix most clazy qstring-unneeded-heap-allocations warnings
...
By flipping string literals to QStringLiteral/QLatin1String
see
https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Matthias Kuhn
9242d225e5
Remove fields from default value configuration widget
2016-10-05 20:02:51 +02:00
Matthias Kuhn
b642c3ff5e
Show fields in "default value" expression editor
2016-10-05 13:41:03 +02:00
Nyall Dawson
99405864ca
Add a changed signal to QgsEditorConfigWidget
...
And update default value expression preview whenever editor
config changes
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:52 +10:00
Nyall Dawson
e35c6b4640
Use widget representValue to preview default expression results
...
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:40:47 +10:00
Nyall Dawson
66cb422669
Add UI for setting default field value expressions in the
...
field property dialog
Sponsored by DB Fahrwegdienste GmbH
2016-08-30 12:39:55 +10:00
Juergen E. Fischer
f2d6209e9e
rename QgsAttributeTypeDialog::setWidgetV2Config & QgsAttributeTypeDialog::setWidgetV2Type
2016-08-10 12:12:28 +02:00
Juergen E. Fischer
0688621046
scripts/replacev2.sh run
2016-08-10 12:08:52 +02:00
Blottiere Paul
8449e42ae0
add constraint description
2016-05-31 20:16:22 +02:00
Blottiere Paul
7d71c973ab
fix parameter's name camelcase
2016-05-31 20:16:21 +02:00
Blottiere Paul
aba02f11e0
rename constraint to expression for method's name
2016-05-31 20:16:21 +02:00
Blottiere Paul
020d20a968
[FEATURE] constraints on widgets
2016-05-31 20:16:21 +02:00
Matthias Kuhn
4ae1b55566
Add not null constraint and visual feedback to widgets
2016-05-31 20:16:21 +02:00
Juergen E. Fischer
0ba038fcc1
remove a failing connect and avoid absolutePath warning in empty project
2016-02-25 21:51:36 +01:00
Nyall Dawson
1969e09b6f
Also avoid detaching QgsFields and QgsAttributes where possible
2015-10-20 20:36:08 +11:00
Nyall Dawson
24b18bc426
Call qDeleteAll on containers themselves, rather than using
...
qDeleteAll( container.values() ). The values() call isn't
needed and requires building a QList of values first.
Thanks clazy - keep the good optimisations coming!
2015-10-17 09:15:51 +11:00
Nyall Dawson
5ed3d1b73f
Use QString::arg multi argument method to avoid extra heap allocations
2015-10-15 17:51:06 +11:00
Matthias Kuhn
e832b2a28a
Add QgsVectorLayer::fields()
as alias to pendingFields()
...
pendingFields() is not very intuitive and leads to confusion for new developers.
2015-08-04 15:13:31 +02:00
Denis Rouzaud
9e3183c63f
Revert "sort includes"
...
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73
sort includes
2015-06-10 13:59:08 +02:00
Juergen E. Fischer
82b6e0342a
cosmetic cleanups, typo fixes, formatting
2014-10-21 01:33:20 +02:00
Matthias Kuhn
5ec1b75f9a
Edit widget properties dialog: Improve window title
...
Includes the field name and layer name in the window title.
2014-10-14 12:06:32 +02:00
Matthias Kuhn
f63a01cc7c
Fix memory leak and pass ownership of py editor widgets to C++
2014-08-03 18:49:02 +02:00
Matthias Kuhn
1494069735
Use icons on fields properties, disable "editable" where inappropriate
2014-07-24 08:57:21 +02:00
Nathan Woodrow
e85f560607
Restore dialog size for some dialogs
2014-05-25 21:55:20 +10:00
Juergen E. Fischer
43dfb9c484
indentation update
2014-05-24 03:55:54 +02:00
Matthias Kuhn
ea91b6fe4a
[FEATURE] Port editor widgets to new API
...
Create a new widget for for attribute form
fix #10281
fix #7319
fix #7013
fix #9335
fix #4417
2014-05-22 22:50:36 +02:00
Carl Simonson
3e0e0edec7
Fix uses of deprecated Qt methods
...
There are still a few leftovers from the Qt 3 to Qt 4 migration that can
be found by defining QT_NO_DEPRECATED. Here is a summary of the changes:
* QDir::convertSeparators was changed to QDir::toNativeSeparators with Qt 4
* QRexExp::numCaptures was changed to captureCount with Qt 4
* QTextIStream/QTextOStream was merged into QTextStream with Qt 4
* QFileDialog::selectFilter/filters was changed to
selectNameFilter/nameFilters with Qt 4.4
* qVariantCanConvert/qVariantValue was changed to canConvert/value with Qt
4
Note that if a conversion to Qt 5 will happen someday, this will have to
be done since Qt 5 removes these deprecations.
2014-03-16 11:16:25 -05: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
Martin Dobias
9fb6a1cae1
Moving canvas away from QgsMapRenderer, now with OTF projections working
2013-11-01 17:35:39 +07:00
Matthias Kuhn
278c871453
Editor widget configuration: Only show one config dialog at a time
2013-10-16 08:37:41 +02:00
Matthias Kuhn
df672e88f1
Add option to insert a NULL value in a value map when loaded from layer
2013-10-10 10:22:42 +02:00
Matthias Kuhn
770e52b0e5
Modularize editor widgets
2013-09-26 16:06:29 +02:00