Reaction for saving state file.
More...
#include <pqSaveStateReaction.h>
|
static bool | saveState () |
| Open File dialog, with the active server, in order to choose the location and the type of the state file that should be saved Returns true if the user selected a file to save and false if they canceled the dialog. More...
|
|
static bool | saveState (pqServer *server) |
| Open File dialog, with the specified server, in order to choose the location and the type of the state file that should be saved If the server is nullptr, files are browsed locally else remotely and optionally locally Returns true if the user selected a file to save and false if they canceled the dialog. More...
|
|
static bool | saveState (const QString &filename, vtkTypeUInt32 location=0x10) |
| Saves the state file. More...
|
|
static bool | savePythonState (const QString &filename, vtkTypeUInt32 location=0x10) |
| Saves the state file as a python state. More...
|
|
Reaction for saving state file.
Definition at line 16 of file pqSaveStateReaction.h.
◆ pqSaveStateReaction()
pqSaveStateReaction::pqSaveStateReaction |
( |
QAction * |
parent | ) |
|
Constructor.
Parent cannot be nullptr.
◆ ~pqSaveStateReaction()
pqSaveStateReaction::~pqSaveStateReaction |
( |
| ) |
|
|
overridedefault |
◆ saveState() [1/3]
static bool pqSaveStateReaction::saveState |
( |
| ) |
|
|
static |
Open File dialog, with the active server, in order to choose the location and the type of the state file that should be saved Returns true if the user selected a file to save and false if they canceled the dialog.
◆ saveState() [2/3]
static bool pqSaveStateReaction::saveState |
( |
pqServer * |
server | ) |
|
|
static |
Open File dialog, with the specified server, in order to choose the location and the type of the state file that should be saved If the server is nullptr, files are browsed locally else remotely and optionally locally Returns true if the user selected a file to save and false if they canceled the dialog.
◆ saveState() [3/3]
static bool pqSaveStateReaction::saveState |
( |
const QString & |
filename, |
|
|
vtkTypeUInt32 |
location = 0x10 |
|
) |
| |
|
static |
Saves the state file.
Note that this method is static. Applications can simply use this without having to create a reaction instance. Return true if the operation succeeded otherwise return false.
◆ savePythonState()
static bool pqSaveStateReaction::savePythonState |
( |
const QString & |
filename, |
|
|
vtkTypeUInt32 |
location = 0x10 |
|
) |
| |
|
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. Return true if the operation succeeded otherwise return false.
◆ updateEnableState
void pqSaveStateReaction::updateEnableState |
( |
| ) |
|
|
overrideslot |
Updates the enabled state.
Applications need not explicitly call this.
◆ onTriggered()
void pqSaveStateReaction::onTriggered |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: