562 Commits

Author SHA1 Message Date
Salvatore Larosa
36919937b3 close the qgsexpression_texts.cpp file generated by resources/process_function_template.py 2015-09-29 17:01:11 +02:00
Juergen E. Fischer
3c324c9985 fix lpad/rpad context help (followup b46cbbe) 2015-09-27 01:52:20 +02:00
Juergen E. Fischer
b46cbbe425 fix mixup between lpad/rpad help (fixes #13433) 2015-09-26 21:32:27 +02:00
Nyall Dawson
a4d980d055 Port from expressions+ plugin: color_part, set_color_part, day_of_week 2015-09-21 19:57:58 +10:00
DelazJ
f748c127ab enforces consistency 2015-09-20 23:31:35 +02:00
Juergen E. Fischer
82b34afe03 move remaining function_help to json and update it's translation handling 2015-09-20 18:35:27 +02:00
Matthias Kuhn
41a330f271 More expression help 2015-09-20 14:18:25 +02:00
Matthias Kuhn
2a6cff403b More examples for the expression function help 2015-09-20 13:59:54 +02:00
Matthias Kuhn
b2c404d17c Improve expression help 2015-09-20 13:51:10 +02:00
Nyall Dawson
55027e545f Clean up and extend expression geometry functions:
- New expression functions for area(geom), perimeter(geom),
point_n(geom), start_point(geom), end_point(geom), make_point(x,y)
- Add new variant to length() function which takes a geometry object,
allows for length(geom) evaluation.
- Rename x_at, y_at to $x_at, $y_at (alias old names) to reflect that
these only work on current feature geometry
- Add x(geom), y(geom) functions which return x and y coordinate
for point geometries or centroid x/y for non-point geometries
(fix #11008)
2015-09-18 09:09:09 +10:00
Sandro Santilli
55dbc041a8 [FEATURE] Add num_points(geometry) support in expression evaluator
Includes tests and help text.
2015-09-17 14:23:19 +02:00
Matthias Kuhn
25af142456 Add expression function help for $length 2015-09-17 11:08:29 +02:00
Juergen E. Fischer
e2816256f6 translation fix 2015-09-13 20:24:42 +02:00
Nyall Dawson
709c14391b Change expression help from free form html files to structured json
A new script then parses these json help files into the html help
contents, in a standardised manner. Previously, the function help
was a bunch of different formats and structures.

Now, a custom stylesheet can be applied (and later tweaked!) to
format these help. Eg, this commit colors variables and function
names in the syntax section for greater readability.
2015-09-02 14:22:50 +10:00
Nathan Woodrow
440fcc3f4c Night Mapping updates from Mathieu 2015-08-30 17:08:51 +10:00
Nathan Woodrow
61e5286e39 Add variable support to themes
- Variables loaded from variables.qss file
- @varname: value e.g @mycolor: red
- Copy base themes to users home
2015-08-30 08:38:42 +10:00
Nathan Woodrow
37fc2444d4 Night Mapping theme update 2015-08-30 08:34:10 +10:00
Nathan Woodrow
da3f7beeb0 Add UI theme support.
- Add dark theme (Night Mapping)
- Themes loaded from resources\themes and ~\.qgis2\themes
- Themes need folder + style.qss
2015-08-28 21:29:06 +10:00
Nyall Dawson
7871d6c5fc Remove a bunch of layer variables, replace with new layer_property
function

layer_property takes a layer name/id and a property (eg 'crs')
and returns the matching value. This approach is more flexible than
having all these values as variables, since it allows retrieval
of properties of a layer from contexts which aren't layer-aware
(eg a composer label showing the metadata of a layer).
2015-08-24 12:00:11 +10:00
Nyall Dawson
334ea504db Add help for project_color function 2015-08-22 19:01:42 +10:00
Nyall Dawson
2a951ec945 Add some missing expression group help 2015-08-22 19:01:42 +10:00
Nyall Dawson
6487f1716c Add help text for variables 2015-08-22 19:01:42 +10:00
Michael Kirk
446410ee78 update CRS docs: find button replaced by filter 2015-08-12 17:33:26 -07:00
Michael Kirk
424efcce8a context help for projection selector 2015-08-12 17:33:26 -07:00
Michael Kirk
ce8cef8b80 tab is called "identify layers" 2015-08-12 17:33:25 -07:00
Michael Kirk
7aa5622548 reformatting project properties help, no copy changes 2015-08-12 16:47:26 -07:00
Matthias Kuhn
de2b6a9688 Add function help for IF expression
Fix #13015
2015-07-13 08:45:23 +02:00
Nyall Dawson
7b18f67662 Include NULL in expression builder available functions list 2015-07-08 16:14:15 +10:00
Nyall Dawson
feb3bee858 Add a bunch of optimised fuzzy string matching algorithms.
A new QgsStringUtils class has been added containing some
common fuzzy matching algorithms, including Levenshtein edit
distance and Soundex. These can be used for finding "similar"
strings in a table.

Expression functions for these algorithms have also been
added to a new "Fuzzy Matching" group.
2015-06-27 11:51:56 +10:00
Tomáš Pospíšek
0af69ed9fb Add pertinent example for 'LIKE' operator
The usage examples for the 'LIKE' operator are not really pertinent. The proposed change adds an example that actually illustrates the usual usage of the 'LIKE' operator.
2015-06-03 12:51:04 +02:00
Nyall Dawson
bae9cea4f9 Add missing files from 96db1bd 2015-05-03 21:09:47 +10:00
Nyall Dawson
96db1bdb7e Allow expression functions to include 0 length parameter lists
This change allows for some cleanups to the built in expression
functions, by making it possible to differentiate variables
(eg $feature) from functions which don't require parameters
(eg uuid(), now()... ). Also adds aliases for uuid(), now(), and
pi().
2015-05-03 20:57:37 +10:00
Nyall Dawson
bd9e02be95 Add alias support for expression functions
Standardise naming of all internal functions to lowercase with
underscore convention. Add aliases for old names to avoid
breakage.
2015-05-03 20:57:36 +10:00
Juergen E. Fischer
812d5b1183 remove unused button in categorized renderer ui 2015-04-17 15:59:39 +02:00
Chris Crook
99e6a6253f Removing processing of extraneous blank fields and enlarged arrays 2015-03-22 08:52:50 +13:00
Juergen E. Fischer
bdcbeb19ad fix format_date example (fixes #12016) 2015-01-20 21:17:18 +01:00
Juergen E. Fischer
8d20272748 function help fixes 2015-01-09 19:49:01 +01:00
Juergen E. Fischer
b52fff303f avoid duplicate function help entry 2015-01-09 19:33:22 +01:00
rldhont
a0ffad2532 [FEATURE] Add get and transform geometry in Expression
In version 2.6, new keywords has been added to Expression :
* $currentfeature - returns the current feature
* $atlasfeature - returns the atlas feature
* getFeature - gets a matching feature from a layer

But I think, Expression lacks a few keywords :
* geometry - returns the feature's geometry
* transform -  returns the transformed geometry

These new keywords can be used with getFeature for some geometry tests like
 intersects, crosses, contains, etc

Tests has been added to geometry and transform in Expression
2015-01-02 12:02:55 +01:00
Juergen E. Fischer
98c0771b1a update scripts/fix_allows_to.sh and run it 2014-11-30 01:42:27 +01:00
Werner Macho
c7c107eb9d Merge pull request #1657 from DelazJ/MeasureTools
Update MeasureTools context help
2014-10-28 09:17:48 +01:00
Werner Macho
cad3d2b930 Merge pull request #1658 from DelazJ/AttributeTableContextHelp
Attribute table context help
2014-10-27 20:14:18 +01:00
Werner Macho
362d69cc12 [TRANSUP] more translations and string fix
Signed-off-by: Werner Macho <werner.macho@gmail.com>
2014-10-27 13:39:28 +01:00
DelazJ
eef8032122 Adding text about field calculator bar
Adds text about field calculator bar and other stuffs
2014-10-25 20:23:05 +02:00
DelazJ
3ff1985e90 Update QgsMeasureDialog 2014-10-25 11:23:16 +02:00
DelazJ
28a8222a7a Update Measure Tools description
Adding text about angle tools and how tools behave.
2014-10-25 11:22:12 +02:00
DelazJ
1c2f39be0d Add text about measuring angle
Since QGIS 2.0, it is possible to also measure angles but this is not mentioned in the context help.
2014-10-24 19:11:58 +02:00
DelazJ
b6e98f1126 Update QgsAttributeTableDialog 2014-10-24 04:11:38 +02:00
Nathan Woodrow
f8a838d5c5 Fix #11308 - Add missing IN operator 2014-10-04 22:05:07 +10:00
Nathan Woodrow
e4f68b1ac0 Merge pull request #1571 from slarosa/context-help
[context-help] set heading to 3 for heatmap plugin and python console help file
2014-09-14 14:37:22 +10:00