1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-15 00:04:37 -04:00

47 Commits

Author SHA1 Message Date
Matthias Kuhn
a56deacf54
Add QgsVectorLayer::canCommitChanges
to control if changes can be saved or not. This signal is emitted before a layer is being saved and if a connected slot marks the canCommit variable as False, the layer will not be saved
2018-09-26 16:17:24 +02:00
Matthias Kuhn
68dc6984da Fix build with sip pre 4.19 2018-09-21 01:22:19 +02:00
Matthias Kuhn
fde813ca82
Merge pull request from m-kuhn/final
It's the `final` countdown
2018-09-19 16:34:54 +02:00
Matthias Kuhn
1c359f8acd
Add a new QML category "Geometry Options"
And rename QgsGeometryFixes to QgsGeometryOptions
2018-09-19 13:51:00 +02:00
Matthias Kuhn
8d9c96c911
Add final for sip >= 4.19 2018-09-19 07:47:02 +02:00
Matthias Kuhn
ddaa8ea4af
inline and virtual are no good friends 2018-09-18 18:53:48 +02:00
Matthias Kuhn
9f407d0b41
Make methods in QgsVectorLayer finally final 2018-09-18 18:04:50 +02:00
Denis Rouzaud
05f35f2e19 [sipify] fix annotations in multiline virtual methods 2018-09-14 16:35:30 +10:00
Denis Rouzaud
4cdf0a2851 fixes: HIG guidelines, sipify, initialize, doxygen warnings
fix doxygen warning + docs

sipify

fix doxygen warning

initialize
2018-09-14 16:35:30 +10:00
Denis Rouzaud
97376b8217 single dialog to load style (QML, SLD, DB) 2018-09-14 16:35:30 +10:00
Denis Rouzaud
0cfa77db7f fix documentation 2018-09-14 16:35:30 +10:00
Denis Rouzaud
cb9774022f create dialog for saving different styles 2018-09-14 16:35:30 +10:00
Denis Rouzaud
15e0d873d9 select categories in copy style in legend menu entry
not working yet, just set the menu entries
QgsMapLayerStyle::StyleCategory has moved to QgsMapLayer to avoid making QgsMapLayerStyle a QObject and they are mostly used in QgsMapLayer
2018-09-14 16:35:30 +10:00
Denis Rouzaud
51e9be0575 add API to select section of layer style when reading/writing 2018-09-14 16:35:30 +10:00
Denis Rouzaud
89830f614e
create QgsMapLayer::LayerFlags for Searchable, Identifiable and Removable ()
* create QgsMapLayer::LayerFlags for Searchable, Identifiable and Removable

this brings back the information previously saved in the project node back to the layer node
this will allow to embed this information in layer styles

* skip unexisting flag node to avoid setting wrong value for flag

* mark QgsProject::(set)requiredLayers as deprecated

* better API docs

* use new API in current code

* more docs and more old API fixes

* fix bad conversion

* more old API fix

* add missing SIP_OUT

* s/testFlags/testFlag

* fix var name

* adapt project test to test flags

* remove debug calls

* fixeS
2018-09-08 07:54:21 -04:00
Juergen E. Fischer
a823046b5f followup spelling fixes 2018-09-07 00:33:13 +02:00
Alessandro Pasotti
aae41c068f Fix documentation for editFormConfig
It returns a copy: you need to change
it and use setEditFormConfig to make
modifications.
2018-09-04 07:57:57 +02:00
Denis Rouzaud
6b66b2048a switch to legend tree for Identify Layers tab in project properties
also add a 'searchable' option for vector layers (they won't be searched in the locator)
2018-08-31 14:14:14 +03:00
Matthias Kuhn
063ccf4283 Move geometry fixes to separate class 2018-08-23 18:38:09 +02:00
Matthias Kuhn
f69e58f261 Revert to specific setters and getters 2018-08-23 14:24:42 +02:00
Matthias Kuhn
37a49e2bfe Fix typo 2018-08-22 07:28:15 +02:00
Matthias Kuhn
5435b193a2 Setter for GeometryOptions and not individual props 2018-08-22 07:01:51 +02:00
Matthias Kuhn
1d6d4cb11c Add missing docstrings 2018-08-21 15:14:27 +02:00
Matthias Kuhn
256876eb45 Add autofixers for geomtries
* Snap to grid
 * Remove duplicate nodes
2018-08-21 15:14:27 +02:00
Nyall Dawson
6ecc69ff90 Add dataSourceChanged signal to QgsVectorLayer, add tests 2018-08-06 13:51:49 +10:00
Matthias Kuhn
d7b85c69f8
Merge pull request from m-kuhn/featureSourceEmpty
QgsFeatureSource::empty() method
2018-06-26 13:01:08 +02:00
Etienne Trimaille
6eeaca5570 return the default style first in the list 2018-06-22 09:23:47 +10:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Matthias Kuhn
b5b16dfaa5
Adjust docstrings 2018-06-04 08:59:33 +02:00
Matthias Kuhn
5fb9d14ce7
QgsFeatureSource::hasFeatures() -> Yes, No, Maybe
This method allows to determine if a feature source has content or not
(or maybe).

This method works for "generator" sources as well as for "collection"
sources.

Collection sources like QgsVectorDataProvider which allow to easily and
in a cheap way determine if features are available can return
FeaturesAvailable or NoFeaturesAvailable, generators will return
FeaturesMaybeAvailable.

QgsVectorDataProvider also implements an empty() method.
2018-06-04 08:59:30 +02:00
Matthias Kuhn
cb4de25001
Improve API docs 2018-06-04 08:59:29 +02:00
Matthias Kuhn
b568d6be55
Add optimized version of QgsPostgresProvider::empty() 2018-06-04 08:59:28 +02:00
nirvn
5ab3fe4ba0 Add subsetStringChanged signal 2018-05-29 17:10:17 +07:00
Matthias Kuhn
b202d60672 const correctness QgsVectorLayer::deleteAttributes 2018-05-29 19:43:04 +10:00
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08:00
Nyall Dawson
b6f2f7bd40 Don't use QgsVectorLayer::selectedFeatures() to check for a selection
in a layer

This is incredibly inefficient, because selectedFeatures() actually
fetches a full copy of all selected features (including all
attributes and geometry). Instead use selectedFeatureIds(), which
is just a list of numbers.

Add warning note to docs cautioning against this practice.

Fixes massive ui lockup when right clicking on a layer with
selected features in the layer tree
2018-05-28 10:59:48 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
4b1b752633 Fix bad regex 2018-05-27 18:54:09 +10:00
Nyall Dawson
71107d1d2f Sipify 2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Nyall Dawson
c864d22d1f Add "get ..." to doxygen compliance blacklist
Should be "gets ..." for consistent tense, or better yet
"returns ..." for consistency.
2018-05-27 14:05:06 +10:00
Nyall Dawson
b6b08e96a0 Add 'accessor for' to doxygen compliance blacklist
Use "Returns the..." instead
2018-05-27 14:05:06 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Nyall Dawson
44630b47ed Add QgsDataProvider::ProviderOptions struct to constructors
for data providers

Allows a way to pass generic settings to providers, e.g.
passing a datum transform context for use in provider's
constructors.
2018-05-25 11:40:57 +10:00
Nyall Dawson
2cb8a33884 Fix broken see also links 2018-05-25 11:16:18 +10:00
Alessandro Pasotti
f41daee1cb Fix docstring for setEditFormConfig 2018-05-23 09:27:44 +02:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00