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

#include <pqLoadStateReaction.h>

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

Public Slots

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

Public Member Functions

 pqLoadStateReaction (QAction *parent)
 Constructor. 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 loadState (const QString &filename, bool dialogBlocked=false, pqServer *server=nullptr, vtkTypeUInt32 location=0x10)
 Loads the state file. More...
 
static void loadState ()
 
static void activateView ()
 Set default active view after state is loaded. 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

Definition at line 17 of file pqLoadStateReaction.h.

Constructor & Destructor Documentation

◆ pqLoadStateReaction()

pqLoadStateReaction::pqLoadStateReaction ( QAction *  parent)

Constructor.

Parent cannot be nullptr.

Member Function Documentation

◆ loadState() [1/2]

static void pqLoadStateReaction::loadState ( const QString &  filename,
bool  dialogBlocked = false,
pqServer server = nullptr,
vtkTypeUInt32  location = 0x10 
)
static

Loads the state file.

Note that this method is static. Applications can simply use this without having to create a reaction instance. If no server is specified, active server is used.

◆ loadState() [2/2]

static void pqLoadStateReaction::loadState ( )
static

◆ activateView()

static void pqLoadStateReaction::activateView ( )
static

Set default active view after state is loaded.

Make the first view active.

◆ updateEnableState

void pqLoadStateReaction::updateEnableState ( )
overrideslot

Updates the enabled state.

Applications need not explicitly call this.

◆ onTriggered()

void pqLoadStateReaction::onTriggered ( )
inlineoverrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 53 of file pqLoadStateReaction.h.


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