3494 Commits

Author SHA1 Message Date
Nyall Dawson
216925abd1 Add utility function QgsMapLayerUtils::layerSourceMatchesPath
Tests whether a layer has a source which matches a specified
file path
2021-07-28 19:39:12 +10:00
Sandro Mani
6209193d29 Add QgsProject::attachmentIdentifier and QgsProject::resolveAttachementIdentifier 2021-07-27 12:19:25 +02:00
Denis Rouzaud
6967406aca
move QgsNetworkContentFetcherRegistry::FetchingMode to Qgis (#44397) 2021-07-27 08:19:41 +00:00
nirvn
6b993f6b98 [FEATURE][processing] Brand new duration parameter 2021-07-27 13:46:09 +07:00
Nyall Dawson
cb0095ff1e [api] Add a new capability for QgsDataItems to indicate that the
item path directly corresponds to an on-disk file path
2021-07-27 11:56:19 +10:00
Nyall Dawson
8a3d4e736c [api] Allow a feature callback to be specified when building QgsSpatialIndexKDBush 2021-07-27 08:14:39 +10:00
Nyall Dawson
6f942a70ac Add missing Q_DECLARE_OPERATORS_FOR_FLAGS for QgsProviderUtils::SublayerCompletenessFlags 2021-07-26 08:09:51 +10:00
Denis Rouzaud
eaa4b54e20
allow to save/read enum/flags as map layer properties (#44329) 2021-07-23 08:41:45 +00:00
Juergen E. Fischer
b0319105bc Reinstate explicit template instantiations but only for MSVC (refs #44301)
This reverts commit a499a303548654dd8028eaf330fab5388db9e3ea which
reverted f616be29d361cd24f0cd1f3433bfb264304a8760
2021-07-23 09:14:56 +02:00
Juergen E. Fischer
6964eb21f6 spelling updates 2021-07-23 08:49:26 +02:00
Nyall Dawson
e28a0b7258 Add flag to QgsProviderSublayerDetails to indicate that the uri
may be a container for other sublayers but that indepth scanning
of the container was skipped
2021-07-23 14:57:56 +10:00
Nyall Dawson
6c2d7bd7c9 Add driver name to QgsProviderSublayerDetails 2021-07-23 14:57:56 +10:00
Nyall Dawson
94417729bc Use proper icon for unknown/collection geometry types, instead
of always using polygon icon
2021-07-22 21:00:30 +10:00
Nyall Dawson
5246257e8a Cleaner API for QgsProviderUtils::sublayerDetailsAreIncomplete,
add flag to ignore unknown geometry types
2021-07-22 14:54:13 +10:00
Alessandro Pasotti
276d1980f8 Address PR comments and add ENUM for widget mode 2021-07-22 10:18:13 +10:00
Alessandro Pasotti
387c403c2f First nail in the coffin of DB Manager
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Alessandro Pasotti
f5946a184b Unfinished attempt to use query result widget for SQL layer updates 2021-07-22 10:18:13 +10:00
Sandro Mani
a499a30354 Remove explicit template instantiations 2021-07-22 10:03:07 +10:00
Even Rouault
da41d49c53 Add QgsProcessingAlgorithm::writeFeatureError() to help throw processing exception when addFeature() fails 2021-07-22 06:51:28 +10:00
Andrea Giudiceandrea
deb516d584 Fix typo in QgsMapSettings::visibleExtent() doc 2021-07-21 14:14:46 +10:00
Harrissou Sant-anna
5bbae769d7 Fix QgsPoint code samples 2021-07-21 10:17:37 +10:00
Nyall Dawson
1436a81b31 Truncate filter from middle of string 2021-07-19 17:01:07 +10:00
Vincent Cloarec
8cd8bec5f2
[mesh] mesh frame editing part 3 - Advanced editing (#44169)
[mesh] [feature] Delaunay triangulation and face refinement for advanced mesh editing tools
2021-07-19 08:21:31 +02:00
Nyall Dawson
4bb7f82f2e [sipify] Add check that doxygen //!< command is only used for enum
documentation

sipify can't handle it in other contexts
2021-07-19 16:05:53 +10:00
Nyall Dawson
2724315a99 Move enums from QgsVectorLayer to Qgis, promote to enum classes,
and fix redundant QgsVectorLayer.VertexMarkerType enum
2021-07-19 14:02:39 +10:00
nirvn
d10695cf77 QMap::unite is gone in Qt6, use QMultiMap 2021-07-17 16:59:20 +07:00
nirvn
2006c975f4 Migrate remaining uses of QRegExp in src/core 2021-07-16 11:01:42 +10:00
Nyall Dawson
bb354708da Only try to query sublayers for providers which support them
Fixes loading other layer types from browser
2021-07-15 19:23:34 +10:00
Nyall Dawson
1f31a38dd3 Add API to QgsProjectStorage to determine matching project storage
implementation from a file path
2021-07-15 16:51:06 +10:00
Mathieu Pellerin
3a07af0ef1
Merge pull request #44152 from nirvn/application_regexp
Migrate away from QRegExp in the core application class
2021-07-14 23:18:00 +07:00
Mathieu Pellerin
94aa4a4f76
Merge pull request #44137 from nirvn/core_regexp_more
[qt6] A few more QRegExp aurevoirs in src/core
2021-07-14 20:37:02 +07:00
nirvn
f55fe4e1fb Add note 2021-07-14 13:19:50 +07:00
Matthias Kuhn
071e4b585d
Merge pull request #44132 from m-kuhn/respect_screen_dpi
Allow using physical DPI for map canvas
2021-07-14 08:02:42 +02:00
Vincent Cloarec
c09443a056
[mesh] mesh frame editing part 3 - Edit mesh map tool (#44037)
[mesh] [feature] add mesh map tool to CRUD/digitize actions for mesh frame (vertices, faces)
2021-07-14 08:00:55 +02:00
nirvn
a580968983 Remove QgsApplication::shortNameRegExp altogether, document API break 2021-07-14 10:36:47 +07:00
nirvn
358a4af06a Better and faster strategy: replicate QRegExp::escape code 2021-07-14 10:28:41 +07:00
nirvn
03d99a4202 Migrate away from QRegExp in the core application class 2021-07-14 08:42:36 +07:00
Mathieu Pellerin
557752ff73
Merge pull request #44138 from nirvn/core_regexp_more_more
[qt6] Move string utils and {vector,raster} layer class away from QRegExp
2021-07-13 20:54:16 +07:00
nirvn
0847f55bad [qt6] Mirate string utils class away from QRegExp 2021-07-13 14:13:37 +07:00
Vincent Cloarec
494735a482
create new mesh layer (#43873)
[mesh] [feature] adds a option to create blank/scratch mesh frame (vertices/faces)
2021-07-13 07:37:46 +02:00
Nyall Dawson
59f7b4cc07 Remove duplicate code 2021-07-13 06:39:11 +10:00
Nyall Dawson
220bcb0114 Rework QgsMapLayerFactory.createLayer API so that we can specify additional options 2021-07-13 06:39:11 +10:00
Nyall Dawson
d44412ddb8 Can't monkey patch from core into gui classes 2021-07-13 06:39:11 +10:00
Nyall Dawson
d0beaae3a4 Move QgsSublayersDialog::PromptMode enum to Qgis and rename 2021-07-13 06:39:11 +10:00
Nyall Dawson
9796aa3b88 Create new QgsProviderSublayersDialog class
Based on QgsProviderSublayerDetails, this new dialog nicely handles
mixed layer type files (e.g. mixed vector/raster/mesh layer formats).

It also:

- Resolves geometry types in a background thread, to avoid lengthy
application hangs whenever a full table scan is required to determine
available geometry types
- Shows a handy search filter box for filtering sublayers to matching
strings
- Shows icons representing sublayer types
- Has an interactive label showing the file path which can be clicked
to open a file explorer focused on the file
2021-07-13 06:39:11 +10:00
Nyall Dawson
3ff67896a5 Consider sublayers with unknown counts as incomplete details 2021-07-13 06:39:11 +10:00
Nyall Dawson
e685ad00b3 Add methods to return QgsProviderSublayerDetails corresponding
to QModelIndex
2021-07-13 06:39:11 +10:00
Nyall Dawson
c04140443b Equality operator for QgsProviderSublayerModel.NonLayerItem 2021-07-13 06:39:11 +10:00
Damiano Lombardi
18bd5833bb Moved settingsRespectScreenDPI to new settings registry gui 2021-07-12 15:51:30 +02:00
Alessandro Pasotti
91370a9082
Merge pull request #44051 from elpaso/connections-api-results-widget
Connections api results widget
2021-07-10 15:30:37 +02:00