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

Reaction to save a screen shot. More...

#include <pqSaveScreenshotReaction.h>

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

Public Slots

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

Public Member Functions

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

Static Public Member Functions

static void saveScreenshot ()
 Saves the screenshot. More...
 
static void saveScreenshot (const QString &filename, const QSize &size, int quality, bool all_views=false)
 

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 to save a screen shot.

Definition at line 39 of file pqSaveScreenshotReaction.h.

Constructor & Destructor Documentation

§ pqSaveScreenshotReaction()

pqSaveScreenshotReaction::pqSaveScreenshotReaction ( QAction *  parent)

Constructor. Parent cannot be NULL.

Member Function Documentation

§ saveScreenshot() [1/2]

static void pqSaveScreenshotReaction::saveScreenshot ( )
static

Saves the screenshot.

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

§ saveScreenshot() [2/2]

static void pqSaveScreenshotReaction::saveScreenshot ( const QString &  filename,
const QSize &  size,
int  quality,
bool  all_views = false 
)
static

§ updateEnableState

void pqSaveScreenshotReaction::updateEnableState ( )
slot

Updates the enabled state.

Applications need not explicitly call this.

§ onTriggered()

virtual void pqSaveScreenshotReaction::onTriggered ( )
inlineprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 63 of file pqSaveScreenshotReaction.h.


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