409 Commits

Author SHA1 Message Date
Nyall Dawson
5af2e52fff Allow custom drop handlers to indicate that they will accept a mime type
in advance

Allows non-standard mime types to be dropped onto the QGIS window,
which will be handled by custom drop handlers
2019-07-31 05:06:50 +10:00
nirvn
0ffd1174db Address review 2019-07-30 18:06:26 +07:00
nirvn
ec99bd6240 [FEATURE][callouts] Add anchor point position settings for polygon features 2019-07-30 18:06:26 +07:00
Matthias Kuhn
fa847d16ff Fix code style 2019-07-25 16:00:04 +02:00
Matthias Kuhn
66cbab0a93 Code style for providers 2019-07-25 11:22:23 +02:00
Matthias Kuhn
a6875a7c78 Reset selection when data source select dialog is reopened
When the data source select dialog is closed and reopened it's much more
likely that the user wants to add a different layer than last time he was using
the dialog. So instead of offering him to add the same layer again, the selection
is cleared and he is requested to make a new selection.
2019-07-25 11:17:42 +02:00
Nyall Dawson
a85d4d129b [FEATURE] Allow data defined settings in text formats
This allows text formats to store data defined settings,
allowing them to be used wherever the text renderer is (e.g. in
layout scalebar text).
2019-07-22 11:34:32 +10:00
Nyall Dawson
2aba793946 Fix some warnings 2019-07-19 09:22:48 +10:00
Nyall Dawson
33ee00f3f6 Ensure layer tree indicator icons are repainted on changes 2019-07-19 07:20:40 +10:00
Nyall Dawson
bd44f53236 Map canvas emits a signal when errors occur during rendering operations 2019-07-19 07:20:40 +10:00
Nyall Dawson
249a27b003 Fix dox warning 2019-07-18 13:00:15 +10:00
Nyall Dawson
10a1b1548b Remove broken seealso links 2019-07-18 13:00:15 +10:00
Nyall Dawson
a83953599a Allow pushing more contextual information to QgsFontButton/QgsTextFormatWidget
e.g. follow the same approach as symbology and allow pushing message
bars, map canvases, and expression contexts to the widgets
2019-07-18 13:00:15 +10:00
Nyall Dawson
a57d04fb7f When a style manager dialog is opened in read only mode, still allow
symbols to be double clicked to view their properties. Just disable
actually saving any edited symbols instead.
2019-07-18 11:13:35 +10:00
Sandro Mani
afb698b334 Add missing consts 2019-07-17 04:26:29 +10:00
Matthias Kuhn
7691f526be Cleanup rubberband code 2019-07-17 04:26:29 +10:00
Sandro Mani
7af22a8bf6 Add QgsRubberBand::IconType::ICON_SVG 2019-07-17 04:26:29 +10:00
luz.paz
604e66ba75 sipify_all 2019-07-16 11:29:42 +10:00
Nyall Dawson
22ae228a9d Dox 2019-07-11 13:03:12 +10:00
Nyall Dawson
b944dd4d23 Ensure messagebar is available for use by callout widgets in dock mode 2019-07-11 13:03:12 +10:00
Nyall Dawson
a105f294cd Use registry to create correct callout widget 2019-07-11 13:03:12 +10:00
Nyall Dawson
1d2dfda254 Add minimum length property for callouts, setup framework for data
defined properties of callouts
2019-07-11 13:03:12 +10:00
Nyall Dawson
b298a197e7 Start on registry 2019-07-11 13:03:12 +10:00
Nyall Dawson
7833162ca0 [processing] Fix occasional crash in Processing gui unit test cleanup 2019-07-11 10:36:59 +10:00
Nyall Dawson
fb359049ee Fix dox 2019-07-08 12:42:02 +10:00
Nyall Dawson
337f1d95f5 Move coordinate bounds map to its own reusable widget 2019-07-08 12:42:02 +10:00
Nyall Dawson
164f6aec6b Spelling 2019-07-01 17:01:34 +10:00
Nyall Dawson
074c584c54 Don't allow name-less parameters 2019-07-01 17:01:34 +10:00
Nyall Dawson
10d6a8a122 [processing][API] Add API to QgsProcessingGuiRegistry and QgsProcessingParameterWidgetFactoryInterface
to handle creation of parameter definition widgets

Previously, these configuration widgets were all hardcoded into the Python modeler
dialog. This prevented 3rd party, plugin provided, parameters from ever being full
first class citizens in QGIS, as there was no way to allow their use as inputs to
user created models to be customised.

Now, the registry is responsible for creating the configuration widget, allowing
for 3rd party parameter types to provide their own customised configuration
widgets.

Refs #26493
2019-07-01 17:01:34 +10:00
Harrissou Sant-anna
62e8a9b726 Add a bunch of automatic geometry restoration
and remove some dedicated methods
2019-07-01 08:51:51 +10:00
Nyall Dawson
27f9bf66d6 Spelling 2019-06-28 09:45:48 +10:00
Nyall Dawson
6aeedfe20b [FEATURE][layouts] Expose choice of arrangement of legends (i.e.
symbols to the left OR symbols to the right of legend text), and
alignment for group/subgroup/item text

Allows creation of right-to-left locale friendly legends. Additionally,
we default to this right-to-left style alignment when creating new
legends under a RTL based locale.
2019-06-28 09:45:48 +10:00
Nyall Dawson
640283f700 Add new reusable combo box widget for alignment choices
QgsAlignmentComboBox presents users with a (filterable) selection
of horizontal alignment choices, e.g. left/right/center
2019-06-28 09:45:48 +10:00
Nyall Dawson
da79b6f0e6 [FEATURE][labels] New text "background" setting for marker symbol backgrounds
Allows for rendering a marker symbol in the background of labels
(complementing the existing shapes/SVG choices). This allows use
of QGIS marker symbology as a background symbol behind labels (e.g.
for highway shield labels)
2019-06-28 08:28:55 +10:00
Martin Dobias
0e782645e2 Revert the leftovers that were added in QgsDataItemProvider cpp/h 2019-06-27 12:55:07 +02:00
Martin Dobias
78a638f769 Use lambdas to pass data items as captured variables 2019-06-27 12:55:07 +02:00
Martin Dobias
f4b1b83af2 [wms] Move GUI parts of data items to QgsDataItemGuiProvider subclasses 2019-06-27 12:55:07 +02:00
Larry Shaffer
f4348259c9
[needs-docs] Merge pull request #30227 from boundlessgeo/master_legend-horiz-scroll 2019-06-26 11:42:53 -06:00
Martin Dobias
8e56f51c23 Merge remote-tracking branch 'origin/master' into providers 2019-06-25 22:11:51 +02:00
Martin Dobias
d155b1c877 Further updates from review 2019-06-25 15:38:07 +02:00
Martin Dobias
8c4ef42ec9 Remove description() from QgsProviderGuiMetadata - it is not needed there 2019-06-21 17:00:08 +02:00
Martin Dobias
8ed0bb38d1 Start using QgsProjectStorageGuiRegistry + its providers (gpkg projects work again)
Also deprecate gui methods in QgsProjectStorage but keep compatibility
2019-06-21 16:28:21 +02:00
Matthias Kuhn
db18ef260f
Merge pull request #30281 from nyalldawson/text_symbol
Handle text formats in style manager
2019-06-21 16:14:16 +02:00
Nyall Dawson
4e5d95cf18
Update python/gui/auto_generated/symbology/qgsstylesavedialog.sip.in 2019-06-21 20:31:59 +10:00
Nyall Dawson
689b82da53 When saving a new symbol to the style, default to tagging it with
the current tag filter (if set)
2019-06-21 18:06:33 +10:00
Harrissou Sant-anna
059277ceca Remove some dialogs geometry size settings
replaced with automatic restoring
2019-06-21 16:54:54 +10:00
Nyall Dawson
78bfb4a18b Allow saving label settings from layer settings 2019-06-21 15:52:56 +10:00
Nyall Dawson
850ea71c4d More wip 2019-06-21 15:52:56 +10:00
Nyall Dawson
d4d77808f9 Style model work 2019-06-21 15:52:56 +10:00
Nyall Dawson
65230abc16 Sync column sizes in all style item list widgets 2019-06-21 15:52:56 +10:00