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"
9 
10 class vtkSMSourceProxy;
11 
19 class PQAPPLICATIONCOMPONENTS_EXPORT pqReloadFilesReaction : public pqReaction
20 {
21  Q_OBJECT
22  typedef pqReaction Superclass;
23 
24 public:
26  {
28  AllSources
29  };
30 
31  pqReloadFilesReaction(QAction* parent = nullptr, ReloadModes reloadMode = ActiveSource);
32  ~pqReloadFilesReaction() override;
33 
37  PARAVIEW_DEPRECATED_IN_6_0_0("Use reloadSources() instead.")
38  static bool reload();
39 
43  bool reloadSources();
44 
48  static bool reload(vtkSMSourceProxy* proxy);
49 
50 protected:
51  void onTriggered() override { this->reloadSources(); }
52  void updateEnableState() override;
53 
54 private:
55  Q_DISABLE_COPY(pqReloadFilesReaction)
56 
57  ReloadModes ReloadMode;
58 };
59 
60 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
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 or all readers depending on the R...
#define PARAVIEW_DEPRECATED_IN_6_0_0(reason)