17 #ifndef QGSATTRIBUTEEDITOR_H
18 #define QGSATTRIBUTEEDITOR_H
22 #include <QGridLayout>
60 static QWidget* createAttributeEditor( QWidget* parent, QWidget* editor,
QgsVectorLayer* vl,
int idx,
const QVariant &value, QMap<int, QWidget*>& proxyWidgets );
71 static QWidget* createAttributeEditor( QWidget* parent, QWidget* editor,
QgsVectorLayer* vl,
int idx,
const QVariant& value );
99 static bool retrieveValue( QWidget *widget,
QgsVectorLayer *vl,
int idx, QVariant &value );
100 static bool setValue( QWidget *widget,
QgsVectorLayer *vl,
int idx,
const QVariant &value );
103 static QComboBox *comboBox( QWidget *editor, QWidget *parent );
104 static QListWidget *listWidget( QWidget *editor, QWidget *parent );
105 static QgsDualView* dualView( QWidget* editor, QWidget* parent );
108 void selectFileName();
110 void loadUrl(
const QString & );
111 void loadPixmap(
const QString & );
128 : QObject( parent ) {}
134 void changeText( QString str );
137 void textChanged( QString );
void appendProxy(QWidget *proxy)
QList< QWidget * > mProxyList
This class contains context information for attribute editor widgets.
QgsAttributeEditor(QObject *parent, QgsVectorLayer *vl=0, int idx=-1)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
This class manages a set of relations between layers.
QgsStringRelay(QObject *parent=NULL)
Represents a vector layer which manages a vector based data sets.
Q_DECLARE_METATYPE(QgsExpression::Interval)
This widget is used to show the attributes of a set of features of a QgsVectorLayer.