1615 Commits

Author SHA1 Message Date
Salvatore Larosa
3ca5d72455 apply enableAutoGeometryRestore to config shortcut dialog 2018-01-28 16:43:59 +01:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11:00
Nyall Dawson
884ccc8695 Fix documentation 2018-01-20 13:24:17 +10:00
Nyall Dawson
2b61591e37 Documentation++ 2018-01-20 13:24:17 +10:00
Denis Rouzaud
0304708130 fix .gitignore to add missing sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
458cab7b20 run sipify 2018-01-17 10:16:37 -04:00
Denis Rouzaud
7722010ca8 rename *.sip to *.sip.in for the auto generated sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
9bf943a777 [QgsFilterLineEdit] use QLineEdit::addAction instead of hacking paintEvent
this gets much more simple
2018-01-16 10:22:20 -04:00
Nyall Dawson
de6519024e Sipify 2018-01-16 19:45:40 +10:00
Nyall Dawson
87c1986c4b Improved memory managment of algorithm dialogs
Ensure that dialogs are always correctly deleted when appropriate.

Also, if an algorithm is running in a background task and hits
an error, we automatically re-show the algorithm dialog and the
associated log for debugging.

Fixes #16858
2018-01-16 19:45:40 +10:00
Nyall Dawson
05c7132518 Fix initial positioning of floating widgets 2018-01-15 21:43:44 -04:00
Denis Rouzaud
df90feff00 add missing since and complete API brea doc 2018-01-15 21:41:01 -04:00
Denis Rouzaud
20722f4e5f [user input widget] use a floating widget rather than a dock
fix #15177
2018-01-15 21:41:01 -04:00
Steven Mizuno
b9aa768c90 run sipify 2018-01-15 14:32:53 +10:00
Nyall Dawson
09fbdb1bc2 Drop color button/dialog live update option from API and UI
This options is broken in QGIS 3.0, but in any case has been
mostly made redundant by the live styling dock, and the other
non blocking color pickers which are implemented in most areas
of qgis now.
2018-01-15 12:40:44 +10:00
Denis Rouzaud
4568bcdf1f [sipify] prevent creation of param list when not necessary 2018-01-12 21:10:16 -04:00
Denis Rouzaud
6d94ac9c6c run sipify 2018-01-12 21:10:16 -04:00
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