46699 Commits

Author SHA1 Message Date
Nyall Dawson
a75b85fa09 Add missing default palette 2018-03-13 10:39:49 +11:00
Nyall Dawson
14c8b3c75d [neeeds-docs] Show all color schemes and tools for interacting with the in the
options->color tab

This brings all of QGIS' color scheme handling to a more logical and
user-discoverable place. Previously this functionality was only
available inside the color dialog itself (i.e. users would have to start
changing a color before they could create and edit schemes)
2018-03-13 10:39:49 +11:00
Nyall Dawson
2a0f36499a Show scheme selector in color section of options 2018-03-13 10:39:49 +11:00
Nyall Dawson
21ef2fd42b Provide a simple initial palette for new layers
TODO: make it AWESOME!
2018-03-13 10:39:49 +11:00
Nyall Dawson
7e6796c657 By default, generate new layer colors from a random selection
in a preset palette

The palette is packaged as resources/new_layer_colors.gpl

TODO: allow users to set a different palette
2018-03-13 10:39:49 +11:00
Nyall Dawson
149b23e08b Allow updating gpl based color schemes which are set to the
default random color scheme

Allows users to edit the color scheme inside QGIS and see the
effects immediately on next layer load
2018-03-13 10:39:49 +11:00
Nyall Dawson
bc449c401b Move generation of default symbol random colors to
QgsColorSchemeRegistry

and add API to set a QgsColorScheme from which to pull
colors when creating a random symbol color.
2018-03-13 10:39:49 +11:00
Nyall Dawson
40ceb7bdce Don't mark project dirty when legend nodes are expanded/collapsed 2018-03-13 10:10:23 +11:00
Nyall Dawson
773ec220ba [needs-docs] Don't mark a project as dirty when only the canvas extent
changes

Since this is a view operation, not an edit operation, we don't
mark it as changing the project state. (Much like how loading a
doc in a word processor and scrolling to the last page isn't
changing the document state).
2018-03-13 10:10:23 +11:00
Salvatore Larosa
c5861710fa fix string: followup 504e50df5e 2018-03-12 23:00:13 +01:00
Salvatore Larosa
504e50df5e [FEATURE][needs-docs] Save/Load connections for Tiles XYZ 2018-03-12 18:56:56 +01:00
Matthias Kuhn
8f9d17e1d0
Merge pull request #6548 from 3nids/fix_datetime_null
fix #18299 date time widget does not correctly set value from calendar
2018-03-12 12:40:49 -04:00
Alessandro Pasotti
ea0c7058a5
Merge pull request #6576 from elpaso/bugfix-18292-extra-params-search
[server][bugfix] accept getfeatureinfo filter without h/w
2018-03-12 12:05:30 +01:00
Nyall Dawson
764e812765 [FEATURE] Add a "Revert Project" option to Project menu
Discards all unsaved changes to a project and reverts to the last
saved version of the project
2018-03-12 16:26:45 +11:00
Nyall Dawson
251e1d5352 [FEATURE][processing] Add line sinuosity to "Export Geometry Info"
Adds line sinuosity and straight distance to the stats calculated
by "Export Geometry Info"

Fixes #12376
2018-03-12 14:58:04 +11:00
Nyall Dawson
41d16a8491 Unit tests for straightDistance2d/sinuosity 2018-03-12 14:58:04 +11:00
Nyall Dawson
6c179059a5 Add straightDistance2d and sinuosity measures to QgsCurve 2018-03-12 14:58:04 +11:00
Nyall Dawson
05fb8f7349 'Catch all' -> 'Catch-all' 2018-03-12 14:32:17 +11:00
Nyall Dawson
f06b3691c5 More spelling fixes 2018-03-12 14:32:17 +11:00
luz.paz
b82ec177c9 Misc. source comment typos
+ added 2 strings in to spelling.dat file
2018-03-12 14:32:17 +11:00
Nyall Dawson
d04b3d9eaf Update spell check list, spelling 2018-03-12 14:32:17 +11:00
luz.paz
2a6ae6ac96 Misc. source and comment typos
These need a little more review, so I added them in to a separate PR.
2018-03-12 14:32:17 +11:00
Nyall Dawson
ade747bcdd Fix doxygen warning 2018-03-12 14:30:53 +11:00
Nyall Dawson
273e664563 Fix some leaks in conversions 2018-03-12 14:30:53 +11:00
Nyall Dawson
a0f6a2bc04 Fix leak in QgsVectorFileWriter metadata
Not a serious leak (since it only occurs once per application), but
causes HEAPS of valgrind noise
2018-03-12 14:30:53 +11:00
Nyall Dawson
4af5ff500a Fix leak when a transform error occurs while transforming linestrings 2018-03-12 14:30:53 +11:00
Nyall Dawson
0d99d310d0 Fix leak when splitting geometries 2018-03-12 14:30:53 +11:00
Nyall Dawson
31a92543c7 Use some constants for search box highlighting styles 2018-03-12 13:08:09 +11:00
Régis Haubourg
5efa7bb21a Improves background color for search result in general option dialog
fixes 18142 by a lighter yellow background and keeping a black font
2018-03-12 13:08:09 +11:00
Ari Jolma
08332e73a2 [processing][gdal] color relief alg: add the default color option, i.e., no switches 2018-03-12 10:43:47 +11:00
Nyall Dawson
8df954d6b8 [processing] Port Delete Holes algorithm to c++, allow dynamic
min area parameter
2018-03-12 10:41:22 +11:00
Juergen E. Fischer
d88da33e9b debian packaging: add buster 2018-03-11 18:54:37 +01:00
Denis Rouzaud
010a99d112
fix build without python (#6577)
and do not delete object with incomplete type
better fix for warning adressed in PR #6491
2018-03-11 07:39:34 -08:00
Alessandro Pasotti
39778b16d8 Added test reference file for getfeatureinfo no width 2018-03-11 12:55:28 +01:00
Alessandro Pasotti
59e68d9e4a [server][bugfix] accept getfeatureinfo filter without h/w
When INFO_FORMAT is not an image format there is no
need to make image WIDTH and HEIGHT mandatory.

2.x accepted that, 3.x raised an exception.

This is a partial fix: SRS is still mandatory because
fixing this would require a deeper refactoring and
I believe we can live with it, because SRS will be
required if filters are combined with geometry filters,
while passing a WIDTH/HEIGHT when we don't want an image
back is always useless.

A test was also added.
2018-03-11 11:43:27 +01:00
Alessandro Pasotti
5281c8411d [test][server] Houskeeping: split getfeatureinfo
put it in its own test
2018-03-11 10:41:32 +01:00
Nyall Dawson
30749ef80c Fix leak in virtual layers 2018-03-11 20:20:50 +11:00
Nyall Dawson
eb4951382c Fix leak when writing features with null geometry to vector layers 2018-03-11 20:20:50 +11:00
Nyall Dawson
3315db0fe7 Fix leak in QgsRelief 2018-03-11 20:20:50 +11:00
Nyall Dawson
540d692c56 Fix leak in network analysis director 2018-03-11 20:20:50 +11:00
Nyall Dawson
dfa6b6ae19 Correctly set base style for QgsLayerTreeViewProxyStyle
Creates a new QgsProxyStyle subclass of QProxyStyle which
automatically sets the base style to match the current
application style (creating a new QStyle object, since
setting the base style takes ownership). Additionally,
QgsProxyStyle correctly parents the style to a parent
widget, avoiding leaks since calling QWidget::setStyle
doesn't transfer ownership.

Fixes incorrect theme used for layer tree view since
addition of indicator icons.
2018-03-11 10:23:18 +11:00
Nyall Dawson
0c1ceb3900 [FEATURE][layouts] Data defined table source for attribute table items
When an attribute table is set to a "Layer features" source, this
allows the underlying vector layer from which to source features
to be data defined.

(All existing table attributes (column settings) are left intact,
so setting a data defined table to a layer with different fields
will result in empty columns in the table.)

Sponsored by Kartoza/Inasafe
2018-03-11 10:22:46 +11:00
Nyall Dawson
97324661c7 Add layout util to retrieve map layer from project by string
Considers both layer id (preferred) and layer names
2018-03-11 10:22:46 +11:00
Nyall Dawson
c562a2e540 [layouts] Fix missing call to base class method 2018-03-11 10:22:46 +11:00
Nyall Dawson
709702d568 Don't show profile name in title bar for default profile 2018-03-11 08:44:51 +11:00
Nyall Dawson
6b5dfce38f [layouts] Fix reference map can change when opening a layout designer 2018-03-11 08:44:51 +11:00
Nyall Dawson
60afeadf44 Add QgsProjectDirtyBlocker and QgsProject.blockDirtying to prevent
project dirtying for the lifetime of an object

Python code can then call:

    project = QgsProject.instance()
    with QgsProject.blockDirtying(project):
      # do something

Use QgsProjectDirtyBlocker to prevent projects being marked as
dirty while creating a new project or while loading an existing
project -- avoids the titlebar temporarily showing the project
state as unsaved while it is being loaded.
2018-03-11 08:44:51 +11:00
Nyall Dawson
d6eeabf69b Make sure we don't have a dirty blank project after QGIS launch 2018-03-11 08:44:51 +11:00
Nyall Dawson
354a261e59 [needs-docs] Show "Untitled Project" in title bar for new unsaved
projects

Also show current profile name, if multiple profiles exist

(Maybe doesn't needs-docs)
2018-03-11 08:44:51 +11:00
Salvatore Larosa
23172a101e [processing] Fixes #18183: SAGA "output extent" should not be mandatory 2018-03-10 22:08:07 +01:00