QGIS/python/core/qgseditorwidgetsetup.sip
Patrick Valsecchi 7169079f91 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-09-05 14:22:17 +02:00

33 lines
619 B
Plaintext

/** \ingroup core
* Holder for the widget type and its configuration for a field.
*/
class QgsEditorWidgetSetup
{
%TypeHeaderCode
#include <qgseditorwidgetsetup.h>
%End
public:
/**
* Constructor
*/
QgsEditorWidgetSetup( const QString& type, const QgsEditorWidgetConfig& config );
QgsEditorWidgetSetup();
/**
* @return the widget type to use
*/
QString type() const;
/**
* @return the widget configuration to used
*/
QgsEditorWidgetConfig config() const;
/**
* @return true if there is no widget configured.
*/
bool isNull() const;
};