2249 Commits

Author SHA1 Message Date
Alessandro Pasotti
1ac91c1f2e Add geom col capabilities and create spatial index 2020-07-16 09:40:18 +02:00
Alessandro Pasotti
d8a45f92a3 New table dialog menu provider 2020-07-14 15:25:20 +02:00
Alessandro Pasotti
d8a7531dc9 Connections API: add nativeTypes method 2020-07-14 15:25:20 +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
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
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
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
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
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
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
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
Alessandro Pasotti
f00d2099ba Expose DB fields to the browser 2020-07-08 17:19:19 +02:00
Alessandro Pasotti
1878fc7bfd
Merge pull request #37667 from elpaso/bugfix-gh37386-filewriter-python-leak
Fix QgsVectorFileWriter python issue (leak & functional)
2020-07-08 10:58:20 +02:00
Nyall Dawson
ff14c6fdad [FEATURE][layouts] Use QgsTextRenderer for drawing map grid text in layouts
Allows for grid annotations which use buffers, shadows, background shapes, etc!
2020-07-08 17:00:39 +10:00
Nyall Dawson
573e46b671 Add a character based text height calculation method to QgsTextRenderer 2020-07-08 17:00:39 +10:00
Alessandro Pasotti
26643a6c66 Fix QgsVectorFileWriter python issue (leak & functional)
Fixes #37386
2020-07-08 07:58:23 +02:00
Nyall Dawson
a49cb7c9f3 [api] Add vertical alignment control to QgsTextRenderer 2020-07-08 08:49:57 +10:00
Nyall Dawson
6eee1fa69f Don't apply font scaling workaround by default, but instead make it
opt-in through the render context flags

Avoids potential performance regression when rendering labels
2020-07-08 08:49:57 +10:00
Nyall Dawson
0dd1490fdc [api] Apply a font scale workaround factor to QgsTextRenderer
This is a hack which has been in place in layouts/composer for a long
time in order to provide more consistent and reliable text rendering
at small font sizes or when "zoomed out". Without this hack the font
rendering and metric based calculations for these small font sizes
can be unstable, leading to font sizes "jumping" around as a layout
is zoomed into or out of.
2020-07-08 08:49:57 +10:00
Alessandro Pasotti
961e6e8d4d
Merge pull request #37628 from elpaso/connections-api-fields
DB Connections API: add fields method -> column info
2020-07-07 16:25:28 +02:00
Denis Rouzaud
d14b349447
Show python code sample in PyQGIS doc, take 2 (#37642) 2020-07-07 11:37:18 +02:00
Alessandro Pasotti
8ded0f146e Provider key getter and layer options 2020-07-07 08:30:54 +02:00