Reaction for saving state file. More...
#include <pqSaveStateReaction.h>
Public Slots | |
void | updateEnableState () override |
Updates the enabled state. More... | |
Public Member Functions | |
pqSaveStateReaction (QAction *parent) | |
Constructor. More... | |
~pqSaveStateReaction () override=default | |
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 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 vtkSMProxy * | createPythonStateOptions (bool interactive) |
Create a PythonStateOptions proxy. More... | |
static bool | savePythonState (const QString &filename, vtkTypeUInt32 location=0x10) |
Saves the state file as a python state. More... | |
static bool | savePythonState (const QString &filename, vtkSMProxy *options, vtkTypeUInt32 location) |
Saves the state file as a python state. 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 |
Reaction for saving state file.
Definition at line 18 of file pqSaveStateReaction.h.
pqSaveStateReaction::pqSaveStateReaction | ( | QAction * | parent | ) |
Constructor.
Parent cannot be nullptr.
|
overridedefault |
|
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.
|
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.
|
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.
|
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.
When provided, options
is expected to be a PythonStateOptions proxy to configure the export. The method without the options
argument raises a configuration dialog to create it. See createPythonStateOptions
|
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.
When provided, options
is expected to be a PythonStateOptions proxy to configure the export. The method without the options
argument raises a configuration dialog to create it. See createPythonStateOptions
|
static |
Create a PythonStateOptions proxy.
If interactive is true, a proxy properties window is raised to configure the proxy.
The caller is responsible of deletion.
|
overrideslot |
Updates the enabled state.
Applications need not explicitly call this.
|
inlineoverrideprotectedvirtual |
Called when the action is triggered.
Reimplemented from pqReaction.
Definition at line 89 of file pqSaveStateReaction.h.