39119 Commits

Author SHA1 Message Date
Matthias Kuhn
bf9021ae92 Document API change 2017-06-02 19:53:37 +02:00
Matthias Kuhn
2bbadbacb7 Rename qgspoint.h and qgspointv2.h
To qgspointxy.h
And qgspoint.h
2017-06-02 19:53:37 +02:00
Matthias Kuhn
4f3cd3e12c QgsPoint migration 2017-06-02 19:53:37 +02:00
Matthias Kuhn
c5ba49fbdf fix server 2017-06-02 19:53:37 +02:00
Matthias Kuhn
e3efc2c838 Fix tests 2017-06-02 19:53:37 +02:00
Matthias Kuhn
085a284c58 [travis] Better match pattern for colorizing failing tests 2017-06-02 19:53:37 +02:00
Matthias Kuhn
e2227d9998 Fix QgsPointXY issues 2017-06-02 19:53:37 +02:00
Matthias Kuhn
4ba385d4e1 Fix python plugins 2017-06-02 19:53:37 +02:00
Matthias Kuhn
881dfef3c9 Fix python test imports 2017-06-02 19:53:37 +02:00
Matthias Kuhn
a9d7630a69 Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
Because 3D coordinates should be the default.

References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Matthias Kuhn
164e4640da Gadgetize QgsPointV2 2017-06-02 19:53:37 +02:00
Alessandro Pasotti
1067239565 Merge pull request #4629 from boundlessgeo/unified-button
Add layer button
2017-06-02 19:26:07 +02:00
Alessandro Pasotti
7a2ce49408 [addlayerbutton] Connect and forward all signals from browser to app 2017-06-02 18:09:29 +02:00
Sandro Santilli
78c3423861 For GDAL sake extract a dbname from the connection
Works around GDAL limitation reported in:
https://trac.osgeo.org/gdal/ticket/6910

Ref #16625
Ref #16626
2017-06-02 17:31:41 +02:00
Alessandro Pasotti
c1889111de [addlayerbutton] Replace icon for the datasourcemanager 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
a7e12c8713 [addlayerbutton] Fix height problems within the delimited text dialog
Also moved the status information under the button bas for
consistency with other dialogs.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
01b4eebcea [addlayerbutton] Prevent a crash when the layer list is rebuilt after a change in the layer tree 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
14cc77c4ec [addlayerbutton] Removed button bar from main dialog
No Close button anymore ... prepare your wrist for
a precise hit on the [X] or hit ESC to close the
dialog.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
23ae508798 [addlayerbutton] Data Source Manager toolbar and menu
This implements the proposal from @SrNeto:

- new toolbar with the new dialog button and
  all the "new" data soource buttons
- old layer toolbar hidden by default
- new dialog open from first item in layer menu
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
e761395fa2 [addlayerbutton] New GUI for the delimited text dlg by Luigi Pirelli 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
ce6d5c7b4f Removed old comment 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
fc76d120c2 [addlayerbutton] Removed all the individual source select slots
In favour of the unified dialog.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
25b959cc83 [addlayerbutton] Fix order of signals when open page called
The problem was with raster "tab" (that is not a real page
but a forwarded signal to the app), when openPage
was called before the show() call.

Moving the activation inside the unique currentPage call,
the implementation is much simpler (got rid of the lambda
with the second currentRowChanged connection).
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
463fd0362b [addlayerbutton] Add method to open a given page in the layer dlg
This is preliminary to change all dialogs slots to
open the unified dialog with the righ page open.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
e43dfa2810 [addlayerbutton] Added option for modeless layer dialog (default false) 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
43a3ac7b85 [addlayerbutton] Removed help button
Almost all provider dialogs have its own button
resulting in duplicated help buttons in the
unified dialog.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
828ec13430 [addbuttonlayer] Fix layout of vector dialog
This is an attempt to fix the layout of the vector
layer dialog to fit in the unified dialog layout.

The optiomal solution would probably involve
a complete refactoring of the vector layer dialog
to use a stacked widget.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
018afc78db [addlayerbutton] Larry Shaffer's fix to the raster button
Tricky solution, but temporary
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
8db19b2f77 [addlayerbutton] Raster support added
There is still an issue with the list not being
correclty reset after the raster icon is selected.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
811e4dfd47 [addlayerbutton] Virtual Layers support added
Some changes in connections are required to keep in sync
the available layers lists in the virtual layer dialog.

(Modeless support is on the way)
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
6c66738d12 [addlayerbutton] Added delimited text layers 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
de5996c7dc [addlayerbutton] Use enum for window mode instead of booleans 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
402b7ada39 [addlayerbutton] Initialise pointer 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
2f9b844a83 [addlayerbutton] Added help button (URL is still a placeholder) 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
e121cfbe80 [addlayerbutton] Use QgsOptionsDialogBase and all its nice features and styles 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
84bbb5f445 [addlayerbutton] Removed merge markers 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
a69d5122ab [addlayerbutton] Show Add button in embedded spatialite dialog 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
143e0c63c8 [addlayerbutton] More embeddable dialogs 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
b31f05c72b [addlayerbutton] New signals for new interfaces 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
dcab8ca1b5 [addlayerbutton] Added more providers and get canvas from ctor 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
9a51d89476 [addlayerbutton] Embedded dialog support 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
75f0e543d9 [addlayerbutton] Pass canvas to the manager (needed by AMS) 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
220d12564b [addlayerbutton] Add embedded option to spatialite dlg 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
129e00d7f3 [addlayerbutton] Added embeddedMode to all providers
Also switched managerMode and embeddedMode arguments
for a more logical arg passing from the factory function.
2017-06-02 16:57:45 +02:00
Alessandro Pasotti
ff83bfe24d [addlayerbutton] Added WFS, WMS and vector layers 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
3cf93bc402 [addlayerbutton] Add embedded flag for widget-like usage 2017-06-02 16:57:45 +02:00
Alessandro Pasotti
b2dea8e058 [addlayerbutton] Initial implementation 2017-06-02 16:57:45 +02:00
Sandro Santilli
861cf9abad Fix typo in URI service extraction (introduced in 93624b08)
Also add a comment about lack of support in GDAL up to 2.2.x for
service specification in datasource uri

Ref #16626
2017-06-02 16:44:27 +02:00
Alessandro Pasotti
c9e6f15ca1 Merge pull request #4659 from boundlessgeo/browser-to-gui
Move QgsBrowserDockWidget from app to gui
2017-06-02 15:39:24 +02:00
Alessandro Pasotti
d62d444ea7 Moved support classes into own private header 2017-06-02 14:51:02 +02:00