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

Reaction for application undo-redo. More...

#include <pqUndoRedoReaction.h>

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

Public Member Functions

 pqUndoRedoReaction (QAction *parent, bool undo)
 if undo is set to true, then this behaves as an undo-reaction otherwise as a redo-reaction. 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 undo ()
 undo. More...
 
static void redo ()
 redo. More...
 
static void clear ()
 Clear stack. More...
 

Protected Slots

void enable (bool)
 
void setLabel (const QString &label)
 
void setUndoStack (pqUndoStack *)
 
- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

Reaction for application undo-redo.

Definition at line 15 of file pqUndoRedoReaction.h.

Constructor & Destructor Documentation

◆ pqUndoRedoReaction()

pqUndoRedoReaction::pqUndoRedoReaction ( QAction *  parent,
bool  undo 
)

if undo is set to true, then this behaves as an undo-reaction otherwise as a redo-reaction.

Member Function Documentation

◆ undo()

static void pqUndoRedoReaction::undo ( )
static

undo.

◆ redo()

static void pqUndoRedoReaction::redo ( )
static

redo.

◆ clear()

static void pqUndoRedoReaction::clear ( )
static

Clear stack.

◆ enable

void pqUndoRedoReaction::enable ( bool  )
protectedslot

◆ setLabel

void pqUndoRedoReaction::setLabel ( const QString &  label)
protectedslot

◆ setUndoStack

void pqUndoRedoReaction::setUndoStack ( pqUndoStack )
protectedslot

◆ onTriggered()

void pqUndoRedoReaction::onTriggered ( )
inlineoverrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 51 of file pqUndoRedoReaction.h.


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