ParaView
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
pqDeleteReaction Class Reference

Reaction for delete sources (all or selected only). More...

#include <pqDeleteReaction.h>

Inheritance diagram for pqDeleteReaction:
Inheritance graph
[legend]
Collaboration diagram for pqDeleteReaction:
Collaboration graph
[legend]

Public Slots

void updateEnableState ()
 Updates the enabled state. More...
 
void deleteSource (pqPipelineSource *source)
 Request deletion of a particular source. More...
 

Public Member Functions

 pqDeleteReaction (QAction *parent, bool delete_all=false)
 if delete_all is false, then only selected items will be deleted if possible. More...
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. Parent cannot be NULL. More...
 
virtual ~pqReaction ()
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Static Public Member Functions

static void deleteAll ()
 
static void deleteSelected ()
 
static bool canDeleteSelected ()
 
static void deleteSources (QSet< pqPipelineSource *> &sources)
 Deletes all sources in the set, if possible. More...
 

Protected Member Functions

virtual void onTriggered ()
 Called when the action is triggered. More...
 

Additional Inherited Members

- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 
- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

Reaction for delete sources (all or selected only).

Definition at line 41 of file pqDeleteReaction.h.

Constructor & Destructor Documentation

§ pqDeleteReaction()

pqDeleteReaction::pqDeleteReaction ( QAction *  parent,
bool  delete_all = false 
)

if delete_all is false, then only selected items will be deleted if possible.

Member Function Documentation

§ deleteAll()

static void pqDeleteReaction::deleteAll ( )
static

§ deleteSelected()

static void pqDeleteReaction::deleteSelected ( )
static

§ canDeleteSelected()

static bool pqDeleteReaction::canDeleteSelected ( )
static

§ deleteSources()

static void pqDeleteReaction::deleteSources ( QSet< pqPipelineSource *> &  sources)
static

Deletes all sources in the set, if possible.

All variants of public methods on this class basically call this method with the sources set built up appropriately. The sources set is modified to remove all deleted sources. Any undeleted sources will remain in the set.

§ updateEnableState

void pqDeleteReaction::updateEnableState ( )
slot

Updates the enabled state.

Applications need not explicitly call this.

§ deleteSource

void pqDeleteReaction::deleteSource ( pqPipelineSource source)
slot

Request deletion of a particular source.

§ onTriggered()

virtual void pqDeleteReaction::onTriggered ( )
inlineprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 72 of file pqDeleteReaction.h.


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