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

Reaction for saving state file. More...

#include <pqSaveStateReaction.h>

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

Public Slots

void updateEnableState ()
 Updates the enabled state. More...
 

Public Member Functions

 pqSaveStateReaction (QAction *parent)
 Constructor. More...
 
 ~pqSaveStateReaction ()
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
virtual ~pqReaction ()
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Static Public Member Functions

static void saveState ()
 Open File dialog in order to choose the location and the type of the state file that should be saved. More...
 
static void saveState (const QString &filename)
 Saves the state file. More...
 
static void savePythonState (const QString &filename)
 Saves the state file as a python state. 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 saving state file.

Definition at line 41 of file pqSaveStateReaction.h.

Constructor & Destructor Documentation

◆ pqSaveStateReaction()

pqSaveStateReaction::pqSaveStateReaction ( QAction *  parent)

Constructor.

Parent cannot be NULL.

◆ ~pqSaveStateReaction()

pqSaveStateReaction::~pqSaveStateReaction ( )
inline

Definition at line 51 of file pqSaveStateReaction.h.

Member Function Documentation

◆ saveState() [1/2]

static void pqSaveStateReaction::saveState ( )
static

Open File dialog in order to choose the location and the type of the state file that should be saved.

◆ saveState() [2/2]

static void pqSaveStateReaction::saveState ( const QString &  filename)
static

Saves the state file.

Note that this method is static. Applications can simply use this without having to create a reaction instance.

◆ savePythonState()

static void pqSaveStateReaction::savePythonState ( const QString &  filename)
static

Saves the state file as a python state.

Note that this method is static. Applications can simply use this without having to create a reaction instance.

◆ updateEnableState

void pqSaveStateReaction::updateEnableState ( )
slot

Updates the enabled state.

Applications need not explicitly call this.

◆ onTriggered()

virtual void pqSaveStateReaction::onTriggered ( )
inlineprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 84 of file pqSaveStateReaction.h.


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