1627 Commits

Author SHA1 Message Date
Denis Rouzaud
d8cc285fd2 fix NULL constraint on date/time widget with allow NULL
the issue was that widget wrapper was using parent QDateTimeEdit::dateTimeChanged signal. It was connected both internally to QgsDateTimeEdit::changed and in the form to detect changes. When QgsAttributeForm was recreating the updated feature it was calling QgsDateTimeEdit::value() before changed() could update the value (i.e. setting mIsNull to false).

fix #17790
2018-01-04 20:38:51 -04:00
Nyall Dawson
66aaaadd67 Fix tracing still active when snapping is turned off
Otherwise tracing is disabled in the snapping toolbar, yet still
active on the canvas.
2018-01-04 19:29:36 +11:00
Nyall Dawson
8f15cdf680 Respect transform contexts when tracing 2018-01-04 15:04:42 +11:00
Denis Rouzaud
230e91c44b [date time widget] do not use minimumDateTime for NULL values
fixes issue when setting min and max values for the widget
2018-01-02 20:41:24 -04:00
Nyall Dawson
21296982e1 Link metadata widget to canvas
So that child widgets which can take properties from canvas
can have full functionality
2018-01-03 11:06:46 +11:00
Denis Rouzaud
39b183fef4 remove include and forward declarations left-overs 2018-01-01 20:09:46 -04:00
Denis Rouzaud
7237dab6ec [QDateTimeEdit] use QLineEdit::addAction
instead of custom tool button
this seems to solve many issues :)
kudos to @nyalldawson for pointing to it
and a happy new year!
2018-01-01 20:09:46 -04:00
Denis Rouzaud
86feed4955 [QgsDateTimeEdit] use special value text to handle NULL values
the widget now uses a special value text to display NULL rather than painting a QLineEdit on top

a press on the spinbox buttons (non-calendar mode) is catch to set to current date to avoid starting at the minimum date
2018-01-01 20:09:46 -04:00
Nyall Dawson
e7e37efed7
Merge pull request #5926 from nyalldawson/proc_dialog
[processing] Add api to show algorithm dialog, use dialog for history
2017-12-27 22:34:13 +11:00
Nyall Dawson
c7e37e89eb [sipify] Correctly convert doxygen warning blocks to sphinx warnings 2017-12-23 18:48:03 +11:00
Nyall Dawson
54910fc3ce Fix algorithm dialog window geometry save/restore 2017-12-21 10:43:49 +10:00
Nyall Dawson
ce28cf5087 Save algorithm results to dialog 2017-12-21 10:38:38 +10:00
Etienne Trimaille
9a5435ff1e remove CRS picker and allow only layer CRS or provider CRS in metadata editor (#5915) 2017-12-20 10:35:49 +02:00
Nyall Dawson
3c7f745424
Merge pull request #5919 from nyalldawson/iter_datum
Use transform context in feature requests with destination crs set
2017-12-20 19:02:11 +11:00
Nyall Dawson
4643712a1e Fix missing transform contexts for QgsDistanceArea
QgsDistanceArea.setSourceCrs() now requires a QgsTransformContext
argument.
2017-12-20 17:37:46 +10:00
Mathieu Pellerin
bf8570920f
Use qgsfilewidget for the delimited text prodivder source select (#5920) 2017-12-20 12:43:30 +07:00
Denis Rouzaud
64c99e054c run sipify for code snippets 2017-12-19 21:17:29 -04:00
Denis Rouzaud
90e5196996 run sipify 2017-12-19 14:55:46 -04:00
Nyall Dawson
831732f3a3 Sipify 2017-12-17 14:18:36 +10:00
Nyall Dawson
261492ddca Add a messagebar to layout designer 2017-12-17 14:14:31 +10:00
Nyall Dawson
113664fe2e Port method for pausing layout view updates 2017-12-17 14:14:31 +10:00
Denis Rouzaud
be8d1d7782 run sipify 2017-12-16 10:45:52 -04:00
Denis Rouzaud
c604d2dda6 run sipify 2017-12-15 22:13:44 -04:00
Nyall Dawson
8802482778 Remove redundant overridden default destructor implementations 2017-12-16 08:50:55 +10:00
Nyall Dawson
4da1ce8404 Drop redundant virtual keywords on overrides
Run clang-tidy modernize-use-override to remove all the redundant
virtual keywords from overridden methods, and add some missing
overrides.

Another benefit is that this has also added the overrides
on destructors, which will cause a build failure if a base
class is missing a virtual destructor.
2017-12-16 08:49:36 +10:00
Denis Rouzaud
f2b3ed0a9b run sipify 2017-12-15 11:12:19 -04:00
Nyall Dawson
0c7cf21fe2
Merge pull request #5535 from nyalldawson/datum
Datum transform handling rework, pt 1
2017-12-15 22:53:02 +11:00
Denis Rouzaud
68aef9a426 ask for datum transform update on layer or project crs change
in the case of project crs change, if several transforms are available, pop up a message rather than showing multiple dialogs
2017-12-15 14:16:59 +10:00
Denis Rouzaud
5cc3a1f079 added method in QgisApp to ask for datum 2017-12-15 14:14:47 +10:00
Nyall Dawson
018bfb49f9 Remove QgsDatumTransformStore
and port usage over to QgsCoordinateTransformContext instead
2017-12-15 14:13:52 +10:00
Nyall Dawson
f2b70ffdc6 Allow clickable links in message bar text
Links are opened using QDesktopServices::openUrl, i.e. the
default OS handler for that link type
2017-12-15 14:48:52 +11:00
Etienne Trimaille
ff15896c30 getter for the output crs in QgsExtentGroupBox 2017-12-15 10:38:08 +11:00
Nyall Dawson
9984962257
Merge pull request #5864 from nyalldawson/favorites
[browser] Allow renaming favorite items
2017-12-15 08:58:28 +11:00
Matthias Kuhn
3abff0e938 Add allowEvalError flag to QgsExpression widgets
Some expression functions insist on a complete context which we
sometimes are not able to provide. The user might still have enough
knowledge that the expression is valid and an error will still be shown.
2017-12-14 09:04:07 +01:00
Nyall Dawson
8df67111cd [needs-docs][browser] Allow renaming favorite items
Otherwise favorites can be useless if you're trying to favorite
a long path

Fixes #6780
2017-12-14 15:44:39 +10:00
Nyall Dawson
a15b54d997 Swap missing 0->nullptr and add missing overrides 2017-12-12 21:14:58 +11:00
Alessandro Pasotti
e479b71594 [bugfix] Do not crash when layer is destroyed while loading
Fixes #17636 QGIS crashes when a layer is removed
while loading the attribute table
2017-12-09 16:07:02 +01:00
nirvn
de0ac14ae1 [ui] use qgsfilewidget in the save raster as dialog 2017-12-07 16:24:28 +07:00
nirvn
c2acb5feec [ui] use qgsfilewidget in the create shapefile layer dialog 2017-12-07 16:00:32 +07:00
Harrissou Sant-anna
571bf54d2a [needs-docs] Refactor the New Shapefile dialog to mimic the GeoPackage sequence (#5803) 2017-12-07 09:39:12 +07:00
Nyall Dawson
89420fccd6 Sipify 2017-12-07 08:51:52 +10:00
Nyall Dawson
17656f23c6 Pasting items from layout context menu pastes them at menu origin
instead of final cursor position
2017-12-07 08:50:01 +10:00
Nyall Dawson
ac6c131212 Fix crash when reopening existing layouts 2017-12-07 08:50:01 +10:00
Nyall Dawson
e5e37fcafa [needs-docs] Use a QgsFileWidget for template file selector
Rename "Add" button to "Create"
2017-12-07 08:50:01 +10:00
Nyall Dawson
a30dd8a153 Port composer manager dialog to layouts
Not exposed via GUI yet, but can be shown by entering

iface.showLayoutManager()

in the Python console
2017-12-07 08:50:01 +10:00
Nyall Dawson
a64a675830 [FEATURE][layouts] Support drag and drop of QPT templates onto layout windows
To add contents of template onto layout
2017-12-07 08:49:54 +10:00
Nyall Dawson
eea36c0212 Add custom drop handlers for layout windows 2017-12-07 08:49:54 +10:00
Nyall Dawson
d2fcf11336 [layouts] Add context menu entries for "copy" and "delete" item to
items list panel right click menu

Refs #11581
2017-12-07 08:49:33 +10:00
Nyall Dawson
feec186fbf [layout] Add context menu entries for cutting/copying, and pasting items
Fixes #1830
2017-12-07 08:49:33 +10:00
Nyall Dawson
b03ce047db Start restoring copy/paste functionality 2017-12-07 08:49:33 +10:00