pqReloadFilesReaction.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 pqReloadFilesReaction_h
5 #define pqReloadFilesReaction_h
6 
7 #include "pqReaction.h"
8 class vtkSMSourceProxy;
9 
18 {
19  Q_OBJECT
20  typedef pqReaction Superclass;
21 
22 public:
23  pqReloadFilesReaction(QAction* parent = nullptr);
24  ~pqReloadFilesReaction() override;
25 
29  static bool reload();
30 
34  static bool reload(vtkSMSourceProxy* proxy);
35 
36 protected:
37  void onTriggered() override { this->reload(); }
38  void updateEnableState() override;
39 
40 private:
41  Q_DISABLE_COPY(pqReloadFilesReaction)
42 };
43 
44 #endif
void onTriggered() override
Called when the action is triggered.
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
proxy for a VTK source on a server
pqReloadFilesReaction adds handler code to reload the active reader.