mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Create a new widget for for attribute form fix #10281 fix #7319 fix #7013 fix #9335 fix #4417
29 lines
792 B
Plaintext
29 lines
792 B
Plaintext
/**
|
|
* This class contains context information for attribute editor widgets.
|
|
* It will be passed to embedded widgets whenever this occurs (e.g. when
|
|
* showing an embedded form due to relations)
|
|
*/
|
|
|
|
class QgsAttributeEditorContext
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgsattributeeditorcontext.h"
|
|
%End
|
|
public:
|
|
QgsAttributeEditorContext();
|
|
|
|
void setDistanceArea( const QgsDistanceArea& distanceArea );
|
|
const QgsDistanceArea& distanceArea();
|
|
|
|
void setVectorLayerTools( QgsVectorLayerTools* vlTools );
|
|
QgsVectorLayerTools* vectorLayerTools();
|
|
|
|
/**
|
|
* When copying the context for another layer, call this.
|
|
* Will adjast the distance area for this layer
|
|
*
|
|
* @param layer The layer to adjust for.
|
|
*/
|
|
void adjustForLayer( QgsVectorLayer* layer );
|
|
};
|