pqLoadStateReaction.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 pqLoadStateReaction_h
5 #define pqLoadStateReaction_h
6 
7 #include "pqReaction.h"
8 #include "vtkType.h"
9 
10 class pqServer;
11 
16 class pqServer;
18 {
19  Q_OBJECT
20  typedef pqReaction Superclass;
21 
22 public:
26  pqLoadStateReaction(QAction* parent);
27 
34  static void loadState(const QString& filename, bool dialogBlocked = false,
35  pqServer* server = nullptr, vtkTypeUInt32 location = 0x10 /*vtkPVSession::CLIENT*/);
36  static void loadState();
37 
41  static void activateView();
42 
43 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
47  void updateEnableState() override;
48 
49 protected:
54 
55 private:
56  Q_DISABLE_COPY(pqLoadStateReaction)
57 };
58 
59 #endif
void onTriggered() override
Called when the action is triggered.
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 void loadState()
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35