40361 Commits

Author SHA1 Message Date
Hugo Mercier
1b9dea9ea1 Merge pull request #4904 from pblottiere/bugfix_chainfilter
Fixes relation reference widget when chain filter option is activated, fixes #16903
2017-07-26 11:57:35 +02:00
Blottiere Paul
58ea88715d Add tests 2017-07-26 09:56:37 +01:00
Blottiere Paul
8642e88867 Fix relation reference widget when 'Chain Filters' is activated. Fixes #16903 2017-07-26 09:55:29 +01:00
Hugo Mercier
d19b4aa2bf Merge pull request #4905 from pblottiere/bugfix_scrolllocked
Fixes value relation widget to keep scrollbar activated, fixes #16654
2017-07-26 10:52:55 +02:00
Nyall Dawson
f0a6376adb Merge pull request #4910 from nyalldawson/layout_next
Layouts, chapter III
2017-07-26 17:03:36 +10:00
Nyall Dawson
11dd4170de Try to balance UI element sizes on windows builds 2017-07-26 14:46:30 +10:00
Nyall Dawson
a48c146916 Fix vector file formats show in processing options for raster output
extension (fix #16894)
2017-07-26 10:22:57 +10:00
Nyall Dawson
a95cbe9d2f Move 'Run as batch' button to bottom of algorithm dialog
Inserting it into the tab widget doesn't work well cross
platform/between hidpi/lowdpi displays. So instead add
it as a normal button in the button box.

Also fix capitalization of button text

Fixes #16767
2017-07-26 09:45:27 +10:00
Nyall Dawson
06374a6782 Merge pull request #4921 from nyalldawson/fix_deleted_algs
Fix "wrapped object has been deleted" errors in Processing
2017-07-26 07:37:51 +10:00
Nyall Dawson
383422f069 Fix "wrapped object has been deleted" errors in Processing
Ownership of Python subclass algorithm instances was getting
mangled due to passing through multiple functions with /Factory/
annotations.

As per Phil Thomson's advice on
https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html:
"
/Factory/ is used when the instance returned is guaranteed to be
new to Python. In this case it isn't because it has already been
seen when being returned by createInstance(). (However for a different
sub-class implemented in C++ then it would be the first time it was seen
by Python so the /Factory/ on create() would be correct.)

You might try using /TransferBack/ on create() instead - that might be
the best compromise.
"

Changing to /TransferBack/ indeed fixes the error for me.
2017-07-26 07:03:16 +10:00
Hugo Mercier
1b9c5be10d Merge pull request #4839 from pblottiere/joinconstraints
[FEATURE] Constraints are resolved for joined fields
2017-07-25 16:36:21 +02:00
volaya
c5371b64cb added new SAGA descriptions
(cherry picked from commit a3bb3f13902638ee38f85c25c57d68b34b33bfbc)
2017-07-25 14:01:06 +03:00
Alessandro Pasotti
4de141e73f Minor fix in comment text 2017-07-25 10:09:42 +02:00
Alexandre Neto
f8224ed6a4 Restores QToolButton 2017-07-25 07:55:28 +02:00
Alexandre Neto
4d6b980668 Fixes Table Background Color Dialog behavior 2017-07-25 07:55:28 +02:00
Alexander Bruy
30be72210c Merge pull request #4916 from NaturalGIS/master_fix_saga_cluster_analysis
[processing] fix SAGA cluster analysis for rasters
2017-07-25 08:21:57 +03:00
Juergen E. Fischer
fc0bd62ece typo fix 2017-07-25 07:06:00 +02:00
Nyall Dawson
c89a15a247 Don't disable page height/width controls when set to a known
page size

Instead leave them enabled, and flick across to custom page
size if they're changed.
2017-07-25 13:58:37 +10:00
Nyall Dawson
e8514be010 Make matching to known page sizes less fussy
Since all gui widgets for page sizes limit to 2 decimal places,
we need to allow this much tolerance when checking the setting
against known page sizes.
2017-07-25 13:57:57 +10:00
Nyall Dawson
9e2673a178 Add some pixel sized wallpapers to the standard page sizes 2017-07-25 13:25:04 +10:00
Nyall Dawson
30a83e1569 Add some missing overrides 2017-07-25 12:54:58 +10:00
Nyall Dawson
213064a8af Fix layout context flags not being respected when rendering items 2017-07-25 12:54:58 +10:00
Nyall Dawson
0bffff05b3 Astyle 2017-07-25 12:54:58 +10:00
Nyall Dawson
e444f00cc5 Fix calculation of layout bounds considers page shadow 2017-07-25 12:54:58 +10:00
Nyall Dawson
cdb0ace28e Try to fix sip item casting clashing between composer items and layout items
Add a temporary hack to QgsComposerItem subclassing to handle this
for now.
2017-07-25 12:54:58 +10:00
Nyall Dawson
28281ee896 Set the background for layouts on the view, rather then in the scene
Setting the background on the scene means in applies in renders
of the scene (e.g. to images). We don't want this - we always
want scenes rendered on transparent backgrounds. So instead
use stylesheets to only show the grey background outside of pages
in the view.
2017-07-25 12:54:58 +10:00
Nyall Dawson
fabfd77c2b Show known page size when opening page properties if current page size matches 2017-07-25 12:54:58 +10:00
Nyall Dawson
a4113fe51d Functional page properties widget 2017-07-25 12:54:58 +10:00
Nyall Dawson
20029c2956 Add a lot of framework code for showing item properties in designer
And hook up a non-functional page properties widget which is
shown when right clicking on a page in the view.
2017-07-25 12:54:58 +10:00
Nyall Dawson
0f90e23fe6 Refine item widget creation methods in layout item gui registry 2017-07-25 12:54:58 +10:00
Nyall Dawson
72bf2924d4 Port base class for item configuration widgets 2017-07-25 12:54:58 +10:00
Nyall Dawson
a3e26785f8 [needs-docs] Start on right click menu for layouts
Currently only contains option for removing the current
page and (non-functional) option for setting current page
properties
2017-07-25 12:54:58 +10:00
Nyall Dawson
e885966cb6 Add method to retrieve page at a specified layout position 2017-07-25 12:54:58 +10:00
Nyall Dawson
f1dfd3dbe2 Add an interface for creation of QgsLayoutView context menus
Allows display of custom right click menus when right click
events are not handled by the current layout view tool.
2017-07-25 12:54:58 +10:00
Nyall Dawson
cbc5782cd8 Add unit test for scaling layout view with layouts in pixels 2017-07-25 12:54:58 +10:00
Nyall Dawson
cd2c62e825 Fix initial position of items for non mm layout units 2017-07-25 12:54:58 +10:00
Nyall Dawson
3d94f73349 Fix scale calculation when layout is in pixels 2017-07-25 12:54:58 +10:00
Nyall Dawson
1e4c95431c Don't use constant space between pages - doesn't work well for non mm units 2017-07-25 12:54:58 +10:00
Nyall Dawson
183a72e926 Default to layout units in new page dialog 2017-07-25 12:54:57 +10:00
Nyall Dawson
8044353aa7 Show correct unit type in status bar 2017-07-25 12:54:57 +10:00
Nyall Dawson
0ab3b8e0ad Fix cursor position display for multipage layouts 2017-07-25 12:54:57 +10:00
Nyall Dawson
416e1e4bbf Fix drawing of rulers with multipage layouts 2017-07-25 12:54:57 +10:00
Nyall Dawson
4cf9827ca2 Draw page shadow in layout units
Simplifies code a lot, pixel based size proved to complex for
small result
2017-07-25 12:54:57 +10:00
Nyall Dawson
5cfc9cc655 Add a dialog for inserting new pages into a layout 2017-07-25 12:54:57 +10:00
Nyall Dawson
36483083d6 Add ratio lock for width/height in new item properties dialog 2017-07-25 12:54:57 +10:00
Nyall Dawson
3021fc86d2 QgsLayoutUnitComboBox can be linked to spin boxes so that their
values are automatically updated when the combo box unit changes

This means that you can flip between units and things like
the existing width and height are converted immediately to the
new unit
2017-07-25 12:54:57 +10:00
Nyall Dawson
3e92e16d76 Fix page shadow drawing 2017-07-25 12:54:57 +10:00
Nyall Dawson
8fa173bda8 wip use page as item parent 2017-07-25 12:54:57 +10:00
Nyall Dawson
76b8ba711e Add some tests for data defined page size 2017-07-25 12:54:57 +10:00
Nyall Dawson
39bf23a5d5 Start on reflow support for page collections (needs tests) 2017-07-25 12:54:57 +10:00