pqShowHideAllReaction.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 pqShowHideAllReaction_h
5 #define pqShowHideAllReaction_h
6 
7 #include "pqReaction.h"
8 
14 {
15  Q_OBJECT
16  typedef pqReaction Superclass;
17 
18 public:
19  enum class ActionType
20  {
21  Show,
22  Hide
23  };
24 
25  pqShowHideAllReaction(QAction* parent, ActionType action);
26 
27  static void act(ActionType action);
28 
29 protected:
33  void onTriggered() override { pqShowHideAllReaction::act(this->Action); }
34 
35 private:
36  Q_DISABLE_COPY(pqShowHideAllReaction)
37 
38 
39  ActionType Action;
40 };
41 #endif
void onTriggered() override
Called when the action is triggered.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
Reaction to show or hide all sources output ports.
static void act(ActionType action)