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 
16 class PQAPPLICATIONCOMPONENTS_EXPORT pqEditCameraReaction : public pqReaction
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
pqReaction.h
pqView
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqReaction::onTriggered
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46
pqReaction::updateEnableState
virtual void updateEnableState()
Definition: pqReaction.h:48
pqEditCameraReaction
Definition: pqEditCameraReaction.h:16
pqReaction
Definition: pqReaction.h:25