pqSaveStateReaction.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqSaveStateReaction_h
5 #define pqSaveStateReaction_h
6 
7 #include "pqReaction.h"
8 #include "vtkType.h" // needed for vtkTypeUInt32
9 
14 class PQAPPLICATIONCOMPONENTS_EXPORT pqSaveStateReaction : public pqReaction
15 {
16  Q_OBJECT
17  typedef pqReaction Superclass;
18 
19 public:
23  pqSaveStateReaction(QAction* parent);
24  ~pqSaveStateReaction() override = default;
25 
31  static bool saveState();
32 
39  static bool saveState(
40  const QString& filename, vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
41 
48  static bool savePythonState(
49  const QString& filename, vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
50 
51 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
55  void updateEnableState() override;
56 
57 protected:
62 
63 private:
64  Q_DISABLE_COPY(pqSaveStateReaction)
65 };
66 
67 #endif
pqReaction.h
vtkType.h
pqReaction::updateEnableState
virtual void updateEnableState()
Definition: pqReaction.h:48
pqSaveStateReaction::saveState
static bool saveState()
Open File dialog in order to choose the location and the type of the state file that should be saved ...
location
location
pqSaveStateReaction
Definition: pqSaveStateReaction.h:14
pqSaveStateReaction::onTriggered
void onTriggered() override
Called when the action is triggered.
Definition: pqSaveStateReaction.h:61
pqReaction
Definition: pqReaction.h:25