3565 Commits

Author SHA1 Message Date
Sandro Mani
2a2899a87c Support CTRL+Click for opening links in attribute table 2021-08-02 23:44:58 +02:00
Nyall Dawson
47f7612004 Add flag to babel command generation methods to control whether
paths should be quoted
2021-08-02 13:36:46 +10:00
Nyall Dawson
377f1d42ec Make QgsBabelFormatRegistry responsible for generating a file
filter string for all import formats
2021-08-02 13:36:46 +10:00
Nyall Dawson
ebd7d0c50d Add file extensions for babel import formats 2021-08-02 13:36:46 +10:00
Nyall Dawson
3ee1f2b2b5 Rework QgsBabelSimpleImportFormat to avoid storing using keys
based on the format description, and instead use the (constant)
format name instead
2021-08-02 13:36:46 +10:00
Nyall Dawson
8f36cdfa44 [processing] Add API to allow a string parameter to show as a combobox
with preset choices in processing GUI

In some circumstances it is desirable to restrict the values available
when a user is asked to enter a string parameter to a list of predetermined
"valid" values, yet these values will vary installation by installation
(e.g. a "printer name" parameter, where you want users to pick from
printers installed on the system, but since the printer names will
vary install to install an enum parameter is not a valid choice)

This can now be done by setting the widget wrapper metadata
"value_hints" option, as demonstrated below. (While this provides a mechanism
for guiding users to select from valid string values when running a Processing
algorithm through the GUI, it does not place any limits on the string values
accepted via PyQGIS codes or when running the algorithm via other non-gui
means. Algorithms should gracefully handle other values accordingly.)

    param = QgsProcessingParameterString( 'PRINTER_NAME', 'Printer name')
    # show only printers which are available on the current system as options
    # for the string input.
    param.setMetadata( {'widget_wrapper':
      { 'value_hints': ['Inkjet printer', 'Laser printer'] }
    })
2021-08-01 05:33:51 +10:00
Nyall Dawson
612af1fb7b Add a registry for GPSbabel formats 2021-07-31 10:12:16 +10:00
Julien Cabieces
9d732a238a Fix SIP 2021-07-30 10:53:13 +02:00
Julien Cabieces
8c3f9cd3d0 constify externalStorageFromType 2021-07-30 10:18:38 +02:00
Julien Cabieces
deed238bc8 s/OnGoing/Running/g 2021-07-30 10:18:38 +02:00
Julien Cabieces
56acee931d Add enum ActionStart 2021-07-30 10:18:38 +02:00
Julien Cabieces
014a4aac3a Add StartLater / StartImmediately distinction 2021-07-30 10:18:36 +02:00
Julien Cabieces
ce6cc8d244 change comment singleton 2021-07-30 10:17:57 +02:00
Julien Cabieces
4bd9170f79 s/authentification/authentication 2021-07-30 10:17:57 +02:00
Julien Cabieces
5389c31b1e Add ContentStatus enum in Qgis class 2021-07-30 10:17:55 +02:00
Julien Cabieces
82e16cf38c [External Storage] Add QgsCopyFileTask 2021-07-30 10:16:45 +02:00
Julien Cabieces
6967b1cd2b [External Storage] Define API 2021-07-30 10:16:45 +02:00
Nyall Dawson
0a77401d1c Add python bindings 2021-07-30 16:07:36 +10:00
Nyall Dawson
f115db6950 Start vivisecting gps_importer plugin
Move the babel format classes to core, cleaning these up and
removing unused code and modernizing the API.
2021-07-30 16:07:36 +10:00
Alexander Bruy
7cb631e03c add support for plugin layers in QgsProcessingParameterMapLayer and
QgsProcessingParameterMultipleLayers (fix #44183)
2021-07-30 09:00:57 +10:00
Nyall Dawson
8ce347397e Add QgsProjectUtils utility class with function for retrieving layers matching a file path from a project 2021-07-28 19:39:12 +10:00
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