QGIS/python/gui/qgspropertyoverridebutton.sip
2017-05-02 08:09:53 +02:00

59 lines
1.4 KiB
Plaintext

class QgsPropertyOverrideButton : QToolButton
{
%TypeHeaderCode
#include <qgspropertyoverridebutton.h>
%End
public:
QgsPropertyOverrideButton( QWidget* parent /TransferThis/ = 0,
const QgsVectorLayer *layer = 0 );
void init( int propertyKey,
const QgsProperty& property,
const QgsPropertiesDefinition& definitions,
const QgsVectorLayer *layer = 0 );
void init( int propertyKey,
const QgsAbstractPropertyCollection& collection,
const QgsPropertiesDefinition& definitions,
const QgsVectorLayer *layer = 0 );
QgsProperty toProperty() const;
void setToProperty( const QgsProperty &property );
int propertyKey() const;
bool isActive() const;
QgsPropertyDefinition::DataType validDataType() const;
QString fullDescription() const;
QString usageInfo() const;
void setUsageInfo( const QString &info );
void setVectorLayer( const QgsVectorLayer *layer );
const QgsVectorLayer *vectorLayer() const;
void registerCheckedWidget( QWidget *widget );
void registerExpressionContextGenerator( QgsExpressionContextGenerator *generator );
public slots:
void setActive( bool active );
signals:
void changed();
void activated( bool isActive );
protected:
void mouseReleaseEvent( QMouseEvent *event );
};