3705 Commits

Author SHA1 Message Date
Nyall Dawson
e58f25dbb9 Create new QgsOpacityWidget widget
Allows consistent behavior and appearance across all opacity controls
2017-05-30 11:36:24 +10:00
Nyall Dawson
a3262240fe Flip symbology from alpha/transparency to opacity 2017-05-30 11:07:22 +10:00
Nyall Dawson
32480fe8bd Fix tests 2017-05-30 08:48:55 +10:00
Nyall Dawson
bcf4026f9d Flip QgsVectorLayer from transparency to opacity 2017-05-30 08:48:55 +10:00
Nyall Dawson
32af831ca2 Fix test 2017-05-30 08:48:55 +10:00
Nyall Dawson
ac3932073b Flip QgsShadowEffect from transparency to opacity 2017-05-30 08:48:55 +10:00
Nyall Dawson
6f4c5496c7 Flip QgsDrawSourceEffect from transparency to opacity 2017-05-30 08:48:55 +10:00
Nyall Dawson
89c2e85aa9 Flip QgsGlowEffect from transparency to opacity 2017-05-30 08:48:55 +10:00
Nyall Dawson
59cc09b4c4 Change QgsBlurEffect to use opacity instead of transparency 2017-05-30 08:48:55 +10:00
Nyall Dawson
39146517d2 Change QgsComposerItem to use opacity instead of transparency 2017-05-30 08:48:54 +10:00
rldhont
8356c767b9 Merge pull request #4637 from rldhont/server-wms-configparser-describelayer
[Server] WMS DescribeLayer refactoring
2017-05-29 12:13:12 +02:00
nirvn
3419945a8d [FEATURE] create_ramp() expression function 2017-05-29 16:31:53 +07:00
Nyall Dawson
e6a8f9da32 Fix memory leak in TestQgsPaintEffect 2017-05-29 12:48:34 +10:00
Nyall Dawson
566d75bd71 Fix memory leaks in processing tests 2017-05-29 09:25:02 +10:00
Nyall Dawson
ba079d80c9 Fix crash when reordering composer items via drag and drop
Caused by internal Qt bug when multiple QSortFilterProxyModels
used by widgets are attached to a parent model which calls
beginMoveRows.

Adds some tests, but none reproduce the crash. Not reproducable
on Qt5 builds.
2017-05-27 18:56:41 +10:00
Nyall Dawson
86ce4418b1 Merge pull request #4627 from nyalldawson/json_format
Use field formatter when exporting feature attributes to JSON
2017-05-27 07:22:07 +10:00
Nyall Dawson
9cfe70c058 Merge pull request #4624 from nyalldawson/feature_source
QgsFeatureSource
2017-05-27 07:21:45 +10:00
rldhont
e7d45a0976 [Server] Add DescribeLayer test 2017-05-26 16:59:23 +02:00
rldhont
c05d779ccd Merge pull request #4630 from rldhont/server-wms-configparser-getcontext
[Server] WMS GetContext refactoring
2017-05-26 16:33:32 +02:00
rldhont
ce3cbeb963 [Server] Add GetContext accesscontrol test 2017-05-26 15:48:03 +02:00
rldhont
83b3368e38 [Server] Add GetContext test 2017-05-26 15:48:03 +02:00
rldhont
6feca53278 [Server] Fix QgsServerProjectUtils readListEntry 2017-05-26 15:48:03 +02:00
Sandro Santilli
83613204fa Add test for QgsScaleRangeWidget::setScaleRange
See #15463 as this test guards after the fix for that bug
(minScale visibility corrupted upon project load)
2017-05-26 11:57:11 +02:00
Nyall Dawson
47ffb588fe Fix some providers not requesting all required attributes needed
for client side order by clauses
2017-05-26 08:06:13 +10:00
Nyall Dawson
aa376c2a1f Split ProviderTestCase into provider/source tests
There's now a FeatureSourceTestCase base class which handles
testing QgsFeatureSources for conformance. These tests
consist mostly of tests which where previously in
ProviderTestCase. ProviderTestCase now subclasses
FeatureSourceTestCase + adds tests which are specific
to QgsVectorDataProviders.
2017-05-25 20:48:00 +10:00
Nyall Dawson
5b0bc93834 Rename QgsJSONExporter/Utils to QgsJsonExporter/Utils
Follows proper QGIS/Qt capitalization convention
2017-05-25 07:43:03 +10:00
Nyall Dawson
a5e3f1931b Use field formatter when exporting feature attributes to JSON
This means that field values which utilise widget setups like
value maps will correctly show the "friendly" value
for the field, instead of the raw values.
2017-05-25 07:29:53 +10:00
Denis Rouzaud
f5e66dd227 [sipify] handle constrained annotation 2017-05-24 14:49:28 +02:00
rldhont
2b39c1e1e9 Merge pull request #4597 from rldhont/server-wms-configparser-getcapabilities-part2
[Server] WMS GetCapabilities refactoring - Part 2
2017-05-22 12:42:48 +02:00
Denis Rouzaud
1df3c51606 sipify batch 2017-05-22 10:12:08 +02:00
rldhont
33b4582f49 [Server] WMS GetCapabilities refactoring - Part 2
Part 2 (the last) for removing QgsWMSProjectParser from GetCapabilities
2017-05-20 15:54:39 +02:00
Denis Rouzaud
fb8edea112 [sipify] implement template inheritance 2017-05-19 15:35:47 +02:00
Hugo Mercier
0a82ab51fe Merge pull request #4432 from pblottiere/bugfix_sld
[bugfix] Fix unit of sizes when reading a SLD file (uom attribute from SLD 1.1 version is supported)
2017-05-19 08:54:14 +02:00
Matthias Kuhn
82455588c8 General include cleanup
This unifies the way the include directories are handled in the
CMakeLists.txt files.
Paths are now normally relative to the root of the source- or build dir.
They may still be relative for paths withing a plugin subdirectory but
should no longer be relative to paths outside of the current source- or
build-directory.

The previous approach had resultet in many different styles which are
hard to wrap ones head around if new to the build system.
It sometimes defined includes twice
By using relative paths, it was not possible to copy paste the paths
between different files.
2017-05-19 07:13:11 +02:00
Matthias Kuhn
ec40199862 Modularize expressions
The file qgsexpressions.h has grown to one monolithic piece over the
years. This makes it hard to maintain and slows down compilation because
even small changes at one end will result in recompiling big parts of
the source tree. It also requires the compiler to keep track of all
these implementation details for said big parts of the source tree.

This splits this implementation into smaller pieces. There are soe API
changes connected to this, but since these can be considered
implementation details, on which not many plugins rely, this shouldn't
have a big impact on the ecosystem outside the source tree.
2017-05-19 07:13:11 +02:00
Blottiere Paul
344b964709 Update unit tests for raster layer 2017-05-18 11:09:42 +02:00
Blottiere Paul
9f8b92d329 Update unit tests for vector layer 2017-05-18 11:09:42 +02:00
Blottiere Paul
8a6137247a Remove the deep copy functionality 2017-05-18 11:09:41 +02:00
Blottiere Paul
c6f97e53de Add unit tests 2017-05-18 11:09:23 +02:00
Martin Dobias
e001d5c70a Add QgsGeometry::isSimple() - useful for self-intersection checks 2017-05-18 09:02:41 +08:00
Nyall Dawson
09975cec07 Fix transform shear value not saved (fix #16567) 2017-05-18 08:56:53 +10:00
Nyall Dawson
6e98b9fe54 Add failing test for #16567 2017-05-18 08:56:53 +10:00
Nyall Dawson
936125555f Forward port test for #16517 2017-05-18 07:29:05 +10:00
Nyall Dawson
b4de0acef5 Merge pull request #4512 from nyalldawson/locator
[FEATURE] Implement a QtCreator style locator bar in the QGIS status bar
2017-05-18 07:06:53 +10:00
Denis Rouzaud
8231d7528b sipify QgsExpressionContext, QgsFeatureRequest, QgsOptionalExpression 2017-05-17 15:20:31 +02:00
Nyall Dawson
a7d590e041 Add a context variable for locator searches
This allows encapsulation of properties relating to the context
of a search, such as a target map extent. Locator filters could
use this to prioritise results close to the current canvas extent.
2017-05-17 21:33:47 +10:00
Nyall Dawson
71f7872251 [FEATURE] Implement a QtCreator style locator bar in the QGIS status bar
This adds a new "locator" bar to the QGIS status bar. If you're not
familiar with QtCreator's locator, it's a quick search bar
(activated by Ctrl+K) which displays matching search results
from any number of registered search filters.

Search filters are subclassed from QgsLocatorFilter, and
added to the app's locator via iface.registerLocatorFilter(...)

Searching is handled using threads, so that results always
become available as quickly as possible, regardless of whether
any slow search filters may be installed. They also appear
as soon as each result is encountered by each filter, which means
that e.g. a file search filter will show results one by one
as the file tree is scanned. This ensures that the UI is always
responsive even if a very slow search filter is present (e.g.
one which uses an online service).

This framework is designed to be extended by plugins, such as
OSM nominatim searches, direct database searching (i.e. Discovery
plugin), layer catalog searches, etc...
2017-05-17 21:33:47 +10:00
Nyall Dawson
afc9788881 Better method to ensure memory layers always have unique sources 2017-05-17 21:31:37 +10:00
Sandro Santilli
0bac937173 Fix indentation as requested by Travis
NOTE: I do have the prepare-commit.sh hook in place, but it did
      not handle this
2017-05-16 19:22:58 +02:00
Sandro Santilli
4ed096b94d Add test for unprojectible polygon labeling
See #15507
2017-05-16 18:16:54 +02:00