#include <qgsattributeeditor.h>
Public Slots | |
void | selectFileName (void) |
void | selectDate (void) |
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 29 of file qgsattributeeditor.h.
QgsAttributeEditor::QgsAttributeEditor | ( | QObject * | parent | ) | [inline] |
QWidget * QgsAttributeEditor::createAttributeEditor | ( | QWidget * | parent, | |
QWidget * | editor, | |||
QgsVectorLayer * | vl, | |||
int | idx, | |||
const QVariant & | value | |||
) | [static] |
Definition at line 109 of file qgsattributeeditor.cpp.
References QgsVectorLayer::Calendar, QgsVectorLayer::CheckBox, QgsVectorLayer::Classification, comboBox(), QgsVectorLayer::dataProvider(), QgsVectorLayer::DialRange, QgsVectorLayer::EditRange, QgsVectorLayer::editType(), QgsVectorLayer::Enumeration, QgsVectorDataProvider::enumValues(), QgsVectorLayer::FileName, QgsVectorLayer::Hidden, QgsVectorLayer::Immutable, QgsVectorLayer::LineEdit, MathUtils::max(), MathUtils::min(), QgsVectorLayer::pendingFields(), QgsAttributeEditor(), QgsVectorLayer::range(), QgsVectorLayer::renderer(), QgsVectorLayer::rendererV2(), selectDate(), selectFileName(), setValue(), QgsVectorLayer::SliderRange, QgsUniqueValueRenderer::symbols(), QgsVectorLayer::TextEdit, QgsField::type(), QgsVectorDataProvider::uniqueValues(), QgsVectorLayer::UniqueValues, QgsVectorLayer::UniqueValuesEditable, QgsVectorLayer::valueMap(), and QgsVectorLayer::ValueMap.
Referenced by QgsFormAnnotationItem::createDesignerWidget().
bool QgsAttributeEditor::retrieveValue | ( | QWidget * | widget, | |
QgsVectorLayer * | vl, | |||
int | idx, | |||
QVariant & | value | |||
) | [static] |
Definition at line 444 of file qgsattributeeditor.cpp.
References QgsVectorLayer::checkedState(), QgsVectorLayer::Classification, QgsVectorLayer::editType(), QgsVectorLayer::pendingFields(), QgsField::type(), QgsVectorLayer::UniqueValues, and QgsVectorLayer::ValueMap.
bool QgsAttributeEditor::setValue | ( | QWidget * | widget, | |
QgsVectorLayer * | vl, | |||
int | idx, | |||
const QVariant & | value | |||
) | [static] |
Definition at line 608 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, and QgsVectorLayer::ValueMap.
Referenced by createAttributeEditor().
QComboBox * QgsAttributeEditor::comboBox | ( | QWidget * | editor, | |
QWidget * | parent | |||
) | [static, private] |
void QgsAttributeEditor::selectFileName | ( | void | ) | [slot] |
void QgsAttributeEditor::selectDate | ( | void | ) | [slot] |