1313 Commits

Author SHA1 Message Date
Nyall Dawson
9bfca65ac3 Add API to enable/disable preview jobs
Disabled by default, and enabled only for main canvas (not
secondary canvases)
2017-08-18 00:04:07 +10:00
Matthias Kuhn
55cdc89a11 Merge pull request #5004 from jgrocha/helpviewer
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Jorge Gustavo Rocha
32c81a0311 Update sip files 2017-08-16 16:20:38 +02:00
Martin Dobias
0be0a4e30c Always use snapping configuration from the project in adv.digitizing dock
It was slightly confusing to have another override for snapping while it is possible
to configure "no snapping" or "all layers" snapping mode in project anyway.
And with the nice snapping toolbar it can be also done very quickly.
2017-08-16 14:37:19 +02:00
Martin Dobias
42933a279b Remove class members that were never used 2017-08-16 14:37:19 +02:00
Jorge Gustavo Rocha
fe59a19e17 Change all ocurrences on_buttonBox_helpRequested to showHelp
Add help button to 3 dialogs
Fix missing QStringLiteral
Fix CMakeLists.txt indentation
Fix qhelp.h and qgis_sip.h includes with <>
2017-08-15 23:51:03 +02:00
Alessandro Pasotti
7d074de90d Geopackage fix mixed geometry layers and attributes
In addition to geometry filtered layers for each geometry
type in a mixed-geometry type layer adds a table
layer with all attributes.

Tehre is no perfetc solution here, if the layer is created
with a filter on geometrytype, the attributes are not shown
(this is probably a pre-existing bug), if the layer is added
as is, only the first geometry type is drawn.

With this implementation at least all data (attributes and
geometries) are accessible in some way.

Note that geopackage layers added by DB Manager do not show
all geometries of a mixed type layer.
2017-08-14 20:25:47 +02:00
Sebastian Dietrich
479e3cb736
Reset digitizing tools when new project is loaded/created
Refs #4237 https://issues.qgis.org/issues/4237
2017-08-13 14:21:39 +02:00
Juergen E. Fischer
03e0298f49 msvc warning fixes:
* use AUTORCC to avoid locked qrc_images.cpp during build of gui tests
* bump minimum version of cmake to 3.0.0 for AUTORCC
* suppress some warnings in sip bindings
* suppress unreachable warnings and some more
* split sip files in more parts to suppress warning BK4504
* also remove old WITH_INTERNAL_YAML from travis
2017-08-10 00:09:14 +02:00
Jorge Gustavo Rocha
32624bbc36 SIP bindings 2017-08-09 19:56:58 +02:00
Jorge Gustavo Rocha
3a103b7c62 Refactoring of all help calls, deprecating QgsContextHelp and the former helviewer 2017-08-09 09:27:29 +02:00
Nyall Dawson
df3bcddab7 Hook up clearing guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
ab726c4777 Add methods to determine visible pages in a view 2017-08-07 19:34:28 +10:00
Nyall Dawson
886a1208ef Dropping guides outside of pages doesn't create new guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
b0956c9bd7 [needs-docs] Partial WIP of dragging rulers to create guide lines
Unlike in 2.x, Layouts in 3.0 adopt the standard UX of dragging
out rulers to create guide lines (instead of clicking on a ruler
position to create a guide)
2017-08-07 19:34:28 +10:00
Nyall Dawson
ef6727518d [FEATURE] Add a dock widget showing snap guides for current page
Allows creation of snap lines at specific locations, and
adjusting position of existing guides to exact coordinates
2017-08-07 19:34:28 +10:00
Nyall Dawson
798ec83681 Start on snapping marker 2017-08-07 19:34:28 +10:00
Nyall Dawson
f57212eee5 Hook up snapping for QgsLayoutViewTools
Tools can now indicate (via setFlags()) if they desire snapping
to be active for the tool. When a tool has the flag set,
any QgsLayoutViewMouseEvents it receives will have a snappedPoint()
available which returns the mouse event point snapped using
the layout's snapping settings.
2017-08-07 19:34:28 +10:00
Nyall Dawson
cad54f2cea Fix incorrect icon sizes in Python console
Console was not respecting application icon size setting
2017-08-07 05:24:12 +10:00
Nyall Dawson
434bda725f Merge pull request #4982 from nyalldawson/drop_file_drop_file_drop_file_drop_file_drop
Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
2017-08-07 05:14:28 +10:00
Nyall Dawson
c3b62ad4ca Customise->Customize 2017-08-07 01:37:19 +10:00
Juergen E. Fischer
487a7a00b7 fix 'allows to/allows one to' spell errors and enhance to our spellchecker to deal with those 2017-08-06 17:34:22 +02:00
Nyall Dawson
b1a6c790cf Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
It makes no sense to have two classes covering this use case, with
partial functionality in each. Smash the two together so we can
safely use QgsFileWidget for all use cases in future.
2017-08-06 23:26:46 +10:00
Denis Rouzaud
06f9842637 rename symbology-ng to symbology 2017-08-06 14:18:57 +02:00
Alessandro Pasotti
a612a6874d Sipify docstring for signal 2017-08-06 09:02:27 +02:00
Alessandro Pasotti
acead27197 Add raster widget to data source manager dialog
Also:
- created source select widget for GDAL provider
- created source select widget for OGR provider
- added addVecorLayers signal to the base class
2017-08-05 16:38:33 +02:00
Alessandro Pasotti
fef3bc099d Renamed button slots and make ogr dialog inherit from the abstract base 2017-08-04 22:06:07 +02:00
Alessandro Pasotti
dc6017dc1d Move the buttons and connections into the base class
This was a small refactoring to homogenize the
dialogs buttons and add an Ok/Add button bar.
2017-08-04 17:43:23 +02:00
Nyall Dawson
082dafe22d Fix infinitely growing widgets
Fixes #16849
2017-08-03 00:46:33 +10:00
Nyall Dawson
917263a9a3 Allow setting project for QgsExpressionBuilderWidget
(still defaults to QgsProject::instance())
2017-07-31 08:18:09 +10:00
Nyall Dawson
e79bf3fb94 Add some unit tests for QgsExpressionBuilderWidget 2017-07-31 08:08:18 +10:00
Nyall Dawson
687adbf669 Fix tiny svg preview size on hidpi displays 2017-07-27 09:00:44 +10: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
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
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
416e1e4bbf Fix drawing of rulers with multipage layouts 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
Blottiere Paul
0dca126c55 Update sip binding 2017-07-24 14:45:46 +01:00
Denis Rouzaud
33071f4720 fix doxymentation 2017-07-24 13:44:25 +02: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
78b05c1a7f Allow copying and pasting symbols between QgsSymbolButtons 2017-07-24 16:57:30 +10: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
Nyall Dawson
46f6f83fb9 Port some symbol buttons across to QgsSymbolButton
- composer shape style button (no other composer ones for now- they're
all getting removed with layouts anyway)
- point cluster/displacement renderer buttons
2017-07-24 11:07:55 +10:00
Nyall Dawson
22c4740f63 [FEATURE] New standard widget for symbol buttons
Button widgets for configuring symbol properties were reimplemented
multiple times throughout the codebase. This commit creates a new
standard QgsSymbolButton widget which should be used whenever
a button for configuring symbol properties is required.

Features include:
- automatic use of inline panels whenever possible
- dropdown menu with shortcuts to color settings, copy/pasting colors
- accepts drag and dropped colors to set symbol color
2017-07-24 11:07:55 +10:00
Nyall Dawson
faa4a09ed0 Merge pull request #4877 from nyalldawson/layout_next
Layouts, chapter II
2017-07-24 08:42:51 +10:00
Juergen E. Fischer
90fa6c2e91 sub layer dialog: sort by layer id and feature count numerically (fixes #16917) 2017-07-22 13:41:20 +02:00