Quantum GIS API Documentation
1.8
|
#include <qgsattributeeditor.h>
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) |
Definition at line 28 of file qgsattributeeditor.h.
QgsAttributeEditor::QgsAttributeEditor | ( | QObject * | parent | ) | [inline] |
Definition at line 33 of file qgsattributeeditor.h.
Referenced by createAttributeEditor().
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 487 of file qgsattributeeditor.cpp.
References QgsVectorLayer::checkedState(), QgsVectorLayer::Classification, QgsVectorLayer::editType(), QgsVectorLayer::pendingFields(), QgsField::type(), QgsVectorLayer::UniqueValues, QgsVectorLayer::ValueMap, and QgsVectorLayer::ValueRelation.
void QgsAttributeEditor::selectDate | ( | ) | [slot] |
Definition at line 68 of file qgsattributeeditor.cpp.
Referenced by createAttributeEditor().
void QgsAttributeEditor::selectFileName | ( | ) | [slot] |
Definition at line 46 of file qgsattributeeditor.cpp.
Referenced by createAttributeEditor().
bool QgsAttributeEditor::setValue | ( | QWidget * | widget, |
QgsVectorLayer * | vl, | ||
int | idx, | ||
const QVariant & | value | ||
) | [static] |
Definition at line 660 of file qgsattributeeditor.cpp.
References QgsVectorLayer::Calendar, QgsVectorLayer::CheckBox, QgsVectorLayer::checkedState(), QgsVectorLayer::Classification, QgsVectorLayer::DialRange, QgsVectorLayer::EditRange, QgsVectorLayer::editType(), QgsVectorLayer::Enumeration, QgsVectorLayer::FileName, QgsVectorLayer::Immutable, QgsVectorLayer::LineEdit, QgsVectorLayer::pendingFields(), QgsVectorLayer::SliderRange, QgsField::type(), QgsVectorLayer::UniqueValues, QgsVectorLayer::UniqueValuesEditable, QgsVectorLayer::UuidGenerator, QgsVectorLayer::ValueMap, and QgsVectorLayer::ValueRelation.
Referenced by createAttributeEditor().