Blottiere Paul
4b7012045c
Update sip binding
2018-05-17 10:34:20 +01:00
Blottiere Paul
eca1aef1b5
Fixes regressions in relation reference widget
2018-05-17 10:34:05 +01:00
Blottiere Paul
352dbcb836
Fixes segmentation fault when dividing by zero
2018-05-17 10:32:56 +01:00
Matthias Kuhn
d5cec14699
Merge pull request #7001 from m-kuhn/userprofile-database-name
...
Use connection name to avoid closing default connection
2018-05-17 08:31:32 +02:00
Denis Rouzaud
87a60d437f
Merge pull request #6733 from 3nids/setenumvalue
...
Save enum values as string in settings
2018-05-16 17:54:40 -08:00
Denis Rouzaud
1a879b18a1
Merge pull request #7002 from 3nids/sip_metoobject
...
[sipify] insert missing QMetaObject for gadget classes
2018-05-16 17:54:06 -08:00
Martin Dobias
9a79fc78aa
Merge pull request #6983 from PeterPetrik/qgsquick_2_scalebar_messagelog
...
[feature] Add ScaleBar and MessageLog components to QgsQuick library.
2018-05-16 20:37:40 -04:00
Nyall Dawson
fe93993ab8
Fix typo
2018-05-17 08:50:39 +10:00
Nyall Dawson
0d21bd0429
[processing] Include description in algorithmHelp output
2018-05-17 08:50:39 +10:00
Nyall Dawson
0e831da8a6
[processing] If algorithm has no short help, show description in algorithm dialog instead
2018-05-17 08:50:39 +10:00
Nyall Dawson
b98f8f1d37
[processing] Also filter using algorithm short descriptions
2018-05-17 08:50:39 +10:00
Nyall Dawson
5edcc64f72
[processing] Allow algorithms to return a translated short description
...
This is used in the algorithm's tooltip in the toolbox, and is intended
for single sentence description of the algorithm, e.g.
"Converts 2D features to 3D by sampling a DEM raster."
Convert grass algorithms to use short description for the
descriptive parts of their names, to cleanup the toolbox
and make it more uniform.
2018-05-17 08:50:39 +10:00
Nyall Dawson
698fad65a2
Capitalization, string fixes
...
Turns out correct title case always uses uppercase for the
final word, even if the word wouldn't normally be uppercased
2018-05-17 06:20:14 +10:00
Alessandro Pasotti
0e57b887d6
Fix crash when style panel opened from style change btn
2018-05-16 21:21:23 +02:00
Denis Rouzaud
2abcfa23b8
do not add static QMetaObject to QgsDefaultValue
...
it has no Q_ENUM so no need for now
I do not understand while it doesn't compile though
2018-05-16 14:25:01 -04:00
Alessandro Pasotti
40499ee392
Fix crash on categorized/graduated symbol styling dock
2018-05-16 19:09:18 +02:00
Denis Rouzaud
95ecea897a
move additions from top __init__ to core.__init__
2018-05-16 11:29:28 -04:00
Alexander Bruy
e56ff6838d
Merge pull request #7004 from alexbruy/select-atribute
...
[processing][needs-docs] add selection methods to Select by attribute algorithm
2018-05-16 16:48:03 +03:00
Alexander Bruy
15a5d91770
[processing] improve polar plot algorithm help ( fix #16679 )
2018-05-16 15:25:55 +03:00
Denis Rouzaud
5790bbcad6
fix QgsAbstractGeometry Q_GADGET position
2018-05-16 07:54:17 -04:00
Alexander Bruy
1783394b6b
[processing] don't use function annotations as this breaks build on
...
systems with Python < 3.3 (fix #18961 )
2018-05-16 14:43:32 +03:00
Alessandro Pasotti
c1acc29929
Merge pull request #7006 from DelazJ/patch-1
...
More typo fix
2018-05-16 12:01:58 +02:00
Harrissou Sant-anna
9ccc76b69a
More typo fix
2018-05-16 11:53:39 +02:00
Alessandro Pasotti
ee7240f70d
Fix typo
2018-05-16 11:03:18 +02:00
Alexander Bruy
580509fd5e
[processing][needs-docs] add selection methods to Select by attribute
...
algorithm (fix #18682 )
2018-05-16 11:20:09 +03:00
Alessandro Pasotti
a44eeae441
Merge pull request #6982 from elpaso/currentformfeature-expressions-4
...
[feature][need-docs] Current feature/current value form context expressions
2018-05-16 09:48:06 +02:00
Matthias Kuhn
c27ce39205
Merge pull request #6980 from m-kuhn/bwta2017
...
Add BWTA2017.gsb to srs.db
2018-05-16 08:39:01 +02:00
Alessandro Pasotti
b2fb029c26
Added help text for @current_feature
2018-05-16 08:20:10 +02:00
Nyall Dawson
623574aff8
Fix build warnings
2018-05-16 14:42:02 +10:00
Nyall Dawson
3949802d58
Improved title case conversion, add tests
2018-05-16 14:08:43 +10:00
Nyall Dawson
825a697ecf
Add missing ellipsis to db manager action
2018-05-16 14:08:43 +10:00
Nyall Dawson
408da45877
[needs-docs] Place core plugin actions into top level menus
...
when plugin only has a single action
Affected actions:
- Database -> DB Manager -> DB Manager
- Coordinate Capture -> Coordinate Capture
- Vector -> Geometry Tools -> Geometry Checker
- Raster -> Georeferencer -> Georeferencer
- Vector -> Topology Checker -> Topology Checker
These are now just top level actions, e.g.
- Database -> DB Manager
2018-05-16 14:08:43 +10:00
Nyall Dawson
87c3a86874
Allow plugins to add actions to top level of raster/vector/db/web menus
...
Provides a way to avoid plugins creating submenus with a single
action - e.g. "DB Manager" -> "DB Manager". It's a violation of
HIG to have a submenu with a single action contained in it.
2018-05-16 14:08:43 +10:00
Nyall Dawson
d0c14ef0c7
[dbmanager] Fix bad import in vlayers plugin
2018-05-16 14:08:43 +10:00
Nyall Dawson
79fc5b9deb
String capitalization, ellipsis
2018-05-16 14:08:43 +10:00
Nyall Dawson
d711915d13
Properly title case "Open From" and "Save To"
...
Apparently both the first and last words are ALWAYS capatilised
in title case, even if they normally wouldn't be.
2018-05-16 14:08:43 +10:00
Nyall Dawson
861153dff4
[processing] Title case for algorithm dialog titles
2018-05-16 14:08:43 +10:00
Nyall Dawson
d864cd6725
[processing] Correctly capitalize menu entry actions, add ellipsis
2018-05-16 14:08:43 +10:00
Nyall Dawson
6c02d0534a
Super-basic title-case conversion method
...
No grammatical parsing, so only useful for very simple cases
2018-05-16 14:08:43 +10:00
Denis Rouzaud
e8cf8c2f1c
[sipify] insert missing QMetaObject for gadget classes
2018-05-15 17:38:16 -04:00
Denis Rouzaud
ff35e694bb
fix (again) install of qgis.core.additions
2018-05-15 17:26:41 -04:00
Nyall Dawson
a0ff2af3a9
[processing] Fix some crashes on invalid parameters
2018-05-16 04:35:17 +10:00
Nyall Dawson
74b0e910db
[processing] Fix some exceptions
2018-05-16 04:35:17 +10:00
Nyall Dawson
c9e5a36558
[processing] Avoid generic exceptions
...
Makes the full Python exception available when running algorithm,
which provides much more useful error messages
2018-05-16 04:35:17 +10:00
Nyall Dawson
0f78277a59
Add SIP_THROW annotation
...
SIP uses the deprecated throw(...) annotation in order to determine
which exceptions may be thrown by c++ code. Without these, only
a generic unknown exception is throw, which is of limited value
to Python code (losing any valuable message and exception type).
So we add a new SIP_THROW macro, which can be added to method's
declaration:
bool doSomething() SIP_THROW( QgsCsException );
This is ignored outside of sipify, so we don't actually use
the deprecated c++ throw annotations, but sipify picks it up
and adds the appropriate change to the sip definition for
the method:
bool doSomething() throw( QgsCsException );
This means that calling the method from Python will raise
the QgsCsException instead of a generic exception.
2018-05-16 04:35:17 +10:00
Alessandro Pasotti
4033cc2ebd
Set form feature in current_feature variable instead of
...
... setting the feature member variable
2018-05-15 19:17:32 +02:00
Alessandro Pasotti
55a1984b28
Initialize mFieldIdx to -1
2018-05-15 18:36:57 +02:00
Alessandro Pasotti
673fac0c88
Added methods to search expression nodes and drop RegExp
...
- nodes() return the list of all nodes
- findNodes<T> returns a list of the nodes matching the class
Also drops the regexp for finding form attrs in the value-relation
expressions.
Other minor fixes as suggested in the PR review.
2018-05-15 18:32:40 +02:00
Matthias Kuhn
d10c0232fe
Use connection name to avoid closing default connection
...
No observable bad effects identified but the following warning looks suspicious:
Warning: QSqlDatabasePrivate::addDatabase: duplicate connection name qt_sql_default_connection, old connection removed.
2018-05-15 16:39:26 +02:00
Denis Rouzaud
cd34da8038
also install additions py files in their directory ( #7000 )
2018-05-15 05:02:08 -08:00