[QGIS Commit] r11014 - in trunk/qgis: python/core src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jul 3 11:42:43 EDT 2009
Author: mhugent
Date: 2009-07-03 11:42:42 -0400 (Fri, 03 Jul 2009)
New Revision: 11014
Modified:
trunk/qgis/python/core/qgsapplication.sip
trunk/qgis/python/core/qgsvectorlayer.sip
trunk/qgis/src/core/qgsapplication.h
Log:
Updated python bindings with some added functions
Modified: trunk/qgis/python/core/qgsapplication.sip
===================================================================
--- trunk/qgis/python/core/qgsapplication.sip 2009-07-03 11:08:05 UTC (rev 11013)
+++ trunk/qgis/python/core/qgsapplication.sip 2009-07-03 15:42:42 UTC (rev 11014)
@@ -104,6 +104,20 @@
//! Returns the path to the authors file.
static const QString authorsFilePath();
+ /**Returns the path to the sponsors file.
+ @note this function was added in version 1.2*/
+ static const QString sponsorsFilePath();
+
+ /** Returns the path to the donors file.
+ @note this function was added in version 1.2*/
+ static const QString donorsFilePath();
+
+ /**
+ * Returns the path to the sponsors file.
+ * @note This was added in QGIS 1.1
+ */
+ static const QString translatorsFilePath();
+
//! Returns the path to the developer image directory.
static const QString developerPath();
Modified: trunk/qgis/python/core/qgsvectorlayer.sip
===================================================================
--- trunk/qgis/python/core/qgsvectorlayer.sip 2009-07-03 11:08:05 UTC (rev 11013)
+++ trunk/qgis/python/core/qgsvectorlayer.sip 2009-07-03 15:42:42 UTC (rev 11014)
@@ -335,6 +335,18 @@
*/
bool addAttribute( QString name, QString type );
+ /**Sets an alias (a display name) for attributes to display in dialogs
+ @note added in version 1.2*/
+ void addAttributeAlias( int attIndex, QString aliasString );
+
+ /**Returns the alias of an attribute name or an empty string if there is no alias
+ @note added in version 1.2*/
+ QString attributeAlias( int attributeIndex ) const;
+
+ /**Convenience function that returns the attribute alias if defined or the field name else
+ @note added in version 1.2*/
+ QString attributeDisplayName( int attributeIndex ) const;
+
/** delete an attribute field (but does not commit it) */
bool deleteAttribute(int attr);
Modified: trunk/qgis/src/core/qgsapplication.h
===================================================================
--- trunk/qgis/src/core/qgsapplication.h 2009-07-03 11:08:05 UTC (rev 11013)
+++ trunk/qgis/src/core/qgsapplication.h 2009-07-03 15:42:42 UTC (rev 11014)
@@ -54,12 +54,14 @@
//! Returns the path to the authors file.
static const QString authorsFilePath();
- //! Returns the path to the sponsors file.
+ /**Returns the path to the sponsors file.
+ @note this function was added in version 1.2*/
static const QString sponsorsFilePath();
- //! Returns the path to the donors file.
+ /** Returns the path to the donors file.
+ @note this function was added in version 1.2*/
static const QString donorsFilePath();
-
+
/**
* Returns the path to the sponsors file.
* @note This was added in QGIS 1.1
More information about the QGIS-commit
mailing list