230 Commits

Author SHA1 Message Date
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
Alexander Bruy
156c09880b [plugin manager] mark installed plugins as trusted (fix #15338) 2016-07-25 20:24:12 +03:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Alexander Bruy
6e1302047c [pluginmanager] show trusted plugins (fix #14916) 2016-06-01 13:48:47 +03:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Matthias Kuhn
48943d44f6 Prefer usage of https:// over http:// 2016-04-04 11:08:23 +02:00
Matthias Kuhn
e133b42896 Enable console with Python3 / PyQt5 2016-03-29 08:20:43 +02:00
Juergen E. Fischer
06f995316e plugin installer: switch to pyqt wrappers 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
7694b9a1e5 fix shadowed color ramp test 2016-03-15 20:09:38 +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
Juergen E. Fischer
fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00
Alexander Bruy
4e904f7e6e [pluginmanager] apply auth also when downloading plugin package 2016-03-03 20:29:32 +02:00
Matthias Kuhn
30910df388 Partially revert fa40e78
It failed to load functional plugins also
2016-02-15 12:51:53 +01:00
Matthias Kuhn
fa40e78f60 [Plugins] disable plugins which crash on load 2016-02-15 10:23:39 +01:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
Larry Shaffer
36e7026c0d [FEATURE][auth] Add support to Plugin Manager 2015-12-03 17:52:22 -07:00
Matthias Kuhn
0b6dd352c9 [py3] CMake updates to support Python3 and PyQt5 2015-11-16 07:42:47 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Martin Dobias
7bdc9c1939 Do not mark python plugins as broken in plugin installer when having dash in the name
Although plugin with a dash in the name is not a correct python package name,
the qgis python support recognizes them as valid plugins - so let's have the same
behavior in the installer.
2015-03-24 16:57:40 +07:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
Nathan Woodrow
81470513ef Fix plugin installer crash with invalid versions 2015-01-15 10:56:37 +10:00
Larry Shaffer
3213d014f3 Refactor plugin staging to build dir and python script compiling 2014-05-20 21:28:42 -06:00
Borys Jurgiel
3b198d9000 [FEATURE] [Plugin Manager] Voting for plugins from Plugin Manager 2014-04-01 16:35:28 +02:00
Borys Jurgiel
cdbe1ee303 [Plugin manager] Replace confirmation popup dialogs with an internal QgsMessageBar 2014-03-27 11:20:53 +01:00
Borys Jurgiel
88e8f9d6b6 [Plugin Installer] More robust xml parsing: fix lonely ampersands. Fixes #9524 2014-02-18 17:01:41 +01:00
Borys Jurgiel
b114dceb1a [Plugin installer] fix #8876 2013-10-17 11:55:16 +02:00
Juergen E. Fischer
4cb37b1af2 support for python plugin directory with accents in username (fixes #2512 again) 2013-10-10 23:55:28 +02:00
Borys Jurgiel
c093ab91b0 [Plugin Manager] New tab for all plugins. New class QgsPluginItemDelegate 2013-09-15 12:05:44 +00:00
Borys Jurgiel
81374eb520 [Plugin Installer] Better error handling for parsing metadata 2013-09-13 16:26:10 +00:00
Borys Jurgiel
fd4515e22a [Plugin Installer] Make version compare behaviour unified with the repository app 2013-09-13 12:57:26 +00:00
Alexander Bruy
6d5df7cb25 [FEATURE] add option to show/hide deprecated plugins in plugin manager 2013-09-13 12:10:16 +03:00
Alexander Bruy
8a27c76560 [FEATURE] clearly mark deprecated plugins in plugin manager 2013-09-13 12:10:16 +03:00
Borys Jurgiel
af04c794fc [Plugin Installer] More uniform behaviour when comparing versions: always exclude any non-numeric parts 2013-09-12 21:55:38 +02:00
Borys Jurgiel
f6e0bbc24e [Plugin Installer] Remove hardcoded 2.0 version in order to use the native 2.0 2013-09-01 09:27:28 +02:00
Alexander Bruy
ec2992e8f9 correct handling for non ASCII characters in plugin installer (fix #8452) 2013-08-12 14:46:39 +03:00
Borys Jurgiel
018e95845f [Plugin Installer] fix #8410 2013-08-04 22:52:53 +02:00
Borys Jurgiel
b9c9ec440b [Plugin Installer] Don't forget about plugins in QGIS-PLUGINPATH env variable. Fix #8376 2013-07-30 17:31:25 +02:00
Borys Jurgiel
edf32f939b Follow up commit:7a7e54270 2013-07-15 17:23:53 +02:00
Borys Jurgiel
7a7e542706 [Plugin Installer] Handle all exception types when loading plugins. Fixes #8295. Breaks string freeze because it's a critical fix. 2013-07-15 16:34:21 +02:00
Borys Jurgiel
682a89c957 [Plugin Installer] Fixes #8244 (crash on closing http request) 2013-07-09 17:39:05 +02:00
Juergen E. Fischer
a39b5ab2fa plugin installer: destroy network replies (fixes #8233) 2013-07-07 21:43:48 +02:00
Borys Jurgiel
4af8946906 [Plugin Installer] Follow up 619558dabc 2013-06-29 12:30:57 +02:00
Borys Jurgiel
7f99708c17 [Plugin Installer] Only test not loaded Python plugins when (re)building metadata registry. Loaded plugins prove they are ok just being loaded. It prevents possible bugs when already loaded plugin is imported again. 2013-06-27 21:55:54 +02:00
Borys Jurgiel
afbc9b8408 [Plugin Installer] partially revert fd2b221e65 . Still QGIS restart is needed after plugin update in some cases. 2013-06-26 02:10:07 +02:00
Borys Jurgiel
619558dabc [Plugin Installer] Fix #8080 2013-06-26 00:20:39 +02:00
Borys Jurgiel
0485aa0fb4 follow up 86bebab3ce 2013-06-25 23:56:03 +02:00
Borys Jurgiel
c0ae8f31c3 [Plugin Installer] Fix metadata description, add "about" tag, prefer remote plugin name. 2013-06-25 23:35:19 +02:00
Borys Jurgiel
7771a9b253 follow up 86bebab3ce 2013-06-25 22:12:27 +02:00
Borys Jurgiel
86bebab3ce [Plugin Installer] Fix #8111. Better repository error handling. 2013-06-25 21:25:38 +02:00
Borys Jurgiel
fd2b221e65 [Plugin Installer] Simplify plugin reloading 2013-06-25 19:29:40 +02:00