70 Commits

Author SHA1 Message Date
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
ff302ca075 Fix api 2021-08-26 12:56:45 +10:00
Nyall Dawson
136faab91f Fix system tables disappear from dialog after task runs 2021-08-26 12:56:45 +10:00
Nyall Dawson
f2f40096ab Add support for filtering system tables in QgsProviderSublayerProxyModel 2021-08-26 12:56:45 +10:00
Nyall Dawson
7f090f64d1 [api] Add flags to QgsProviderSublayerDetails, to indicate that
a sublayer is a system or internal table
2021-08-26 12:56:45 +10:00
Vincent Cloarec
bd6ac0e54d
save mesh from URI (#44758)
[mesh] fix saving a mesh frame with URI
2021-08-19 09:06:57 +02:00
Vincent Cloarec
2cdc666fb5
fix maximum vertices count per face for mesh editing (#44759)
fix writing UGRID format (mesh layer)
2021-08-19 09:05:15 +02:00
Nyall Dawson
17fa48250a Expand docs 2021-08-09 05:55:05 +10:00
Nyall Dawson
52dff0f2ef Add api to QgsProviderMetadata to return any possible sidecar
files which may exist for the provider given a layer path
2021-08-09 05:55:05 +10:00
Nyall Dawson
6f942a70ac Add missing Q_DECLARE_OPERATORS_FOR_FLAGS for QgsProviderUtils::SublayerCompletenessFlags 2021-07-26 08:09:51 +10: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
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
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
nirvn
d10695cf77 QMap::unite is gone in Qt6, use QMultiMap 2021-07-17 16:59:20 +07: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
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
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
Alessandro Pasotti
878b2436a5 Address PR comments - part 2 2021-07-07 12:43:14 +02:00
Alessandro Pasotti
78a42cf7e8 Address PR comments 2021-07-06 21:02:25 +02:00
Alessandro Pasotti
233a8097ba Add rowCount to connections API
+ fix memory leak in API fetcher
+ add progress bar to result widget
2021-07-06 21:00:54 +02:00
Alessandro Pasotti
9384c78939 Add base tests for create SQL layer 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
927669df2b Move target to 3.22 2021-07-06 20:59:58 +02:00
Alessandro Pasotti
aa6c1bd5ed Add flag for select at id in the result dlg 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
27eb5743ad Provider QSCI APIs for sqlite and PG 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
34c5cdcf2d Handle fid and geom cols in GPKG exec sql 2021-07-06 20:58:35 +02:00
Alessandro Pasotti
cf260226a3 Create SQL layer and widget config based on enum 2021-07-06 20:56:07 +02:00
Alessandro Pasotti
b988ca87e2 SQL results widget: add query layers support (initial) 2021-07-06 20:53:59 +02:00
Nyall Dawson
81ecf97d0f Fix PyQGIS docs formatting of QgsAbstractDatabaseProviderConnection class 2021-07-06 18:13:58 +10:00
Nyall Dawson
129ab50607 Add QgsProviderSublayerProxyModel for filtering/sorting
QgsProviderSublayerModel instances
2021-07-06 17:57:21 +10:00
Nyall Dawson
73f45ee467 Allow non sublayer items to be added to QgsProviderSublayerModel
E.g. embedded project items
2021-07-06 17:57:21 +10:00
Nyall Dawson
288321505a Start on sublayer model 2021-07-06 17:57:21 +10:00
Nyall Dawson
65bccd2c61 Add equality operator for QgsProviderSublayerDetails 2021-07-02 12:19:58 +10:00
Nyall Dawson
ced5910bc8 Fix race 2021-07-02 09:49:33 +10:00
Nyall Dawson
7dec3050f6 Fix dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
1355b39be0 Add QgsProviderUtils with a method for determining whether a list
of sublayer details is incomplete and requires a more in-depth scan
2021-07-02 09:49:33 +10:00
Nyall Dawson
bed72156f7 Dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
7c6afc0761 Create QgsProviderSublayerTask for retrieving sublayer details in a thread
This can sometimes take a looooong time, so it's worth doing in the
background
2021-07-02 09:49:33 +10:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00
Nyall Dawson
69debff405 Add convenience method to directly convert QgsProviderSublayerDetails
object to a QgsMapLayer
2021-06-23 19:35:11 +10:00
Nyall Dawson
07f5812383 Add uri to QgsProviderSublayerDetails 2021-06-23 19:35:11 +10:00