QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
QgsAttributeEditor Class Reference

create attribute widget for editing More...

#include <qgsattributeeditor.h>

Public Member Functions

 QgsAttributeEditor (QObject *parent, QgsVectorLayer *vl=0, int idx=-1)

Static Public Member Functions

static Q_DECL_DEPRECATED QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QMap< int, QWidget * > &proxyWidgets)
 Creates or prepares a attribute editor widget.
static QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value)
 Creates or prepares a attribute editor widget.
static QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QgsAttributeEditorContext &context)
 Creates or prepares a attribute editor widget.
static bool retrieveValue (QWidget *widget, QgsVectorLayer *vl, int idx, QVariant &value)
static bool setValue (QWidget *widget, QgsVectorLayer *vl, int idx, const QVariant &value)

Detailed Description

create attribute widget for editing

Deprecated:

Constructor & Destructor Documentation

QgsAttributeEditor::QgsAttributeEditor ( QObject *  parent,
QgsVectorLayer vl = 0,
int  idx = -1 
)
inline

Member Function Documentation

QWidget * QgsAttributeEditor::createAttributeEditor ( QWidget *  parent,
QWidget *  editor,
QgsVectorLayer vl,
int  idx,
const QVariant &  value,
QMap< int, QWidget * > &  proxyWidgets 
)
static

Creates or prepares a attribute editor widget.

Parameters
parentThe parent object
editorThe widget to prepare. Set to null if it should be generated
vlThe vector layer to use as data source
idxThe field index this widget refers to
valuethe value to initiate this widget with
proxyWidgetsan array of widgets, which will act as a value proxy if the same field is inserted multiple times
Deprecated:
QWidget * QgsAttributeEditor::createAttributeEditor ( QWidget *  parent,
QWidget *  editor,
QgsVectorLayer vl,
int  idx,
const QVariant &  value 
)
static

Creates or prepares a attribute editor widget.

Parameters
parentThe parent object
editorThe widget to prepare. Set to null if it should be generated
vlThe vector layer to use as data source
idxThe field index this widget refers to
valuethe value to initiate this widget with
QWidget * QgsAttributeEditor::createAttributeEditor ( QWidget *  parent,
QWidget *  editor,
QgsVectorLayer vl,
int  idx,
const QVariant &  value,
QgsAttributeEditorContext context 
)
static

Creates or prepares a attribute editor widget.

Parameters
parentThe parent object
editorThe widget to prepare. Set to null if it should be generated
vlThe vector layer to use as data source
idxThe field index this widget refers to
valuethe value to initiate this widget with
contextthe context used for the created attribute editor
bool QgsAttributeEditor::retrieveValue ( QWidget *  widget,
QgsVectorLayer vl,
int  idx,
QVariant &  value 
)
static
bool QgsAttributeEditor::setValue ( QWidget *  widget,
QgsVectorLayer vl,
int  idx,
const QVariant &  value 
)
static

The documentation for this class was generated from the following files: