Updated python bindings with some added functions

git-svn-id: http://svn.osgeo.org/qgis/trunk@11014 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2009-07-03 15:42:42 +00:00
parent 990b740217
commit 0408094792
3 changed files with 31 additions and 3 deletions

View File

@ -104,6 +104,20 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
//! 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();

View File

@ -335,6 +335,18 @@ public:
*/
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);

View File

@ -54,12 +54,14 @@ class CORE_EXPORT QgsApplication: public QApplication
//! 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