mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
This commit adds a new framework for implementing paint effects, which modify the results of QPainter operations to apply visual effects such as drop shadows and blurs. The initial implementation allows for effects to be applied to entire layers and individual symbol layers. Included are a drop shadow, inner shadow, blur, inner glow, outer glow, colorise and transform effect. A "stack" effect is also implemented which allows other paint effects to be combined in various ways. Sponsored by hundreds of generous kickstarter contributors!
44 lines
925 B
Plaintext
44 lines
925 B
Plaintext
/** \ingroup gui
|
|
* \class QgsPaintEffectPropertiesWidget
|
|
* \brief A widget which modifies the properties of a QgsPaintEffect
|
|
*
|
|
* \note Added in version 2.9
|
|
*/
|
|
|
|
class QgsPaintEffectPropertiesWidget : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgspainteffectpropertieswidget.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
/** QgsPaintEffectPropertiesWidget constructor
|
|
* @param effect QgsPaintEffect to modify in the widget
|
|
* @param parent parent widget
|
|
*/
|
|
QgsPaintEffectPropertiesWidget( QgsPaintEffect* effect, QWidget* parent /TransferThis/ = NULL );
|
|
|
|
public slots:
|
|
|
|
/** Update widget when effect type changes
|
|
*/
|
|
void effectTypeChanged();
|
|
|
|
/** Emits the changed signal
|
|
*/
|
|
void emitSignalChanged();
|
|
|
|
signals:
|
|
|
|
/** Emitted when paint effect properties changes
|
|
*/
|
|
void changed();
|
|
|
|
/** Emitted when paint effect type changes
|
|
*/
|
|
void changeEffect( QgsPaintEffect* effect );
|
|
|
|
};
|
|
|