8807 Commits

Author SHA1 Message Date
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
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
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
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
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
Nyall Dawson
147bb7f1ed Move ellipsoid parameter retrieval to new QgsEllipsoidUtils class 2017-04-18 09:53:00 +10:00
Nyall Dawson
cc5b9bfe17 More QgsDistanceArea API cleanups and simplification
- setEllipsoidalMode() was removed. Ellipsoidal calculations are
now enabled whenever a valid ellipsoid() has been set. Set the
ellipsoid to 'NONE' to disable ellipsoidal calculations.

- ellipsoidalEnabled() was removed. Ellipsoidal calculations
are now enabled whenever a valid ellipsoid() is set. Check
willUseEllipsoid() to determine whether ellipsoidal
calculations will be performed.

- sourceCrs() and setSourceCrs() now always take and return
QgsCoordinateReferenceSystem objects. All string/ID based CRS
methods were removed.

- geographic() was removed. This was only used internally
in one place, so was replaced with sourceCrs().isGeographic() instead.

- some largely overlapping measurement functions were consolidated
2017-04-18 08:14:16 +10:00
Nyall Dawson
cdef0764b5 Use default copy constructors and assignment operators for QgsDistanceArea
There's no complex member variables here - the default implementations
should be fine (actually faster, since they won't require
recalculation of the derived parameters)
2017-04-18 08:14:16 +10:00
Nyall Dawson
53e1df45ab sipify QgsDistanceArea 2017-04-18 08:14:16 +10:00
Martin Dobias
7b202edf04 Remove QgsVectorLayer::snapPoint() and unused code in QgsSelectedFeature 2017-04-17 17:37:16 +08:00
Alexander Bruy
c749057f02 Merge pull request #4363 from alexbruy/passwordlineedits
[needs-docs] use QgsPasswordLineEdit in the master password dialog
2017-04-17 12:28:50 +03:00
Mathieu Pellerin
8c20d993f8 sipify qgscolorbutton and qgscolorrampbutton (#4365)
* get rid of params to get rid of warnings
2017-04-17 16:10:11 +07:00
Martin Dobias
316d9c3359 R.I.P. QgsSnapper and QgsMapCanvasSnapper
These classes have been replaced by more efficient and flexible classes
(see QgsPointLocator, QgsSnappingUtils, QgsMapCanvasSnappingUtils)
2017-04-17 17:08:48 +08:00
Mark Johnson
8b08285e90 added measureLineProjected and computeSpheroidProject to QgsDistanceArea 2017-04-17 19:06:30 +10:00
Alexander Bruy
85788151c2 doxymentation 2017-04-17 10:59:17 +03:00
Alexander Bruy
6bcc066d6f sipify QgsCredentials dialog 2017-04-17 10:59:17 +03:00
Martin Dobias
e73a52bb35 [FEATURE] New node tool implementation 2017-04-17 14:23:36 +08:00
Nyall Dawson
eff5a823c9 [sipify] Convert "\a arg" to "`arg`" when processing Docstrings
Allows argument names to be highlighted in Python docs
2017-04-17 13:49:59 +10:00
Nyall Dawson
6a72c945af [sipify] Don't autocreate Docstrings for overridden members
Skip the autocreated Docstrings with rtype annotations if the
member is overridden - better to use the base class
Docstring in this case.
2017-04-17 11:03:02 +10:00
Nyall Dawson
96d5b9dae6 Implement a QGIS 3.0 TODO for QgsMessageLogViewer, cleanup docs 2017-04-17 10:55:53 +10:00
Nyall Dawson
798c318288 [sipify] Fix loss of class docstring if newline present between
class doxygen and class definition
2017-04-17 10:49:29 +10:00
rldhont
cc55ae1932 Merge pull request #4344 from rldhont/server-wfs-configparser
[Server] WFS refactoring and QgsWfsProjectParser removal
2017-04-14 17:32:16 +02:00
Matthias Kuhn
0e09fdacde Use monospace fonts for console on all platforms 2017-04-12 22:21:59 +02:00
matteo
16c8dac2ac travis fix 2017-04-12 21:07:30 +02:00
matteo
bca0ca25ee 2 new plots added 2017-04-12 21:07:30 +02:00
matteo
0c5b667986 fix category error and remove np dependency 2017-04-12 21:07:30 +02:00
Alessandro Pasotti
9c2f88c911 QgsSettings: add writeArray and more group and array tests 2017-04-12 18:02:17 +02:00
Alessandro Pasotti
c9f0509841 Merge pull request #4355 from boundlessgeo/password-helper-authmanager3
[feature][needs-docs] Master Password integration with OS password manager
2017-04-12 13:04:43 +02:00
Nyall Dawson
226bd9bb60 Move QgsRectangle and QgsBox3d to geometry folder
Since these are both geometry related classes, it's nicer to
keep these all together
2017-04-12 15:27:34 +10:00
Nyall Dawson
36ca6d2380 Add methods to convert between QgsRectangle and QgsBox3d
Also add volume calculation to QgsBox3d
2017-04-12 14:45:47 +10:00
Nyall Dawson
6632fd6849 Cleanup QgsRectangle header and sipify
Also add methods for returning area and perimeter of rectangle
2017-04-12 14:39:02 +10:00
Nyall Dawson
e3dfe17861 Add unit tests for QgsBox3d 2017-04-12 14:08:47 +10:00
Nyall Dawson
0d843ff4e6 Initial framework for 3D box class 2017-04-12 14:08:47 +10:00
Alessandro Pasotti
090d5305e5 [feature][needs-docs] Master Password integration with OS password manager
This PR adds (optional) synchronization of the master password
with the OS password manager (AKA wallet/keychain).

A set of new menu items has been added in the options ->
authentication -> utilities to manage the new behavior.

Notifications are handled by the message bar unless the
password r/w operation is triggered from a modal dialog,
in this case the notifications will be routed through
the recently exposed QgisApp::showSystemNotification
that uses the OS tray notifications.

This new feature requires libqt5keychain, and was tested
with v. 0.5+
2017-04-11 15:00:29 +02:00