1598 Commits

Author SHA1 Message Date
Denis Rouzaud
8074dc4cbf
[options search] do not show widget when text is found (#6052)
fix #17812
2018-01-12 09:53:57 -04:00
Nyall Dawson
322f2e8c38 Drop composer class from gui library 2018-01-11 08:00:00 +10:00
Denis Rouzaud
880d853e9f
detect SIP version to add DefaultDocstringSignature directive (#6030)
* detect SIP version to add DefaultDocstringSignature directive

SIP doesn't handle any kind of preprocessing, so there's no better solution than configuring the SIP files from CMake.
SIP 4.19.7+ supports %DefaultDocstringSignature to prepend auto-generated Python signature to existing Docstrings
2018-01-10 10:32:21 -04:00
Nyall Dawson
1402f76e85 Show item size in status bar when creating a new item 2018-01-10 18:16:08 +10:00
Denis Rouzaud
d87c60512c [sipify] fix bad handling of \see within sentences
and other docstrings improvements
2018-01-09 21:40:10 -04:00
Nyall Dawson
240c52a4c0 [processing] Show a modal progress dialog when running algorithms
which cannot run in background tasks

This is not fantastic UX, but we have lots of constraints here:

- The algorithm dialog itself cannot be made modal. There's child
widgets (such as the point and extent parameter widgets) which
interact with the main QGIS window.
- There is no reliable way in Qt to make a dialog modal after
it's shown (e.g. make it modal only when the algorithm is
running). Trust me - I've tried everything, and all approaches
break with some corner case.
- For non-background algorithms, we must have processEvents calls
in order to show the algorithm feedback and progress to users,
and detect cancel button clicks. Yet these processEvents calls
means that users can interact with other parts of QGIS, e.g.
removing layers from a project, and other operations which
could cause the algorithm to crash. So we MUST have some modal
dialog in order to block interactions outside of allowing
the cancel button clicks/progress repainting.

I've tried many approaches, but this is the only one which
works reliably...
2018-01-10 08:33:36 +10:00
Denis Rouzaud
5babec5e07 run sipify 2018-01-09 11:40:39 -04:00
David
2eaf4de2ca Contextmenu with individual actions
Individual actions in the contextmenu of the attributetable and the relationeditorwidget.
It's unlink and delete feature in the relationeditorwidget.
It's delete feature in the attributetable (form view)
2018-01-08 17:59:09 +01:00
Nyall Dawson
db906273b5 Drop all composer classes from Python bindings 2018-01-08 13:35:15 +10:00
Nyall Dawson
f287d40a87 Remove all interface methods and UI for creating new composers 2018-01-08 09:45:15 +10:00
Etienne Trimaille
3432bf8f3b load and save metadata to a QMD file 2018-01-07 12:13:41 +10:00
Nyall Dawson
0779b88729
Merge pull request #5997 from nyalldawson/report_label
Show a label in layout designer for report sections
2018-01-06 11:29:38 +10:00
Denis Rouzaud
333347b9a0
Merge pull request #5992 from 3nids/fix17790
fix NULL constraint on date/time widget with allow NULL
2018-01-05 07:49:30 -04:00
Matthias Kuhn
46177aa151 Cleanup misleading QgsEditorWidgetWrapper::valueChanged signals 2018-01-05 12:25:44 +01:00
Nyall Dawson
015e754418 Show a label in layout designer for report sections 2018-01-05 17:43:23 +10:00
Denis Rouzaud
42976df82e do not override QDateTimeEdit::dateTimeChanged
see de03186745 (diff-f135574df9edcdda660e1bc4320a053e)
2018-01-04 21:40:55 -04:00
Denis Rouzaud
2528639320 doxymentattion 2018-01-04 21:40:45 -04:00
Nyall Dawson
d2c880af50 Use 'report' text instead of 'atlas' when inside a report designer 2018-01-05 11:15:04 +10:00
Nyall Dawson
6f2c63f3e5 Add a common base class for print layouts and reports, and adapt
QgsLayoutManager to suit
2018-01-05 11:15:04 +10:00
Nyall Dawson
70e7185cb5 Force a refresh after disabling view updates 2018-01-05 11:15:03 +10:00
Nyall Dawson
e72e20b8e0 Restore attribute table atlas handling 2018-01-05 11:15:03 +10:00
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