pqEditCameraReaction.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 pqEditCameraReaction_h
5 #define pqEditCameraReaction_h
6 
7 #include "pqReaction.h"
8 #include <QPointer>
9 
10 class pqView;
11 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
22  pqEditCameraReaction(QAction* parent, pqView* view = nullptr);
23 
27  static void editCamera(pqView*);
28 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
32  void updateEnableState() override;
33 
34 protected:
38  void onTriggered() override;
39 
40 private:
41  Q_DISABLE_COPY(pqEditCameraReaction)
42  QPointer<pqView> View;
43 };
44 
45 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
pqEditCameraReaction is a reaction to show the edit-camera dialog.
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46