Quantum GIS API Documentation  1.8
Public Slots | Public Member Functions | Static Public Member Functions | Static Private Member Functions
QgsAttributeEditor Class Reference

#include <qgsattributeeditor.h>

List of all members.

Public Slots

void selectFileName ()
void selectDate ()

Public Member Functions

 QgsAttributeEditor (QObject *parent)

Static Public Member Functions

static QWidget * createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value)
static bool retrieveValue (QWidget *widget, QgsVectorLayer *vl, int idx, QVariant &value)
static bool setValue (QWidget *widget, QgsVectorLayer *vl, int idx, const QVariant &value)

Static Private Member Functions

static QComboBox * comboBox (QWidget *editor, QWidget *parent)

Detailed Description

Definition at line 28 of file qgsattributeeditor.h.


Constructor & Destructor Documentation

QgsAttributeEditor::QgsAttributeEditor ( QObject *  parent) [inline]

Definition at line 33 of file qgsattributeeditor.h.

Referenced by createAttributeEditor().


Member Function Documentation

QComboBox * QgsAttributeEditor::comboBox ( QWidget *  editor,
QWidget *  parent 
) [static, private]

Definition at line 104 of file qgsattributeeditor.cpp.

Referenced by createAttributeEditor().

QWidget * QgsAttributeEditor::createAttributeEditor ( QWidget *  parent,
QWidget *  editor,
QgsVectorLayer vl,
int  idx,
const QVariant &  value 
) [static]

Definition at line 115 of file qgsattributeeditor.cpp.

References QgsFeature::attributeMap(), QgsVectorLayer::Calendar, QgsCategorizedSymbolRendererV2::categories(), QgsVectorLayer::CheckBox, QgsVectorLayer::Classification, comboBox(), QgsVectorLayer::dataProvider(), QgsVectorLayer::DialRange, QgsVectorLayer::EditRange, QgsVectorLayer::editType(), QgsVectorLayer::Enumeration, QgsVectorDataProvider::enumValues(), QgsVectorLayer::fieldNameIndex(), QgsVectorLayer::FileName, QgsVectorLayer::Hidden, QgsVectorLayer::Immutable, QgsMapLayerRegistry::instance(), QgsVectorLayer::LineEdit, QgsVectorLayer::ValueRelationData::mAllowNull, QgsMapLayerRegistry::mapLayer(), MathUtils::max(), MathUtils::min(), QgsVectorLayer::ValueRelationData::mKey, QgsVectorLayer::ValueRelationData::mLayer, QgsVectorLayer::RangeData::mMax, QgsVectorLayer::RangeData::mMin, QgsVectorLayer::ValueRelationData::mOrderByValue, QgsVectorLayer::RangeData::mStep, QgsVectorLayer::ValueRelationData::mValue, QgsVectorLayer::nextFeature(), QgsVectorLayer::pendingFields(), QgsAttributeEditor(), QgsVectorLayer::range(), QgsVectorLayer::renderer(), QgsVectorLayer::rendererV2(), QgsVectorLayer::select(), selectDate(), selectFileName(), setValue(), QgsVectorLayer::SliderRange, QgsUniqueValueRenderer::symbols(), QgsVectorLayer::TextEdit, QgsField::type(), QgsVectorLayer::UniqueValues, QgsVectorDataProvider::uniqueValues(), QgsVectorLayer::UniqueValuesEditable, QgsVectorLayer::UuidGenerator, QgsVectorLayer::ValueMap, QgsVectorLayer::valueMap(), QgsVectorLayer::ValueRelation, and QgsVectorLayer::valueRelation().

Referenced by QgsFormAnnotationItem::createDesignerWidget().

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

Definition at line 68 of file qgsattributeeditor.cpp.

Referenced by createAttributeEditor().

Definition at line 46 of file qgsattributeeditor.cpp.

Referenced by createAttributeEditor().

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

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines