17743 Commits

Author SHA1 Message Date
Nyall Dawson
573ace14bf [3d][feature] Add option to show light source origins
If enabled, shows a sphere at light source origins, allowing easier repositioning
and placement of light sources relative to the scene contents

Fixes #37726
2020-07-16 07:52:12 +10:00
Nyall Dawson
bf7d746ae4 [api] Add a Qgs3D singleton object, designed to collect other singleton-ish
objects in a central place

Copying the pattern setup by the QgsGui singleton container
2020-07-15 16:10:25 +10:00
Alessandro Pasotti
15a4c3928c
Merge pull request #37136 from SebastienPeillet/several_fix_locale_raster_properties
Fix decimal point issues on raster properties forms,  Fixes #33859
2020-07-14 15:45:05 +02:00
speillet
887d544309 fix suggested by reviewers 2020-07-14 12:46:54 +02:00
Alessandro Pasotti
56613de7d1
Merge pull request #37760 from elpaso/browser-expose-fields
Browser expose fields
2020-07-14 07:44:46 +02:00
Nyall Dawson
1f9b9c8c9e [feature][layouts] Allow cells in manual text tables to have expression
based contents

Allows individual cells from a manual text table to take their contents
from a preset expression. Expressions have access to the full layout
item expression context, allowing cells to calculate and display
metadata style values or aggregate based calculations.

Sponsored by City of Canning
2020-07-14 11:28:23 +10:00
Nyall Dawson
1878f2eb3b [layouts] Add API to retrieve an expression context scope for a particular
table cell, add backend support for QgsProperty based values in a manual
text table
2020-07-14 11:28:23 +10:00
Nyall Dawson
761f594cca Improve api and UX for handling cell text formatting in manual tables,
by removing the checkbox for overridding text format and using the
"not set" state from the font button instead
2020-07-14 11:23:33 +10:00
Nyall Dawson
cdc91267fc Add option to QgsFontButton to show a "set to null" action in menu
Allows for inclusion of a "use default" style option for QgsFontButton
2020-07-14 11:23:33 +10:00
Nyall Dawson
ac5a7226ee Add equality operator for QgsTextFormat 2020-07-14 11:23:33 +10:00
Nyall Dawson
dfb6223390 Add equality operators to QgsPropertyCollection 2020-07-14 11:23:33 +10:00
Nyall Dawson
9bad5578cf Equality operator for QgsTextShadowSettings 2020-07-14 11:23:33 +10:00
Nyall Dawson
52d7d1886a Add an equality operator for QgsTextMaskSettings 2020-07-14 11:23:33 +10:00
Nyall Dawson
305fa330bd Add equality operator for QgsTextBufferSettings 2020-07-14 11:23:33 +10:00
Nyall Dawson
7547dbd464 Equality operator for QgsTextBackgroundSettings 2020-07-14 11:23:33 +10:00
Nyall Dawson
c575b827bf Add an invalid state to QgsTextFormat
Allows determining whether the QgsTextFormat is a default constructed
object, which should represent a not set/default settings value.
2020-07-14 11:23:33 +10:00
Denis Rouzaud
1c9211a2d9 remove scoped enum 2020-07-13 15:52:12 +02:00
Denis Rouzaud
56bfeac158 fix build with Qt < 5.12 2020-07-13 15:16:18 +02:00
Denis Rouzaud
4502f1fade change flag declaration 2020-07-13 08:48:31 +02:00
Denis Rouzaud
256044cf2c rephrase shown to visible 2020-07-13 08:48:31 +02:00
Denis Rouzaud
ccb3b8ec80 make more buttons configurable in relation editor
fixes #37718
2020-07-13 08:48:31 +02:00
Mathieu Pellerin
ebd4cd8c13 [python console] Match key up / down behavior to that of bash and
allow for a 'soft' history to be editable

This commit reverts the recent behavior change of a key up / down
press event which meant to prevent accidental loss of content of
a command being edited when pressing the up key on the second line
of a reflowed text.

This new approach has the python console input line behave like
bash, whereas a key up / down will always move to the next /
previous history item wherever the cursor is located. However until
the user hits enter, any edits to historical items or the new
line will be remembered.

This insures that an accidental move back in history doesn't
lead to unwanted code loss.
2020-07-13 08:32:09 +07:00
Tom Kralidis
0579b20b53 [MetaSearch] clear search results when inspecting CSW in server tab (#37448) 2020-07-13 08:36:27 +10:00
Nyall Dawson
ff8d070fea [feature][layouts] Expose control over cell text alignment for
individual table cells in manual text tables

Allows users to set the text horizontal and vertical alignments
on a cell by cell/column/row basis

Sponsored by City of Canning
2020-07-13 06:00:05 +10:00
Nyall Dawson
18a36e4622 [feature][layouts] Allow setting per cell text format in manual text tables
Individual cells (or selections of multiple cells) can have an preset
text format set, which overrides the default text format for those cells.

Sponsored by City of Canning
2020-07-13 06:00:05 +10:00
Nyall Dawson
b584f93afb Expose text format override options to table editor widget 2020-07-13 06:00:05 +10:00
Nyall Dawson
c962eaaa04 Add text format to QgsTableCell 2020-07-13 06:00:05 +10:00
Alessandro Pasotti
93d9700708 Capture copies in lambda 2020-07-12 09:34:45 +02:00
Alessandro Pasotti
c3c87ce4dc Rename drop/add column to delete/add field
for consistency with othet Qgis classes
2020-07-11 14:19:30 +02:00
Matthias Kuhn
2e2acf9170
Merge pull request #37647 from lhirlimann/svgcleaner
svg file reduced with svgcleaner
2020-07-11 13:03:42 +02:00
Denis Rouzaud
a61a83d648
add methods to retrieve from/to value to keys for flags (#37752)
* add methods to retrieve from/to value to keys for flags

* sipify
2020-07-11 12:33:57 +02:00
Nyall Dawson
c7ef8c8305 Test updates 2020-07-11 12:54:07 +10:00
Nyall Dawson
28c8eefa6e Avoid texture jump when panning maps
We don't need the whole expense of the "Avoid artifacts when rendering as map tiles"
option, because that disables to default clipping of geometry parts which fall
outside the visible canvas extent and accordingly results in a lot of wasted rendering
calculations. Instead, we can just always use the upper left corner of the original
feature geometry before the optimisations like clipping to visible regions are applied,
and use this as the texture origin.

This means we can safely make this handling always applied and not an opt-in setting
2020-07-11 12:54:07 +10:00
Ivan Ivanov
b7d36375c2
Reload the data source when a dependency layer is changed (#37475)
Refreshing the data provider right away causes problems on a layer
 dependent on itself. In that case two `dataChanged` signals are
 expected to be emitted when deleting or creating a feature, but as the
 layer is reloaded, the second `dataChanged` is not emitted.
2020-07-10 18:06:13 +02:00
Nyall Dawson
b6a9cced10 Dox 2020-07-10 15:46:42 +10:00
Nyall Dawson
eff171ad6d Cleanup diffuse texture API
Seperate the calls for whether a user has enabled diffuse texture
from API for determining whether diffuse texture should be used during
rendering. And don't try to use diffuse textures when the texture
path hasn't yet been set, which causes a flood of Qt warnings...
2020-07-10 15:46:42 +10:00
Nyall Dawson
402ce03763 Minor code cleanup 2020-07-10 15:46:42 +10:00
Nyall Dawson
11297b84b3 [feature][layouts] Port attribute table to QgsTextRenderer
Allows for full range of text formatting in layout attribute tables,
including buffers & shadows, word spacing, etc
2020-07-10 15:37:12 +10:00
Nedjima Belgacem
cc96e9e1c1
[Feature] texturing support for vector layer (#36981)
* [Feature] texturing support for vector layer

* Fixed tesselation test not passing issue

* Fixed diffuse_texture_path typo

* Refactoring according to code review

* [Bugfix] the texture coordinates are not setup properly for certain walls

* Added seperation between roofs and walls

* [Feature] texture coordinates rotation

* took back the seperation of texture rotation between walls and roofs because the user will be specifying them with different symbols anyway

* Fixed docs test not passing issue

* Fixed compilation problem

* Fixed compilation problem

* Executed sipify_all trying to fix test not passing issue

* [ui] Harmonize play button across the board

* [ui] Better network logger icon

* [ui] Harmonize loop widget of 3D map view

* [ui] Add a record icon and use it in the network logger panel

* [ui] Move icon-less network logger toolbar actions under settings menu

* [ui] Reflect playback stay in the 3D map view's play button

* Fix azure

* Use prefix increment operator to fix cppcheck warnings related to postfixOperator

* [afs] Read field aliases from layer definition

* Fix ui build warning

* [FEATURE][processing] Add modeler algorithm to set a project expression variable

Allows a model to set Project-level expression variables during execution. Especially
useful with the new Export Print Layout algorithms to allow models which dynamically set variables
used in a layout prior to export.

* Add test

* Refactoring according to code review

Co-authored-by: nirvn <nirvn.asia@gmail.com>
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2020-07-09 21:12:49 +02:00
Nyall Dawson
1219f55378 [processing] Fix and improve how in place algorithm parameter widget
handles the input layer by creating a new QgsProcessingHiddenWidgetWrapper
wrapper subclass

Fixes #37424
2020-07-10 04:44:30 +10:00
Denis Rouzaud
66b0f1d60c correctly remove title + slash 2020-07-09 16:22:06 +02:00
Denis Rouzaud
3fdbfe3602 sipify them all…
… oh there is only 2
2020-07-09 16:13:19 +02:00
Alexander Bruy
12ddfed76b
Merge pull request #37671 from alexbruy/rescale-raster
Rescale raster algorithm for Processing
2020-07-09 09:59:20 +03:00
Nyall Dawson
cfd9afed71 [feature][labeling] Expose Justify text alignment option for use
in multiline point/polygon labels

Allows multiline labels to be "justify" aligned
2020-07-09 13:23:20 +10:00
Nyall Dawson
52f774158e Add method to convert a QgsTextBlock to plain text 2020-07-09 13:23:20 +10:00
Nyall Dawson
49a3c1047e code cleanup 2020-07-09 13:23:20 +10:00
Nyall Dawson
77dfaae688 Add QgsTextRenderer methods to convert Qt alignment flags 2020-07-09 13:23:20 +10:00
Alessandro Pasotti
0981644c22 SIP: add factory for layer() 2020-07-08 17:19:19 +02:00
Alessandro Pasotti
f2858b24f2 Connections API: drop/add column
Also: expose it in the browser.

Implemented for:

- PG
- GPKG
- Spatialite
- MSSQL
2020-07-08 17:19:19 +02:00
Alessandro Pasotti
9125690340 Expose columns to browser for PG, SL, GPKG and MSSQL
First part of QEP https://github.com/qgis/QGIS-Enhancement-Proposals/issues/171
2020-07-08 17:19:19 +02:00