20 Commits

Author SHA1 Message Date
Nyall Dawson
64f9a1d17d Allow dropping paths onto data source select dialog to expand browser paths
Makes it a bit easier to fix data sources for files in deep paths
2024-05-12 07:52:15 +10:00
Nyall Dawson
54244d50be Set initial selected item to matching path when changing data source too 2024-05-12 07:52:15 +10:00
Nyall Dawson
1142e8ffac
Move QgsMapLayerType enum to Qgis.LayerType (#51874)
For consistency with other enums
2023-02-16 13:02:57 +01:00
Nyall Dawson
0a0c25eb31 Expand out the current layer path in the change data source/fix data
source dialog

Makes it much quicker to fix paths!!
2022-08-01 13:17:43 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
9c4834d389 Extract guts of QgsDataSourceSelectDialog to a QWidget, so that this
widget logic can be used outside of a dialog
2020-03-24 20:38:17 +10:00
Peter Petrik
62d615c2cd [QEP 149] Introduce static data providers [API BREAK]
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +02:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
nirvn
7132cf3b2e [ui] Improve UX by adding an original source label when changing / updating layer data source 2019-05-20 14:25:55 +07:00
Denis Rouzaud
375a0aa253 create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
the enum is moved out of the class
this will allow forward declaration more easily since the enum is not nested in the class
2019-03-24 21:40:33 -05: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
Alessandro Pasotti
02ecb56d95 QgsDataSourceSelectDialog: filter, refresh and scroll to last selected item
plus:
- expand children of last selected item
- save/restore status
2018-11-07 11:08:49 +01:00
Alessandro Pasotti
64bd7a7ced Added ~QgsDataSourceSelectDialog destructor 2018-11-05 10:45:40 +01:00
Nyall Dawson
bc8574ce5c Small cleanups for QgsDataSourceSelectDialog 2018-11-05 10:27:02 +01:00
Alessandro Pasotti
8493636f18 Data source select dialog now accepts a model 2018-11-05 10:26:39 +01:00
Nyall Dawson
bac5fbbe0d Small cleanups for QgsDataSourceSelectDialog 2018-11-05 16:51:31 +10:00
Alessandro Pasotti
105455ca2c Layout fixes 2018-11-01 17:29:51 +01:00