8824 Commits

Author SHA1 Message Date
telwertowski
00d8a8cf46 Fix unload. String argument used to remove menu must match string used to add it.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9271 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-06 18:12:57 +00:00
telwertowski
0a6dbb7112 Add accessors for all menus, toolbars and actions to plugin interface so that plugins can insert actions at any position in any menu or toolbar.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-05 05:46:56 +00:00
ersts
7defe5a0b8 -Commented out the ColorRampItemList from the sip files
git-svn-id: http://svn.osgeo.org/qgis/trunk@9252 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-02 23:58:38 +00:00
ersts
767f4a3fb6 -Cleaning out references to obsolete class QgsColorTable
-Changed how Paletted bands are drawn as gray scale
-Added cache to QgsColorRampShader to speed up rendering time when using large color tables (still poor)
-Fixed small bug in rendering the palette as a pixmap

git-svn-id: http://svn.osgeo.org/qgis/trunk@9251 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-02 23:29:44 +00:00
jef
b479d4e1d2 update plugin installer for new API
git-svn-id: http://svn.osgeo.org/qgis/trunk@9240 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-01 19:57:19 +00:00
timlinux
0ecb47fc31 Let qgis core plugins work with qgis api changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@9236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-01 06:41:50 +00:00
timlinux
8f60bc5095 More api cleanups mainly affecting gui
git-svn-id: http://svn.osgeo.org/qgis/trunk@9233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 18:28:22 +00:00
timlinux
21a5d7248b use isVisible() rather than visible() to test for layer visibility
git-svn-id: http://svn.osgeo.org/qgis/trunk@9232 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 18:06:54 +00:00
timlinux
7117ef8ec7 Implemented more gui api cleanups and suggestions from Albert Areny to clean the api. Note this commit breaks most python plugins out there. Please refer to the plugin interface header to see what is required to (trivially) repair your plugins.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9231 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 16:56:09 +00:00
timlinux
3aa9ebcc0b Updates to api docs and some api consistency cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-30 09:28:54 +00:00
jef
e3cfb78796 vector provider update:
- rename maxValue to maximumValue
- rename getUniqueValues to uniqueValues and let it return a list
  of variants instead of strings.
- add protected convertValue to convert string values to attribute values
- update attribute dialog, continuous color dialog, graduated symbol dialog,
  unique value dialog, postgres provider and ogr provider accordingly
- fixes #1250



git-svn-id: http://svn.osgeo.org/qgis/trunk@9196 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-27 22:13:27 +00:00
timlinux
efc21daa54 Added a wrapper for ogr register all so that it cant be called twice (on suggestion of M. Loskot).
Fixes issues where drivers appear to be registered more than once.


git-svn-id: http://svn.osgeo.org/qgis/trunk@9195 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-27 21:56:29 +00:00
jef
874b29b71f minor update (indentation, debug output, plenks)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9189 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-27 12:57:47 +00:00
jef
683dcea781 vector layer updates
- fix: retrieve only existing attributes from provider when editing and set
  added attributes to null
- introduce slider widget for attribute dialog
- include added attributes when editing from identify



git-svn-id: http://svn.osgeo.org/qgis/trunk@9182 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-27 07:44:03 +00:00
ersts
5aef6843a1 -Sorry, missed one setYmin/setYmax in a python file
git-svn-id: http://svn.osgeo.org/qgis/trunk@9178 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-26 21:08:57 +00:00
ersts
dfcacb69a3 -Propogated updates for QgsRect setYMin/setYMax
git-svn-id: http://svn.osgeo.org/qgis/trunk@9177 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-26 20:47:53 +00:00
jef
db574063e5 cleanup cleanup
- remove method names from QgsDebugMsg calls as they are already included in the output
- replace filename with file name in strings and comments instead of fileName (same for layerName)
- fix debugging output in interpolation plugin
  (QgsDebugMsg migration ate the last argument where std::flush was used)
- fix some common typos



git-svn-id: http://svn.osgeo.org/qgis/trunk@9150 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-24 14:07:06 +00:00
timlinux
ab85a37ff6 Follow Qt naming style: fileName instead of filename, layerName instead of layerName
git-svn-id: http://svn.osgeo.org/qgis/trunk@9136 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 19:55:27 +00:00
timlinux
0636f412b2 Use fileName() instead of setFilename() for filename accessor
git-svn-id: http://svn.osgeo.org/qgis/trunk@9135 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 19:38:17 +00:00
timlinux
c6fb52f15d Further api consistency cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9134 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 19:15:03 +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
jef
3599fa2fa2 rename qgsspatialrefsys.sip to qgscoordinatereferencesystem.sip
git-svn-id: http://svn.osgeo.org/qgis/trunk@9109 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-21 21:38:23 +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
jef
c175c12f98 re-add useIntersect support in QgsVectorLayer
git-svn-id: http://svn.osgeo.org/qgis/trunk@9097 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 18:25:17 +00:00
jef
43278d720b 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@9092 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 12:15:14 +00:00
jef
48dcaffbd5 add conversion for QMap<QString, QVariant::Type>
git-svn-id: http://svn.osgeo.org/qgis/trunk@9077 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 06:55:54 +00:00
jef
40446fb1f4 fix warning about returning temporary objects
git-svn-id: http://svn.osgeo.org/qgis/trunk@9076 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 06:55:00 +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
timlinux
aa896df17a Various changes relating to projection selector: Renamed QgsLayerProjectionSelector to QgsGenericProjectionSelector so that it can be used in other contexts too. Added setSelectedEpsg call to projection selector. Added setMessage() call to generic projection selector. Updated python bindings accordingly.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9011 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-07 00:16:37 +00:00
timlinux
747f57bd55 Changed poorly named EPSGID constant to GEOEPSG_ID
git-svn-id: http://svn.osgeo.org/qgis/trunk@9005 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-06 13:16:18 +00:00
timlinux
f27a50b1b6 Use mapRenderer() instead of mapRender() for the QgsMapCanvas map renderer accessor.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9002 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-06 12:42:23 +00:00
timlinux
fb674886b7 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@8997 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-05 21:11:58 +00:00
timlinux
845ed72a37 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@8976 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-02 07:54:31 +00:00
timlinux
1a21e1856d 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@8968 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-01 19:13:47 +00:00
timlinux
e1368a77a9 Fix for ticket #15 (Use term CRS instead of Projection throughout. Note this is a cosmetic fix only - internally class and var names still use the incorrect 'projection' nomenclature
git-svn-id: http://svn.osgeo.org/qgis/trunk@8954 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-31 20:07:07 +00:00
timlinux
6febbcaa36 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@8941 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 18:08:44 +00:00
timlinux
ddd934fe0a 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@8937 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-28 01:24:27 +00:00
jef
82971f40a1 fix common typo: retreive
(identifing copied code...)


git-svn-id: http://svn.osgeo.org/qgis/trunk@8791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-16 09:21:41 +00:00
jef
1be63335ca fix sip error
git-svn-id: http://svn.osgeo.org/qgis/trunk@8781 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-15 08:21:08 +00:00
jef
b5948bde31 add support for multiline labels (applies #1138)
git-svn-id: http://svn.osgeo.org/qgis/trunk@8775 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-14 20:21:57 +00:00
timlinux
3c13ecf648 Replaced QgisAppInterface::getToolBox() with QgisAppInterface::addDockWidget and updated dependent code & python bindings. Note you may need to do a clean build after this commit for python bindings to build ok. The toolbox was removed in 0.11.0 and so the old getToolBox call was broken - this provides a replacement for that functionality.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8774 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-14 20:19:52 +00:00
timlinux
e7d62a2190 Applied Ticket #1049: python-site-packages-dir-0.9.1.patch
git-svn-id: http://svn.osgeo.org/qgis/trunk@8749 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-10 09:11:50 +00:00
wonder
4a28f76aa4 Made setGeometry() argument const.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8736 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-08 14:03:09 +00:00
wonder
9cfa4d82a4 updated bindings from changes in r8709
git-svn-id: http://svn.osgeo.org/qgis/trunk@8727 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-07 11:44:41 +00:00
jef
41f62a8e3a fix gcc 4.3 warnings, a gcc 4.3 compile error and a MSVC warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@8666 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-21 15:35:32 +00:00
jef
5e58eb576b update sip binding after r8656:
replaces QgsMapCanvas::restoreMapTool(), which shouldn't be public, with a
signal and handles it in QgisApp.



git-svn-id: http://svn.osgeo.org/qgis/trunk@8665 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-21 15:34:01 +00:00
wonder
b7b9f62e70 Added QgsRect::intersects(QgsRect) predicate
git-svn-id: http://svn.osgeo.org/qgis/trunk@8651 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-17 00:15:08 +00:00
timlinux
0fa8024605 Implemented proxy support to be application global rather than set on a per connection basis
git-svn-id: http://svn.osgeo.org/qgis/trunk@8649 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-15 22:35:03 +00:00
ersts
c5d01dcb8b -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@8629 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-09 01:44:01 +00:00
wonder
e32b9bf1e3 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@8621 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-08 00:55:29 +00:00