Skip to content
Permalink
Browse files

Updated python bindings with some added functions

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11014 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 3, 2009
1 parent c478e00 commit a4f94bdfcaf26ffb945cb10bf8411e978aafea74
Showing with 31 additions and 3 deletions.
  1. +14 −0 python/core/qgsapplication.sip
  2. +12 −0 python/core/qgsvectorlayer.sip
  3. +5 −3 src/core/qgsapplication.h
@@ -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();

@@ -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);

@@ -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

0 comments on commit a4f94bd

Please sign in to comment.
You can’t perform that action at this time.