1616 Commits

Author SHA1 Message Date
Sandro Mani
a9baeb114b Add some qgsRound tests 2015-10-12 23:58:37 +02:00
Nyall Dawson
ec9fd86d30 Add missing mask from previous commit 2015-10-12 21:57:01 +11:00
Nyall Dawson
b93f2eacbe Follow up c7b9fa, fix failing tests
Looks like there's a label in the test which is placed right on the
boundary of the map, so the geos changes in c7b9fa have shifted it
slightly off the canvas and resulted in it not being drawn.

Update test mask images so this label is optional.
2015-10-12 21:56:31 +11:00
Nyall Dawson
f9559003d4 Really fix #13545
I'm not sure what sip voodoo is preventing the bindings from
calling methods in the base class, so for QGIS <3.0 I've aliased
all the new signatures and will rename them back for 3.0
2015-10-12 21:56:30 +11:00
Nyall Dawson
ae85376614 Fix refining rule based renderer using expression (fix #10815) 2015-10-12 21:01:09 +11:00
Nyall Dawson
160f172b42 Flip some QStrings to QLatin1String where they may be faster 2015-10-12 18:38:45 +11:00
Nyall Dawson
52f0b5b612 Bump acceptable doc coverage 2015-10-12 18:38:37 +11:00
Nyall Dawson
1aefa17fbd Update TestQgsLabelingEngineV2 to use render checker, reenable on Travis 2015-10-12 18:38:29 +11:00
Nyall Dawson
ecbd691ca4 Followup 8e2b791, add unit test 2015-10-12 09:14:20 +11:00
Nyall Dawson
80ccb39ae5 More test mask updates. Also disable qgis_labelingenginev2 on Travis
qgis_labelingenginev2 needs to be refactored to use QgsRenderChecker.
Directly comparing the two images is too fragile due and is failing
on Travis.
2015-10-10 22:07:39 +11:00
Nyall Dawson
4eb53d366a Update test mask images 2015-10-10 21:21:21 +11:00
Juergen E. Fischer
b11b73cbbe fix precise build 2015-10-09 08:03:44 +02:00
Nyall Dawson
d1be2ff214 Fix hardcoded border for raster legend items (fix #13540)
Previously raster legend items always had a fixed black border.
Now there's options to change the color/width of this border or
disable it entirely.
2015-10-09 06:12:37 +11:00
Nyall Dawson
dcbe0d370e Fix legends are empty if presets used with filtered legend (fix #13300) 2015-10-08 07:57:21 +11:00
Radim Blazek
e223bccde5 [GRASS] initial editing test 2015-10-07 14:57:06 +02:00
Nyall Dawson
c6df096c38 Followup c49b5b7, more fixes 2015-10-07 18:32:24 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
ac3f390dfe restore behavior of QgsGeometry::combine on line strings (fixes #13274) 2015-10-05 23:25:06 +02:00
Radim Blazek
32e6d9c564 [GRASS] removed warnings from raster provider 2015-10-05 14:25:50 +02:00
Juergen E. Fischer
1b4ca622c9 add cppcheck fixes 2015-10-03 21:57:17 +02:00
Nyall Dawson
0587a59b39 Only save effect element if it is non-default
(decreases file size of qgs project files)
2015-10-01 06:54:59 +10:00
Martin Dobias
1c877f116c Fix another crash with rule-based labeling + data-defined properties (fixes #13453)
The writing of data-defined properties to XML was using invalid data.
Also fixes a possible memory leak in assignment operator.
Thanks Nyall for help tracking it down!

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-30 12:36:44 +08:00
Nyall Dawson
fea4ed9926 Store layer list in canvas order for visibility presets, fixes
data defined style preset for composer maps changing layer
order
2015-09-30 07:11:37 +10:00
Nyall Dawson
fefd85adef Fix some leaks 2015-09-28 18:42:24 +10:00
Larry Shaffer
dd9b37b4c9 [auth] Skip unit tests if qca-ossl plugin is missing 2015-09-26 02:01:15 -06:00
Nyall Dawson
228d816b3b Merge pull request #2330 from boundlessgeo/master-2_11-auth-system
Authentication configuration system with master password
2015-09-26 05:45:28 +10:00
Nyall Dawson
dd759370bd [FEATURE][composer] Option to restrict image/SVG outputs to content
If selected, then the images output by composer will include only
the area of the composition with content. There's also an option
for margins to add around the item bounds if required.

If the composition includes a single page, then the output will
be sized to include EVERYTHING on the composition. If it's a
multi-page composition, then each page will be cropped to only
include the area of that page with items.

A new image export options dialog has been added to facilitate
this, which also includes handy shortcuts for overriding the
print resolution or exported image dimensions.

Sponsored by NIWA
2015-09-25 18:55:35 +10:00
Nyall Dawson
2f343008c1 [FEATURE][composer] Add fit page to contents option
New option in the composition panel, with optional extra margins
to add

Sponsored by NIWA
2015-09-25 18:55:35 +10:00
Nyall Dawson
2215d48712 [FEATURE][composer] Add option to hide pages from view/export
Sponsored by NIWA
2015-09-25 18:55:35 +10:00
mhugent
8cec2c935f Merge pull request #2302 from manisandro/geometry_plugins
Geometry Checker and Geometry Snapper plugins
2015-09-25 02:39:50 +02:00
Larry Shaffer
264d2ebbdd [auth] Update auth config tests; strip passphrase from QgsPkiBundle 2015-09-24 06:44:05 -06:00
Larry Shaffer
83e0b81afc [auth] Update python tests (keep disabled); add auth config tests
- Add comparison operators to QgsAuthMethodConfig
2015-09-24 05:34:25 -06:00
Martin Dobias
249c87822f One common class for labeling configurations (QgsAbstractVectorLayerLabeling)
This is +/- equivalent of QgsFeatureRendererV2 for vector layer labels

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Martin Dobias
44ae0b8cea Loading and saving of rule-based labeling rules
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Martin Dobias
1782d1a505 [FEATURE] Rule-based labeling
Work in progress

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Nyall Dawson
8a949fa1a6 Fix some leaks 2015-09-24 08:25:23 +10:00
Larry Shaffer
c519e06e29 [auth system] Add PKI test data 2015-09-21 08:51:19 -06:00
Larry Shaffer
e65aa99ae7 [FEATURE] Authentication configuration system with master password
- Main C++ core and gui classes and desktop app integration
- Support for authentication method plugins
- Does not contain any integration with service connections
2015-09-21 08:51:18 -06:00
Radim Blazek
22313dc80d [GRASS] cleanup tmp files after test 2015-09-21 14:48:09 +02:00
Martin Dobias
50d4e720a7 [FEATURE] Mutually exclusive layer tree groups (only one child may be checked at a time)
The feature can be toggled individually for groups - in layer tree view context menu.

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 19:30:15 +08:00
Nyall Dawson
a4d980d055 Port from expressions+ plugin: color_part, set_color_part, day_of_week 2015-09-21 19:57:58 +10:00
Radim Blazek
fae065494a [GRASS] fixed test if current user is not owner of source 2015-09-21 11:54:44 +02:00
Sandro Mani
2ea4ee9a21 Remove fragile centroid of self-intersecting polygon test 2015-09-21 10:03:25 +02:00
Martin Dobias
d43176af60 Fix server labeling tests
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:11 +08:00
Martin Dobias
7d22536ab0 Update the labeling engine tests
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:10 +08:00
Martin Dobias
6cc1f4c2cb Fix unit tests and issues with cached layers
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
d0fcc9557f More labeling engine refactoring
- QgsPalLabeling now internally uses new engine
- label/diagram providers can hook into rendering loop to avoid extra feature loops
- map rendering uses the new engine instead of QgsPalLabeling

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
8100495df6 Integrate new labeling engine into the map rendering
Now used instead of QgsPalLabeling for labels/diagrams

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
1d0d0e0662 [FEATURE] New API for labeling engine (QgsLabelingEngineV2)
The idea is to make the engine more flexible compared to QgsPalLabeling implementation:
- abstract dealing with text labels / diagrams from the engine itself
- allow multiple types of labels per layer
- support custom label providers (e.g. implemented by plugins)
- make the labeling engine independent from map rendering engine
- make it easier to auto-test the labeling engine and its components

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Nyall Dawson
e21cc78cc4 Fix failing test 2015-09-18 10:47:09 +10:00