QGIS/python/gui/effects/qgseffectstackpropertieswidget.sip

236 lines
6.2 KiB
Plaintext
Raw Normal View History

2017-06-08 15:37:13 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/effects/qgseffectstackpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-06-13 18:07:39 +10:00
class QgsEffectStackPropertiesWidget : QgsPanelWidget
{
2017-06-08 15:37:13 +02:00
%Docstring
A widget for modifying the properties of a QgsEffectStack, including adding
and reordering effects within the stack.
.. versionadded:: 2.9
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsEffectStack`
.. seealso:: :py:class:`QgsEffectStackPropertiesDialog`
.. seealso:: :py:class:`QgsEffectStackCompactWidget`
%End
2017-06-08 15:37:13 +02:00
%TypeHeaderCode
#include "qgseffectstackpropertieswidget.h"
%End
public:
QgsEffectStackPropertiesWidget( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0 );
2017-06-08 15:37:13 +02:00
%Docstring
QgsEffectStackPropertiesWidget constructor
\param stack QgsEffectStack to modify in the widget
\param parent parent widget
%End
~QgsEffectStackPropertiesWidget();
QgsEffectStack *stack();
2017-06-08 15:37:13 +02:00
%Docstring
Returns effect stack attached to the widget
:return: QgsEffectStack modified by the widget
:rtype: QgsEffectStack
%End
void setPreviewPicture( const QPicture &picture );
2017-06-08 15:37:13 +02:00
%Docstring
Sets the picture to use for effect previews for the dialog
\param picture preview picture
%End
public slots:
void moveEffectDown();
2017-06-08 15:37:13 +02:00
%Docstring
Moves the currently selected effect down in the stack.
%End
void moveEffectUp();
2017-06-08 15:37:13 +02:00
%Docstring
Moves the currently selected effect up in the stack.
%End
void addEffect();
2017-06-08 15:37:13 +02:00
%Docstring
Adds a new effect to the stack.
%End
void removeEffect();
2017-06-08 15:37:13 +02:00
%Docstring
Removes the currently selected effect from the stack.
%End
void effectChanged();
2017-06-08 15:37:13 +02:00
%Docstring
Updates the widget when the selected effect changes type.
%End
void updatePreview();
2017-06-08 15:37:13 +02:00
%Docstring
Updates the effect preview icon.
%End
void changeEffect( QgsPaintEffect *newEffect );
2017-06-08 15:37:13 +02:00
%Docstring
Updates the effect stack when the currently selected effect changes properties.
\param newEffect new effect to replace existing effect at selected position within the stack.
%End
protected:
2017-06-08 15:37:13 +02:00
void loadStack();
2017-06-08 15:37:13 +02:00
%Docstring
Refreshes the widget to reflect the current state of the stack.
%End
void loadStack( QgsEffectStack *stack );
2017-06-08 15:37:13 +02:00
%Docstring
Refreshes the widget to reflect the current state of a specified stack.
\param stack QgsEffectStack for widget
%End
void updateUi();
2017-06-08 15:37:13 +02:00
%Docstring
Enables or disables widgets depending on the selected effect within the stack.
%End
void moveEffectByOffset( int offset );
2017-06-08 15:37:13 +02:00
%Docstring
Moves the currently selected effect within the stack by a specified offset
%End
void setWidget( QWidget *widget );
2017-06-08 15:37:13 +02:00
%Docstring
Sets the effect properties widget
%End
};
2017-06-08 15:37:13 +02:00
class QgsEffectStackPropertiesDialog: QgsDialog
{
2017-06-08 15:37:13 +02:00
%Docstring
A dialog for modifying the properties of a QgsEffectStack, including adding
and reordering effects within the stack.
.. versionadded:: 2.9
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsEffectStack`
.. seealso:: :py:class:`QgsEffectStackPropertiesWidget`
.. seealso:: :py:class:`QgsEffectStackCompactWidget`
%End
2017-06-08 15:37:13 +02:00
%TypeHeaderCode
#include "qgseffectstackpropertieswidget.h"
%End
public:
2017-06-08 15:37:13 +02:00
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = 0 );
%Docstring
QgsEffectStackPropertiesDialog constructor
\param stack QgsEffectStack to modify in the dialog
\param parent parent widget
\param f window flags
%End
QgsEffectStack *stack();
2017-06-08 15:37:13 +02:00
%Docstring
Returns effect stack attached to the dialog
:return: QgsEffectStack modified by the dialog
:rtype: QgsEffectStack
%End
void setPreviewPicture( const QPicture &picture );
2017-06-08 15:37:13 +02:00
%Docstring
Sets the picture to use for effect previews for the dialog
\param picture preview picture
%End
protected:
2015-04-07 14:27:39 +02:00
};
2017-06-08 15:37:13 +02:00
class QgsEffectStackCompactWidget: QgsPanelWidget
{
2017-06-08 15:37:13 +02:00
%Docstring
2017-07-02 22:51:26 +02:00
A small widget consisting of a checkbox for enabling/disabling an effect stack
2017-06-08 15:37:13 +02:00
and a button for opening an effect stack customisation dialog.
.. versionadded:: 2.9
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsEffectStack`
.. seealso:: :py:class:`QgsEffectStackPropertiesWidget`
.. seealso:: :py:class:`QgsEffectStackPropertiesDialog`
2017-06-08 15:37:13 +02:00
%End
%TypeHeaderCode
2017-06-08 15:37:13 +02:00
#include "qgseffectstackpropertieswidget.h"
%End
public:
QgsEffectStackCompactWidget( QWidget *parent /TransferThis/ = 0, QgsPaintEffect *effect = 0 );
2017-06-08 15:37:13 +02:00
%Docstring
QgsEffectStackCompactWidget constructor
\param parent parent widget
\param effect QgsPaintEffect for modification by the widget. If the effect
is not a QgsEffectStack, it will be automatically converted to an effect
stack consisting of the original effect
%End
~QgsEffectStackCompactWidget();
void setPaintEffect( QgsPaintEffect *effect );
2017-06-08 15:37:13 +02:00
%Docstring
Sets paint effect attached to the widget,
\param effect QgsPaintEffect for modification by the widget. If the effect
is not a QgsEffectStack, it will be automatically converted to an effect
stack consisting of the original effect
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`paintEffect`
2017-06-08 15:37:13 +02:00
%End
QgsPaintEffect *paintEffect() const;
2017-06-08 15:37:13 +02:00
%Docstring
Returns paint effect attached to the widget
:return: QgsPaintEffect modified by the widget
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setPaintEffect`
2017-06-08 15:37:13 +02:00
:rtype: QgsPaintEffect
%End
void setPreviewPicture( const QPicture &picture );
2017-06-08 15:37:13 +02:00
%Docstring
Sets the picture to use for effect previews for the dialog
\param picture preview picture
%End
signals:
void changed();
2017-06-08 15:37:13 +02:00
%Docstring
Emitted when the paint effect properties change
%End
};
2017-06-08 15:37:13 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/effects/qgseffectstackpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/