13 Commits

Author SHA1 Message Date
Nyall Dawson
239e353155 Allow QgsAbstractDataSourceWidget subclasses to add vector layers
with a specific provider key
2017-09-13 05:47:20 +10:00
Alessandro Pasotti
e21630db42 Sipify 2017-09-04 21:08:11 +02:00
Alessandro Pasotti
7cd7f1685f Added last missing signal replaceVectorLayer
This is only used by virtual layers, but it
might be handy for others too and now I can
start to remove all specialized source
select add methods from the datas source
manager dialog.

This is only the first step: next is looping
through the source select provider registry
to get all needed GUI elements for the dialog.
2017-09-03 21:30:45 +02:00
Alessandro Pasotti
a612a6874d Sipify docstring for signal 2017-08-06 09:02:27 +02:00
Alessandro Pasotti
acead27197 Add raster widget to data source manager dialog
Also:
- created source select widget for GDAL provider
- created source select widget for OGR provider
- added addVecorLayers signal to the base class
2017-08-05 16:38:33 +02:00
Alessandro Pasotti
fef3bc099d Renamed button slots and make ogr dialog inherit from the abstract base 2017-08-04 22:06:07 +02:00
Alessandro Pasotti
dc6017dc1d Move the buttons and connections into the base class
This was a small refactoring to homogenize the
dialogs buttons and add an Ok/Add button bar.
2017-08-04 17:43:23 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Alessandro Pasotti
bd925cd648 Rebase and partially revert 9bae83275368
All signals are now in the base class, even if only
a subset of available providers actually emits them.

This way we can handle all source select dialogs
the same way, regardless if they are vector, DB
or raster (or others).
2017-07-18 12:15:57 +02:00
Alessandro Pasotti
e83ef2e8b5 Store canvas into the base class and set extent/crs from the arcgis classes
This modification was necessary because the current implementation
of the source select dialogs within the unified add layer dialog
create the provider dialogs the first time and do not destroy
them, this means that the canvas extent and CRS can change from
a dialog invocation to the next and the extent and CRS need to
be updated at layer creation time.
2017-07-18 11:45:07 +02:00
Alessandro Pasotti
73b66fa1f5 Homogenize signals from different source select dialogs, move to base class 2017-07-18 11:45:07 +02:00
Alessandro Pasotti
f6c8ef3ad1 Complete documentation for connectionsChanged signals 2017-07-18 11:42:02 +02:00
Alessandro Pasotti
c4e26d72c0 Renamed base class to QgsAbstractDataSourceWidget 2017-07-18 11:42:02 +02:00