2213 Commits

Author SHA1 Message Date
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
Nyall Dawson
4ea55fceaa Split symbol list off to its own reusable widget 2019-06-21 15:52:56 +10:00
Martin Dobias
437f635949 Revert api changes in gui registries to fix some tests 2019-06-20 16:00:06 +02:00
Martin Dobias
c396d70d14 Doxygen fixes and api break fixes 2019-06-20 14:15:07 +02:00
Martin Dobias
6918bac9df Revert API break and move WidgetMode back to QgsProviderRegistry 2019-06-20 10:49:36 +02:00
Martin Dobias
78f69ad5a6 Added sip files for newly added classes 2019-06-19 23:09:13 +02:00
Martin Dobias
f6049e01d0 Misc fixes to get the branch compiling & running with Python
- grass data item provider fixes
- removed QgsProviderMetadata constructor (with std::function / PyObject) due to sip errors (api break)
- reverted DataCapability move to Qgis - back to QgsDataProvider (avoiding api breaks)
- WidgetMode enum documentation
- sipify monkey patching fix
- renamed WidgetMode's "None" to "Normal" value - in python None has special meaning (api break)
2019-06-19 23:02:11 +02:00
Larry Shaffer
ebd4f0d8ca
Add layer tree layer contextual menu mark, floating on right of viewport
This accomplishes several things:
- Offers an indication to user that there are layer-related actions
- Single click access to contextual menu
- Offers an indication to user where layers are located when viewport is
  horizontally scrolled to right, and layer names are not visible
2019-06-19 10:06:37 -06:00
Larry Shaffer
a06a96cf7c
Reset minimum section size to layer tree veiwport width on resize
Since last column is resized to content (instead of stretched), the
active selection rectangle ends at width of widest visible item in tree,
regardless of which item is selected. This causes layer indicators to
become 'inactive' (not clickable and no tool tip) unless their rectangle
enters the view item's selection (active) rectangle. Always resetting
the minimum section size relative to the viewport ensures the view
item's selection rectangle extends to the right edge of the viewport,
which allows indicators to become active again.
2019-06-19 10:05:59 -06:00
Denis Rouzaud
6dfe113d67 do not hold a pointer to an QGraphicsItem within a QGraphicsItem
since map canvas is deleting them all, this is causing a crash when trying to delete the already deleted item in the parent item
2019-06-19 16:20:32 +02:00
Peter Petrik
62d615c2cd [QEP 149] Introduce static data providers [API BREAK]
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +02:00
Matthias Kuhn
242c9fcfba Fix setStatusTip
Fixes #30249
2019-06-18 07:20:27 +02:00
Nyall Dawson
fbd243be65 [processing] Port map layer selection combobox widget to c++
And:

- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
Nyall Dawson
cf63a7af97 [needs-docs] Allow dragging project layers from legend over map layer comboboxes to select
Greatly assists with usability of the combobox with large projects,
especially those with multiple copies of layers with the same name...
2019-06-13 04:57:37 +10:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
Matthias Kuhn
40b3e82886 Add missing sip file 2019-06-11 21:12:19 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Larry Shaffer
018df8c129
Fix WFS connection's version Detect button, which did not support auth
Adds QgsNewHttpConnection protected member to access auth settings
2019-06-06 10:41:58 -06:00
Nyall Dawson
87d2d9e824 Fix inverted polygon renderer widget not opening colors and other
panels inline in style dock
2019-06-05 04:00:58 +10:00
olivierdalang
da4a8d24ef [cad] fix graphical glitches 2019-06-04 11:29:04 +02:00
Nyall Dawson
788ee78d74 Sip update 2019-05-30 06:28:32 +10:00
Nyall Dawson
dac7259b46 [needs-docs] Rework new project CRS handling
The previous approach was severely broken, because the default
CRS for new projects setting was ignored as soon as a layer
was added to the project.

Instead, refine the setting to add options
- "Use CRS from first layer added": same as previous behavior,
the project CRS is set to match the first layer added to a new
project
- "Use a default CRS": CRS for a new project is set to a preset
default CRS, and is left unchanged when adding layers to the
project

Also update qgis_global_settings.ini to reflect these changes.

Fixes #27516
2019-05-30 06:28:32 +10:00
Denis Rouzaud
09126ded98
make flashing independent from panning/zooming in attribte table in attribute editor mode (#29955) 2019-05-26 22:21:10 -05:00