34055 Commits

Author SHA1 Message Date
Nyall Dawson
ce6bd6c973 Move QgsSymbolV2::OutputUnit enum to QgsUnitTypes
And rename to QgsUnitTypes::RenderUnits. This enum is used in
much more contexts than just symbols, so QgsUnitTypes is a
better fit for it.

All methods which previously accepted QgsSymbolV2::OutputUnit
parameters or QgsSymbolV2::OutputUnitList parameters now take
QgsUnitTypes::RenderUnit or QgsUnitTypes::RenderUnitList
parameters respectively.
2016-07-25 15:22:12 +10:00
Nyall Dawson
f6f5010131 Move QGis::UnitType to QgsUnitTypes::DistanceUnit
This change consolidates more unit handling and conversion into
QgsUnitTypes.

Additionally, UnknownUnit was renamed to UnknownDistanceUnit.
All methods which accepted QGis::UnitType parameters have been
updated to take QgsUnitTypes::DistanceUnit instead.

ALso remove the unit handling methods toLiteral, fromLiteral, tr,
fromTr, and fromUnitToUnitFactor from QGis. Their corresponding
counterparts in QgsUnitTypes should be used instead.
2016-07-25 14:47:16 +10:00
Nyall Dawson
59aed7b231 Remove deprecated units from QGis
- DecimalDegrees
- DegreesMinutesSeconds
- DegreesDecimalMinutes

all these were replaced long ago by QGis::Degrees
2016-07-25 13:00:46 +10:00
Nyall Dawson
58856fe82f Remove some deprecated QgsVectorDataProvider::Capabilities
Also make capabilities() return a QFlags
QgsVectorDataProvider::Capabilities, rather than an integer
value (for type safety)
2016-07-25 12:14:00 +10:00
Nyall Dawson
bc2c2b201c Merge pull request #3331 from nyalldawson/crs
QgsCoordinateReferenceSystem - API fixes + internal caching
2016-07-25 11:11:17 +10:00
Nyall Dawson
6dac8e18bd Clean up handling of inverted axis for CRS, fix detachment issue 2016-07-25 10:15:46 +10:00
Nyall Dawson
bb36c6048d Remove QgsCRSCache
No longer required now that QgsCoordinateReferenceSystem
internally uses caches for CRS initialization.
2016-07-25 10:15:46 +10:00
Martin Dobias
71ca330f98 One more try to make PyQgsDocCoverage happy 2016-07-25 02:14:44 +02:00
Nyall Dawson
ac36cb5dd2 Make QgsCoordinateReferenceSystem use an internal cache
for initializing CRS objects.

This avoids the need for the separate QgsCRSCache class,
and means that the caching benefits are available without the
need for calling methods from QgsCrsCache.
2016-07-25 10:14:19 +10:00
Nyall Dawson
bb220a0b43 Add some static methods for creating QgsCoordinateReferenceSystem
This avoids the need for

  QgsCoordinateReferenceSystem crs;
  crs.createFromSrsId(...)

and instead can be replaced with

  QgsCoordinateReferenceSystem crs = QgsCoordinateReferenceSystem::fromSrsId(...)
2016-07-25 10:14:19 +10:00
Nyall Dawson
ee62bdeeb4 Rename some QgsCoordinateReferenceSystem methods
- geographicFlag() -> isGeographic()
- axisInverted() -> hasAxisInverted()
2016-07-25 10:14:19 +10:00
Martin Dobias
cb4410f2bc Added "added" note 2016-07-25 01:26:34 +02:00
Martin Dobias
04ffd9ec4f Final fixes for tests 2016-07-25 00:45:20 +02:00
Martin Dobias
b216138d27 Fix the build 2016-07-24 23:58:08 +02:00
Martin Dobias
963ff92108 Finally add forgotten SIP file 2016-07-24 23:39:57 +02:00
Martin Dobias
940883b6b7 Code for cancellation of raster reading with GDAL 2 - disabled for now
There are still some questions around it and I need to find some data
for thorough testing (many GDAL drivers do not support cancellation)
2016-07-24 23:16:33 +02:00
Martin Dobias
7b8c1c5ae1 Make sure that backtrace dump from multiple threads does not cause deadlocks 2016-07-24 23:16:33 +02:00
Martin Dobias
b6b5afd885 [FEATURE] Ability to cancel rendering of rasters + WMS/WCS support
The improvement allows immediate cancellation of raster rendering
in progress. Until now, even when map rendering got cancelled
(e.g. by zooming of panning canvas), the GUI got blocked while waiting
for raster layers to finish their rendering (only vector layers have
had support for cancellation). This should allow for much smoother
user experience while browsing maps including rasters.

The cancellation is supported currently by WMS/WMTS and WCS providers.
GDAL provider may also get support thanks to improvements in GDAL 2.

Funded by Land Information New Zealand.
2016-07-24 23:16:33 +02:00
Juergen E. Fischer
2b8b979216 fix build 2016-07-24 23:04:36 +02:00
Martin Dobias
0974f0b81b Wrap QgsMapCanvasMap in PRIVATE condition to avoid sip/doc testing 2016-07-24 22:44:23 +02:00
Martin Dobias
ab4a83b49b Goodbye to QgsMapRenderer (#3333)
For the time being the class is kept in the server code while it is still being used there.
2016-07-24 22:40:52 +02:00
Juergen E. Fischer
2bbfe8a6f9 update splash 2016-07-24 21:45:31 +02:00
Juergen E. Fischer
1368038ca9 oracle provider: fix binding of output values 2016-07-23 18:34:15 +02:00
Matthias Kuhn
e9b4b0c666 Pass enums by value 2016-07-23 00:20:29 +02:00
Matthias Kuhn
82259f8775 Miss fixing docs 2016-07-22 22:51:44 +02:00
Matthias Kuhn
4d9f3ff806 Fix inadequate usage of nullptr 2016-07-22 22:04:51 +02:00
Juergen E. Fischer
578962f316 more QGis -> QGis renames
git grep -l "QGis::" src/ | xargs perl -pe "s/QGis::/Qgis::/g" -i.bak
2016-07-22 15:30:40 +02:00
Juergen E. Fischer
aa0b94a7c8 fix build 2016-07-22 15:25:04 +02:00
Alexander Bruy
2fbb617d61 [processing] also fix case without dissolving 2016-07-22 15:43:04 +03:00
Alexander Bruy
9976c30c9a [processing] fix buffer tool 2016-07-22 15:37:16 +03:00
Juergen E. Fischer
e8bac30230 debian packing build with webkit on xenial 2016-07-22 14:10:41 +02:00
Nyall Dawson
791b2c3919 Merge pull request #3324 from nyalldawson/qgis
QGis class rename and cleanup
2016-07-22 19:28:06 +10:00
Nyall Dawson
39da9d1402 Allow shift-drag zooming with touch tool 2016-07-22 18:20:56 +10:00
Nyall Dawson
2dcd40554a Use closed hand cursor when dragging canvas with middle mouse button 2016-07-22 18:16:08 +10:00
Nyall Dawson
d56ca40884 Make filename in project properties a readonly line edit
(Because it's nice to be able to copy the project path easily)
2016-07-22 18:10:33 +10:00
Nyall Dawson
95fd61c7bd Fix annotation colors are modified when cancel is clicked 2016-07-22 08:36:36 +10:00
Nyall Dawson
03527452d7 Add apply buttons to annotation dialogs 2016-07-22 08:27:32 +10:00
Nyall Dawson
a798ba0637 Avoid dialog 'flashing' when opening annotation properties 2016-07-22 08:20:37 +10:00
Nyall Dawson
0554f5656c Always keep full precision when saving annotation properties 2016-07-22 08:19:25 +10:00
Nyall Dawson
72b53b980b [composer] Fix position of annotations in rotated maps
(AKA "stack some hacks on top of existing hacks")
2016-07-22 08:17:03 +10:00
Nyall Dawson
12a2147427 [FEATURE] Add an option to show user color schemes menus
This adds the ability for users to set whether a user created
color scheme should show up in the color button drop-down menus.

It's accessed through the color picker dialog, on the lists tab.
Just add a new color scheme, then from the scheme menu tick the
new "show in buttons" option.

Handy if you have sets of common palettes and want them to be
instantly available through the color menu.
2016-07-22 07:32:07 +10:00
Nyall Dawson
8f203c9a87 Remove some unused constants 2016-07-22 05:35:26 +10:00
Even Rouault
68f63eb101 Try another method to avoid XML serialization issues with QT5 (#3323) 2016-07-21 17:24:37 +02:00
Nyall Dawson
713e22a9f5 Move some methods out of Qgis class 2016-07-21 22:14:46 +10:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Juergen E. Fischer
b642c02705 doc/TRANSLATORS in an output file (followup 156db22) 2016-07-21 10:04:04 +02:00
Nyall Dawson
965f1d468e Move field contraint config widgets into a group box 2016-07-21 17:32:30 +10:00
Nyall Dawson
c0ac9b18e4 Remove deprecated labeling tab 2016-07-21 17:32:30 +10:00
volaya
df2ca2e607 [processing] use SilentProgress by default if no progress object is passed 2016-07-21 07:01:17 +02:00
volaya
6c486758c2 [processing] changed saga decorated group name 2016-07-21 07:01:16 +02:00