2011-03-23 00:58:54 +00:00
|
|
|
|
|
|
|
// \brief create attribute widget for editing
|
|
|
|
class QgsAttributeEditor : QObject
|
2011-03-22 23:18:06 +00:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
2011-03-23 00:00:23 +00:00
|
|
|
#include <qgsattributeeditor.h>
|
2011-03-22 23:18:06 +00:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2011-03-22 23:18:06 +00:00
|
|
|
public:
|
|
|
|
QgsAttributeEditor( QObject *parent );
|
|
|
|
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 );
|
|
|
|
|
|
|
|
public slots:
|
2011-03-23 00:58:54 +00:00
|
|
|
void selectFileName();
|
|
|
|
void selectDate();
|
2011-03-22 23:18:06 +00:00
|
|
|
};
|