2211 Commits

Author SHA1 Message Date
Nyall Dawson
4b014e6e84 Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker
These conversions just crash sip (woo. sip. yay. good times.). I can't find
any alternative approach which avoids this crash, so just remove the cast
to avoid the crash.

Fixes #32700
2019-11-09 13:43:37 +10:00
Hugo Mercier
845894b313
[FEATURE] Selective masking (#30747)
* [FEATURE] Selective masking

Advanced rendering feature that allows the definition of 'masks' areas around labels or with a new typ of symbol layer. These masks will "un-draw" symbol layers of other layers underneath.
It modifies the rendering process by adding an optional second pass.
2019-11-07 08:17:25 +01:00
Alessandro Pasotti
696c4075da
Merge pull request #32487 from elpaso/value-relation-restore
[feature] Value relation restore missing layers from DBs
2019-11-04 12:03:40 +01:00
Matthias Kuhn
4294dda083 Resipify 2019-11-03 21:05:34 +01:00
Alessandro Pasotti
64949dc227 Check vector layer widget broken dependencies 2019-10-30 14:41:34 +01:00
Matthias Kuhn
f96e1922ca [FEATURE] Parallelize snap index build 2019-10-30 09:32:28 +01:00
Nyall Dawson
351970e1c2 Dox, spelling 2019-10-28 14:34:30 +10:00
Nyall Dawson
b5e92d41f5 [FEATURE] Random marker fill symbol layer type
This commit adds a new fill symbol layer type "Random marker fill". It
allows polygon features to be rendered using a marker symbol placed
at random locations within the polygon boundary.

Options include:
- number of marker symbols to render for the polygon
- whether markers rendered near the edges of polygons should be clipped
to the polygon boundary or not
- an optional random number seed, to give consistent placement
of markers whenever maps are refreshed (also allows random placement
to play nice with QGIS server and tile-based rendering)

Sponsored by the SLYR project
2019-10-28 14:34:30 +10:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Even Rouault
6d47b5d847 [OAPIF] Rename WFS_VERSION_API_FEATURES to WFS_VERSION_API_FEATURES_1_0 2019-10-26 06:47:59 +10:00
Even Rouault
681229a48a [OAPIF provider] Integrate provider within WFS provider GUI
Funded by Planet
2019-10-26 06:47:59 +10:00
Julien Cabieces
e4da0ac8c9 Revert "Merge pull request #31374 from troopa81/parallelize_snap_caching"
This reverts commit 87b1aa9a5d6efb279693aea68dc2dcb5b51b3e86
2019-10-18 14:50:33 +10:00
Denis Rouzaud
2406837650
replace deprecated in by deprecated since (#32260) 2019-10-15 15:56:54 +02:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00
signedav
172956adb7
Merge pull request #32158 from signedav/null-strings-datetime
Null representation in QgsDateTimeEdit on getting focus
2019-10-11 21:20:32 +02:00
Even Rouault
4762e6ae06
OGR sublayers: add a 'Description' column in the GUI
Some OAPIF/WFS3 datasets uses UUID as the layer name, so this is highly
impractical for the user. However they publish a user friendly name in
the TITLE metadata, so use that.
2019-10-07 19:46:36 +02:00
David Signer
1df5213da6 if the lineEdit contains the Null Representation it should replace the text with the current date 2019-10-07 17:20:47 +02:00
Denis Rouzaud
97435d38ee
Merge pull request #32095 from 3nids/from_init_python_url_v2
allow to use remote content for init code file path in attribute form
2019-10-03 17:48:12 +02:00
lbartoletti
aa99f89caf deprecate methods in qgsvectorlayereditutils. Better deprecated dox. 2019-10-03 13:33:46 +10:00
lbartoletti
b75518fa15 update dox 2019-10-03 13:33:46 +10:00
lbartoletti
31e416c4a9 rename QgsPointSequence QgsMapToolCapture::points() const; to QgsPointSequence QgsMapToolCapture::pointsZM() const; 2019-10-03 13:33:46 +10:00
lbartoletti
2e529e1bd9 deprecate addTopologicalPoints methods with QgsPointXY
deprecate other methods
2019-10-03 13:33:46 +10:00
Etienne Trimaille
3159d6f199 update docstrings in qgsdatetimeedit.h 2019-10-03 13:17:04 +10:00
Etienne Trimaille
d61fab7783 implement date() and time() in QgsDateTimeEdit to handle NULL values 2019-10-03 13:17:04 +10:00
Denis Rouzaud
86550e9837 create a method in QgsGui to determine if running Python macros is allowed 2019-10-02 15:53:15 +02:00
Nyall Dawson
86c83537f9 [layouts] Update map settings variables in UI when map extent/rotation changes
Fixes #24136
2019-09-28 08:40:41 +10:00
Nyall Dawson
2b31e03ad0 [layouts] Ensure variable panels are updated when layout or atlas
properties change

Fixes #26402
2019-09-28 08:40:41 +10:00
Denis Rouzaud
abb08c2988
[locator] allow to trigger locator search from the API (#32017) 2019-09-27 09:58:47 +02:00
Nyall Dawson
b9310ca47b Spelling 2019-09-26 12:41:04 +10:00
Nyall Dawson
a8d145a80a Use a proper panel widget for conditional formatting configuration widget
Fixes a number of UI issues, including poor hi-dpi compatibility.
2019-09-26 12:41:04 +10:00
Nyall Dawson
b9b690caac Remember splitter width for conditional formatting panel in attribute table 2019-09-26 12:41:04 +10:00
Nyall Dawson
425afaa270 A little dox improvement to test sip prepare-commit changes 2019-09-24 03:43:42 +10:00
Nyall Dawson
39cfd0f935 [needs-docs] Show color button style "Pick color" and "Chooe Color" actions
in symbol button menu

Synchronizes the behavior of the color and symbol buttons

Fixes #25696
2019-09-24 03:41:51 +10:00
Nyall Dawson
2ff91d24a9 Move methods to sample screen pixels to QgsGui 2019-09-24 03:41:51 +10:00
BogDan Vatra
f96c4a2308 Block the events while showing a dialog
When showing a file dialog, Qt can choose to use the "system" file
dialog, which will make QgsExternalResourceWidget to loose the focus.
This patch blocks all the events that are sent to
QgsExternalResourceWidget while a dialog is shown, this way it will keep
the focus until the dialog is closed.

Sponsored by the QGIS project (qgis.org)

Fixes: #26948
2019-09-22 12:28:52 +03:00
Alessandro Pasotti
240bfb2a3f
Merge pull request #31871 from elpaso/bugfix-gh31635-spinbox-double-changed-event
Fix double event fired by QSpinBox in slow graduated
2019-09-20 09:04:34 +02:00
Denis Rouzaud
cc64787ee6
Merge pull request #31859 from 3nids/layer_tree_insertion_point_v2
[layer tree] dedicated method in QgisApp to determine insertion point
2019-09-19 11:17:58 +02:00
Alessandro Pasotti
60fb0cb47f Apply timer spinbox workaround to QgsDoubleSpinBox too
To prevent double changed event fired in case the slot
takes too long to execute.
2019-09-19 09:10:26 +02:00
Denis Rouzaud
13119193ba fix API doc and init values 2019-09-19 09:05:40 +02:00
Alessandro Pasotti
8192ed8cce Fix double event fired by QSpinBox in slow graduated
... renderer widget

Fixes #31635

For the record of the underlying issue:

https://lists.qt-project.org/pipermail/interest/2013-July/007936.html
https://forum.qt.io/topic/82181/qt-doublespin-box-value-changed-slot-has-called-twice
https://forum.qt.io/topic/96094/qspinbox-value-changed-slot-has-called-twice-on-mouse-click
https://www.qtcentre.org/threads/53709-slot-valueChanged(double)-of-doubleSpinBox-called-twice-if-breakpoint-is-set
2019-09-18 15:06:31 +02:00
Denis Rouzaud
838dbef3c0 [layer tree] dedicated method in QgisApp to determine insertion point
and create bindings to get the current insertion point in QgisInterface
2019-09-17 20:55:40 +02:00
Etienne Trimaille
3b95172362
update docstring about QgsDateTimeEdit about NULL values 2019-09-17 17:25:15 +02:00
Peter Petrik
cdd3a55e9e fix #30766, sip crash for QgsHighlight 2019-09-14 06:38:25 +10:00
Alessandro Pasotti
81985a9ca4 Resize not-focused tabs for datasource and options dlgs
Moved logic into base class. I did not find any other
suclass affected.
2019-09-13 12:38:48 +02:00
Nyall Dawson
423b779411 [needs-docs] Add iface.pluginHelpMenu()
Returns a reference to the main window "Plugin Help" sub-menu.

Plugins are encouraged to insert help and about actions in this submenu instead of creating
a submenu under the pluginMenu() which solely contains Plugin Help or About actions.

For example, a plugin which only implements a processing provider should not
create additional ui menus just to link to the plugin help pages. Rather, they
should use this new submenu (available under the Help menu) to insert
their help links.
2019-09-12 11:27:42 +10:00
Julien Cabieces
57aec1f4af Fix documentation 2019-09-06 11:55:06 +02:00
Julien Cabieces
c699ab5eb9 Don't break QgsMapCanvasSnappingUtils API 2019-09-06 10:41:28 +02:00
Julien Cabieces
4081bea801 Use TaskManager to build index 2019-09-06 09:42:22 +02:00
Julien Cabieces
ead7481e3f [FEATURE] Parallelize snap index build 2019-09-06 09:36:16 +02:00
Julien Cabieces
3abbc0f178 Digitize the geometry from the relation reference widget add button (#30905)
* [FEATURE] [needs-docs] Add the possibility to digitize the geometry
when creating a feature from the plus button on the relation reference widget
2019-09-06 08:28:59 +02:00