80 Commits

Author SHA1 Message Date
jef
4acf538d43 re-add useIntersect support in QgsVectorLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9097 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 18:25:17 +00:00
jef
87d9cb93d6 handling vector data geometry and attribute updates refactored
QgsVectorLayer:
  - move attribute part of editing to vector layer class and unify with geometry handling:
    * remove commitAttributeChanges(), addedFeatures(), deletedFeatureIds(), changedAttributes()
      and replace with changeAttributeValue(), deleteFeature(), addAttribute()
      and deleteAttribute()
    * add pendingFields(), pendingAttributeList(), pendingFeatureCount()
    * emit signals on start editing and commit, change of attribute values, adding/deleting of
      attributes and layer or feature removal (currently used in the attribute table)
  - new commitErrors() method to query errors from commitChanges()
  - replaced featuresInRectangle with select/getNextFeature combo
  - edit types added to support more input widgets and input constraints

QgsFeature:
  - remove update aware ctor
  - unify geometry handling in ctors

QgsVectorDataProvider:
  - add QVariant::Type to supportNativeTypes()

QgisApp:
  - add instance() method to query QgisApp object
  - replace code at various place to use it instead of passing the pointer
    arround or searching it in the widget tree.
  - move toggleEditing() code from the legend here

QgsAttributeTable/QgsAttributeTableDisplay:
  - move attribute table creation legend here
  - make attribute table dockable (from Tim)
  - most editing logic moved to QgsVectorLayer
  - adding/deleting attributes moved to QgsVectorLayerProperties

QgsIdentifyResults:
  - add support for attribute editing when it edit mode

QgsVectorLayerProperties:
  add a new tab to show attribute list:
    * start/stop editing
    * add/delete attributes
    * assign edit type to attributes (unique values, value map, ranges)

QgsAttributeDialog:
  add support for attribute edit types:
   * selection from unique value render classes (combobox)
   * selection from unique values of existing features (combobox or line edits with completion)
   * spinboxes for ranges

QgsPostgresProvider:
 - use read-only connection for cursors and read-write connection for updates
 - updated native types

QgsOgrProvider:
 - remove unused references to GEOS geometry factory
 - updated native types


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9092 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 12:15:14 +00:00
jef
9c45270b48 add conversion for QMap<QString, QVariant::Type>
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9077 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 06:55:54 +00:00
jef
ee48273a60 fix warning about returning temporary objects
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9076 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 06:55:00 +00:00
timlinux
bd01dd03e9 Use readXml, writeXml instead of readXML_,writeXML_
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-07 22:18:47 +00:00
timlinux
fe533ca9fe Changed poorly named EPSGID constant to GEOEPSG_ID
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9005 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-06 13:16:18 +00:00
timlinux
fd41d31316 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/qgis@8997 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-05 21:11:58 +00:00
timlinux
e0692efe4b Allow point symbol sizes to be specifed in double format and allow symbols smaller than 3. Added some constants in qgis.h to default and minimum allowable point sizes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8976 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-02 07:54:31 +00:00
timlinux
030f920169 Fix for #605 - make building pyramids internally optional.
Also some ui cleanups to the pyramids part af raster props


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8968 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-01 19:13:47 +00:00
timlinux
a525f6ea0a 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/qgis@8941 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 18:08:44 +00:00
timlinux
3a4648f92c 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/qgis@8937 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 01:24:27 +00:00
jef
4ba03ee7ef fix common typo: retreive
(identifing copied code...)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-16 09:21:41 +00:00
jef
ba4948a21b add support for multiline labels (applies #1138)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8775 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-14 20:21:57 +00:00
wonder
c638e6a833 Made setGeometry() argument const.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8736 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 14:03:09 +00:00
wonder
bb636b57d7 updated bindings from changes in r8709
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8727 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-07 11:44:41 +00:00
jef
4a3d59358c fix gcc 4.3 warnings, a gcc 4.3 compile error and a MSVC warning
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8666 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-21 15:35:32 +00:00
wonder
ef4bad24e6 Added QgsRect::intersects(QgsRect) predicate
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8651 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-17 00:15:08 +00:00
timlinux
af4ca87097 Implemented proxy support to be application global rather than set on a per connection basis
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8649 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-15 22:35:03 +00:00
ersts
a93f6d3095 -Removed some unneeded code for a freature that will not be in 1.0
-Added flags to indicate if min max values are actual computed values or estimates/userdefined
-Implemented the min/max estimate warning on gui

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8629 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-09 01:44:01 +00:00
wonder
8dff01e49a QgsVectorFileWriter:
- added missing deleteShapeFile() PyQGIS wrapper
- added some error handling when adding features
- improved deleteShapeFile method


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8621 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-08 00:55:29 +00:00
wonder
3954774014 Applied Stefanie's patch to return features (with new IDs) after being added.
Thanks!


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8584 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-03 15:25:22 +00:00
wonder
783d5d0581 Applied patch from Stefanie Tellex for simpler retreival of coords from QgsPoint
Thanks!


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8582 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-03 14:36:56 +00:00
wonder
c89f755942 Applied patch of Stefanie Tellex, fixes QgsGeometry::setWkbGeometry() in Python
Thanks!


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8580 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-03 14:15:34 +00:00
wonder
213b042404 syntactical change in QgsApplication wrapper to match its C++ counterpart
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8507 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-23 17:07:23 +00:00
mhugent
88ce567d6c Fix for bug #1096 Snapping to currently moved vertex should be suppressed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-21 05:59:04 +00:00
jef
59d0746707 sync sip with c++ core
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8473 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-19 20:54:18 +00:00
timlinux
dd368da946 Dont artificially limit the raster types available. Note if you have a lot of gdal file types supported the file filter is very long. We need to find a sensible way to manage that.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8462 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-19 13:17:31 +00:00
wonder
49e19e6cb5 changed std::map to QMap in QgsRasterLayer::identify(), updated PyQGIS
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 16:50:00 +00:00
mhugent
47f79b541d Merge of rendercontext branch into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8440 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 08:13:05 +00:00
telwertowski
4b45366ad0 Remove all use of Qt3 compatibiliy routines except for the GRASS provider/plugin. Automatic casts of QString to char* have also been removed for compatibility with Qt/Mac-Cocoa (64-bit).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8406 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-07 05:15:58 +00:00
ersts
8925d80d04 -Fixed problem restoring min max values from project file
-Closes ticket #945
-Added ability choose in the GUI to load estimated or actual min max values from the band
-Cleaned and reorganized raster properties gui a little
-Added a set default constrast enhancement option in gui that is persistent between sessions
-Closes ticket #1055 and #778

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8398 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-06 03:21:12 +00:00
jef
a0001eea4c - speed up QgsSpatialRefSys after migration to OGR C-API:
- create and destroy OGRSpatialReferenceH in constructor/destructor
  - move the PROJ.4 strings to OGR instead of a member variable and keep
    track its validity in mIsValidFlag.
  This reduces the need to allocate/deallocate of OGR structures and PROJ.4
  parsing and thereby speeds it up quite a bit.  Especially when on-the-fly
  projection is in use.
- collect common code of createFromSrid, createFromEpsg and createFromSrsId
  in the new loadFromDb method

NOTE: invalid PROJ.4 strings are now lost, I hope that doesn't break
      anything.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8263 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-24 18:31:08 +00:00
jef
c1669e2af6 - add getUniqueValues method to QgsVectorDataProvider
- implement getUniqueValues in QgsPostgresProvider (fixes #399)
 - implement getUniqueValues, minValue and maxValue in OgsOgrProvider
 - use getUniqueValues in QgsUniqueValueDialog
- update QgsPostgresProvider::storageType interface (fixes #995)
  (applied patch from Steven Mizuno, thanks again)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-16 16:52:11 +00:00
wonder
5eb24c4433 Fix for const iterator
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:45:49 +00:00
wonder
75ab40a3b8 Added forgotten setAttributeMap() wrapper
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:08:07 +00:00
wonder
0a25f371c7 - added QMultiMap conversion for SIP from Stefanie Tellex
- fixed featuresInRectangle and snapWithContext bindings
- added Stefanie to contributors
- keep list of contributors sorted


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8151 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 09:48:05 +00:00
timlinux
b28cfe43c1 Make maprender able to tell us the map size and dpi (there were previously no accessors for this)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8135 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-11 10:39:40 +00:00
mhugent
16a5432aee Added fromMultiPoint method to QgsGeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8041 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 07:03:59 +00:00
wonder
dfc052d960 added forgotten parameter
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8036 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 14:18:02 +00:00
ersts
bac4fc88a3 -updated enums and respective functions to have undefined be initial value
-replaced some QT3 calls with QT4 calls in raster layer properties
-updated python bindings 

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-22 01:22:18 +00:00
timlinux
75f6094af7 Expose maprender height and width via the public api
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:06:41 +00:00
wonder
ef5afffe54 - added methods which were forgotten: fromMultiPolyline(), fromMulyPolygon()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7996 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:59:29 +00:00
wonder
c5bb76ea11 - renamed QgsGeometry::difference to QgsGeometry::makeDifference
- more geoprocessing in QgsGeometry: convexHull, intersection, Union, difference, symDifference


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7994 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:20:52 +00:00
wonder
857ae41dee Added QgsGeometry::buffer() function that returns buffer around the geometry.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7986 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 22:39:57 +00:00
wonder
f5afee3c6b - changed return type of QgsMapLayerRegistry::mapLayers() from std::map to QMap
- wrapped the above function in PyQGIS


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7984 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 20:07:55 +00:00
gsherman
8806d8ded3 Fix for wacked sip files
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7928 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:59:16 +00:00
gsherman
b675c2ed88 new files from raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7927 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:42:56 +00:00
gsherman
dcabe173a8 Merge of raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:38:10 +00:00
wonder
5e2eb4a7d9 Some small updates to bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7897 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 23:20:31 +00:00
wonder
5b5203c90c Moved all conversions between c++ templates and python objects to one file.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7894 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:27:28 +00:00