mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
990b740217
commit
0408094792
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user