76 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
volaya
99c16f0ba5 [processing] added activateProvider method in Processing class 2016-06-02 09:45:59 +02:00
volaya
61e26fd8f3 [processing] fixes for issues with 3rd party providers being loaded and unloaded 2016-06-01 15:21:03 +02:00
volaya
0272ebc2e8 [processing] fixed check to avoid adding a provider that is already added 2016-06-01 13:20:57 +02:00
Salvatore Larosa
83502c55b3 [processing] add again the algorithm name after being removed mistakenly in 507aeb0 2016-05-31 15:56:42 +02:00
rldhont
d8ccec0e0a [Processing] add an algs static method to Processing for server 2016-05-28 12:41:30 +02:00
Alexander Bruy
cc7eb27a27 [processing] drop WebView dependency (follow up 38f6ace4c0) 2016-05-27 20:38:51 +03:00
volaya
997a3683a0 [processing] removed wrong import 2016-05-25 17:53:07 +02:00
volaya
3607e269c6 [processing] improvements for new mechanism for adding algorithms
Correctly remove algorithms on plugin unload
2016-05-24 10:27:38 +02:00
volaya
2eebe0d314 [processing] additional mechanism to add scripts from 3rd party plugin 2016-05-23 19:36:16 +02:00
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
b90ec83c23 [processing] keep parameter in addProvider method for backwards compatibility 2016-05-23 19:34:25 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
volaya
e925382292 [processing] fixed provider updates in toolbox 2016-05-23 19:34:24 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Alexander Bruy
b52735dbd8 fix indentation 2016-04-27 15:40:56 +03:00
volaya
f33749ab9d [processing] different approach for provider add/remove 2016-04-27 10:09:28 +02:00
volaya
ff85bfe461 [processing] print full stacktrace to log when a provider cannot be loaded 2016-04-26 08:35:32 +02:00
volaya
297f4669fd [processing] added preconfigured algorithms 2016-04-07 12:03:39 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +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
Alexander Bruy
0571395919 indentation 2016-03-01 19:02:30 +02:00
volaya
af8a62d93e [processing] alg menus can now be configured from Processing options 2016-03-01 15:57:32 +02:00
Alexander Bruy
5df0ce04e8 [processing] replace fTools and GdalTools plugins with Processing 2016-03-01 15:57:32 +02:00
Alexander Bruy
61a92e2fac [processing] convert messages to unicode (fix #14286) 2016-02-18 14:09:34 +02:00
volaya
0af700652e [processing] do not recreate algs tree when removing provider
This should fix the problem of QGIS taking to long to shutdown if there are plugins that add algorithms to Processing
2016-02-03 11:41:48 +01:00
volaya
8ade74cadd [processing] show wait cursor while updating alg list 2016-01-21 09:01:27 +01:00
volaya
a63cab77ba [processing] improvements to log 2016-01-15 11:27:40 +01:00
volaya
62302377db [processing] UI/UX improvements
Related to QEP #19

Some algorithm description provided by Frank Sokolic
2016-01-08 08:27:22 +01:00
rldhont
7754f17a0b [Processing] Manage default value for parameter
To finalize commit 3472ac80d8bdd030090ce81cb686f3cfcbd913cd update processing to well manage default value
2015-12-24 15:14:02 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
radosuav
f7a7a78cba [Processing] Improve code readability (follow up 36d1377) 2015-11-04 09:51:32 +01:00
radosuav
507aeb0507 [Processing] Allow "progress" to be specified when calling processing.runalg
This is mostly so that algorithms executed in Processing scripts can
display messages in the same way as if they were executed directly from
Processing toolbox.

Also fixes a small issue with busy cursor being reset too early when
algorithms were executed from Processing scripts.
2015-11-04 09:51:30 +01:00
Salvatore Larosa
d28325c3e6 [processing] fix log message when execution of algorithm from console failed 2015-09-12 13:27:31 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Juergen E. Fischer
d2282a77c7 processing: when using batch jobs remove GISBASE from environment when calling GRASS (fixes #13072) 2015-08-20 01:10:43 +02:00
volaya
83f3a5893c [processing] added check to ensure input layers are valid 2015-06-23 09:07:52 +02:00
volaya
6e4113f000 [processing] show error message when execution of algorithm from console failed 2015-06-23 09:07:49 +02:00
Salvatore Larosa
941107dfa4 [processing] add algorithm name to messagebar while running 2015-06-08 18:27:51 +02:00
volaya
87f2370da3 [processing] implement alternative display names for algorithms 2015-05-21 16:53:46 +02:00
Ricardo Garcia Silva
48e9be96d6 changed default value of the updateList argument 2015-04-11 18:59:27 +01: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
Juergen E. Fischer
e48a6f642f indentation update [ci skip] 2014-11-30 10:26:39 +01:00
volaya
d7f7b06ed8 Merge pull request #1614 from radosuav/small_fixes
Small fixes for Processing
2014-11-18 16:11:25 +01:00
radosuav
da91a9ee58 Revert "Fix translations in Processing.py"
This reverts commit 81089a1fa258feb86a52db9bba1fd0708b5f70a7.
2014-11-18 15:07:28 +01:00
Alexander Bruy
7a389f634e [processing] fix i18n support 2014-10-09 10:52:59 +03:00
radosuav
6f94e9dc95 [Processing] Inform listeners when all algorithms have been loaded. 2014-10-06 16:26:49 +02:00
radosuav
81089a1fa2 Fix translations in Processing.py 2014-10-06 16:21:38 +02:00
Alexander Bruy
bd13693ae3 [processing] make bunch of strings translatable (sorry translators) 2014-10-04 11:36:39 +03:00
Alexander Bruy
f935316882 [processing] add full i18n support (still needs some work to mark all
strings as translatable)
2014-10-04 11:36:38 +03:00