40332 Commits

Author SHA1 Message Date
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
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