43 Commits

Author SHA1 Message Date
Juergen E. Fischer
3854086d47 sip update 2013-06-23 16:00:24 +02:00
Juergen E. Fischer
59788cb8fc - sync sip binding of QgsVectorLayer
- [API] introduce signal QgsVectorLayer::beforeRollBack()
- merge consecutive geometry changes (fixes #7929)
- avoid validation in nodetool on rollback
2013-05-29 22:57:05 +02:00
D'Hont René-Luc
287cce06ad Add metadata information for layers
To complete the metadata tab and ilayer information, we add keywordlist,
metadata url and attribution information.
The user can add keywords to his layers, store a metadata url with type
and format and attribution title and url.
These data are reused by QGIS-Sever in the WMS GetCapabilities request.
This capability is sponsored by ifremer.
2013-05-29 15:36:34 +02:00
Matthias Kuhn
def681c226 Add API to write and read custom data to the layer in a .qgs-file.
New signals:
 * void QgsProject::writeMapLayer( QgsMapLayer*, QDomElement&,  QDomDocument& )
 * void QgsProject::readMapLayer( QgsMapLayer*, const QDomElement& )

Changed method signature:
 * bool QgsMapLayer::readXML( const QDomNode& )
   => bool QgsMapLayer::readLayerXML( const QDomElement& )
 * bool QgsMapLayer::writeXML( QDomNode&, QDomDocument& )
   => bool QgsMapLayer::writeLayerXML( QDomElement&, QDomDocument& )
2013-05-02 09:40:26 +02:00
nyalldawson
2298cae87a Add sip bindings for layer blend modes 2013-04-22 11:11:44 +10:00
Juergen E. Fischer
6b2af9a209 remove unused layer transparency (and fix some warnings) 2013-04-08 21:58:32 +02:00
Larry Shaffer
94491b8479 [FEATURE] Add style options for legend layer/groups, and live refresh of all legend style options
- Based of off work from Stefan Ziegler (pull request #331)
- Options inherited by embedded groups (which are still always italic)
- Original layer name now saved to project file (instead of adjusted display name)
- Fix bug where setting capitalization, then saving/reopening would permanently set capitalization
- [API] Add originalName() to QgsMapLayer to access original (pre-adjusted name)
- [API] Add setupFont() method to legend group items
- [API] Add updateLegendItemStyles() and updateLegendItemSymbologies() to QgsLegend to allow style option changes to become active without app restart
2013-01-28 16:22:48 -07:00
Martin Dobias
5f304b34a1 Merge remote-tracking branch 'origin/master' into new_vector_api
Conflicts:
	python/core/qgsvectordataprovider.sip
	src/app/legend/qgslegendlayer.cpp
	src/app/qgisapp.cpp
	src/app/qgsmergeattributesdialog.cpp
	src/core/qgsvectordataprovider.cpp
	src/core/qgsvectordataprovider.h
	src/core/qgsvectorlayer.cpp
	src/gui/qgssearchquerybuilder.cpp
	src/providers/postgres/qgspostgresprovider.cpp
	src/providers/wfs/CMakeLists.txt
2013-01-23 23:46:56 +01:00
Alexander Bruy
5e45a22d06 remove deprecated methods from API 2012-12-23 10:40:23 +02:00
Martin Dobias
51122d263a Store attributes and fields in vectors instead of maps 2012-10-20 22:19:55 +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
Etienne Tourigny
2bd054c8e0 fix .qml file loading in /vsigzip and /vsizip items 2012-04-24 22:27:28 -03:00
Juergen E. Fischer
76890768de fix warnings from clang 2012-02-11 16:57:50 +01:00
Marco Hugentobler
21fa9cd3c1 Added title / abstract to python bindings 2011-12-16 11:58:09 +01:00
Marco Hugentobler
a29b49f040 Add consts also to sip file for QgsMapLayer 2011-08-17 13:04:01 +02:00
jef
155b9996d1 deprecate QgsMapLayer::srs()
git-svn-id: http://svn.osgeo.org/qgis/trunk@15346 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-03-05 22:09:01 +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
mhugent
2222397334 [FEATURE]: added reload method to map layers and provider interface. Like this, caching providers (currently WMS and WFS) can synchronize with changes in the datasource
git-svn-id: http://svn.osgeo.org/qgis/trunk@14264 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-09-20 11:27:12 +00:00
wonder
9f7b2c7226 Fixed setCacheImage() python binding.
git-svn-id: http://svn.osgeo.org/qgis/trunk@14053 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-11 07:43:19 +00:00
wonder
857680bdba PyQGIS: small fixes for handling of QML styling.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12949 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-16 10:22:29 +00:00
wonder
8f32f25a90 [FEATURE] Support for custom plugin layers. Applied patch from #2392 contributed by Mathias Walker. Thanks!
Some parts modified to make plugin layers easier to use and more robust.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12834 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-26 15:43:54 +00:00
wonder
4a47cd6125 Update bindings with changes in r12405
git-svn-id: http://svn.osgeo.org/qgis/trunk@12407 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-11 15:44:48 +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
cfarmer
b4a6b417db Update QgsMapLayer to current naming convention for CRS; srs() function left for API compatability (note was added to warn of future changes in 2.0)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11943 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-07 08:47:44 +00:00
jef
2872f0f057 fix sip error
git-svn-id: http://svn.osgeo.org/qgis/trunk@11834 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-24 20:34:18 +00:00
timlinux
763fbb2049 [FEATURE] Applied patch from #1974 to enable render caching capability in QGIS. This speeds up common operations such as layer re-ordering, changing symbology, WMS / WFS client, hiding / showing layers and opens the door for future enhancements such as threaded rendering and pre-compositing layer cache manipulation.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11831 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-24 13:30:36 +00:00
wonder
7fd5ba816a Added infrastructure for vector editing undo/redo functionality.
Note - when implementing edit tools for vector layer:
All editation should be done between beginEditCommand() and endEditCommand()
calls so that the operation are stored. 

Note - when doing changes inside QgsVectorLayer code:
When doing any changes inside QgsVectorLayer they should be done using edit*() functions
and _not_ directly e.g. mChangedGeometries[fid] = (...) otherwise the change won't be
stored in the undo stack and it would lead to invalid behaviour of undo.


git-svn-id: http://svn.osgeo.org/qgis/trunk@10920 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-14 14:17:18 +00:00
jef
270fe71f75 new fix for #1162 restoring lost qml features
git-svn-id: http://svn.osgeo.org/qgis/trunk@9747 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-12-07 03:10:00 +00:00
wonder
e15424a23e PyQGIS fix: QgsMapLayer has QObject as subclass
(it wasn't possible to connect to its signals)


git-svn-id: http://svn.osgeo.org/qgis/trunk@9637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-14 23:42:08 +00:00
timlinux
b40ceb2d62 API cleanups for QgsRect that got overlooked...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-09 00:14:12 +00:00
timlinux
7c318ead1a API cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9529 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-24 11:00:31 +00:00
mhugent
a5dfbbb89f Reverted some of the sip changes to allow compilation
git-svn-id: http://svn.osgeo.org/qgis/trunk@9519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-22 13:34:08 +00:00
mhugent
2dae372a89 Added symbology functions of QgsMapLayer to sip file
git-svn-id: http://svn.osgeo.org/qgis/trunk@9512 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-21 19:27:41 +00:00
timlinux
06144402cb Use enum properly for qgsmaplayer type and refactored 'LAYERS' to LayerType
git-svn-id: http://svn.osgeo.org/qgis/trunk@9483 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-16 20:44:22 +00:00
jef
81132173ff apply patch for #1162 for timlinux
git-svn-id: http://svn.osgeo.org/qgis/trunk@9437 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-06 13:00:45 +00:00
jef
31327f51fd Merged rest of composer branch (9087-9115)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9125 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 09:19:49 +00:00
timlinux
a4bd78c9f8 Refactor spatial reference system to coordinate reference system (finalise fix of ticket #15). Also updated some more core api docs / module assignments.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9108 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-21 21:11:56 +00:00
timlinux
c4437144a9 Use readXml, writeXml instead of readXML_,writeXML_
git-svn-id: http://svn.osgeo.org/qgis/trunk@9026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-07 22:18:47 +00:00
mhugent
68cdb3abf4 Merge of rendercontext branch into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk@8440 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 08:13:05 +00:00
wonder
6f45e29616 Removed unused and misleading function QgsMapLayer::calculateExtent()
git-svn-id: http://svn.osgeo.org/qgis/trunk@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-08-06 14:03:02 +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