26 Commits

Author SHA1 Message Date
wonder
409fef558b One more place where where ownership must be transferred and it wasn't - resulting in segfaults on app's exit.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6910 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-24 09:14:05 +00:00
wonder
85eab3f9a8 Solved bugs with double deletion of map canvas items in Python bindings.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6909 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-23 14:58:15 +00:00
wonder
301cd6c988 Solved problems with destruction of map tools - canvas mustn't be deleted before map tool,
however in Python the destruction had to be done explicitly to acheive right order.
New solution is that QgsMapTool is derived from QObject and on construction, QgsMapCanvas
is set as its parent. This way canvas is always deleted after deletion of map tools.

Also, because of this, I've divided QgsMeasure to QgsMeasureTool and QgsMeasureDialog
(problem with 2 parents with QObject as a base).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6908 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-23 14:57:08 +00:00
wonder
e7d6fbaf4c QgsVertexMarker: added possibility to change color and pen width
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6901 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-20 10:11:08 +00:00
wonder
5789eecd83 - more sane function prototypes for searching for closest vertex/segment
- fixed some problems in python bindings


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6896 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-18 21:08:55 +00:00
wonder
19343b9016 Added setConnection() and setDataSource() utility functions to QgsDataSourceURI
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6891 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-17 11:12:15 +00:00
wonder
5f75c232ba Merged provider0_9-branch (r6844:6878) back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6879 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-11 11:46:35 +00:00
wonder
d4bac97452 Renamed QgsMarkerCatalogue::pixmapMarker() to imageMarker() as now it returns QImage.
Added Python wrappers for QgsSymbologyUtils and QgsMarkerCatalogue.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6866 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-02 18:24:51 +00:00
wonder
478f0a43ed Added python bindings for QgsSymbol and all renderer classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6864 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-02 17:41:47 +00:00
wonder
ce3eea0dcf QgsFeatureAttribute class has been removed and QVariant is used instead (supports arbitrary data types).
All providers and python bindings have been updated accordingly.
Currently supported variant types by providers are String, Int and Double.

Other API changes:
- QgsField
  - type info as QString is now typeName() and setTypeName()
  - added variant type (QVariant::Type) info: type(), setType()
- QgsFeature
  - removed fields() - use QgsVectorDataProvider::fields()
  - removed boundingBox() - use QgsGeometry::boundingBox()
- QgsVectorLayer - removed fields(), fieldCount(), getDefaultValue() - use directly QgsVectorDataProvider
- QgsVectorDataProvider - getDefaultValue() - field now addressed by id, returns variant
- QgsLabel - setLabelField() - field now addressed by id


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6833 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-24 22:40:10 +00:00
wonder
32eb419bc6 Fix for #641 - this was due non-existing function in QgsColorTable
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6780 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-09 09:31:12 +00:00
wonder
80e3d032ef Python bindings:
- recreate on changed .sip file
- wrapped QgsColorTable


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6776 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-08 11:51:16 +00:00
wonder
70146f393e Changed usage of std::vector to QList in QgsDistance area.
Added the modified functions to Python bindings.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6760 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-04 11:43:48 +00:00
wonder
32519431dd QgsMapCanvasItem is not to be derived from QObject - no need for that.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6750 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-03 11:13:57 +00:00
wonder
8d3dd5fef4 Changed deque<QString> to QStringList in QgsMapRender, updated canvas and bindings appropriately.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6749 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-03 10:53:53 +00:00
wonder
d49c744bd0 Python: wrapped two functions in QgsLabel
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6748 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-02 22:38:09 +00:00
wonder
9f5cefc0c1 Added hack to include Qt3Support when building bindings on Mac.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6745 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-02 19:33:20 +00:00
wonder
5b6e7761ce Changed line endings from DOS-style to UNIX-style so SIP won't end up with syntax errors on unix
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6740 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-02 09:56:44 +00:00
wonder
f2cdb3ca3c Bindings: wrapped QgsDistanceArea
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6732 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-28 11:49:14 +00:00
wonder
7795127150 Don't link bindings to Qt3Support lib - was doing problems on windows.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6664 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-22 14:56:58 +00:00
timlinux
fde3b72cb8 Updates for SIP support from Martin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6640 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-20 14:06:05 +00:00
telwertowski
b6c97d135f Mac python build changes:
- lib extension is .dylib not .so
- all qt frameworks are needed for linking


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6526 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-05 02:26:56 +00:00
wonder
3a0c0bbe94 By default install bindings to QGIS directory -> no need to install as root.
It's possible to override it with BINDINGS_GLOBAL_INSTALL set to TRUE,
that will cause bindings to be installed to global python's site-packages dir.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6516 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-04 12:54:10 +00:00
wonder
cd7a57e312 CMake: fixed a typo
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6504 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-03 11:39:58 +00:00
wonder
01d3110e51 CMake: improved build of python bindings
- all intermediate files are out of source
- bindings are built only when libs are changed, not everytime


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6503 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-03 11:34:37 +00:00
wonder
bbd36b107f Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00