50 Commits

Author SHA1 Message Date
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
91f3005f80 [FEATURE] Expression variables relating to QGIS environment
New variables for:
- @qgis_os_name: eg 'linux','windows' or 'osx'
- @qgis_platform: eg 'desktop' or 'server'
- @user_account_name: current user's operating system account name
- @user_full_name: current user's name from os account (if available)

Sponsored by Andreas Neumann
2016-01-15 18:14:23 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
rldhont
a32587bcd1 [FEATURE][QGIS Server] Add short name to layers, groups and project
A number of elements have both a <Name> and a <Title>. The Name is a text string used for machine-to-machine
communication while the Title is for the benefit of humans. For example, a dataset might have the descriptive Title
“Maximum Atmospheric Temperature” and be requested using the abbreviated Name “ATMAX”.

User can already set title for layers, groups and project. OWS name is based on the name used in layer tree. This name is more a label for humans than a name for machine-to-machine communication.

To add the capability to users to define Name as a text string for machine-to-machine communication, this pull-request adds:
* short name line edits to layers properties
* WMS data dialog to layer tree group (short name, title, abstract)
* short name line edits to project properties
* add a regexp validator "^[A-Za-z][A-Za-z0-9\._-]*" to short name line edit accessible through a static method
* add a TreeName element in the fullProjectSettings

If a short name has been set for layers, groups and project it is used by QGIS Sever as the layer name.
2015-12-23 10:03:04 +01:00
Matthias Kuhn
313c34ce22 [py3] Updates to sip files 2015-11-16 07:42:48 +01:00
Nyall Dawson
719ff408a5 Add some missing SIP bindings, comment some classes as not available
in Python
2015-11-10 17:08:27 +11:00
Nathan Woodrow
4cc6650d55 Forgot sip for composerTemplatePaths 2015-11-07 10:14:53 +10:00
Nyall Dawson
70bff3f6aa Finish flipping a lot of methods to take const references for
non-trivial types
2015-10-26 22:46:14 +11:00
Matthias Kuhn
cd0eb05ded [py3] Some compatibility fixes for python 3 2015-10-24 13:47:32 +02:00
Juergen E. Fischer
3dcabfb57c fix windows build (followup c49b5b7) 2015-10-07 11:36:15 +02:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
7408151916 remove whatsnew from api and install (followup 95c377a) 2015-10-04 09:51:00 +02:00
Larry Shaffer
e65aa99ae7 [FEATURE] Authentication configuration system with master password
- Main C++ core and gui classes and desktop app integration
- Support for authentication method plugins
- Does not contain any integration with service connections
2015-09-21 08:51:18 -06:00
Nathan Woodrow
46139d6591 Fix icon loading for themes 2015-08-31 21:16:19 +10:00
Matthias Kuhn
0099f2293c Remove const from return-by-value functions 2015-08-28 16:52:11 +02: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
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
Salvatore Larosa
9952fc8aa6 Add Developers Map in About dialog 2014-12-21 21:56:41 +01:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Juergen E. Fischer
d4e369414b update sip bindings 2014-01-26 18:36:29 +01:00
Marco Bernasocchi
17f565a857 sip generation issue fix #7752 for android 2013-09-09 17:15:37 -06:00
Larry Shaffer
8d582ade2e [FEATURE] Configure custom environment variables
- Fix for #3097
- Could help plugins, like SEXTANTE, work better across platforms via abstracted coding based upon env vars
- In app prefs, configure variables and view current set, with tooltips to show pre-startup value (if any)
2013-01-03 03:33:43 -07:00
Alexander Bruy
5e45a22d06 remove deprecated methods from API 2012-12-23 10:40:23 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Juergen E. Fischer
dc8ac451da [FEATURE] allow adding of sql queries with SelectAtId=false
- sync sip bindings of QGis, QgsApplication, QgsDataSourceURI and QgsPoint with
  C++
2012-08-03 00:02:19 +02:00
Tim Sutton
c58576e204 [FEATURE] implement ability to skip specific drivers (fixes #182) 2011-09-12 17:28:45 +02:00
Martin Dobias
90eaa87d85 [FEATURE] Allow running QGIS from build directory without installing 2011-07-25 19:23:29 +02:00
Martin Dobias
257ae38486 Added libraryPath() and libexecPath() to QgsApplication 2011-07-25 19:23:29 +02:00
jef
c83ce04880 cleanup: remove QgsApplication::msexportAppPath() and app/qgshelpviewer*
git-svn-id: http://svn.osgeo.org/qgis/trunk@15293 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-28 23:06:46 +00:00
jef
ce8e3d5f05 add 'deprecated' annotation to SIP bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@15209 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-19 13:24:24 +00:00
jef
132088f6d2 fix API QgsMapLayer::getLayerID() to id()), some warnings and use doxygen deprecation tag.
git-svn-id: http://svn.osgeo.org/qgis/trunk@15168 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-13 20:24:55 +00:00
esseffe
cdae0f6707 upgrading to SpatiaLite 2.4.0-RC4
git-svn-id: http://svn.osgeo.org/qgis/trunk@14763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-11-25 14:37:47 +00:00
wonder
19506e9cdd [FEATURE] Added --configpath option that overrides the default path (~/.qgis) for user configuration and forces QSettings to use this directory, too.\
This allows users to e.g. carry QGIS installation on a flash drive together with all plugins and settings.

Developed for Faunalia (http://www.faunalia.it) with funding from Regione Toscana - Sistema Informativo per la Gestione del Territorio e dell' Ambiente [RT-SIGTA].
For the project: "Sviluppo di prodotti software GIS open-source basati sui prodotti QuantumGIS e Postgis (CIG 037728516E)"


git-svn-id: http://svn.osgeo.org/qgis/trunk@13951 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-07-21 13:12:47 +00:00
wonder
962c8ddb4d Added python wrappers from QgsSymbolLayerV2Utils
git-svn-id: http://svn.osgeo.org/qgis/trunk@13353 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-23 15:20:24 +00:00
jef
e1d82b1a82 spatialite improvements:
- support geometry column name
- remove unnecessary id field
- fix windows build
- better identifier quoting and utf-8 support
- update python binding
- fix some translation strings



git-svn-id: http://svn.osgeo.org/qgis/trunk@13250 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-05 17:16:25 +00:00
mhugent
8ee2e3cea0 Make default svg path configurable for third party apps
git-svn-id: http://svn.osgeo.org/qgis/trunk@13217 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-01 08:06:19 +00:00
wonder
55c3c7bcc7 Updated version of QGIS when the new function were added to 1.4
git-svn-id: http://svn.osgeo.org/qgis/trunk@12140 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-16 11:53:50 +00:00
wonder
961742e243 Symbology-NG branch merged to trunk. This includes also work on labeling done during my GSoC'09.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-16 10:36:24 +00:00
jef
da8e3988f6 recurse svg directories
git-svn-id: http://svn.osgeo.org/qgis/trunk@11853 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-26 19:50:08 +00:00
mhugent
0408094792 Updated python bindings with some added functions
git-svn-id: http://svn.osgeo.org/qgis/trunk@11014 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-03 15:42:42 +00:00
timlinux
efc21daa54 Added a wrapper for ogr register all so that it cant be called twice (on suggestion of M. Loskot).
Fixes issues where drivers appear to be registered more than once.


git-svn-id: http://svn.osgeo.org/qgis/trunk@9195 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-27 21:56:29 +00:00
timlinux
fb674886b7 renamed misnamed QgsMapRender (verb) to QgsMapRenderer (noun) as part of cleanups for 1.0.0 release. Updated all related dependencies. Also removed some spurious debug messages
git-svn-id: http://svn.osgeo.org/qgis/trunk@8997 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-05 21:11:58 +00:00
timlinux
6febbcaa36 Final fixes to default theme overlays and support for theme selection in grass plugin. I have added setThemeName and themeName accessor and mutator to qgsapplication which return the theme name only sans path. Various other changes were made to support properly masking themes with missing icons so that the default icon is used instead.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8941 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 18:08:44 +00:00
timlinux
ddd934fe0a Theme related fixes:
- implemented 'fall back' support so that if a theme is missing icons, the default theme icons will be used instead.
 - use a static function in qgisapp to get theme icons and pixmaps
 - updated all icon fetching code to use the new methods above
 - updated qgsapplication so that it differentiates between active and default themes
 - fixed a bug in qgsoptions that prevented themes being changed in some cases.
This is a part fix for #1054 - still need to do some work to make GRASS theming work properly


git-svn-id: http://svn.osgeo.org/qgis/trunk@8937 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 01:24:27 +00:00
wonder
5507ec6611 syntactical change in QgsApplication wrapper to match its C++ counterpart
git-svn-id: http://svn.osgeo.org/qgis/trunk@8507 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-23 17:07:23 +00:00
jef
92eae75ec5 sync sip with c++ core
git-svn-id: http://svn.osgeo.org/qgis/trunk@8473 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-19 20:54:18 +00:00
wonder
46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00