40319 Commits

Author SHA1 Message Date
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
Nyall Dawson
79a4694177 Add support for adding/removing pages to a collection 2017-07-25 12:54:57 +10:00
Nyall Dawson
ea32391280 Add methods for handling page size to QgsLayoutItemPage 2017-07-25 12:54:57 +10:00
Nyall Dawson
534f7ab647 wip page rendering 2017-07-25 12:54:57 +10:00
Nyall Dawson
9df4a67d6d Add a page collection to layouts, and start porting composer page items 2017-07-25 12:54:57 +10:00
Nyall Dawson
3cf06db467 Port item id and uuid code 2017-07-25 12:54:57 +10:00
Nyall Dawson
a515e953b8 Add support for reading/writing item properties to XML 2017-07-25 12:54:57 +10:00
Nyall Dawson
09dd6db97b Add API to save/restore QgsLayoutObject properties to XML 2017-07-25 12:54:57 +10:00
Nyall Dawson
f121286e38 Fix size of some color widgets on hidpi displays 2017-07-25 12:53:04 +10:00
Nyall Dawson
aacc316eed Fix size of color swatch grid in color buttons on hidpi displays 2017-07-25 12:53:04 +10:00
Nyall Dawson
ca4c34d219 Fix menu header appearance on hidpi displays 2017-07-25 12:28:46 +10:00
Nyall Dawson
53c6308d05 Use QgsMenuHeaderWidgetAction instead of QMenu::addSection
Because addSection adds really ugly separators and throws out
the menu alignment
2017-07-25 12:07:30 +10:00
Mathieu Pellerin
778e84ba7b [FEATURE] Add copy to clipboard function to save as image (#4914)
Sponsored by Andreas Neumann.
2017-07-25 08:50:03 +07:00
Juergen E. Fischer
cb088a2a0c vector layer save as: adjust our to OGR's defaults
* GPX_USE_EXTENSIONS default is false not true (fixes #16811)
* CSV GEOMETRY is none not AS_XY (fixes #16819)

(followup 9a6235db)
2017-07-24 22:53:28 +02:00
Denis Rouzaud
dcec6bbf3f Qt 5.5 has no default value for parent in QAction constructor
see http://code.qt.io/cgit/qt/qtbase.git/commit/src/widgets/kernel/qaction.h?id=536da5eb6ab1b4b07c13ad9f4c0f69dba5ca1624
2017-07-24 14:58:37 +02:00
Alessandro Pasotti
1dca9a1289 Merge pull request #4755 from SrNetoChan/fix_datasource_manager_ui
Removes frames from data manager dialog
2017-07-24 14:08:54 +02:00
Denis Rouzaud
33071f4720 fix doxymentation 2017-07-24 13:44:25 +02:00
Denis Rouzaud
fcc0d7dde3 enhanced output for code_layout build on Travis 2017-07-24 13:40:49 +02:00
Nathan Woodrow
b9e545a465 Remove corner widget for profiles. Make it normal menu
Hopefully for now until I work out better UX
2017-07-24 21:15:53 +10:00
Nathan Woodrow
601dd41213 Nicer level string in message log window 2017-07-24 21:15:53 +10:00
Nyall Dawson
d055def2d1 Merge pull request #4907 from nyalldawson/symbol_button
New QgsSymbolButton widget
2017-07-24 20:29:14 +10:00
Nyall Dawson
6202f06e98 Fix more tests 2017-07-24 20:06:36 +10:00
Nyall Dawson
7e749a5afb Fix failing tests 2017-07-24 19:46:26 +10:00
Denis Rouzaud
db745df4a4 fix indentation 2017-07-24 11:36:38 +02:00
Denis Rouzaud
500175b8e8 remove QgsScrollAreaWidgetPlugin from custom widgets
it had to be removed form the widget list in uic plugin. It might be better to provide the real list of implemented widgets rather than the full gui list.

fixes #16428
2017-07-24 10:45:42 +02:00
Alexander Bruy
b842043c96 Merge pull request #4901 from alexbruy/processing-random
[processing] restore "random" algorithms
2017-07-24 11:27:16 +03:00
Nyall Dawson
78b05c1a7f Allow copying and pasting symbols between QgsSymbolButtons 2017-07-24 16:57:30 +10:00
Alexander Bruy
c440ade2d8 [processing] remove Z/M addition from "random" algorithms 2017-07-24 09:20:47 +03:00
Alexander Bruy
c7645a3884 [processing] port Random points along lines 2017-07-24 09:20:47 +03:00
Alexander Bruy
f8b0c06942 [processing] port Random points in polygons 2017-07-24 09:20:47 +03:00
Alexander Bruy
ae2e32b36e [processing] restore Random points in layer bounds 2017-07-24 09:20:47 +03:00
Alexander Bruy
eb9f45cbb0 [processing] port Random points within extent 2017-07-24 09:20:47 +03:00
Denis Rouzaud
2723f4f199 remove duplicate method
followup 391712d2d42a761acb4bacce81cbe9ed8da52f6b
2017-07-24 07:30:48 +02:00
Nathan Woodrow
391712d2d4 Always log message bar messages to message log
Mainly so they don't just disappear on the user
2017-07-24 15:19:07 +10:00
Nathan Woodrow
12c634cef3 Load default profile name from global
Also adds overrideLocalProfile to ignore local profiles.ini file
2017-07-24 14:52:10 +10:00