pqIgnoreSourceTimeReaction.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 pqIgnoreSourceTimeReaction_h
5 #define pqIgnoreSourceTimeReaction_h
6 
7 #include "pqReaction.h"
8 
9 class pqPipelineSource;
10 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
22  pqIgnoreSourceTimeReaction(QAction* parent);
23 
27  static void ignoreSourceTime(bool ignore);
28 
32  static void ignoreSourceTime(pqPipelineSource*, bool ignore);
33 
34 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
38  void updateEnableState() override;
39 
40 protected:
44  void onTriggered() override
45  {
47  }
48 
49 private:
50  Q_DISABLE_COPY(pqIgnoreSourceTimeReaction)
51 };
52 
53 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction for ignoring a source's time information for animations etc.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
void onTriggered() override
Called when the action is triggered.
static void ignoreSourceTime(bool ignore)
Ignore time from all selected sources.
QAction * parentAction() const
Provides access to the parent action.
Definition: pqReaction.h:40
PQ representation for a vtkSMProxy that can be involved in a pipeline.