549 Commits

Author SHA1 Message Date
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
Marco Hugentobler
dab5ff95ff Add function help for getFeature 2014-09-02 16:21:45 +02:00
Salvatore Larosa
8b989424e0 [context-help] set heading to 3 for heatmap plugin and python console help file 2014-09-01 21:39:18 +02:00
Werner Macho
fe4e552e96 [TRANSUP] update sv, some context help fixes
Signed-off-by: Werner Macho <werner.macho@gmail.com>
2014-08-08 22:52:40 +02:00
Marco Hugentobler
0241d4faf3 Apply pull request #1502 provided by bstroebl: Add ntv2 entry for Thuringia 2014-07-30 11:36:05 +02:00
Nyall Dawson
9abeeb64e6 [FEATURE] New $atlasfeature expression function for returning the current atlas feature. Also clean up the expression groups and move some unrelated functions out of the 'Record' group. 2014-07-10 15:52:48 +10:00
Nyall Dawson
1e39db6a0f [FEATURE] New expression functions for $currentfeature (returns current feature) and 'attribute' (returns value stored in specified field within a feature) 2014-07-10 14:10:44 +10:00
Juergen E. Fischer
1691014069 Remove sqlanywhere plugin and provider (implements #10840) 2014-07-08 08:38:29 +02:00
Juergen E. Fischer
df19f65445 expressions: add help for $uuid (fixes #10094) 2014-06-22 04:23:39 +02:00
Juergen E. Fischer
8cd467bea2 generate context_help and function_help in the same order 2014-06-20 14:22:42 +02:00
Tim Sutton
18af0d811a Fix for Vietnamese UTM 48N projection parameters as reported by Quách Đồng Thắng 2014-06-20 16:57:47 +08:00
Marco Hugentobler
614c1b2199 Change / add ntv2 entries for Portugal 2014-06-20 09:28:39 +02:00
cdavila
a70c865b62 Remove duplicated line 2014-06-17 09:01:16 +02:00
cdavila
8c7b6717c9 Fix wrong reference to geometries in sintax
Geometry a was repeated and geometry was missing
2014-06-17 08:44:56 +02:00