Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
pqTestingReaction Class Reference

pqTestingReaction can be used to recording or playing back tests. More...

#include <pqTestingReaction.h>

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

Public Types

enum  Mode { RECORD, PLAYBACK, LOCK_VIEW_SIZE, LOCK_VIEW_SIZE_CUSTOM }
 

Public Member Functions

 pqTestingReaction (QAction *parentObject, Mode mode, Qt::ConnectionType type=Qt::AutoConnection)
 
- Public Member Functions inherited from pqMasterOnlyReaction
 pqMasterOnlyReaction (QAction *parentObject)
 
 pqMasterOnlyReaction (QAction *parentObject, Qt::ConnectionType type)
 
- 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 recordTest (const QString &filename)
 Records test. More...
 
static void recordTest ()
 
static void playTest (const QString &filename)
 Plays test. More...
 
static void playTest ()
 
static void lockViewSize (bool)
 Locks the view size for testing. More...
 
static void lockViewSizeCustom ()
 Locks the view size with a custom resolution. More...
 

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

pqTestingReaction can be used to recording or playing back tests.

Definition at line 13 of file pqTestingReaction.h.

Member Enumeration Documentation

◆ Mode

Enumerator
RECORD 
PLAYBACK 
LOCK_VIEW_SIZE 
LOCK_VIEW_SIZE_CUSTOM 

Definition at line 19 of file pqTestingReaction.h.

Constructor & Destructor Documentation

◆ pqTestingReaction()

pqTestingReaction::pqTestingReaction ( QAction *  parentObject,
Mode  mode,
Qt::ConnectionType  type = Qt::AutoConnection 
)

Member Function Documentation

◆ recordTest() [1/2]

static void pqTestingReaction::recordTest ( const QString &  filename)
static

Records test.

◆ recordTest() [2/2]

static void pqTestingReaction::recordTest ( )
static

◆ playTest() [1/2]

static void pqTestingReaction::playTest ( const QString &  filename)
static

Plays test.

◆ playTest() [2/2]

static void pqTestingReaction::playTest ( )
static

◆ lockViewSize()

static void pqTestingReaction::lockViewSize ( bool  )
static

Locks the view size for testing.

◆ lockViewSizeCustom()

static void pqTestingReaction::lockViewSizeCustom ( )
static

Locks the view size with a custom resolution.

◆ onTriggered()

void pqTestingReaction::onTriggered ( )
inlineoverrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 52 of file pqTestingReaction.h.


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