46686 Commits

Author SHA1 Message Date
Nyall Dawson
bec878f6f9 [processing][grass] Fix error after running grass algorithms 2018-03-27 07:10:37 +11:00
Matthias Kuhn
7b8603c306
Merge pull request #6637 from DelazJ/layouteditor
Add toolTip to layout editor option in vector layer attributes form properties
2018-03-26 16:18:58 +02:00
Mathieu Pellerin
3f153e91b8
[copyright decorator] improve default label string
- Instead of using (c) QGIS YYYY, rely on the project metadata
to insert the author name. It's a more useful default string,
and might help avoid a misconception about ownership of maps
produced in QGIS.
2018-03-26 16:33:30 +07:00
Nyall Dawson
2b8519c017 Fix cannot set tolerance unit in simplify tool 2018-03-26 14:27:15 +10:00
Nyall Dawson
4f16e01e97 Fix value map field formatter doesn't work
The configuration format was changed without updating the unit
tests to flag this failure.
2018-03-26 11:02:07 +11:00
Pierre
ce34646cfc talking about "ninja qgis" in install.txt (#6670) 2018-03-26 09:00:08 +10:00
William Kyngesburye
bf8b1e90da Mac packaging updates 2018-03-24 11:17:44 -05:00
Marco Bernasocchi
20c071b515 Add support for imports from qgis.PyQt
this adds support to imports from the qgis.PyQt packages like
from qgis.PyQt.QtGui import (QCheckBox, QIcon)

this kind of imports are already used by some plugins
without having the PyQt5 structure of packages (i.e. they use
from qgis.PyQt.QtGui import (QCheckBox, QIcon) instead of
from qgis.PyQt.QtGui import (QIcon)
from qgis.PyQt.QtWidgets import (QCheckBox)
2018-03-24 15:31:36 +01:00
Marco Bernasocchi
ac09795900 add a warning when unsupported imports are detected
Works for example with imports like import PyQt4.QtGui
2018-03-24 15:31:36 +01:00
Daniele Viganò
9f73854d4e Improve package upgrade path from QGIS 2 to QGIS 3 with RPM 2018-03-24 15:25:16 +01:00
Alessandro Pasotti
5eb9ab4813
Merge pull request #6644 from elpaso/gml-inverted-axis
Add axisOrder to QgsAbstractGeometry GML generators
2018-03-24 12:50:13 +01:00
Salvatore Larosa
2220a6eadd
Merge pull request #6667 from slarosa/fix_18530
Fixes #18530: Removing project item from Welcome screen crashes QGIS
2018-03-24 12:30:07 +01:00
Salvatore Larosa
af6ad23048 Fixes #18530: Removing project item from Welcome screen crashes QGIS 2018-03-24 11:34:53 +01:00
Salvatore Larosa
5d34584b01 Revert "[TEMPORARY]"
This should not have happened :-(

This reverts commit bc45258b510b8e17d9a2006f4906a255559a9297.
2018-03-23 22:43:41 +01:00
Salvatore Larosa
3a5fb9d7bd Fixes #18526: Pasting data from clipboard inside Python console causes the text cursor to be moved to the end of the row 2018-03-23 22:41:00 +01:00
Salvatore Larosa
bc45258b51 [TEMPORARY] 2018-03-22 12:20:52 +01:00
Hugo Mercier
4c4e8ac18a
Merge pull request #6085 from lbartoletti/ccache
Use ccache if available
2018-03-22 08:32:29 +00:00
Nyall Dawson
c8f597983b Fix crash in attribute form after adding field
Fixes #18507
2018-03-22 16:23:51 +10:00
Nyall Dawson
6b1255b4d9 Remove autogenerated metadata when loading an older project 2018-03-22 16:13:30 +11:00
Nyall Dawson
37c5dd9301 Add settings key to anonymize new projects
Defaults to false, but if set will not automatically set
metadata for newly created projects such as author
and creation date.
2018-03-22 16:13:30 +11:00
Nyall Dawson
2eacc4c4b4 [FEATURE][layouts] Export project metadata in PDF/image exports
Includes project metadata in PDF exports, and supported image
based formats.

Image based metadata support depends on the format and the
Qt library's handling of each particular format (e.g. PNG
outputs are well supported).

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
1d4ff69553 Fix unit test 2018-03-22 16:13:30 +11:00
Nyall Dawson
a600b51bad [FEATURE][layouts] Export project metadata as SVG RDF metadata
Adds an option to include project metadata into SVG exports
generated from layouts, using the SVG RDF standard.

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
18408fa2c1 [FEATURE] Add expression context variables for project metadata
- @project_author
- @project_abstract
- @project_creation_date
- @project_identifier
- @project_keywords

Allows retrieval of project metadata through QGIS expressions

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
288bb1a872 When a new project is created, default to setting the metadata
author to the current logged on user name
2018-03-22 16:13:30 +11:00
Nyall Dawson
f435f62364 Standardise capitalisation 2018-03-22 16:13:30 +11:00
Nyall Dawson
df56de01a7 Update more labels to reflect project metadata in widget 2018-03-22 16:13:30 +11:00
Nyall Dawson
681cd41185 Synchronize project title field and project metadata title
field in project properties dialog

Since these two are equivalent, we automatically keep them
in sync.
2018-03-22 16:13:30 +11:00
Nyall Dawson
6ce184de79 Add tests for QgsMetadataWidget 2018-03-22 16:13:30 +11:00
Nyall Dawson
accdc23e0b Fix sip subclassing of metadata subclasses 2018-03-22 16:13:30 +11:00
Nyall Dawson
016f2288c6 Fix accidental class rename 2018-03-22 16:13:30 +11:00
Nyall Dawson
665f3e4cfc Spelling 2018-03-22 16:13:30 +11:00
Nyall Dawson
8bc45769df [FEATURE] Add metadata to QGIS projects
Allows for detailed metadata to be set in project properties,
including abstracts, keywords, contact details, links, etc.

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
f4ed93e1ca Add project metadata mode to QgsMetadataWidget 2018-03-22 16:13:30 +11:00
Nyall Dawson
b10be8a8a3 Update metadata xml definitions 2018-03-22 16:13:30 +11:00
Nyall Dawson
d293c5d0a0 Code shuffle to avoid duplicate code 2018-03-22 16:13:30 +11:00
Nyall Dawson
99faf06f60 Make project title getters/setters a shortcut to metadata title field
And silently upgrade old project titles to metadata titles
2018-03-22 16:13:30 +11:00
Nyall Dawson
bba3f6c6fe Add QgsProjectMetadata member to QgsProject 2018-03-22 16:13:30 +11:00
Nyall Dawson
09aca080ec Add new QgsProjectMetadata metadata class
For storing QgsProject metadata. Contains all metadata items
from QgsMetadataBase, plus adds author and creation datetime
metadata items.
2018-03-22 16:13:30 +11:00
Nyall Dawson
1e05de049a Update metadata validator for base class split 2018-03-22 16:13:30 +11:00
Nyall Dawson
a96d59a1a6 Create unit test for QgsMetadataBase 2018-03-22 16:13:30 +11:00
Nyall Dawson
5cf2656ace Split metadata into two classes
A new base class QgsMetadataBase has been split off QgsLayerMetadata,
containing all non-layer specific metadata items.

This allows us to reuse the common metadata settings for other
non-layer items, e.g. projects.
2018-03-22 16:13:30 +11:00
Nyall Dawson
9c06d86ad8 Fix some HIG string violations 2018-03-22 12:32:08 +10:00
Nyall Dawson
a2ba566e2b Fix generation of world file when exporting canvas
Fixes #18491
2018-03-22 11:18:26 +11:00
Nyall Dawson
8a5924d0f1 [layouts][needs-docs] Add missing tool actions to Edit menu
Fixes #18494
2018-03-22 09:17:38 +10:00
Nyall Dawson
5e52d5142d [layouts] Add missing tooltips to toolbars
Fixes #18495
2018-03-22 09:13:56 +10:00
Nyall Dawson
7942f7e0bc [layouts] Fix Toolbox toolbar name
Refs #18494
2018-03-22 09:00:41 +10:00
Nyall Dawson
bbebcb4d33 Fix qt warning about widget already has a layout 2018-03-22 09:00:16 +10:00
Nyall Dawson
49d585ef17 [processing][gdal] Move method to write input files to text file to GdalUtils 2018-03-22 06:46:39 +11:00
Nyall Dawson
b17feaaa97 [processing][gdal] Expose no data options for gdal merge algorithm 2018-03-22 06:46:39 +11:00