40 Commits

Author SHA1 Message Date
Alessandro Pasotti
cd6ce76480 Quick and dirty patch to DB-Manager after PR 8831
The "comments" PR 8831 added support for postgres only
(and broke all the others backends).

I'd be in favor of a revert of the whole original PR but
this patch restores functionality and could be an acceptable
temporary fix until the comments PR is reworked in a more
maintainable and elegant way.

Fixes #21151 btw
2019-02-04 18:26:24 +01:00
Ailurupoda
00852f1642 Update oracle, vlayer, spatialite connector.py 2019-01-23 11:20:24 +01:00
Nyall Dawson
149726cfa5 [dbmanager] Fix exception when browsing project layers 2018-11-10 12:30:52 +10:00
Nyall Dawson
f3e9aaf79a Fix some inefficient python dictionary iteration 2018-10-31 08:42:51 +10:00
Alessandro Pasotti
15f4138a47 [db-manager] Store exception text in the task and pass it over to the caller
Fix #2019 - DBManager fails to display error messages with virtual layers
2018-10-23 14:59:10 +02:00
nirvn
570f3c86c3 [dbmanager] rename QGIS layers to Project layers for the virtual layer connection 2018-06-30 15:43:31 +07:00
nirvn
86547eb5fc [dbmanager] add connection icon
this harmonizes display with that of the browser panel
2018-06-30 15:43:31 +07:00
nirvn
46246f622d [needs-docs][dbmanager] harmonize icons 2018-06-29 11:56:37 +07:00
Nyall Dawson
d0c14ef0c7 [dbmanager] Fix bad import in vlayers plugin 2018-05-16 14:08:43 +10:00
Harrissou Sant-anna
394aaba060 Trying to make Providers labels translatable
in DB Manager tree
2018-05-01 16:07:41 +02:00
Blottiere Paul
ad91694b76 Remove unnecessary cancel subtask 2018-03-02 09:43:26 +00:00
Blottiere Paul
887a226115 Use python super() calls 2018-03-02 09:43:26 +00:00
Blottiere Paul
ad630094c1 More cleaning 2018-03-02 09:43:26 +00:00
Blottiere Paul
a948f1b84d Some clean 2018-03-02 09:43:26 +00:00
Blottiere Paul
957e92c847 Add async model for virtual layers 2018-03-02 09:43:26 +00:00
Salvatore Larosa
68b7bf6aa8 [dbmanager] porting of dae921c to 3: fixes #16476 2018-02-03 10:53:55 +01:00
JD LOMENEDE
13cb8e4e0b remove fromOldWkbType (api_break) 2017-11-24 00:21:33 +01:00
Nyall Dawson
75885d70d5 Rename various WKT/WKB/GeoJSON/GML methods for consistency
and consistent capitalisation
2017-11-15 20:51:05 +10:00
Mario Baranzini
78af413dcc Remove python future compatibility layer 2017-08-07 10:27:15 +02:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Hugo Mercier
f56e6b9d3e [dbmanager] Fix encoding issues with virtual layers 2017-02-27 10:32:28 +01:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Hugo Mercier
b7fa5400b6 [db manager] Fix virtual layer uid handling 2016-11-22 16:09:53 +01:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
bd7d913379 Refine QgsFeature geometry getters/setters
All pointer based methods have been removed.

Now we have only:

  void setGeometry( const QgsGeometry& geom )

and

  QgsGeometry geometry() const

Benefits include avoiding a whole lot of tricky pointer lifetime
issues, potential memory leaks, and finally closing #777, which
has survived for over 9 years!...

Impacts on PyQGIS code:
- no more need for the messy
  g = QgsGeometry( feature.geometry() )
  workaround, just use g = feature.geometry() instead
- IMPORTANT: you can no longer test whether a feature has geometry
 using `if f.geometry():`, since QgsFeature::geometry() will
 *always* return an object. Instead, use
 `if not f.geometry().isEmpty():`, or preferably the new method
 `if not f.hasGeometry():`

Fix #777
2016-08-01 16:25:46 +10:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Hugo Mercier
7dbc0bf819 [db manager] Fix virtual layers plugin (fixes #14404) 2016-03-23 17:39:41 +01:00
Juergen E. Fischer
c55f8b73f0 db_manager: cleanups 2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Werner Macho
6acdfc6e84 improve import handling 2016-03-15 11:14:16 +01:00
Hugo Mercier
942c5e5f73 Fix virtual layer file name handling (in Windows) 2016-02-15 16:44:17 +01:00
Hugo Mercier
1d7b281611 Add qgis functions to db manager and creation ui 2016-01-11 14:11:14 +01:00
Hugo Mercier
70f26b66be Merge pull request #2647 from mhugo/vlayer_gui
Virtual layers GUI integration
2016-01-11 12:17:50 +01:00
Juergen E. Fischer
4e1cf3c081 add missing copyright headers 2016-01-08 21:32:11 +01:00
Hugo Mercier
8bbdff471c Fix a bad indentation bug 2016-01-07 15:38:09 +01:00
Hugo Mercier
9e14f09862 Add a plugin to DB Manager to support virtual layers 2015-12-18 19:45:58 +02:00