Public Types | 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 Types

enum  DeleteModes { SELECTED, ALL, TREE }
 

Public Slots

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

Public Member Functions

 pqDeleteReaction (QAction *parent, DeleteModes mode=SELECTED)
 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. More...
 
 ~pqReaction () override
 
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 deleteTree ()
 
static bool canDeleteTree ()
 
static void deleteSources (const QSet< pqProxy *> &sources)
 Deletes all sources in the set, if possible. More...
 

Protected Member Functions

void onTriggered () override
 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 16 of file pqDeleteReaction.h.

Member Enumeration Documentation

◆ DeleteModes

Enumerator
SELECTED 
ALL 
TREE 

Definition at line 22 of file pqDeleteReaction.h.

Constructor & Destructor Documentation

◆ pqDeleteReaction()

pqDeleteReaction::pqDeleteReaction ( QAction *  parent,
DeleteModes  mode = SELECTED 
)

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

◆ deleteTree()

static void pqDeleteReaction::deleteTree ( )
static

◆ canDeleteTree()

static bool pqDeleteReaction::canDeleteTree ( )
static

◆ deleteSources()

static void pqDeleteReaction::deleteSources ( const QSet< pqProxy *> &  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 ( )
overrideslot

Updates the enabled state.

Applications need not explicitly call this.

◆ deleteSource

void pqDeleteReaction::deleteSource ( pqProxy source)
slot

Request deletion of a particular source.

◆ onTriggered()

void pqDeleteReaction::onTriggered ( )
overrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.


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