2015 Commits

Author SHA1 Message Date
Denis Rouzaud
0e5c91234f add missing new line 2019-03-08 12:00:02 +01:00
Denis Rouzaud
d0fceef23a
Merge pull request #9425 from 3nids/scope_base_enum
Scope based enum
2019-03-08 11:38:01 +01:00
Nyall Dawson
cccf974211 [processing] Port enum widget wrapper to new API
Fixes:
- enum parameters set to "allow multiple" only allow a single
value selection when used in modeler
- optional enum parameters cannot be set to no value when
used outside of modeler

Fixes #20406
2019-03-08 15:46:59 +10:00
Denis Rouzaud
20883c9532 run sipify 2019-03-07 21:07:53 +01:00
Denis Rouzaud
717ea437c1 use scope based enum for QgsAdvancedDigitizingDockWidget::AditionalConstraints 2019-03-07 16:34:16 +01:00
Harrissou Sant-anna
53a717a41b Fix formatting in pyqgis documentation (#9396)
* Fix API documentation

* Fix sip doc
2019-03-06 20:09:26 +01:00
Nyall Dawson
63d648738d [processing][needs-docs] By default, hide algorithms with known issues from toolbox
And add a Processing setting to allow these to be shown. When shown, they
are highlighted in red with a tooltip explaining that the algorithm
has known issues
2019-03-06 06:33:06 +10:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
a7ca08784c Nullptr consistency in dox 2019-02-27 09:41:11 +10:00
Nyall Dawson
caff98d8bf Retval -> returns 2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Blottiere Paul
3fbda69669 Update sip binding 2019-02-26 12:56:14 +00:00
Nyall Dawson
519a30f10c Standardise dox for signals 2019-02-26 03:24:31 +10:00
Alessandro Pasotti
a615a3b3f5
Merge pull request #9260 from elpaso/form-background-color
Add bg color option to form containers
2019-02-25 15:13:36 +01:00
Nyall Dawson
7eab74f803 Fix use of trailing */ in dox, which messes with sipify Python documentation output 2019-02-25 19:02:12 +10:00
Bas Couwenberg
371176357b Fix spelling errors.
* cancelation -> cancellation
 * overal      -> overall
2019-02-24 22:39:40 +01:00
Alessandro Pasotti
8d3f73a62a [feature][needs-docs] Add bg color option to form containers
Because gray is boring.
2019-02-24 13:18:29 +01:00
Julien Cabieces
1c34329234 Allow expression widget to be empty so expression could be removed (#9032)
* fixes #20516 : Allow Constraint widget in attribute type form to be empty so expression could be removed

per widget modification

* correct tests

* Add the clear button on field expression widget when widget is allowed to be empty

* Change API since version to 3.6
2019-02-20 14:41:38 -05:00
Nyall Dawson
b06f00d01b Fix dox test 2019-02-20 05:39:04 +10:00
Nyall Dawson
24529b1963 [processing] Add API to set contexts for QgsProcessingAlgorithmConfigurationWidgets 2019-02-20 05:39:04 +10:00
Nyall Dawson
9a75976ca4 API tweaks 2019-02-12 07:18:02 +10:00
Matthias Kuhn
2fb37042a5
Fix TODO and docstrings 2019-02-07 14:36:43 +01:00
donvincenzo
e4e0948a3d Add actionVertexToolActiveLayer to iface 2019-02-07 11:17:56 +11:00
Matthias Kuhn
2745dfe4bf
Merge pull request #9110 from m-kuhn/sip-no-default-parameter-override
Do not remove parameters from virtual methods which should be used in…
2019-02-06 17:13:51 +01:00
Matthias Kuhn
89ea819938
Make sure Python wrappers of quasi-singletons are kept alive
If they are deleted, any other python wrappers which have been parented to these singletons are deleted too.

One of the most common issues with this is, that subclasses of registry items are deleted and lost.
2019-02-06 12:18:41 +01:00
Matthias Kuhn
1a87fce33c
Do not remove parameters from virtual methods which should be used in python
These methods did not actually override their parent methods but just coexisted and were never called.

Fixes compilation with SIP version: 4.19.14
2019-02-06 10:29:26 +01:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00
Nyall Dawson
4b0f6b756c Slight improvements to Python docs 2019-02-05 04:55:34 +11:00
Peter Petrik
3103b00f00
fix identify for mesh layers (#9047) 2019-02-01 15:18:26 +01:00
Denis Rouzaud
f66d1999af add SIP_DEPRECATED 2019-01-31 15:27:50 -05:00
Denis Rouzaud
3d57a93ffe fix typo in method name
rename method but keep old one in Python for API compatibility
2019-01-31 15:27:50 -05:00
Nyall Dawson
9a723d91e8 New Shapefile Layer dialog: avoid warning message on user cancel
Also add better error message reporting, and deprecate horrible API.
2019-01-30 05:08:59 +11:00
Mathieu Pellerin
df1d47b86a
[gui] Fix style manager's add button when the 'all' tab is selected 2019-01-25 19:38:28 +07:00
Pierre-Eric Pelloux-Prayer
25f2aba44d Include qgis_sip.h instead of qgis.h where possible (#8961)
This PR continues the work started in PR #8951.

This commit replaces occurences of #include "qgis.h" by #include "qgis_sip.h",
where possible = when files only depends on SIP_XXX features.
2019-01-24 11:33:22 -05:00
Nyall Dawson
996f48670d [afs][needs-docs] Allow users to set a specific referer for AFS connections, for
use with ArcGIS feature server requests

Some servers are locked down to only allow requests with a specific
referer URL - this allows us to open them in QGIS (but it requires
users to manually determine the correct referer string and populate
this setting for the connection -- we cannot do this for them!)
2019-01-24 18:05:45 +11:00
Pierre-Eric Pelloux-Prayer
08634c4e6f fix style 2019-01-23 14:59:19 +01:00
Nyall Dawson
eafedeeb8b Sipify 2019-01-21 14:48:19 +11:00
Nyall Dawson
dc7a4ce53c Make URLS in message log clickable 2019-01-21 12:57:54 +11:00
Nyall Dawson
3d283c1b05 [needs-docs] Show actual linked color in color buttons when color
has been linked to a project color

Instead of only showing linked color status in the accompanying
data defined button, we now also show it inside the color button
itself. So now the button color is a live reflection of the
project color it is linked to.

Additionally, when the color is linked, the button only allows
users the choice of "unlinking" the color from the linked
project color. The usual color button options allowing users
to directly change the color are not present. (As linked
colors must be edited in the project colors section from
the project properties dialog)
2019-01-17 16:14:32 +11:00
Nyall Dawson
878cec9977 Allow additional tags to be set when copying items to default style 2019-01-16 12:04:34 +11:00
Nyall Dawson
42a7804323 Add method to hide favorites and smart groups from style manager dialog 2019-01-16 12:04:34 +11:00
Nyall Dawson
ec8b299b9b Add a read only mode to QgsStyleManagerDialog
Allows the dialog to browse an existing style, but prevents users
from making any edits to the style.
2019-01-16 12:04:34 +11:00
Nyall Dawson
f8af098fc2 Correctly handle selection of mixed item types 2019-01-14 18:10:54 +10:00
Nyall Dawson
d5cedfe9f5 Dox++, deprecate method 2019-01-14 18:10:54 +10:00
Nyall Dawson
b72e01f0c7 Use QgsStyleModel in Style Manager dialog
Fixes MANY symbol filtering issues in the dialog, and brings many
improvements (e.g. hidpi fixes, nicer tooltips, etc)
2019-01-14 18:10:54 +10:00
Nyall Dawson
ef250c4563 Fix main panel ownership in QgsPanelWidgetStack bindings 2019-01-14 16:41:08 +10:00
Nyall Dawson
e569331abb Disable linked color buttons when a project color is set for a property 2019-01-11 22:34:34 +10:00
Nyall Dawson
eecfe50dc5 [FEATURE] Show Project Colors in color bound data defined buttons
This adds a new "Project Colors" section in data defined buttons
which are linked to a color value. The color menu contains all
colors defined as part of the current project's Project Color
Scheme (which is defined through project properties).

When a project color is selected from the button, the property
becomes linked to that color. It will automatically follow any
future changes to the color when made through project properties.

This allows users to define common colors for a project once,
and then "bind" symbol, label, layout, etc colors to these
preset colors. The link is live, so you change it once, and
the change is reflected EVERYWHERE. Sure beats updating a color
100 times when it's use has been scattered throughout a project's
symbols, labels, etc...

(Basically, this is just adding a shortcut to setting a data
defined expression "project_color(...)" for the property. The
project_color function has been around a LOOONG time, but it's
only really been usable by power users before this change)
2019-01-11 22:34:34 +10:00
Nyall Dawson
79d01a9b94 Move QgsColorButton::createMenuIcon to public API, make static 2019-01-11 22:34:34 +10:00
Nyall Dawson
ddd522b432 Rework validity check API to allow future background threaded use 2019-01-03 04:53:07 +10:00