103 Commits

Author SHA1 Message Date
David
7e2ee74da8 help and suppress form
help from attributetypedialog is handled over the help of vectorlayerproperties
suppress form combo takes the default value from the settings
fixed troubles on loading gui
2017-11-06 16:34:05 +01:00
David
52240ad7f7 fixed problem with saving first entry 2017-11-06 14:21:21 +01:00
David
2c0d5188d5 some changes in attribute form properties and source data properties
changed style of layout, initcode and suppress-combo
display read only comment
fixed saving of wfs
improved layout
some tooltips
2017-11-06 13:29:47 +01:00
David
9df37d315b alias field and fixed problem with storing 2017-10-27 07:45:12 +02:00
signedav
d097de4d6e Merge branch 'master' into propertieslayout 2017-10-26 19:26:10 +02:00
Nyall Dawson
1429f2c778 Remove autoconnected slots, pt 2 2017-10-09 08:48:23 +10:00
Nyall Dawson
92af1dacaf Replace default constructors/destructors with = default 2017-10-01 06:52:14 +10:00
Matthias Kuhn
e0cdb18ec1
Fix indentation 2017-09-29 17:52:34 +02:00
Matthias Kuhn
cf77ffe85b
Config interface for apply on update default values 2017-09-29 17:52:33 +02:00
Matthias Kuhn
d5e0b183ff
Fix store/reload of widget configuration 2017-09-29 14:15:30 +02:00
Matthias Kuhn
d2f11b34b9
Merge remote-tracking branch 'qgis/master' into propertieslayout 2017-09-28 14:48:49 +02:00
Matthias Kuhn
431250499f
Change widget selection list to combobox 2017-09-28 14:01:51 +02:00
David
c8495ea4e9 work in progress status 2017-09-20 16:12:13 +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