Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated python bindings with some added functions
git-svn-id: http://svn.osgeo.org/qgis/trunk@11014 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 3, 2009
1 parent 990b740 commit 0408094
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
14 changes: 14 additions & 0 deletions python/core/qgsapplication.sip
Expand Up @@ -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();

Expand Down
12 changes: 12 additions & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -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);

Expand Down
8 changes: 5 additions & 3 deletions src/core/qgsapplication.h
Expand Up @@ -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
Expand Down

0 comments on commit 0408094

Please sign in to comment.