pqExportReaction.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 pqExportReaction_h
5 #define pqExportReaction_h
6 
7 #include "pqReaction.h"
8 
9 class pqProxyWidget;
10 class pqView;
11 
18 {
19  Q_OBJECT
20  typedef pqReaction Superclass;
21 
22 public:
26  pqExportReaction(QAction* parent);
27 
32  QString exportActiveView();
33 
34 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
38  void updateEnableState() override;
39 
40 protected:
44  void onTriggered() override { this->exportActiveView(); }
45 
46 private:
47  pqView* ConnectedView;
48 
49  Q_DISABLE_COPY(pqExportReaction)
50 };
51 
52 #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
pqProxyWidget represents a panel for a vtkSMProxy.
Definition: pqProxyWidget.h:31
Reaction for exporting a view.
void onTriggered() override
Called when the action is triggered.