A widget for modifying the properties of a QgsEffectStack, including adding and reordering effects within the stack.
More...
#include <qgseffectstackpropertieswidget.h>
|
void | addEffect () |
| Adds a new effect to the stack.
|
|
void | changeEffect (QgsPaintEffect *newEffect) |
| Updates the effect stack when the currently selected effect changes properties.
|
|
void | effectChanged () |
| Updates the widget when the selected effect changes type.
|
|
void | moveEffectDown () |
| Moves the currently selected effect down in the stack.
|
|
void | moveEffectUp () |
| Moves the currently selected effect up in the stack.
|
|
void | removeEffect () |
| Removes the currently selected effect from the stack.
|
|
void | updatePreview () |
| Updates the effect preview icon.
|
|
void | acceptPanel () |
| Accept the panel.
|
|
void | openPanel (QgsPanelWidget *panel) |
| Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event.
|
|
|
EffectItem * | currentEffectItem () |
| Returns the currently selected effect within the stack.
|
|
void | loadStack () |
| Refreshes the widget to reflect the current state of the stack.
|
|
void | loadStack (QgsEffectStack *stack) |
| Refreshes the widget to reflect the current state of a specified stack.
|
|
void | moveEffectByOffset (int offset) |
| Moves the currently selected effect within the stack by a specified offset.
|
|
void | setWidget (QWidget *widget) |
| Sets the effect properties widget.
|
|
void | updateUi () |
| Enables or disables widgets depending on the selected effect within the stack.
|
|
void | keyPressEvent (QKeyEvent *event) override |
| Overridden key press event to handle the esc event on the widget.
|
|
A widget for modifying the properties of a QgsEffectStack, including adding and reordering effects within the stack.
- See also
- QgsEffectStack
-
QgsEffectStackPropertiesDialog
-
QgsEffectStackCompactWidget
Definition at line 49 of file qgseffectstackpropertieswidget.h.
◆ QgsEffectStackPropertiesWidget()
QgsEffectStackPropertiesWidget::QgsEffectStackPropertiesWidget |
( |
QgsEffectStack * |
stack, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ ~QgsEffectStackPropertiesWidget()
QgsEffectStackPropertiesWidget::~QgsEffectStackPropertiesWidget |
( |
| ) |
|
|
overridedefault |
◆ addEffect
void QgsEffectStackPropertiesWidget::addEffect |
( |
| ) |
|
|
slot |
◆ changeEffect
void QgsEffectStackPropertiesWidget::changeEffect |
( |
QgsPaintEffect * |
newEffect | ) |
|
|
slot |
Updates the effect stack when the currently selected effect changes properties.
- Parameters
-
newEffect | new effect to replace existing effect at selected position within the stack. |
Definition at line 345 of file qgseffectstackpropertieswidget.cpp.
◆ currentEffectItem()
EffectItem * QgsEffectStackPropertiesWidget::currentEffectItem |
( |
| ) |
|
|
protected |
◆ effectChanged
void QgsEffectStackPropertiesWidget::effectChanged |
( |
| ) |
|
|
slot |
◆ loadStack() [1/2]
void QgsEffectStackPropertiesWidget::loadStack |
( |
| ) |
|
|
protected |
◆ loadStack() [2/2]
void QgsEffectStackPropertiesWidget::loadStack |
( |
QgsEffectStack * |
stack | ) |
|
|
protected |
◆ moveEffectByOffset()
void QgsEffectStackPropertiesWidget::moveEffectByOffset |
( |
int |
offset | ) |
|
|
protected |
◆ moveEffectDown
void QgsEffectStackPropertiesWidget::moveEffectDown |
( |
| ) |
|
|
slot |
◆ moveEffectUp
void QgsEffectStackPropertiesWidget::moveEffectUp |
( |
| ) |
|
|
slot |
◆ removeEffect
void QgsEffectStackPropertiesWidget::removeEffect |
( |
| ) |
|
|
slot |
◆ setPreviewPicture()
void QgsEffectStackPropertiesWidget::setPreviewPicture |
( |
const QPicture & |
picture | ) |
|
◆ setWidget()
void QgsEffectStackPropertiesWidget::setWidget |
( |
QWidget * |
widget | ) |
|
|
protected |
◆ stack()
◆ updatePreview
void QgsEffectStackPropertiesWidget::updatePreview |
( |
| ) |
|
|
slot |
◆ updateUi()
void QgsEffectStackPropertiesWidget::updateUi |
( |
| ) |
|
|
protected |
◆ mModel
QStandardItemModel* QgsEffectStackPropertiesWidget::mModel = nullptr |
|
protected |
◆ mPresentWidget
QWidget* QgsEffectStackPropertiesWidget::mPresentWidget = nullptr |
|
protected |
◆ mPreviewPicture
QPicture QgsEffectStackPropertiesWidget::mPreviewPicture |
|
protected |
◆ mStack
The documentation for this class was generated from the following files: