22131 Commits

Author SHA1 Message Date
Nyall Dawson
167d4e1a7e Add capacity for history nodes to show custom widgets when selected 2023-04-22 20:55:59 +10:00
Nyall Dawson
34ce4d76f5 Create QgsHistoryWidget resuable widget for showing history entries 2023-04-22 20:55:59 +10:00
Nyall Dawson
a71671ce3e Create a model for QgsHistoryEntries
A dynamic tree item model showing the entries in date groupings
2023-04-22 20:55:59 +10:00
Nyall Dawson
dee7605b90 Add method to insert child nodes 2023-04-22 20:55:59 +10:00
Nyall Dawson
0774c80f3e Add capacity for history providers to create/update nodes 2023-04-22 20:55:59 +10:00
Nyall Dawson
dd25f39479 Create QgsHistoryEntryNode class
Used for representing information about of QgsHistoryEntry
in a hierarchical tree structure
2023-04-22 20:55:59 +10:00
Nyall Dawson
aa7535ffab Add original id to QgsHistoryEntry 2023-04-22 20:55:59 +10:00
Nyall Dawson
2fafc2828d Add signals to history registry for entries added/updated/cleared 2023-04-22 20:55:59 +10:00
Nyall Dawson
e84ce19706 Move QgsHistoryEntry to separate file 2023-04-22 20:55:59 +10:00
Nyall Dawson
d5cd4c99fc Metatype QgsHistoryEntry 2023-04-22 20:55:59 +10:00
Nyall Dawson
af02946e51 Expand docs 2023-04-22 17:54:35 +10:00
Nyall Dawson
c7659fbc9a Show field comments and alias in field mapping tables 2023-04-22 09:18:06 +10:00
Nyall Dawson
b28bf20372 Add api to determine attribute capabilities for QgsVectorLayerExporter 2023-04-22 09:18:06 +10:00
Nyall Dawson
308eb1d86f Expose api to determine capabilities of QgsVectorFileWriter
Currently allows determining whether field comments and aliases
are supported by the writer
2023-04-22 09:18:06 +10:00
Nyall Dawson
d9d41ad9ef Doc 2023-04-21 06:12:28 +10:00
Nyall Dawson
72dd8880a6 Use registry level cache, not local cache for algorithm name/icon handling 2023-04-21 06:12:28 +10:00
Nyall Dawson
70f2adb28c [processing][api] Add mechanism to get basic algorithm properties
efficiently for many calls

Allows retrieval of some basic algorithm properties (display name,
icon) in an optimised way for many calls. (Avoiding multiple
expensive algorithmById lookups)
2023-04-21 06:12:28 +10:00
Etienne Trimaille
3ebb5af1fb Python - Upgrade metasearch to Python 3.7 minimum 2023-04-19 05:25:57 +10:00
Yoann Quenach de Quivillic
d798fd0732 Use embedded messageBar in showMessage 2023-04-18 14:55:32 +10:00
Nyall Dawson
7a0c9a39ed Allow a range of cells to be copied from SQL results window
Allows selection of a range of cells to copy to clipboard. Results
are copied as both plain text and html, so can be pasted easily
into spreadsheet apps/etc as tables
2023-04-18 14:13:44 +10:00
Nyall Dawson
9aac2b8d8a [api] Add framework for setting field comments/aliases via
QgsAbstractDatabaseProviderConnection

When implemented by providers, will provide a method for
permanently setting field aliases/comments within a
database

Here we have no choice but to create a new Capability2
enum, as the original Capability has now consumed the
entire range of values for data types permitted by QFlag
2023-04-18 08:22:57 +10:00
Nyall Dawson
3c64bcc6a6 Fix false positive cppcheck pureVirtualCall warnings when pure
virtual functions are called as slots
2023-04-17 16:29:44 +10:00
Nyall Dawson
cb360f017b Make cppcheck test check for missing overrides 2023-04-17 15:12:59 +10:00
Nyall Dawson
276ff97807 When creating new fields, only expose the 'Comment' option for
datasources which support editing comments

This support is currently limited to the postgres provider,
so exposing the comment field for all other vector layer types
is just misleading to users. The comment will be completed discarded
without any warning!
2023-04-14 14:14:41 +10:00
Nyall Dawson
b118ce2530 Disable copy of QgsScopedProxyProgressTask 2023-04-14 11:27:08 +10:00
Nyall Dawson
06ed5bd86e Remove unnecessary setAngle/angle overrides in QgsPointPatternFillSymbolLayer 2023-04-14 03:53:52 +10:00
Julien Cabieces
ea84b6aa80
Merge pull request #52037 from Djedouas/fix-51515
Add a save button in layer style panel
2023-04-13 14:02:22 +02:00
uclaros
f896513aab Add virtual point cloud provider 2023-04-13 09:57:53 +02:00
Nyall Dawson
04d9841924 QgsProxyProgressTask cannot be copied -- fix cppcheck warning 2023-04-13 05:56:32 +10:00
Nyall Dawson
2ef0734913 Add test to ensure help examples are valid expressions 2023-04-12 09:51:36 +10:00
Jacky Volpes
6149d5da0c Fix #51515 - using properties objects for load/save layer styles 2023-04-11 11:19:22 +02:00
Alexander Bruy
c6eec2ac60
Merge pull request #52590 from alexbruy/processing-pointcloud-attribute
New parameter type for point cloud attribute
2023-04-11 11:14:20 +03:00
Alexander Bruy
c5947e4e51 add SIP_DEPRECATED 2023-04-10 11:57:39 +03:00
Nyall Dawson
6454f7bfb8 Fix sip build 2023-04-09 14:38:28 +10:00
Nyall Dawson
855ac2e8e7 Fix overloaded virtual warning in QgsAuxiliaryLayer 2023-04-09 14:38:28 +10:00
Nyall Dawson
e456d5a929 Fix hidden overloaded virtual warning 2023-04-09 14:38:28 +10:00
Yoann Quenach de Quivillic
e98e655171
Map tip position improvements (#52469) 2023-04-08 13:23:40 +07:00
Alexander Bruy
89ddbc3863 fix typos, add Q_DECL_DEPRECATED 2023-04-07 14:00:05 +03:00
Nyall Dawson
acea87c859 Spelling 2023-04-06 17:18:05 +10:00
Nyall Dawson
2e7b0dd4a0 Deprecated unused, not-useful QgsVectorDataProvider::palAttributeIndexNames 2023-04-06 17:18:05 +10:00
Nyall Dawson
0bc7bf5a79 Move postgres relkind enum to Qgis
Avoids having to include qgspostgresprovider header in a bunch
of non-provider related files
2023-04-06 17:18:05 +10:00
Nyall Dawson
492beeae6d Improve docs 2023-04-06 11:57:58 +10:00
Nyall Dawson
895a68faee Expose 'Search Selection in PyQGIS docs' action for all python code editors 2023-04-06 08:32:41 +10:00
Nyall Dawson
dcf7a98e0c Apply suggestions from code review 2023-04-05 11:17:19 +10:00
Nyall Dawson
7e0e421af7 PyQt doesn't provide repr for QColor, but it's highly desirable!
So monkey patch one in ourselves
2023-04-05 11:17:19 +10:00
Nyall Dawson
8f5476e6d7 Avoid loss of text in code editors when certain modifiers are pressed
These are triggered when a InputMethod event is sent to the widget.
There's upstream discussion at https://sourceforge.net/p/scintilla/bugs/1913/
and the fix was added to QScintilla version 2.13.3

As the loss of text is an extreme risk, just disable input method
handling in these widgets on affected versions entirely.

Fixes #52459
2023-04-04 14:12:26 +10:00
Alexander Bruy
1f77406f2d [processing] new parameter type for point cloud attributes 2023-04-03 19:47:45 +03:00
Alexander Bruy
dc77709f69 use dummy QgsPointCloudAttributeCollection with attribute names only if
there is no index for a point cloud file
2023-04-06 18:20:45 +03:00
Alexander Bruy
3dfa397c4e add method to list available pointcloud attribute names without the need
to index point cloud first
2023-04-06 14:17:21 +03:00
Nyall Dawson
a2b3a0c642 Fix layout legend layer title not immediately updating
Fixes #52261
2023-04-03 18:17:03 +10:00