222 Commits

Author SHA1 Message Date
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
jef
f9ffdc1c4c fix SIP build error and a warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@11878 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-01 16:32:39 +00:00
timlinux
5dca02a50e Added deprecation note for QgsLabel::layerAttributes and suggest using QgsLabel::labelAttributes rather
git-svn-id: http://svn.osgeo.org/qgis/trunk@11873 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-31 22:03:48 +00:00
jef
f130f103c7 fix #2036
git-svn-id: http://svn.osgeo.org/qgis/trunk@11861 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-28 00:51:34 +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
08cdd0b182 Remove inline functions in sip file
git-svn-id: http://svn.osgeo.org/qgis/trunk@11850 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-26 15:16:38 +00:00
mhugent
ee19d5f34e Possibility to choose the precision of composer grid annotations
git-svn-id: http://svn.osgeo.org/qgis/trunk@11849 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-26 15:10:04 +00:00
mhugent
b19baed341 [FEATURE]: Possibility to rotate composer map
git-svn-id: http://svn.osgeo.org/qgis/trunk@11847 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-26 09:46:21 +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
timlinux
e99592f10b Updated sip bindings to match changes in r11825
git-svn-id: http://svn.osgeo.org/qgis/trunk@11827 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-22 11:34:42 +00:00
timlinux
49b970adfd [FEATURE] Added option to display position as Degrees,Minutes,Seconds in the status bar
git-svn-id: http://svn.osgeo.org/qgis/trunk@11825 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-21 14:59:44 +00:00
jef
94ab29b1cf different fix for #1942
git-svn-id: http://svn.osgeo.org/qgis/trunk@11780 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-08 23:00:39 +00:00
jef
3d35c57d9d fix #1959
git-svn-id: http://svn.osgeo.org/qgis/trunk@11773 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-08 16:10:36 +00:00
jef
4ed28f36b8 wider support for vector layer queries:
- add query support for OGR and spatialite layers (additional to postgres)
- QgsDataProvider::setSubsetString() now returns if the query is successful.
- add optional parameter to limit number of values returned from QgsVectorDataProvider::uniqueValues() 
- rename QgsDbSourceSelect to QgsPgSourceSelect, use QgsVectorLayer for layer queries and make it wider
- QgsDataSourceURI: improve quoting
- fix relative path support for SpatiaLite on windows
- rename QgsPgQueryBuilder to QgsQueryBuilder and use QgsVectorLayer for
  queries instead of postgres

cleanups:
- rename QgsServerSourceSelect to QgsWMSSourceSelect



git-svn-id: http://svn.osgeo.org/qgis/trunk@11762 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-06 22:05:52 +00:00
jef
ed34b139f4 - fix load of layers saved with relative paths on *x
- also save relative paths to spatialite databases
- show path mode as combobox
- add QgsDataSourceURI::setDatabase()


git-svn-id: http://svn.osgeo.org/qgis/trunk@11729 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-28 21:38:25 +00:00
jef
dfb5aa118d fix line endings
git-svn-id: http://svn.osgeo.org/qgis/trunk@11640 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-12 20:37:31 +00:00
jef
92bb2a3117 [FEATURE] multi-layer identify
git-svn-id: http://svn.osgeo.org/qgis/trunk@11572 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-05 19:49:47 +00:00
jef
ddd64be82b improve relative path support
git-svn-id: http://svn.osgeo.org/qgis/trunk@11571 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-05 19:49:10 +00:00
mhugent
9764c23594 Function argument can be const
git-svn-id: http://svn.osgeo.org/qgis/trunk@11545 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-04 19:47:07 +00:00
mhugent
20591bac19 [FEATURE] A reshape tool to apply to line/polygon geometries. The part of a geometry between the first and last intersection of the reshape line will be replaced
git-svn-id: http://svn.osgeo.org/qgis/trunk@11500 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-25 19:54:28 +00:00
mhugent
a51fb58fa7 Consider transparency in composer legend (even though legend items for transparent layers are problematic because of background). Removed private section from qgslegendmodel.sip as private members cannot be used anyway
git-svn-id: http://svn.osgeo.org/qgis/trunk@11439 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-19 15:02:55 +00:00
wonder
013bbd2819 PyQGIS: fixed invalid signature of writeXML function
git-svn-id: http://svn.osgeo.org/qgis/trunk@11407 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-17 10:40:36 +00:00
mhugent
702fc884ed Fix current_date field in composer label
git-svn-id: http://svn.osgeo.org/qgis/trunk@11350 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-12 07:35:38 +00:00
jef
bd71472ba0 fix syntax error
git-svn-id: http://svn.osgeo.org/qgis/trunk@11278 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-05 19:55:30 +00:00
homann
b4f7e94235 Updated SIP-files after r11275 and r11276. Fix for #1220.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11277 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-05 16:43:33 +00:00
jef
0c59c74425 [FEATURE] symbology enhancements:
- add QgsMarkerCatalogue::refreshList() to refresh the symbol list w/o restart
- allow refresh of symbols via popup menu on the renderer's symbol selection
- add support for data define symbol(name)s
- add support for font symbol markers (only data define - no gui yet)
- pass QgsRenderContext to rendering methods
- add symbol size in map units (ie. symbols that keep the size in mapunits
  independant of the mapscale)



git-svn-id: http://svn.osgeo.org/qgis/trunk@11152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-23 10:59:59 +00:00
wonder
0054b7a41d Undo changes in active edit command when it gets destroyed.
Fixed return value for deletion of vertices.
Contributed by Richard Kostecky.


git-svn-id: http://svn.osgeo.org/qgis/trunk@11143 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-22 11:40:13 +00:00
mhugent
de9d62fcde Add missing edit types in python bindings (ticket #1781)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11084 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-15 11:33:17 +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
jef
be7c156a3f sync QgsVectorDataProvider sip interface
git-svn-id: http://svn.osgeo.org/qgis/trunk@10983 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-26 17:37:59 +00:00
jef
7331968172 re-add vector attribute method removed in r10863
git-svn-id: http://svn.osgeo.org/qgis/trunk@10982 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-26 17:04:31 +00:00
jef
4f604a6aaf fix a warning and add a note about QgsVectorDataProvider::addAttributes() change
git-svn-id: http://svn.osgeo.org/qgis/trunk@10979 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-25 17:03:48 +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
mhugent
535490afff Support for enumerations as an edit type in the infotool dialog (with combo box selection)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10902 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-11 07:23:31 +00:00
jef
c45c93c47e fix build problems with GRASS 6.5 GEOS support and #1723
git-svn-id: http://svn.osgeo.org/qgis/trunk@10893 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-09 06:57:55 +00:00
mhugent
bbc5fdc891 Use a DPI parameter in the WMS request. This allows printing with QGIS from QGIS mapserver (and is ignored by the other WMS servers)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10885 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-05 13:13:45 +00:00
jef
3e01e6d3d5 - allow setting of field width and precision when adding attributes
- update vector data providers accordingly
- postgres provider:
  - add support for more native types and setting of column comments
  - catch errors on retrieval of defaults values (fixes #1713)



git-svn-id: http://svn.osgeo.org/qgis/trunk@10863 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-30 17:48:49 +00:00
mhugent
cfd97adee1 Revert change in qgsvectorlayer.sip
git-svn-id: http://svn.osgeo.org/qgis/trunk@10847 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-25 19:29:15 +00:00
mhugent
9a2e66a11f added overlay methods to python bindings for QgsVectorLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk@10845 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-25 14:08:27 +00:00
wonder
1e6882ada9 Fixed documentation of QgsGeometry::asMulti*() functions
git-svn-id: http://svn.osgeo.org/qgis/trunk@10836 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-22 10:58:55 +00:00
mhugent
749390f2e4 Change in overlay classes such that pal object and geos geometry don't appear in the public interfaces (important for python bindings)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-14 15:58:24 +00:00
wonder
c2d0a40061 Renamed delete hole tool to delete ring per suggestion by Borys.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10705 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-02 19:38:46 +00:00
wonder
c245c644ae Added changeGeometry() method as have been suggested on mailing list.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10701 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-02 16:13:59 +00:00
wonder
cbc57dcb27 New vector editing tools:
- delete part of multipart feature
- delete hole from polygon
- simplify feature

These tools are in the new "advanced" editing toolbar.
Contributed by Richard Kostecky (qgis-mapper project).


git-svn-id: http://svn.osgeo.org/qgis/trunk@10700 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-02 15:37:35 +00:00
jef
468550c6d2 speed up loading of projects with (complex) views:
save key column of postgresql layers to projects file and try it first on
reload.



git-svn-id: http://svn.osgeo.org/qgis/trunk@10657 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-26 22:49:37 +00:00