QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
A widget for modifying the properties of a QgsEffectStack, including adding and reordering effects within the stack. More...
#include <qgseffectstackpropertieswidget.h>
Public Slots | |
void | addEffect () |
Adds a new effect to the stack. More... | |
void | changeEffect (QgsPaintEffect *newEffect) |
Updates the effect stack when the currently selected effect changes properties. More... | |
void | effectChanged () |
Updates the widget when the selected effect changes type. More... | |
void | moveEffectDown () |
Moves the currently selected effect down in the stack. More... | |
void | moveEffectUp () |
Moves the currently selected effect up in the stack. More... | |
void | removeEffect () |
Removes the currently selected effect from the stack. More... | |
void | updatePreview () |
Updates the effect preview icon. More... | |
Public Slots inherited from QgsPanelWidget | |
void | acceptPanel () |
Accept the panel. More... | |
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. More... | |
Public Member Functions | |
QgsEffectStackPropertiesWidget (QgsEffectStack *stack, QWidget *parent=nullptr) | |
QgsEffectStackPropertiesWidget constructor. More... | |
~QgsEffectStackPropertiesWidget () override | |
void | setPreviewPicture (const QPicture &picture) |
Sets the picture to use for effect previews for the dialog. More... | |
QgsEffectStack * | stack () |
Returns effect stack attached to the widget. More... | |
Public Member Functions inherited from QgsPanelWidget | |
QgsPanelWidget (QWidget *parent=nullptr) | |
Base class for any widget that can be shown as a inline panel. More... | |
virtual bool | applySizeConstraintsToStack () const |
Returns true if the size constraints and hints for the panel widget should be applied to the parent QgsPanelWidgetStack which this panel is shown in. More... | |
bool | autoDelete () |
The the auto delete property on the widget. More... | |
void | connectChildPanel (QgsPanelWidget *panel) |
Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. More... | |
void | connectChildPanels (const QList< QgsPanelWidget * > &panels) |
Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. More... | |
bool | dockMode () |
Returns the dock mode state. More... | |
virtual QMenu * | menuButtonMenu () |
Returns the menu to use for the menu button for this panel, or nullptr if no menu button is required. More... | |
virtual QString | menuButtonTooltip () const |
Returns the (translated) tooltip text to use for the menu button for this panel. More... | |
QString | panelTitle () |
The title of the panel. More... | |
void | setAutoDelete (bool autoDelete) |
The the auto delete property on the widget. More... | |
virtual void | setDockMode (bool dockMode) |
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs. More... | |
void | setPanelTitle (const QString &panelTitle) |
Set the title of the panel when shown in the interface. More... | |
Protected Member Functions | |
EffectItem * | currentEffectItem () |
Returns the currently selected effect within the stack. More... | |
void | loadStack () |
Refreshes the widget to reflect the current state of the stack. More... | |
void | loadStack (QgsEffectStack *stack) |
Refreshes the widget to reflect the current state of a specified stack. More... | |
void | moveEffectByOffset (int offset) |
Moves the currently selected effect within the stack by a specified offset. More... | |
void | setWidget (QWidget *widget) |
Sets the effect properties widget. More... | |
void | updateUi () |
Enables or disables widgets depending on the selected effect within the stack. More... | |
Protected Member Functions inherited from QgsPanelWidget | |
void | keyPressEvent (QKeyEvent *event) override |
Overridden key press event to handle the esc event on the widget. More... | |
Protected Attributes | |
QStandardItemModel * | mModel = nullptr |
QWidget * | mPresentWidget = nullptr |
QPicture | mPreviewPicture |
QgsEffectStack * | mStack = nullptr |
Additional Inherited Members | |
Signals inherited from QgsPanelWidget | |
void | panelAccepted (QgsPanelWidget *panel) |
Emitted when the panel is accepted by the user. More... | |
void | showPanel (QgsPanelWidget *panel) |
Emit when you require a panel to be show in the interface. More... | |
void | widgetChanged () |
Emitted when the widget state changes. More... | |
Static Public Member Functions inherited from QgsPanelWidget | |
static QgsPanelWidget * | findParentPanel (QWidget *widget) |
Traces through the parents of a widget to find if it is contained within a QgsPanelWidget widget. More... | |
A widget for modifying the properties of a QgsEffectStack, including adding and reordering effects within the stack.
Definition at line 50 of file qgseffectstackpropertieswidget.h.
QgsEffectStackPropertiesWidget::QgsEffectStackPropertiesWidget | ( | QgsEffectStack * | stack, |
QWidget * | parent = nullptr |
||
) |
QgsEffectStackPropertiesWidget constructor.
stack | QgsEffectStack to modify in the widget |
parent | parent widget |
Definition at line 97 of file qgseffectstackpropertieswidget.cpp.
|
overridedefault |
|
slot |
Adds a new effect to the stack.
Definition at line 275 of file qgseffectstackpropertieswidget.cpp.
|
slot |
Updates the effect stack when the currently selected effect changes properties.
newEffect | new effect to replace existing effect at selected position within the stack. |
Definition at line 344 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Returns the currently selected effect within the stack.
Definition at line 237 of file qgseffectstackpropertieswidget.cpp.
|
slot |
Updates the widget when the selected effect changes type.
Definition at line 247 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Refreshes the widget to reflect the current state of the stack.
Definition at line 183 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Refreshes the widget to reflect the current state of a specified stack.
stack | QgsEffectStack for widget |
Definition at line 164 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Moves the currently selected effect within the stack by a specified offset.
Definition at line 319 of file qgseffectstackpropertieswidget.cpp.
|
slot |
Moves the currently selected effect down in the stack.
Definition at line 309 of file qgseffectstackpropertieswidget.cpp.
|
slot |
Moves the currently selected effect up in the stack.
Definition at line 314 of file qgseffectstackpropertieswidget.cpp.
|
slot |
Removes the currently selected effect from the stack.
Definition at line 288 of file qgseffectstackpropertieswidget.cpp.
void QgsEffectStackPropertiesWidget::setPreviewPicture | ( | const QPicture & | picture | ) |
Sets the picture to use for effect previews for the dialog.
picture | preview picture |
Definition at line 158 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Sets the effect properties widget.
Definition at line 262 of file qgseffectstackpropertieswidget.cpp.
|
inline |
Returns effect stack attached to the widget.
Definition at line 69 of file qgseffectstackpropertieswidget.h.
|
slot |
Updates the effect preview icon.
Definition at line 206 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Enables or disables widgets depending on the selected effect within the stack.
Definition at line 189 of file qgseffectstackpropertieswidget.cpp.
|
protected |
Definition at line 118 of file qgseffectstackpropertieswidget.h.
|
protected |
Definition at line 119 of file qgseffectstackpropertieswidget.h.
|
protected |
Definition at line 120 of file qgseffectstackpropertieswidget.h.
|
protected |
Definition at line 117 of file qgseffectstackpropertieswidget.h.