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 
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
location
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
static bool saveState()
Open File dialog in order to choose the location and the type of the state file that should be saved ...
Reaction for saving state file.
void onTriggered() override
Called when the action is triggered.