2417 Commits

Author SHA1 Message Date
Nyall Dawson
9c4834d389 Extract guts of QgsDataSourceSelectDialog to a QWidget, so that this
widget logic can be used outside of a dialog
2020-03-24 20:38:17 +10:00
Nyall Dawson
7bba9de2b9 Add a 'select all' action to model designer 2020-03-23 19:25:32 +10:00
Nyall Dawson
681d12e549 Tweak snapping logic, and add explicit action to "Snap Selected Components to Grid"
This is useful when a user doesn't want to enable the auto snapping, but wants to line
up stuff nicely by hand
2020-03-23 19:25:32 +10:00
Nyall Dawson
78d445ee65 [FEATURE] Add numeric formatter "fraction" style
This style represents decimal numbers as vulgar fractions, e.g.
"3/4" instead of 0.75.

Options include using Unicode superscript and subscript characters
for nicer typography, e.g. ¹⁷/₂₃ (this is the default mode, disabling
this option uses the "17/23" format). An option also exists for
using dedicated unicode characters for specific fractions (where
a unicode character exists), e.g. ½ or ¾

Ultimately this allows for creation of scalebars with fractional
representations of distances, e.g. 0 ----- ½ ----- 1 km
(instead of 0 ------ 0.5 ------ 1km)

Fixes #21289

Sponsored by SLYR
2020-03-23 14:24:37 +10:00
Nyall Dawson
ab04656092 Fix "zoom to" actions fail to correctly set canvas extent
when canvas has a locked scale

In these particular actions, we should ignore the canvas scale
lock so that the canvas correctly zooms to the specified extent
and matches user expectations

In particular this fixes:
- zooming to bookmarks
- matching canvas extent to layout map extents
- zooming to layer and feature extents
- pushing layout map scales from layout maps to canvas

Also improve dox
2020-03-23 14:16:47 +10:00
gacarrillor
6fb84776c8 Ensure expected button order in QgsProcessingAlgorithmDialogBase 2020-03-23 11:37:50 +10:00
Matthias Kuhn
01c7cb1814
Merge pull request #34928 from gacarrillor/adjust_run_button_status_in_alg_dialog
[processing][needs-docs] Adjust status of controls executing an algorithm dialog
2020-03-18 14:42:52 +01:00
Nyall Dawson
7614de451e [processing] Constrain model item resizing to prevent items being resized
to a too small size
2020-03-18 15:00:30 +10:00
Julien Cabieces
1c9e032beb Fixes crash when displaying relation editor 2020-03-17 18:03:23 +01:00
Matthias Kuhn
2770e2c327
Merge pull request #35035 from m-kuhn/value_relation_description
Add description to value relation widget
2020-03-17 15:32:46 +01:00
Nyall Dawson
06e663eccd Pixel perfect model rendering 2020-03-17 19:40:01 +10:00
Alessandro Pasotti
d83da3cf8d
Merge pull request #34997 from suricactus/expression_edit
Add ability to edit, import and export user expressions
2020-03-17 10:31:09 +01:00
Nyall Dawson
517aa9667b [processing] Port DestinationSelectionPanel to c++
This is basically a 1:1 port (+some fixes relating to incorrect signal
emissions and many more tests)
2020-03-17 07:24:40 +10:00
nirvn
35c11288a0 Make use of nice new tech for the new spatialite layer dialog:
- Use a provider connection combo box to list connections
- Use database provider connection functions to store a
new connection
2020-03-16 21:15:18 +07:00
Nyall Dawson
3966d3f06e Wrap QgsNewDatabaseTableNameWidget in a dialog class for convenience 2020-03-16 19:42:02 +10:00
Ivan Ivanov
bc23d86253 Change indentation; Sipified; Fix class modifiers 2020-03-14 11:23:00 +02:00
Ivan Ivanov
e2725a9ec5 Add the ability to edit user expressions 2020-03-14 11:23:00 +02:00
Nyall Dawson
30fbf24f8f Add API to show empty entries in QgsDatabaseTableComboBox 2020-03-14 16:57:14 +10:00
Nyall Dawson
cf310c5d45 Add API to show empty entries in QgsDatabaseSchemaComboBox 2020-03-14 16:57:14 +10:00
Nyall Dawson
059e29328f Move raster temporal properties to new tab, fix inconsistent margins
in all raster layer properties pages, and make clicking the temporal
indicator icon go straight to the layer's temporal property page
2020-03-13 18:06:02 +10:00
Nyall Dawson
9063b37113 Remove unused files 2020-03-13 18:06:02 +10:00
Nyall Dawson
c040952354 Minor refactor of temporal controller dock widget
- Split widget from dock widget for flexibility
- Move dock widget class to app and only expose QgsTemporalControllWidget in public api
2020-03-13 18:06:02 +10:00
Alessandro Pasotti
6b3679b2ef
Merge pull request #34968 from elpaso/tablewidget
[api] New database table name widget
2020-03-12 21:35:54 +01:00
Matthias Kuhn
94fc1ba2af Add description to value relation widget
Add the possibility to add a description to each value in a value relation widget.
2020-03-12 16:30:22 +01:00
Nyall Dawson
6f92b12f3d Cleanup raster temporal capabilities/layer classes 2020-03-12 20:06:25 +10:00
Nyall Dawson
5edaef84c5 Cleanup temporal controller dock widget code 2020-03-12 20:06:25 +10:00
Nyall Dawson
66e8ef298a Cleanup QgsTemporalMapSettingsWidget/dialog, hide from stable API/python 2020-03-12 20:06:25 +10:00
Samweli
dd129c1aef updates on temporal animation logic 2020-03-12 20:06:25 +10:00
Samweli
99129fe4a8 updates on the temporal controller navigation logic 2020-03-12 20:06:25 +10:00
Samweli
3e06d0a696 new temporal map settings dialog 2020-03-12 20:06:25 +10:00
Samweli
d446c0a223 formatted wms provider code 2020-03-12 20:06:25 +10:00
Samweli
c119ea5518 logic for temporal navigation vcr widget 2020-03-12 20:06:25 +10:00
Alessandro Pasotti
c0c3326f90 Add refresh button 2020-03-12 09:44:20 +01:00
Nyall Dawson
fd65c2d05a Fix mouse handles go out of sync after moving items with cursor keys 2020-03-12 13:14:33 +10:00
Nyall Dawson
1e67ee42fa [FEATURE][processing] Add action to model designer to delete all selected components 2020-03-12 13:14:33 +10:00
Nyall Dawson
a82bd1decd Implement an ugly workaround due to QGraphicsScene lack of event
propagation
2020-03-12 13:14:33 +10:00
Nyall Dawson
4169c7bd68 Improved appearance of resized components 2020-03-12 13:14:33 +10:00
Nyall Dawson
3b61938e24 [FEATURE][processing] Allow interactive resizing of model components
Allows for components to be freely resized via the standard mouse controls
2020-03-12 13:14:33 +10:00
Nyall Dawson
d97f02420e Batch multi item move undo commands 2020-03-12 13:14:33 +10:00
Nyall Dawson
9044acd149 Start work on model designer mouse handles 2020-03-12 13:14:33 +10:00
Nyall Dawson
b7b4ef232a Fix multi item moves, avoid unnecessary scene rebuilds 2020-03-12 13:14:33 +10:00
Nyall Dawson
e3f1c576a9 Snapping api work 2020-03-12 13:14:33 +10:00
Nyall Dawson
b22e669bbd Multi item selection work 2020-03-12 13:14:33 +10:00
Nyall Dawson
bb82c12791 [processing] Start re-working model designer to use view tools
Based heavily on the layout designer approach, which is working well..
2020-03-12 13:14:33 +10:00
Alessandro Pasotti
016f7ed43b New DB table widget: new tests and fixes for file-based DBS 2020-03-11 17:31:50 +01:00
Nyall Dawson
4dd598fbb5 Also warn for unsaved changes when opening a model through the model designer 2020-03-11 08:39:54 +10:00
Nyall Dawson
e9c594d388 Make Model Designer window title follow app conventions
Show unsaved changes via * prefix, show model name in title

Also less Python, more c++
2020-03-11 08:39:54 +10:00
Nyall Dawson
e7b5c26696 [FEATURE][processing] Add undo/redo support to model designer
Makes QGIS more forgiving for users!

Sponsored by NRCan
2020-03-11 08:39:54 +10:00
Alessandro Pasotti
b42bdddd87 New database table widget new signals & tests 2020-03-10 14:58:10 +01:00
Nyall Dawson
6969db1966 Add API to show empty entries in QgsProviderConnectionComboBox 2020-03-10 19:10:52 +10:00