Public Slots | Public Member Functions | Protected Slots | List of all members
pqFiltersMenuReaction Class Reference

Reaction to handle creation of filters from the filters menu. More...

#include <pqFiltersMenuReaction.h>

Inherits QObject.

Public Slots

virtual void updateEnableState (bool updateOnlyToolbars=false)
 Updates the enabled state. More...
 
static pqPipelineSourcecreateFilter (const QString &group, const QString &name)
 Creates a filter of the given type. More...
 

Public Member Functions

 pqFiltersMenuReaction (pqProxyGroupMenuManager *menuManager, bool hideDisabledActions=false)
 

Protected Slots

virtual void onTriggered (const QString &group, const QString &name)
 Called when the action is triggered. More...
 
virtual void setEnableStateDirty ()
 

Detailed Description

Reaction to handle creation of filters from the filters menu.

pqFiltersMenuReaction knows when to enable/disable actions in the menu as well as what to do when an action is triggered.

Definition at line 21 of file pqFiltersMenuReaction.h.

Constructor & Destructor Documentation

◆ pqFiltersMenuReaction()

pqFiltersMenuReaction::pqFiltersMenuReaction ( pqProxyGroupMenuManager menuManager,
bool  hideDisabledActions = false 
)

Member Function Documentation

◆ updateEnableState

virtual void pqFiltersMenuReaction::updateEnableState ( bool  updateOnlyToolbars = false)
virtualslot

Updates the enabled state.

The actions in toolbars will be updated automatically. The containing widget of other actions should connect its aboutToShow signal to this slot.

◆ createFilter

static pqPipelineSource* pqFiltersMenuReaction::createFilter ( const QString &  group,
const QString &  name 
)
staticslot

Creates a filter of the given type.

◆ onTriggered

virtual void pqFiltersMenuReaction::onTriggered ( const QString &  group,
const QString &  name 
)
inlineprotectedvirtualslot

Called when the action is triggered.

Definition at line 46 of file pqFiltersMenuReaction.h.

◆ setEnableStateDirty

virtual void pqFiltersMenuReaction::setEnableStateDirty ( )
protectedvirtualslot

The documentation for this class was generated from the following file: