pqAutoApplyReaction.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 pqAutoApplyReaction_h
5 #define pqAutoApplyReaction_h
6 
7 #include "pqReaction.h"
8 
14 {
15  Q_OBJECT
16  typedef pqReaction Superclass;
17 
18 public:
19  pqAutoApplyReaction(QAction* parent = nullptr);
20 
24  static void setAutoApply(bool);
25 
29  static bool autoApply();
30 
31 protected Q_SLOTS:
32  void updateState();
33  void checkStateChanged(bool);
34 
35 private:
36  Q_DISABLE_COPY(pqAutoApplyReaction)
37 };
38 
39 #endif
Reaction for enabling/disabling auto-apply.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25