467 Commits

Author SHA1 Message Date
jef
ea9ae01959 improve vector file writers error reporting
git-svn-id: http://svn.osgeo.org/qgis/trunk@12890 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-06 19:27:36 +00:00
wonder
2034de2bc9 PyQGIS: few additions for more pythonic api
- QgsVectorLayer and QgsVectorDataProvider support iterating
- QgsFeature allows direct access to attributes (get/set/del)


git-svn-id: http://svn.osgeo.org/qgis/trunk@12878 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-04 21:08:33 +00:00
wonder
5fcab9157a wrapped new method from r12869
git-svn-id: http://svn.osgeo.org/qgis/trunk@12873 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-04 13:43:20 +00:00
wonder
704f2b8c31 PyQGIS: wrapped raster shaders (color ramp, freak out, pseudocolor)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12856 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-01 09:28:14 +00:00
wonder
a70f812d1e QgsRendererV2 metadata: for renderer icon use QIcon instead of icon file name.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12852 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-29 20:19:37 +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
jef
553e4d233d [FEATURE] add validation to capture tool
git-svn-id: http://svn.osgeo.org/qgis/trunk@12830 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-24 16:07:55 +00:00
mhugent
b1a5fd6575 sync sip file for symbolv2rendercontext
git-svn-id: http://svn.osgeo.org/qgis/trunk@12820 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-22 20:02:56 +00:00
wonder
76d6b47a8b symbology-ng: updates to symbol layer registry and renderer registry so that they can be used from python.
Added wrappers for these two registries and their metadata classes.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12769 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-15 17:54:18 +00:00
wonder
a48f4bda77 QgsSymbolV2RenderContext:
- use reference to QgsRenderContext instead of pointer
- added utility functions for simpler syntax when converting values to output units


git-svn-id: http://svn.osgeo.org/qgis/trunk@12756 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-14 17:50:44 +00:00
mhugent
e9d4829b50 [FEATURE]: choice between mm and map units for new symbology. Scaling to use new symbology in print composer as well
git-svn-id: http://svn.osgeo.org/qgis/trunk@12755 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-14 16:18:13 +00:00
jef
c0da2c6e8f move QgsMapToolFeature::avoidIntersections to QgsGeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk@12700 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-07 20:30:25 +00:00
wonder
a9ae72243e PyQGIS: added missing conversion to QgsRenderer subclasses, added few missing methods
git-svn-id: http://svn.osgeo.org/qgis/trunk@12672 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-05 14:09:31 +00:00
jef
7003ed00c4 apply #2199
git-svn-id: http://svn.osgeo.org/qgis/trunk@12642 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-28 21:37:07 +00:00
wonder
8241b607f6 Fix #2324.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12627 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-27 19:27:34 +00:00
jef
e5cf709dd3 another round of typo fixes (and use color instead of colour - like Qt; no string updates)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12600 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-23 16:14:24 +00:00
wonder
7d175fb97b Leave only one setGeometry method to avoid ambiguous behaviour, added missing /Transfer/ annotation.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12597 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-23 15:36:11 +00:00
wonder
3a7851c8a1 Added python bindings for search strings
git-svn-id: http://svn.osgeo.org/qgis/trunk@12579 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-22 14:52:54 +00:00
wonder
293d18532a Preserve as many settings as possible when converting between new and old symbology.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12563 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-21 15:13:01 +00:00
wonder
a81156fa78 Fix new labeling to work with render caching.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12540 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-20 16:35:45 +00:00
wonder
b3f2966396 Show editing vertex markers with symbology-ng. Fixes #2171.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-20 15:39:05 +00:00
jef
cbf1a50bd6 fix common typos
git-svn-id: http://svn.osgeo.org/qgis/trunk@12528 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-20 12:29:07 +00:00
wonder
04d4cf5508 PyQGIS: Fixed slightly embarrassing conversion to subclasses in symbology-ng
git-svn-id: http://svn.osgeo.org/qgis/trunk@12435 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-13 14:28:22 +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
43183fa5c7 Fixed conversion to subclasses of QgsFeatureRendererV2
git-svn-id: http://svn.osgeo.org/qgis/trunk@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 18:18:30 +00:00
wonder
4bb5cad2cc Change in handling of missing layers within QgsProject. Instead of throwing an exception, now a custom handler is called
that might try to fix the missing layers. There's a default handler (QgsProjectBadLayerDefaultHandler) which simply ignores
all missing layers. Then there's a GUI handler (QgsProjectBadLayerGuiHandler) in GUI library which asks user about
the path for missing layers. QGIS application automatically installs the GUI handler on startup.

This should allow python plugins/applications to work with QgsProject without a fear of a segfault as there are no more
exceptions thrown during load/save of the project files.

Some further notes:
- removed QgsProjectBadLayerException class and (now empty) qgsexception.cpp file
- openFilesRememberingFilter() moved to QgisGui namespace (was duplicated: QgisApp vs QgsOpenVectorLayerDialog)
- removed deprecated buildVectorFilters_ methods
- added python bindings for new classes/methods


git-svn-id: http://svn.osgeo.org/qgis/trunk@12350 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 17:14:41 +00:00
wonder
90eac5ee05 Removed QgsIOException. From now if QgsProject's read() and write() functions return false, it's possible to find out the error message using error() function.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12349 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 14:22:37 +00:00
jef
40c10fa255 missed the python part
git-svn-id: http://svn.osgeo.org/qgis/trunk@12347 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 00:36:57 +00:00
mhugent
3e5d66d092 Fix for bug 2188. Provider has the possibility to announce that it handles geometry type handling not very strict, e.g. inserting multipolygon in polygon layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@12340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-06 10:46:28 +00:00
jef
b27b05b1ae apply #1880
git-svn-id: http://svn.osgeo.org/qgis/trunk@12328 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-03 17:14:04 +00:00
mhugent
25264aa14e Fix for merge of adjacent multipolygons, ticket #2188
git-svn-id: http://svn.osgeo.org/qgis/trunk@12327 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-03 16:26:57 +00:00
jef
0dee825fa2 include QgsGeometry::transform() in python bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@12322 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-03 13:45:46 +00:00
mhugent
2d296505c6 Keep shape and composer picture size during rotation. Adapt the item size instead
git-svn-id: http://svn.osgeo.org/qgis/trunk@12262 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-26 13:56:08 +00:00
jef
865fce9cf3 add support for a python feature form initialization function
git-svn-id: http://svn.osgeo.org/qgis/trunk@12215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-21 19:55:25 +00:00
mhugent
49197a37e8 Added possibility to set label font color
git-svn-id: http://svn.osgeo.org/qgis/trunk@12204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-20 09:43:39 +00:00
mhugent
1955a5256a sip does not like public keyword
git-svn-id: http://svn.osgeo.org/qgis/trunk@12184 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-19 09:22:07 +00:00
mhugent
b007b8833f Add a new composer item to draw basic shapes (atm ellipse, rectangle, triangle), fix some composer related bugs and bring rotation to composer item level
git-svn-id: http://svn.osgeo.org/qgis/trunk@12183 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-19 09:04:33 +00:00
wonder
c1676d5137 Improved labeling engine interface, now connected with QgsMapRenderer instead of individual layers.
Also fixes #2108.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12174 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-18 18:46:12 +00:00
jef
76ac06e760 replace context help ids with classnames
git-svn-id: http://svn.osgeo.org/qgis/trunk@12169 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-18 08:51:17 +00:00
jef
a4758ff01f add support for multiline edit widget
git-svn-id: http://svn.osgeo.org/qgis/trunk@12165 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-17 18:47:47 +00:00
wonder
adb8ab92fd Save style file name inside the style.
Fixed saving of symbols added in symbol selector


git-svn-id: http://svn.osgeo.org/qgis/trunk@12161 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-17 11:23:36 +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
4e182fc45e fix build errors on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@12124 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-15 17:13:20 +00:00
jef
03224425e5 [FEATHRE] attribute action improvements
- add python bindings for attribute actions
- support actions as context menu in feature form (ui)
- add action types:
  * generic: commands that should work on all platforms
  * windows, mac, unix: commands that should work and are only shown on one platform respectively
    (eg. vim on unix, notepad on windows and textmate on Mac)
  * python: python strings to be executed instead of a command
    (eg. qgis.utils.plugins['apluginname'].amethod('[%someattribute%]'))

[BUGFIXES]
- ogr support for relative filenames fixed
- relative filename support also for feature form uis


git-svn-id: http://svn.osgeo.org/qgis/trunk@12113 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-15 00:15:55 +00:00
jef
6b7ad07597 [FEATURE] customizable attribute forms using Qt Designer dialog UIs
- add support for checkbox edit type and edit forms for vector layers
- selection of ui file in vector layer properties (general tab)
- the forms are opened when a feature is added or via identify.
  The widgets on the ui have to be named like the attribute they are supposed
  to edit or show.  If the vector layer is not in editing mode, the widgets
  will be disabled



git-svn-id: http://svn.osgeo.org/qgis/trunk@12077 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-10 18:30:57 +00:00
mhugent
6c3323739c Committing Horsts OGR format patch from the QGIS hackfest in Vienna
git-svn-id: http://svn.osgeo.org/qgis/trunk@12026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-08 17:52:40 +00:00
ersts
9fb83ca1a8 -Added ability to load min max values for enhancement based on current portion of the raster being displayed.
-GUI update and string changes.
-Closes enhancement ticket 2024
-Accomplished by caching the last QgsRasterViewPort, I see this as a bit of a work around rather than a real solution. The issue at hand is that the render context can only be provided by the map canvas so neither the layer itself nor an layer properties dialog has access to the render context.

git-svn-id: http://svn.osgeo.org/qgis/trunk@12015 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-08 14:20:57 +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
mhugent
f4b1efd0a0 Python bindings update for composer map and picture
git-svn-id: http://svn.osgeo.org/qgis/trunk@11895 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-02 17:27:13 +00:00