2017-01-19 18:54:16 +10:00
|
|
|
class QgsPropertyOverrideButton : QToolButton
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgspropertyoverridebutton.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsPropertyOverrideButton( QWidget* parent /TransferThis/ = 0,
|
|
|
|
const QgsVectorLayer *layer = 0 );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
|
|
|
void init( int propertyKey,
|
|
|
|
const QgsProperty& property,
|
|
|
|
const QgsPropertiesDefinition& definitions,
|
2017-05-02 07:21:20 +02:00
|
|
|
const QgsVectorLayer *layer = 0 );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
|
|
|
void init( int propertyKey,
|
|
|
|
const QgsAbstractPropertyCollection& collection,
|
|
|
|
const QgsPropertiesDefinition& definitions,
|
2017-05-02 07:21:20 +02:00
|
|
|
const QgsVectorLayer *layer = 0 );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
|
|
|
QgsProperty toProperty() const;
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setToProperty( const QgsProperty &property );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
|
|
|
int propertyKey() const;
|
|
|
|
|
|
|
|
bool isActive() const;
|
|
|
|
|
|
|
|
QgsPropertyDefinition::DataType validDataType() const;
|
|
|
|
|
|
|
|
QString fullDescription() const;
|
|
|
|
|
|
|
|
QString usageInfo() const;
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setUsageInfo( const QString &info );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setVectorLayer( const QgsVectorLayer *layer );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
const QgsVectorLayer *vectorLayer() const;
|
2017-01-19 18:54:16 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void registerCheckedWidget( QWidget *widget );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void registerExpressionContextGenerator( QgsExpressionContextGenerator *generator );
|
2017-01-19 18:54:16 +10:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void setActive( bool active );
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void changed();
|
|
|
|
|
|
|
|
void activated( bool isActive );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void mouseReleaseEvent( QMouseEvent *event );
|
|
|
|
};
|
|
|
|
|