106 Commits

Author SHA1 Message Date
Nyall Dawson
f979c8e80a Make some protected members private 2018-09-08 20:57:28 +10:00
Matthias Kuhn
32ee71634f
Merge pull request #7711 from m-kuhn/mapToolSnapToGrid
Snap to grid for maptools [FEATURE]
2018-09-08 08:20:49 +02:00
Matthias Kuhn
d57c1842b7 Rename snapToGridEnabled to snapToLayerGridEnabled 2018-09-07 16:21:37 +02:00
Nyall Dawson
da3907876e Sipify 2018-09-07 09:36:54 +10:00
Juergen E. Fischer
a823046b5f followup spelling fixes 2018-09-07 00:33:13 +02:00
Nyall Dawson
f83b3ecc84 Show helper text in expression builder for CRS values in modeler 2018-09-06 18:11:24 +10:00
Nyall Dawson
7b85fd9961 Allow setting expression format help string for QgsExpressionLineEdit 2018-09-06 18:11:24 +10:00
Nyall Dawson
06d37fced4 [processing] Port CRS widget wrapper to c++ classes 2018-09-06 18:11:24 +10:00
Harrissou Sant-anna
f5bf15bed9 Update some documentation formatting 2018-09-06 17:10:17 +10:00
Nyall Dawson
30059e63d6 Fix freaking American (WRONG!!1!111!!) spelling conventions 2018-09-06 06:51:17 +10:00
Nyall Dawson
ca1c655ec6 Minor API improvements to QgsStyleManagerDialog 2018-09-06 06:51:17 +10:00
Matthias Kuhn
17279a42e2 Only include qgsvectorlayer.h where required 2018-09-05 08:54:11 +02:00
Matthias Kuhn
ded7978fab
Merge pull request #7790 from m-kuhn/featureid
Move QgsFeatureId to own header
2018-09-04 21:31:00 +02:00
Matthias Kuhn
1bfc2785c9 Remove unrequired qgsfeature.h includes 2018-09-04 14:55:21 +02:00
Nyall Dawson
d563034583 Address review comments 2018-09-04 19:06:07 +10:00
Nyall Dawson
e76b761dd0 Correctly associate layer with dynamic properties 2018-09-04 19:06:07 +10:00
Nyall Dawson
70c1680754 Automatically handle adding data defined button for dynamic properties
Also exposes this capability to modeler - so that model algorithms
can use data defined parameters within their child algorithms.

TODO:
- tests
- setting the associated vector layer
2018-09-04 19:06:07 +10:00
Nyall Dawson
a717b85e2e [FEATURE][processing] New modeler parameter widget
A new widget which handles parameter values for child algorithms
within a model. Instead of the previous approach of requiring
individual widget wrappers to handle creation of a suitable
model widget, we do all this automatically for them.

This widget uses a stacked widget with a toolbutton to select
the parameter's source, instead of the previous combo box approach
(which didn't scale well for large models). I.e. users select
first whether the value is taken from a static value, a
model input, or an output from a different child algorithm. The
widget then changes appearance and behavior based on this
choice.

Additionally, a new option is present for all parameters
of using a "precalculated expression". This expression is
evaluated once before the child algorithm is executed
and used during the execution of that algorithm.
2018-09-04 19:06:07 +10:00
Nyall Dawson
644ef6a752 [processing] Initial work on porting base GUI classes to c++
- Add abstract base class for Processing widget wrappers to c++
- Add wrapper factory interface to c++
- Make QgsProcessingGuiRegistry also register widget wrapper
factories, and be responsible for creation of new c++
processing widget wrapper instances
- Start on private c++ implementation of boolean widget wrapper,
including unit tests
2018-09-04 19:06:07 +10:00
Nyall Dawson
8f1fb1e648 Fix messageboxes are shown with wait mouse cursor in style manager import dialog 2018-08-31 19:49:09 +10:00
Matthias Kuhn
212cd20791 Transfer ownership of item 2018-08-26 14:10:46 +02:00
Matthias Kuhn
6ae03afdfa Add license headers 2018-08-26 14:10:46 +02:00
Matthias Kuhn
9ad3515a0b Better dox 2018-08-26 14:10:46 +02:00
Matthias Kuhn
1e81e03a18 Add QgsSnapToGridCanvasItem 2018-08-26 14:10:46 +02:00
Matthias Kuhn
aae6559130 Allow disabling snapping on maptools 2018-08-26 14:10:46 +02:00
Matthias Kuhn
9e387e48fc Make map tool snap to grid crs aware 2018-08-26 14:10:46 +02:00
Matthias Kuhn
8fc08d8c13 Snap nodes in digitizing map tools to grid 2018-08-26 14:10:46 +02:00
Nyall Dawson
c7845ddbb4 Deprecate unused QgsAbstractDataSourceWidget progress report signal
QgsProxyProgressTask should be used instead for progress reporting
2018-08-20 15:01:52 +10:00
Alessandro Pasotti
6a4aee82db Code layout 2018-07-31 13:06:48 +02:00
Alessandro Pasotti
222fe2362e Add properties to QgsHighlight for easier animations 2018-07-31 10:23:27 +02:00
Nyall Dawson
1a7ade7575 [FEATURE] Better UI for embedding SVG files
Adds a common widget for SVG sources, with a tool button with
some handy options:
- select file (old behaviour), pick a file from disk
- embed file (pick a file from disk, is embedded into project/symbol)
- extract embedded file (for embedded files, allows you to save these
back to a disk based svg file)
- from url (opens a dialog prompting for a url, exposing
the previously hidden functionality that svgs can be retrieved
from a remote url (eg github))

Sponsored by SMEC/SJ
2018-07-24 03:54:44 +10:00
Martin Dobias
6614d89643 Add missing interface method for Data Source Manager toolbar 2018-07-23 15:19:57 +02:00
Nyall Dawson
9887508d1e Fix crash when editing graduated symbol in style dock
Fixes #18909
2018-07-20 16:54:53 +10:00
nirvn
68290a2ddc [maptips] fix font not respecting user settings
(this is important for non-Latin users out there)
2018-07-19 14:22:40 +07:00
nirvn
3e6db63ca4 [maptips] fix additional wrongly sized widget scenarios 2018-07-19 08:45:39 +07:00
Nyall Dawson
f57c548ec3 Fix documentation test failures 2018-07-16 11:38:13 +10:00
Nyall Dawson
7f9b0f8b01 Fix version added string 2018-07-16 11:38:13 +10:00
Nyall Dawson
68aae3a0e6 Replace processing modeler toolbox with common widget/model 2018-07-16 11:38:13 +10:00
Nyall Dawson
45d856e903 Dox 2018-07-16 11:38:13 +10:00
Nyall Dawson
8caecbb85c Fix some dox 2018-07-16 11:38:13 +10:00
Nyall Dawson
101c98fd17 Move toolbox tree view to c++ class 2018-07-16 11:38:13 +10:00
Nyall Dawson
810cb9c0f7 Start replacing python model 2018-07-16 11:38:13 +10:00
Nyall Dawson
e304539dd8 Fix sorting of recently used algorithms 2018-07-16 11:38:13 +10:00
Nyall Dawson
ba410624db Faster model 2018-07-16 11:38:13 +10:00
Nyall Dawson
670f408807 Work on recent item - todo sort by use, test filter, update on change 2018-07-16 11:38:13 +10:00
Nyall Dawson
3e9648fcda Safer node handling, allow specification of recent algorithm log 2018-07-16 11:38:13 +10:00
Nyall Dawson
69ab3c9e0c Start on history item 2018-07-16 11:38:13 +10:00
Nyall Dawson
6275960df8 Start on filter string handling 2018-07-16 11:38:13 +10:00
Nyall Dawson
dc737bff98 Better responsive to provider removal 2018-07-16 11:38:13 +10:00
Nyall Dawson
dab4f42398 Filter model respects algorithm flags 2018-07-16 11:38:13 +10:00