pqImportReaction.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 pqImportReaction_h
5 #define pqImportReaction_h
6 
7 #include "pqReaction.h"
8 
9 class pqProxyWidget;
10 class pqServer;
11 
17 {
18  Q_OBJECT
19  typedef pqReaction Superclass;
20 
21 public:
25  pqImportReaction(QAction* parent);
26 
30  void import();
31 
32 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
36  void updateEnableState() override;
37 
38 protected:
42  void onTriggered() override { this->import(); }
43 
44 private:
45  Q_DISABLE_COPY(pqImportReaction)
46 };
47 
48 #endif
void onTriggered() override
Called when the action is triggered.
virtual void updateEnableState()
Definition: pqReaction.h:48
Reaction for importing views.
#define PQAPPLICATIONCOMPONENTS_EXPORT
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
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35