pqApplyPropertiesReaction.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 pqApplyPropertiesReaction_h
5 #define pqApplyPropertiesReaction_h
6 
8 
9 #include "pqReaction.h"
10 
11 #include <QPointer>
12 
13 class pqPropertiesPanel;
14 
16 {
17  typedef pqReaction Superclass;
18 
19 public:
20  pqApplyPropertiesReaction(pqPropertiesPanel* panel, QAction* action, bool apply);
21 
22  void updateEnableState() override;
23 
24 protected:
25  void onTriggered() override;
26 
27 private:
28  QPointer<pqPropertiesPanel> Panel;
29  bool ShouldApply;
30 };
31 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqPropertiesPanel is the default panel used by paraview to edit source properties and display propert...
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46