* [FEATURE] adds undo/redo for transaction groups
[needs-docs] the undo/redo now works with transcation groups. Just check
that there is no restriction in the transaction groups doc concerning
undo.
related to #14799
The undo/redo is implemented using SAVEPOINT.
The QgsTransaction interface has been enlarged to allow savepoints
creation and management. The savepoint is destroyed on
rollbackToSavepoint to have the same behavior has the sql ROLLBACK TO
SAVEPPOINT.
To avoid the creation of a savepoint for each feature modified in bulk
editing (e.g. paste, field calculator) the logic is a bit complicated: the
savepoint is created on QgsVectorLayer::editCommandStarted and the first
actual undo command (QgsVectorLayerUndoPassthroughCommand) is
responsible for the re-creation of the savepoint in case of undo-redo.
Since the behavior must be different in case edition doesn't take place
inside an edit command, a member function has been added to
QgsVectorLayer to expose the mEditCommandActive state.
Another (commented) tricky bit is the modification of the database
structure on add/delete attributes. On undo, the attribute is removed
before the rollback to savepoint, i.e. there is a useless ALTER TABLE
issued to restore the structure just before restoring it with the
ROLLBACK TO SAVEPOINT. This is necessary to make the provider
aware of the change of structure. It could be nicer/cleaner to have a way
to reload providers metadata.
The editPaste function has also been modified to use addFeatures instead of
addFeature (plural/singular), this is at the expense of an additional "cpy"
of the clipboard in memory, but it should improve perf with postgis provider.
* fixup operator aliases
* add Geonode connection menu to the toolbar
* add header files for geonode-qgis client
* add action to launch geonode connection dialog from menubar
* Move to proper directory
* Add geonodeconnection class.
* Add unit test for geonode connection.
* Use const static to avoid typo.
* Get list layers from geonode.
* Add get maps method.
* Geonode connection dialog (#13)
* add new geonode connection dialog
* apply functionality to the geonode connection manager dialog
* add save and load geonode connection functionality
* edit baseKey and credentialBaseKey
* remove auto-connect slots
* Add unit test for geonode connection.
* Add wms url getter.
* Add uuid and layer name in the table.
* Add handler for the list layer clicked. WIP.
* Use new style connect, better hacky to get wms url.
* update gitignore
* Make QGIS able to add WMS layer from geonode. With hacky code.
* Fix Docstring.
* Show web service type (WMS/WFS) in layer table.
* fix http and toolbar menu
* add geonode data item to the browser panel as an extention of ows provider
* [WIP] Add WFS.
* Add geonode get service url.
* combobox functionality and test geonode connection
* Add WFS.
* Disable add button if it's a map. Currently we can't do anything for map.
* Add busy cursor when add layer.
* get service uri capabilitites
* add available layers to the geonode browser panel
* remove debugging footprint and replace old style connect
* add actions (new, edit, delete) to geonode browser panel
* fix getLayers by WMS url
* add Geonode connection menu to the toolbar
* Filter out invalid layer / map.
* Fix service url method.
* Add service url for XYZ for GeoNode QGIS Server backend.
* Add XYZ url to geonode connection dialog.
* Add XYZ layer to QGIS.
* fix double geonode submenu
* add wfs/wms layers from browser panel using its native provider
* comply with qgis3 new class naming
* Handle different prefix for layer in GeoNode QGIS Server backend.
* base class for cms connection
* make geonode connection as a derived class from cms connection
* update cmakelists
* move geonode connection to geocms dir
* update CMakeLists
* Handle geonode 2.7 with new API.
* Handle multiple geoserver url in one geonode.
* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7
* Refactor serviceURL to return QStringList.
* add 'add geonode layer' icon
* add geonode to the data source manager dialog
* [GeoNode-Client] Fix add WFS layer.
* fix wms url parameter
* add xyz dataitems
* Use new style connect.
* [GeoNode Client] Handle qgis server specific typename to make add WFS works.
* Code improvement.
* [GeoNode Client] Make geonode dialog in add universal layer can add layer.
* Open universal add layer when click Add GeoNode layer.
* Make sure the geonode url has protocol.
* Handle geonode version in a better way.
* make sure the serviceUrl method has scheme in its urls
* add services option to the dialog
* remove version label if not wfs
* construct wms url with parameters for geonode connection
* handle layer from multi service urls for every wfs, wms, & xyz services
* fix new style connect using static_cast
* hode close button if dialog is in embedded mode
* fix xyz layer naming in the browser tree
* create base class for geocms dataitems
* fix compiling warning
* Use struct instead QVariantMap.
* tidy up code
* Tidy up code, use QgsStringMap instead QVariantMap.
* Add spellok for catalogue.
* update sip
* update sip
* Use naming convention for QgsGeoCmsConnection and use QUuid.
* Async by using GeoNodeRequest class.
* Move geonode to src/gui.
* Use stack not heap.
* Remove unused includes.
* Use signal to handle request.
* Use QStringLiteral.
* Switch to use Q_FOREACH.
* Use Q_FOREACH and addressing PR's review.
* Set private for data members.
* update sip
* Update sip.
* Update sip.
* Fix sip problem to make it buildable again.
* Remove geocms
* Tidy up code.
* Use QgsSetting Scope::Provider.
* Fix missing zip.h
* add Geonode connection menu to the toolbar
* add header files for geonode-qgis client
* add action to launch geonode connection dialog from menubar
* Move to proper directory
* Add geonodeconnection class.
* Add unit test for geonode connection.
* Use const static to avoid typo.
* Get list layers from geonode.
* Add get maps method.
* Geonode connection dialog (#13)
* add new geonode connection dialog
* apply functionality to the geonode connection manager dialog
* add save and load geonode connection functionality
* edit baseKey and credentialBaseKey
* remove auto-connect slots
* Add unit test for geonode connection.
* Add wms url getter.
* Add uuid and layer name in the table.
* Add handler for the list layer clicked. WIP.
* Use new style connect, better hacky to get wms url.
* update gitignore
* Make QGIS able to add WMS layer from geonode. With hacky code.
* Fix Docstring.
* Show web service type (WMS/WFS) in layer table.
* fix http and toolbar menu
* add geonode data item to the browser panel as an extention of ows provider
* [WIP] Add WFS.
* Add geonode get service url.
* combobox functionality and test geonode connection
* Add WFS.
* Disable add button if it's a map. Currently we can't do anything for map.
* Add busy cursor when add layer.
* get service uri capabilitites
* add available layers to the geonode browser panel
* remove debugging footprint and replace old style connect
* add actions (new, edit, delete) to geonode browser panel
* fix getLayers by WMS url
* add Geonode connection menu to the toolbar
* Filter out invalid layer / map.
* Fix service url method.
* Add service url for XYZ for GeoNode QGIS Server backend.
* Add XYZ url to geonode connection dialog.
* Add XYZ layer to QGIS.
* fix double geonode submenu
* add wfs/wms layers from browser panel using its native provider
* comply with qgis3 new class naming
* Handle different prefix for layer in GeoNode QGIS Server backend.
* base class for cms connection
* make geonode connection as a derived class from cms connection
* update cmakelists
* move geonode connection to geocms dir
* update CMakeLists
* Handle geonode 2.7 with new API.
* Handle multiple geoserver url in one geonode.
* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7
* Refactor serviceURL to return QStringList.
* add 'add geonode layer' icon
* add geonode to the data source manager dialog
* [GeoNode-Client] Fix add WFS layer.
* fix wms url parameter
* add xyz dataitems
* Use new style connect.
* [GeoNode Client] Handle qgis server specific typename to make add WFS works.
* Code improvement.
* [GeoNode Client] Make geonode dialog in add universal layer can add layer.
* Open universal add layer when click Add GeoNode layer.
* Make sure the geonode url has protocol.
* Handle geonode version in a better way.
* make sure the serviceUrl method has scheme in its urls
* add services option to the dialog
* remove version label if not wfs
* construct wms url with parameters for geonode connection
* handle layer from multi service urls for every wfs, wms, & xyz services
* fix new style connect using static_cast
* hode close button if dialog is in embedded mode
* fix xyz layer naming in the browser tree
* create base class for geocms dataitems
* fix compiling warning
* Use struct instead QVariantMap.
* tidy up code
* Tidy up code, use QgsStringMap instead QVariantMap.
* Add spellok for catalogue.
* update sip
* update sip
* Use naming convention for QgsGeoCmsConnection and use QUuid.
* Async by using GeoNodeRequest class.
* Move geonode to src/gui.
* Use stack not heap.
* Remove unused includes.
* Use signal to handle request.
* Use QStringLiteral.
* Switch to use Q_FOREACH.
* Use Q_FOREACH and addressing PR's review.
* Set private for data members.
* update sip
* Update sip.
* Update sip.
* Fix sip problem to make it buildable again.
* Remove geocms
* Tidy up code.
* Use QgsSetting Scope::Provider.
* Fix missing zip.h
All user settings/plugins, etc are now loaded from APPDATA for each
platform and no longer .qgis3 and are isolated from each other.
This allows for different profiles depending on what the user of QGIS
needs, e.g test, prod, demo, etc
Profile menu allows for switching between profiles, or creating new
ones.