76 Commits

Author SHA1 Message Date
Nyall Dawson
bf12404659 Revert 5b9be7a
Since the attribute table dialog object name is set to match
the layer/featureid combo, this commit was causing the attribute
form dialog to remember its position and size for each
feature/layer combo individually.

That's NOT what we want!

Fixes #18426
2018-03-16 12:01:46 +11:00
David
79e524083c disable or do not display maplayeractions
in some cases
2018-02-23 00:06:06 +00:00
Salvatore Larosa
5b9be7a966 apply enableAutoGeometryRestore to feature form dialog 2018-02-01 23:30:35 +01:00
Matthias Kuhn
11eb9cfe57
Show actions menu in feature form
Fix #16889
2017-10-02 09:44:50 +02:00
Nyall Dawson
ba64e3e533 Remove redundant initializations
Fixes when a member is initialized both in the header and
source to the same initial value

(via clang-tidy modernize-use-default-member-init fixit)
2017-09-11 17:09:35 +10:00
Nyall Dawson
2446dae163 Some more new style connects 2017-03-23 08:51:34 +10: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
e7079eead9 run astyle on src/gui 2017-03-03 09:09:37 +01:00
Matthias Kuhn
5b4a88f8e0 [feature] Add layer scoped actions
Within the attribute table, there is a new button to trigger actions
which are not based on individual features but instead on the whole layer.
Normally they will perform actions based on all features or the selection.

In addition to this, a lot of cleanup has been done.
2016-11-16 09:33:19 +01:00
Hugo Mercier
9ecdf61014 Don't delete QgsAttributeDialog too early. Fixes #15737 2016-10-28 11:17:46 +02:00
Nyall Dawson
fe65063c2b Remove many deprecated methods 2016-09-15 18:34:15 +10:00
Juergen E. Fischer
39c4409c6a remove deprecated stuff from QgsVectorLayer and editor widgets 2016-08-10 12:12:28 +02:00
Nyall Dawson
ce7d79e495 Show scrollbars for attribute form as identify results 2016-06-09 16:48:27 +10:00
Nyall Dawson
b44f62a1c2 Cleanups for attribute form in search mode 2016-06-09 16:48:27 +10:00
Matthias Kuhn
8c402bcf42 Remove child features when parent's add feature form is cancelled 2016-05-17 06:35:55 +02:00
Nyall Dawson
576875e998 Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr 2015-12-15 11:24:51 +11:00
Nyall Dawson
ee720796a3 Change size()/count() == 0 and count() > 0 to isEmpty() checks
Because:
- easier to read
- follows recommendations by clazy/KDAB
- potentially performance benefits
2015-12-08 22:45:06 +11:00
elpaso
ad2caed3b2 Removed parent and replaced with QgsAttributeDialog
This makes possible to resize/alter the outer dialog
from python init code in the form.

Fixes #11517 (indirectly)
2015-11-12 16:55:39 +01:00
Matthias Kuhn
2e8505378e Only highlight feature of active attribute dialog
Fix #13634
2015-10-23 14:27:48 +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
Matthias Kuhn
40da097f50 Close attribute dialog when layer is removed
Fix #12336
2015-03-18 18:40:46 +01:00
Nyall Dawson
c1fe68c821 Fix big parameter passed by value warnings 2015-02-16 16:11:57 +11:00
Matthias Kuhn
c19eb60d2f Fix graphical glitches caused by empty menu on attribute dialog
Fix #12061
2015-01-29 16:58:32 +01:00
Matthias Kuhn
ea54b3c661 Only show actions menu on attribute dialog when necessary
Fix #12013
2015-01-21 17:13:09 +01:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Juergen E. Fischer
23f39a2313 attribute dialog: really keep cloned feature until destruction (feature action
also need it and crash otherwise)

This reverts revert commit f618cae5e8a9c893038101db54f5ddecb5087cdf.
2014-10-30 13:31:52 +01:00
Matthias Kuhn
a7f889dc53 Use a copy of the feature for the action menu in the attribute dialog 2014-10-29 13:54:37 +01:00
Matthias Kuhn
f618cae5e8 Revert "attribute dialog: keep clone feature until destruction (fixes crash from action"
This reverts commit f9fcee980ec7fb721187080f853f86dfbf453918.
2014-10-29 13:53:42 +01:00
Juergen E. Fischer
f9fcee980e attribute dialog: keep clone feature until destruction (fixes crash from action
menu)
2014-10-29 11:40:28 +01:00
Matthias Kuhn
ba3cca2679 Attribute dialog: Show layer name in title bar 2014-10-04 11:32:40 +02:00
Matthias Kuhn
ba7f0a3457 Add action menu to attribute dialog 2014-09-16 11:51:17 +02:00
Matthias Kuhn
b1a2bef1fc [relation widgets] General update
* Improve speed (lazy loading)
 * Loop detection for circular dependencies (Fix #10850)
 * Some memory leaks fixed
 * More const-correctness
 * Fix the attribute editor context
2014-09-12 09:30:39 +02:00
Matthias Kuhn
3e53c39261 Don't double add features
Fix #10969
2014-07-30 12:14:52 +02:00
Matthias Kuhn
622e2d14ab Set focus to first widget on attribute form 2014-07-23 12:03:47 +02:00
Matthias Kuhn
ad5aa3050e Fix attribute dialog crash on close 2014-07-23 10:37:52 +02:00
Matthias Kuhn
38c2eebf2e Attribute dialog: save/restore window geometry
Fix #8784
2014-06-26 20:00:41 +02:00
Juergen E. Fischer
386e2f3b53 set feature form windows title 2014-06-01 17:13:31 +02:00
Matthias Kuhn
644dd13c3a Fix add features dialog
Fix #10362
2014-05-27 18:20:55 +02:00
Matthias Kuhn
3871ce7207 Revert "Fix #10337 - Allow attribute form on all features (new QgsFeatures are invalid)"
This reverts commit 9bdc932e9648d885352da772dc13687562617d43.
2014-05-25 11:04:03 +02:00
Nathan Woodrow
9bdc932e96 Fix #10337 - Allow attribute form on all features (new QgsFeatures are invalid) 2014-05-25 14:33:03 +10:00
Juergen E. Fischer
43dfb9c484 indentation update 2014-05-24 03:55:54 +02:00
Denis Rouzaud
431b065909 [FEATURE] new edit type: date/time edit 2014-05-22 22:51:42 +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
Nathan Woodrow
2e8ba8b13c Save dialog geometry on attribute form reject 2014-05-21 13:18:21 +10:00
Sandro Mani
a92c8d27d8 Remove redundant check 2014-04-30 14:05:34 +02:00
Sandro Mani
a704b9fad0 Fix crash with empty attribute list 2014-04-30 14:05:34 +02:00
Matthias Kuhn
b02ad1e7d9 More LongLong fixes
Fix #9761
2014-03-11 17:21:14 +01:00
Matthias Kuhn
6dff9e4fa5 [relations] Fix autogenerated feature forms 2013-12-18 10:01:37 +01:00
Matthias Kuhn
999a996b73 AttributeForm: Create a dummy button box for intercepting ok clicks
when the ok button is hidden and the accept was actually triggered
by something else. This allows to continue using custom validation
logic without changes.
Fixes #8885
2013-12-03 09:48:38 +01:00