38050 Commits

Author SHA1 Message Date
Nyall Dawson
490f5f06fe Revise main window title bar text
- Change order to "project name - QGIS" to follow standard
convention (also avoids possible truncation of project name which is
more useful then the "QGIS" text)
- Don't show version number in release builds. Only show version
in dev builds instead. Showing the version number violates the
HIG for Windows and OSX (and probably Linux DEs too).
2017-04-20 11:44:32 +10:00
Denis Rouzaud
13415370a5 sipify QgsIdentifyMenu 2017-04-19 18:06:39 +02:00
Denis Rouzaud
e5ab2f6b5b [sipify] fix struct member assignment 2017-04-19 18:06:39 +02:00
Denis Rouzaud
be9a51c42d sipify QgsMapLayerModel, QgsMapLayerProxyModel 2017-04-19 16:44:36 +02:00
Denis Rouzaud
0b0e8a6a89 move QgsFieldModel and QgsFieldProxyModel to core and sipify 2017-04-19 16:44:36 +02:00
Denis Rouzaud
bd4f7126e1 sipify QgsMapLayerCombobox, QgsFieldCombobox 2017-04-19 16:44:36 +02:00
Denis Rouzaud
7552d1cc64 sipify QgsFileWidget, QgsExternalResourceWidget 2017-04-19 15:20:08 +02:00
Denis Rouzaud
56aa36e4be sipify QgsRelation 2017-04-19 15:19:14 +02:00
Denis Rouzaud
652d6b4200 [sipify] remove Q_INVOKABLE 2017-04-19 15:19:14 +02:00
Denis Rouzaud
a260146e94 [sipify] fix remove protected members 2017-04-19 15:18:54 +02:00
Denis Rouzaud
51aa44de5f [sipify] fix enum combination 2017-04-19 15:03:31 +02:00
Denis Rouzaud
55860e8508 sipify QgsFieldExpressionWidget 2017-04-19 14:29:51 +02:00
jef
daa3c2a4a4 fix windows build 2017-04-19 13:49:32 +02:00
jef
a5998b43ee update ICOs 2017-04-19 13:49:32 +02:00
Alexander Bruy
737906c55c [processing] add information message when feature skipped 2017-04-19 14:06:16 +03:00
Alexander Bruy
1016119468 [processing] prevent division by zero in random points in polygons fixed 2017-04-19 14:01:41 +03:00
Alexander Bruy
3b5b191730 [processing] fix parsing selection parameter in translate algorithm 2017-04-19 12:23:35 +03:00
Nyall Dawson
23de9a0224 Rework QgsRange to better handle temporal ranges
Make a new QgsTemporalRange template class for specific
temporal classes.

Add QgsDateTimeRange class.
2017-04-19 18:45:17 +10:00
Nyall Dawson
18c8c1fe36 Add is2d() method to QgsBox3d to determine whether box is 2d 2017-04-19 18:45:17 +10:00
Martin Dobias
24c5b0326f Rewrite addTopologicalPoints() and remove legacy snapping code + unit test 2017-04-19 11:24:20 +08:00
Nyall Dawson
cbf5e9c9c9 Silence some annoyingly debug chatty classes 2017-04-19 10:59:13 +10:00
Nyall Dawson
1962c54ee8 [cad] Listen out for CRS changes and enable if appropriate
Avoids having to manually switch on and off cad tools after changing
CRS from geographic->metres based
2017-04-19 10:31:38 +10:00
Nyall Dawson
3e2d60e712 Disable cad perpendicular/parallel buttons when snapping is disabled
And use tooltips to advise users that snapping must be enabled
before this functionality can be used.

Hopefully helps make the behaviour of these features a bit more
predictable for users
2017-04-19 10:22:35 +10:00
Nyall Dawson
58ded28974 [composer] Correctly handle restoring map layer style overrides from template
(when template was created in a different project)

On behalf of Faunalia, sponsored by ENEL
2017-04-19 09:57:44 +10:00
Nyall Dawson
5b6b035d83 Correctly handle restoring atlas coverage layer from template
(when template was created in a different project)

On behalf of Faunalia, sponsored by ENEL
2017-04-19 09:57:43 +10:00
Martin Dobias
832d2dd045 Node tool: improvements for deletion of vertices
- fix issue when deleting the repeated first+last vertex of polygon's ring
- make deletion aware of topological editing (also delete other vertices at the same position)
- fix issue with dragging not being stopped when deleting multiple vertices
- make deletion in node editor follow the same code path
- unit tests for topological editing (moving / deleting vertices)
2017-04-18 17:32:19 +08:00
Nyall Dawson
e6aa44f877 Merge pull request #4368 from nyalldawson/composer_map_layer_ref
More use of weak layer references in composer templates
2017-04-18 17:23:53 +10:00
Nyall Dawson
f413963e2f Change &operator to get() 2017-04-18 16:49:22 +10:00
Nyall Dawson
2ca70dc48a [composer] Correctly restore map item layers when loading a template
in a different project to that which the template was created in

On behalf of Faunalia, sponsored by ENEL
2017-04-18 16:36:19 +10:00
Nyall Dawson
dc3b2cdbd4 Add some methods for working with lists of map layer references 2017-04-18 16:36:19 +10:00
Nyall Dawson
eb1e8205e1 [composer] Use weak layer reference matching when loading attribute table from XML
Allows attribute tables in templates to reattach to matching layers
when loaded in a different project to the project the template was
created in.

On behalf of Faunalia, sponsored by ENEL
2017-04-18 16:36:19 +10:00
Nyall Dawson
85a7327aae Add some useful operators to layer reference 2017-04-18 16:36:19 +10:00
Nyall Dawson
1efd623c07 Move layer ref resolving to QgsMapLayerRef
Add unit tests
2017-04-18 16:36:19 +10:00
Nyall Dawson
35410fd4b7 Some API improvements to QgsMapLayerRef, unit tests 2017-04-18 16:36:19 +10:00
Nyall Dawson
6bb3fa61c5 Merge pull request #4353 from nyalldawson/range
New QgsRange template based class for storing interval ranges
2017-04-18 13:14:25 +10:00
Martin Dobias
405da5950f Rename QgsNodeTool2 to QgsNodeTool 2017-04-18 10:58:57 +08:00
Nyall Dawson
7949c81c3d Add templated docs to acceptable missing docs 2017-04-18 12:19:42 +10:00
Nyall Dawson
c460f07d92 Add missing docs 2017-04-18 12:19:42 +10:00
Nyall Dawson
c4ea048e5b New QgsRange template based class for storing interval ranges
QgsRange classes represent a range of values of some element
type. For instance, ranges of QDateTime might be used to
represent the ranges of timestamp ranges.

Ranges can indicate whether the upper and lower values are
inclusive or exclusive. The inclusivity or exclusivity of
bounds is considered when determining things like whether
ranges overlap or during calculation of range intersections.

Includes typedefs for QgsDoubleRange, QgsIntRange, QgsDateRange.
2017-04-18 12:19:42 +10:00
Nyall Dawson
33b6c41dd2 Merge pull request #4357 from nyalldawson/composer_layer_ref
Use weak layer references and loose matching for composer legend customisation
2017-04-18 12:06:38 +10:00
Nyall Dawson
302e9dd363 Fix ui build warning 2017-04-18 11:27:27 +10:00
Nyall Dawson
0c1f97c438 Merge pull request #4367 from nyalldawson/distance_area_api
Cleanup QgsDistanceArea API and sipify, add cache for ellipsoid lookup
2017-04-18 11:22:35 +10:00
Nyall Dawson
3535ee2d55 Allow QgsDataProvider access through QgsMapLayer
Avoids having to cast to QgsRasterLayer/QgsVectorLayer before
accessing the common QgsDataProvider members
2017-04-18 11:14:01 +10:00
Nyall Dawson
87a670848b [sipify] Always add virtual keyword for overridden methods
sip often requires the virtual keyword to be present, or
it chokes on covariant return types in overridden methods
2017-04-18 11:14:01 +10:00
Nyall Dawson
1805a70952 Add missing docs 2017-04-18 10:27:05 +10:00
Nyall Dawson
023ad46525 sipify QgsLayerTreeLayer 2017-04-18 10:27:05 +10:00
Nyall Dawson
468c784f7e sipify QgsLayerTreeGroup 2017-04-18 10:27:05 +10:00
Nyall Dawson
0b36ee3aac Use weak layer references and loose matching for composer legend
customisation

Allows legend customisation to be restored when loading a composer
template

Fix #2738
2017-04-18 10:27:05 +10:00
Nyall Dawson
05b737c215 Add doxygen note linking QgsDistanceArea to QgsEllipsoidUtils 2017-04-18 10:23:09 +10:00
Nyall Dawson
5f1656b8e9 Move retrieval of lists of known ellipsoids to QgsEllipsoidUtils 2017-04-18 10:18:48 +10:00