36 Commits

Author SHA1 Message Date
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Even Rouault
02caeb9db7
Header files: remove all mentions of '\since QGIS 2.' 2024-02-18 20:46:01 +01:00
Nyall Dawson
62cd14189f Use proper enum flags type instead of int as return value
And promote enum to enum class. Notably fixes a bunch of startup
errors when loading the Processing plugin under Qt6
2024-02-13 08:13:43 +10:00
Nyall Dawson
feecb4017c Make some custom model roles enum class for Qt6 compatibility 2024-02-06 21:04:43 +10:00
Nyall Dawson
a4843be25b Move qgsVsiPrefix to QgsGdalUtils::vsiPrefixForPath 2023-06-20 14:41:59 +10:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +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
Alessandro Pasotti
7cab873eac Address PR review comments and add model tests 2022-09-06 15:50:34 +02:00
Alessandro Pasotti
ea4db92643 Window title 2022-09-05 18:04:21 +02:00
Alessandro Pasotti
795e8c0f1f More doxy 2022-09-05 17:56:59 +02:00
Alessandro Pasotti
6661004da1 Layer MD browser filter 2022-09-01 17:06:32 +02:00
Nyall Dawson
7275fb2033 Also show a relationships item when expanding out tables for
tables which form the parent side of a relationship
2022-08-02 15:44:40 +10:00
Nyall Dawson
6d65e4e450 Show existing relationships in browser when expanding datasources 2022-08-02 15:44:40 +10:00
Nyall Dawson
4b8603748d Fix build 2022-08-01 13:17:43 +10:00
Nyall Dawson
e7152239a1 Add method to retrieve root items from browser model 2022-08-01 13:17:43 +10:00
Nyall Dawson
460ac8b556 Ensure sort key is always correctly set for QgsDirectoryItem 2022-08-01 13:17:43 +10:00
Nyall Dawson
7da574fe36 Add QgsAbstractDatabaseProviderConnection interface for renaming fields
And implement for OGR connections. Also expose the ability to rename
existing fields for supported database connections via browser.
2022-07-18 17:26:13 +10:00
Nyall Dawson
3332b27edd QgsFieldItem is only equal when the QgsField is also equal
Otherwise the field item will not be updated when the gpkg parent
item is refreshed and the field definition has changed (e.g.
the field type)
2022-02-20 06:48:03 +10:00
Nyall Dawson
4a7fb87af5 [feature] Add browser properties page for field and fields items
In particular, this allows users to easily see what field domain
may be attached to particular fields
2022-02-20 06:48:03 +10:00
Nyall Dawson
8cd9b80149 Add browser properties widget for showing the properties of an existing
field domain
2022-02-20 06:48:03 +10:00
Nyall Dawson
1729ab1bc5 Add python file 2022-02-20 06:48:03 +10:00
Nyall Dawson
14bd167aba Ensure zip items behave correctly as files in browser
Also fixes drag and drop support for zip to project

Refs https://github.com/qgis/QGIS/issues/45769
2021-11-02 17:04:18 +11:00
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
Alessandro Pasotti
628e95ff98 Forward databaseConnection to parent item for layer items
... and preset SQL in query dialog
2021-07-06 21:00:54 +02:00
Even Rouault
8a6ed7d8f9 Address -Woverloaded-virtual clang virtual and enable the warning 2021-06-25 06:37:49 +10:00
Nyall Dawson
c8004cb3c6 [browser] Add global option to disable monitoring of directories
Allows users to manually opt-out of monitoring directories in
the browser by default, and also provides a mechanism for
enterprise installs to disable this potentially unwanted behavior.
2021-06-02 07:13:14 +10:00
Nyall Dawson
8ff0efd230 [browser] By default do not monitor directories on drives we know
are slow

Effectively this means that the browser no longer defaults to watching
network and remote drives (on Windows) for changes. This is expensive
to do and can result in large hangs in the QGIS application.

Users can still manually opt-in to monitoring of these locations
through the context menu of the directory in the browser panel.
2021-05-31 12:23:56 +10:00
Nyall Dawson
af1900f539 [browser] Add api to QgsDirectoryItem to control whether directory
items should be automatically monitored for changes

This monitoring can be expensive for some locations (eg network
folders or cloud based directories), so in these cases it is
desirable to allow it to be disabled to avoid hangs in the QGIS
application.
2021-05-31 12:23:56 +10:00
Nyall Dawson
63c4f4fe7f __repr__ for browser items 2021-05-31 12:23:56 +10:00
Nyall Dawson
4e73dd92b9 Fix accidental api break
QFlags created from enum classes aren't automatically converted
from an int value passed by Python code, so we need to create
compatibility functions for the older variants which accept
plain ints
2021-05-30 09:27:41 +10:00
Nyall Dawson
aa93d03ca9 Promote QgsDataItem enums to enum classes, move to Qgis 2021-05-27 13:38:54 +10:00
Nyall Dawson
b5aace6e82 Split qgsdataitem.h/cpp into multiple files for individual classes
to avoid mega file which triggers an include explosion
2021-05-21 09:22:05 +10:00
Nyall Dawson
68c98b55e7 Move core browser and map renderer files to src/core/browser
and src/core/maprenderer subfolders

Helps keep src/core a little more organized
2021-05-21 09:22:05 +10:00