QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
QgsAttributeEditor Class Reference

create attribute widget for editing More...

#include <qgsattributeeditor.h>

Inheritance diagram for QgsAttributeEditor:
Inheritance graph
[legend]

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. More...
 
static QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value)
 Creates or prepares a attribute editor widget. More...
 
static QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QgsAttributeEditorContext &context)
 Creates or prepares a attribute editor widget. More...
 
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:

Definition at line 38 of file qgsattributeeditor.h.

Constructor & Destructor Documentation

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

Definition at line 43 of file qgsattributeeditor.h.

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:

Definition at line 70 of file qgsattributeeditor.cpp.

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

Definition at line 63 of file qgsattributeeditor.cpp.

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

Definition at line 79 of file qgsattributeeditor.cpp.

bool QgsAttributeEditor::retrieveValue ( QWidget *  widget,
QgsVectorLayer vl,
int  idx,
QVariant &  value 
)
static

Definition at line 97 of file qgsattributeeditor.cpp.

bool QgsAttributeEditor::setValue ( QWidget *  widget,
QgsVectorLayer vl,
int  idx,
const QVariant &  value 
)
static

Definition at line 115 of file qgsattributeeditor.cpp.


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