30772 Commits

Author SHA1 Message Date
Hugo Mercier
b0bfa5feb5 Merge pull request #2662 from mhugo/vlayer_expr
Support for expression functions in virtual layers
2016-01-13 12:03:46 +01:00
Denis Rouzaud
c69afc9e6d script for custom widget plugin creation 2016-01-13 11:49:26 +01:00
Denis Rouzaud
586b607245 add custom widgets for QgsExternalResourceWidget and QgsFilePickerWidget 2016-01-13 11:49:25 +01:00
Denis Rouzaud
3ce6454790 add documentation 2016-01-13 11:49:25 +01:00
Denis Rouzaud
492f1ad18b add sip bindings 2016-01-13 11:49:25 +01:00
Denis Rouzaud
488b41f5c5 add test for QgsFilePickerWidget 2016-01-13 11:49:25 +01:00
Denis Rouzaud
cc9f0000be use home directory as default path if nothing else can be used 2016-01-13 11:49:25 +01:00
Denis Rouzaud
a88e238276 allow definition of dialog title, display relative url in label 2016-01-13 11:49:25 +01:00
Denis Rouzaud
29752a3597 QgsFilePicker and QgsExternalResource: new file picker widget and editor widget for improved file name widget
* QgsFilePicker is intended to be used across whole QGIS application for file picking
  * right now it supports only single file/folder selection
  * it has advanced support of relative path

* QgsExternalRessourceWidget is the pending editor widget which integrates a photo/web viewer
  * it can be properly accessible from the API and custom widgets
  * new class to avoid duplicating code for legacy support
  * old widgets will be removed from QGIS 3 (users will be invited to use the new widget in the config dialog)
2016-01-13 11:49:25 +01:00
Médéric RIBREUX
0034108edb Improve FileName editor widget
* Use an hyperlink for file name: when checked the widget displays an hyperlink (in a QLabel) instead of a QLineEdit. The link is always clickable, even in non edit mode. In this mode, user can only change the content of the field by selecting a file with the file selector (which is opened with the "..." button). If you want to revert to editable QLineEdit file name widget, just unchek the option.
* Display the full path: when checked, the hyperlink will display the absolute path of the file. When unchecked, the hyperlink will display only the name of the file (useful if the file path is always long).
Default Path: this is the path that will be used by the file selector when opening. The file selector will start at this path (if the option is not empty).
* Store Relative paths to the default path: when checked, file names are stored relatively to the default path described above. It is useful to store long paths into text shapefiles attributes limited to 254 characters.
* Store relative paths to the project path: when checked, file names are stored relatively to the project (.qgs file) path. This option will override the "save paths" setting of the project because it is sometimes useful to store code/svg/layer path relatively but not for the file name attributes.
* File storage options are exclusive options to make the file selector select files (default mode) or only directories.

File Name editor widget:

* add a isFieldSupported method to the factory to allow File Name widget only on fields that are QStrings.
* add a new QSetting to save the last path used in the widget. Before the PR, users were always defaulted to QGIS home directory when using the file selector button. This QSetting could also be used for the photo widget.
* when you want to change the value of an already set attribute, file selector will point to this path.
* when the value of the attribute is null or non valid (not a file), the file selector will use the default path (if set), or the last used path or the home directory.
2016-01-13 11:49:25 +01:00
Matthias Kuhn
b7170b82d3 Add azimuth function 2016-01-13 11:14:25 +01:00
volaya
f8de083a5b [Processing] [OTB] fixed wrong command when alg help is not found
fixes #14096
2016-01-13 11:06:23 +01:00
Patrick Valsecchi
9dc7662e17 Add saveAs XLSX and ODS 2016-01-13 10:08:50 +01:00
volaya
7a879994d4 [processing] fixed frequency analysis algorithm
code provided by Joseph Liam

fixes #14090
2016-01-13 09:55:30 +01:00
Nyall Dawson
b2cc3099ac Make raster classes debug output less noisy 2016-01-13 19:10:39 +11:00
Matthias Kuhn
4e9afcec4c Expression variable for the currently rendered part
During rendering, two new variables will be available:

  * `geometry_part_count`
  * `geometry_part_num` (1-based index)

Useful to apply different styles to different parts of multipart
features
2016-01-13 08:17:49 +01:00
Nyall Dawson
3da051b989 More debugging output for raster layer test 2016-01-13 16:19:06 +11:00
Nyall Dawson
76f3bc1ad5 Fix some clang -weverything warnings 2016-01-13 16:18:36 +11:00
Nyall Dawson
a30a735150 Fix some clazy issues (detach/iterating temporary, QString multi arg) 2016-01-13 16:18:11 +11:00
Nyall Dawson
4181ef8535 Avoid some warnings on Windows 2016-01-13 16:17:03 +11:00
Nyall Dawson
f0d8efbdd4 Update test mask 2016-01-13 16:16:39 +11:00
Nyall Dawson
8bd92fb80f Reorder label modes combo box 2016-01-13 13:36:29 +11:00
Nyall Dawson
04caab24a7 Merge pull request #2542 from SebDieBln/RefreshStyleWidgetOnLoadStyle
Refresh the label style widget when loading a new style (fixes #13667)
2016-01-13 13:24:28 +11:00
Nyall Dawson
21cdefa7e8 Merge pull request #2667 from SebDieBln/ZoomToFeatureIds
allow zooming to multiple features by their ID
2016-01-13 11:09:52 +11:00
Nyall Dawson
7495d9eada Followup 9dccce8, nicer error messages 2016-01-13 10:37:41 +11:00
Nyall Dawson
d01307ff29 Merge pull request #2492 from SebDieBln/NoCopyPasteOnDuplicateLayer
[Bugfix] Avoid using copyStyle() / pasteStyle() within duplicateLayers()
2016-01-13 10:35:31 +11:00
Sebastian Dietrich
e5f1d87506 allow zooming to multiple features by their ID
Changed QgsMapCanvas::zoomToFeatureId() to QgsMapCanvas::zoomToFeatureIds() accepting multiple IDs instead of just one.
2016-01-13 00:14:23 +01:00
Nyall Dawson
9dccce87ee Followup 3a1d47
- Fix dialog tab order
- Avoid use of hardcoded enum int conversion
- Remove some unneeded implicit casts
- Doc tweaks
2016-01-13 09:38:18 +11:00
Duncan Runnacles
4af65e6329 Set default margin units to MM 2016-01-13 08:27:58 +11:00
Duncan Runnacles
3a1d47fef7 Updated decoration items to use QgsUnitSelectionWidget.
Applies to north arrow, copyright and scalebar.

- Changed dialogs to use QgsUnitSelectionWidget.
- Added QgsSymbolV2::OutputUnit enum to decorationitem.
- Updated to use mm, pixel, or percentage units.
2016-01-13 08:27:54 +11:00
Duncan Runnacles
a89c1830de Added "Percentage" option to QgsSymboV2::OutputUnit.
- Added percentage to OutputUnit enum.
- Updated qgssymbolv2utils to include percentage.
- Updated qgsunitselectionwidget to include percentage.
Changed selection widget in its own commit

Added Percentage to OutputUnit enum.

Added percentage to switches in utils
2016-01-13 08:27:49 +11:00
Juergen E. Fischer
0ba089e6d4 fix PyQgsAppStartup on windows 2016-01-12 21:59:47 +01:00
Alexander Bruy
917ea5c0e3 [processing] add extension to the output vector VRT (fix #13872) 2016-01-12 20:24:55 +02:00
Alexander Bruy
3a514269ea [processing] remove nviz algorithm from modeller (fix #9107) 2016-01-12 20:24:55 +02:00
Alexander Bruy
04542a900a [processing] allow multiple threshold values for GRASS v.clean.advanced algorithm (fix #13748) 2016-01-12 20:24:55 +02:00
mhugent
47ae05fbdb Merge pull request #2595 from SebDieBln/ImproveDigitizingTools
Improve digitizing tools for circular strings
2016-01-12 16:25:41 +01:00
mhugent
3febba279d Merge pull request #2619 from mhugent/zoom_to_feature
[FEATURE]: Zoom to feature with right-click in attribute table
2016-01-12 16:20:17 +01:00
Matthias Kuhn
e351d24a7d More types support for QgsVectorFileWriter 2016-01-12 12:58:47 +01:00
Nyall Dawson
e29c7e519e Merge pull request #2644 from nirvn/move_save_btn
[ui] move the save symbol button
2016-01-12 21:16:13 +11:00
Matthias Kuhn
04919963f7 Merge pull request #2616 from SebDieBln/FixLayerCountAttribute
Remove the 'layercount' attribute in a project file
2016-01-12 10:46:17 +01:00
Matthias Kuhn
b82806218d Merge pull request #2663 from radosuav/fix_AlgorithmDialogBase_closeEvent
[Processing] Fix behaviour of closeEvent in AlgorithmDialogBase
2016-01-12 10:44:54 +01:00
Nyall Dawson
e26ef82890 Update test mask image 2016-01-12 20:07:58 +11:00
Nyall Dawson
419f59c274 Replace angles with constants 2016-01-12 20:05:54 +11:00
Nyall Dawson
8779091225 Fix failing tests 2016-01-12 08:24:56 +11:00
Nyall Dawson
8b28c040d1 [FEATURE] Add mode to apply label distance from symbol bounds
(only works with Cartographic point label placement). When this
setting is active, the label distance applies from the bounds
of the rendered symbol for a point, instead of the point itself.
It's especially useful when the symbol size isn't fixed, eg if
it's set by a data defined size or when using different symbols
in a categorised renderer.

Sponsored by Andreas Neumann
2016-01-12 08:24:39 +11:00
Nyall Dawson
6499439cc5 Fix failing tests, add tests for ordered placement
Sponsored by Andreas Neumann
2016-01-12 08:24:38 +11:00
Nyall Dawson
7479bf385b Allow setting data defined placement order in GUI
Sponsored by Andreas Neumann
2016-01-12 08:24:38 +11:00
Nyall Dawson
b589856735 [FEATURE] "Cartographic" placement mode for point labels
In this placement mode, point label candidates are generated
following ideal cartographic placement rules, eg labels
placements are priortised in the order:
- top right
- top left
- bottom right
- bottom left
- middle right
- middle left
- top, slightly right
- bottom, slightly left
(respecting the guidelines from Krygier and Wood (2011) and other
cartographic textbooks)

Placement priority can also be set for an individual feature using
a data defined list of prioritised positions. This also allows for
only certain placements to be used, so eg for coastal features you
could prevent labels being placed over the land.

TODO:
- while the ordering can be customised by editing a project file,
there's no GUI to customise this ordering if you want to deviate
from this standard priority (and it's out of scope for this
current work)
- tests

Sponsored by Andreas Neumann
2016-01-12 08:24:38 +11:00
Nyall Dawson
a3cee7df42 Fix spacing 2016-01-12 08:24:13 +11:00
Martin Dobias
17f85f62fe [tracer] get rid of warnings 2016-01-11 21:50:25 +01:00