39158 Commits

Author SHA1 Message Date
Nyall Dawson
77ab933788 Move alg character definitions to __init__ 2017-06-06 07:41:19 +10:00
Nyall Dawson
134c04b8bb Move getParametersPanel out of algorithm class
It's a gui related method, so shouldn't be in core class
2017-06-06 07:41:19 +10:00
Nyall Dawson
168f16276c Remove help related methods from GeoAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
2d1579d28a Port algorithm help to QgsProcessingAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
1e788556f0 Port getCustomParametersDialog to QgsProcessingAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
fb811766f8 Add framework for algorithm outputs
This somewhat changes the meaning of outputs from processing 2.x.
In 2.x processing outputs were used both as a method of specifying
inputs to algorithms (file paths to destination layers created
by the algorithm) AND pure outputs (such as statistics calculated
by the algorithm).

This is now split. The old input-type-outputs (destination layers)
are now input parameters (since the parameter value IS an input to the
algorithm). To differentiate them from parameters indicating pure
input layers a new "isDestination()" method was added to
QgsProcessingParameterDefinition.

Output definitions are now purely indications of values CREATED
by the algorithms. Suitable candidates are the existing calculated
stats and actual file path/URI of any layers created by the algorithm.
Moving forward we should ensure all algorithms output as much
useful information as possible - e.g. number of features processed,
number of skipped features, count null geometries encountered, etc...
2017-06-06 07:41:19 +10:00
Nyall Dawson
fac8ca4d4f Move execution check to QgsProcessingAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
03e40f7497 [processing] Remove all remaining algorithm copies
Algorithms are no longer copied - just a single const instance
of each algorithm is used
2017-06-06 07:41:19 +10:00
Nyall Dawson
8b4bf88b35 Add native c++ algorithm provider 2017-06-06 07:41:19 +10:00
Nyall Dawson
b64a71df61 Port algorithm countVisibleParameters to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
2da85f8771 Temporarily deactivate all processing providers/algorithms
While the processing API is in such a state of flux it's
become unmaintainable to port these algorithms change-by-change.
Instead, disable them all until the API is fixed, and then we
can port them algorithm by algorithm and reactivate each
test in turn.
2017-06-06 07:41:19 +10:00
Nyall Dawson
632a2be86a Disable QgsTaskManager::waitForFinished test by default
The test intermittently fails on Travis builds, likely due
to the platform's inconsistent availability to multiple threads.
2017-06-06 07:30:41 +10:00
Denis Rouzaud
176b7cafaf sipify core raster part 3 2017-06-05 22:59:25 +02:00
Denis Rouzaud
dff3011a85 fix external lib path 2017-06-05 22:19:20 +02:00
Denis Rouzaud
fa5bd491fc run code_layout build from top CMakeLists
instead of adding an extra CMakeLists in .ci/travis/code_layout to build API doc, astyle and run tests (indentation, spelling, sip, doc coverage), the top CMakeLists has been adapted to allow not building core libraries and possibly just the static code layout
* astyle has been moved from /src/astyle to /lib/astyle (I would propose to move all external libraries, and possibly add git submodules)
2017-06-05 22:19:20 +02:00
Denis Rouzaud
c8555c3efb fix test import 2017-06-05 22:19:20 +02:00
Denis Rouzaud
281daee0ba run Doxygen and doc coverage test on static Travis config 2017-06-05 22:19:20 +02:00
Juergen E. Fischer
05d9f92d99 fix oracle provider build 2017-06-05 11:33:18 +02:00
Nyall Dawson
63083abefe Merge pull request #4679 from nyalldawson/selected_feature_source
QgsVectorLayerSelectedFeatureSource
2017-06-05 17:22:27 +10:00
Nyall Dawson
09e03650f7 Merge pull request #4680 from nyalldawson/unique_values
Move uniqueValues to QgsFeatureSource
2017-06-05 17:22:17 +10:00
Nyall Dawson
3388857526 Move uniqueValues to QgsFeatureSource
Also change signature of QgsVectorLayer/QgsVectorDataProvider
uniqueValues method to match (and improve API)
2017-06-05 16:59:08 +10:00
Alexander Bruy
27850fb00e Merge pull request #4592 from alexbruy/messagebars-for-db
Use QgsMessageBar instead of QMessageBoxes to show result of testing connection
2017-06-05 08:22:08 +03:00
Nyall Dawson
6fed80b1e9 Add a couple more tests for QgsVectorLayerSelectedFeatureSource 2017-06-05 13:36:19 +10:00
Nyall Dawson
405c55f155 Create QgsVectorLayerSelectedFeatureSource
...which is a QgsFeatureSource subclass which only considers
selected features from a QgsVectorLayer
2017-06-05 13:28:37 +10:00
Nyall Dawson
f69d1c2065 Convert isolated '...' strings to '…'
Ideally we'd replace ALL ... instances to …, but need to
first work out how to avoid the translation burden of this
change
2017-06-05 09:56:58 +10:00
Nyall Dawson
65b0ba81ae Fix inconsistent capitalization 2017-06-05 09:52:28 +10:00
Nyall Dawson
e5b8b32e04 Make paletted raster widget behave the same as categorized widget
when changing current band

Now the widget asks users if they want to delete existing categories
when they switch a band, just like how the categorized renderer
widget asks when the categorized field is changed.
2017-06-05 09:50:44 +10:00
Nyall Dawson
c040469ca0 Make paletted raster widget behave more like vector categorized
renderer widget

Since they are basically counterparts to each other
2017-06-05 09:50:44 +10:00
Juergen E. Fischer
e977f1f0d2 remove unused provider mManagerMode member 2017-06-04 23:50:01 +02:00
Nyall Dawson
d0ebcd90a5 Fix doxygen test 2017-06-05 07:26:09 +10:00
Juergen E. Fischer
1bed323b0e oracle provider: fix build 2017-06-04 09:55:48 +02:00
Nyall Dawson
4318bfb8ad Merge pull request #4670 from nyalldawson/widget_action_header
New classes QgsMenuHeader, QgsMenuHeaderWidgetAction
2017-06-04 16:46:41 +10:00
Matthias Kuhn
0f2a49d9b5 Remove Point3D
... in favor of QgsPoint
Reference https://github.com/qgis/qgis3.0_api/issues/71
2017-06-03 08:20:30 +02:00
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