pqRenameProxyReaction.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 pqRenameProxyReaction_h
5 #define pqRenameProxyReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include <QPointer>
10 
11 class pqProxy;
12 class QWidget;
13 
19 {
20  Q_OBJECT
21  typedef pqReaction Superclass;
22 
23 public:
30  pqRenameProxyReaction(QAction* renameAction, pqProxy* proxy, QWidget* parentWidget = nullptr);
31 
38  pqRenameProxyReaction(QAction* renameAction, QWidget* parentWidget = nullptr);
39 
40 protected Q_SLOTS:
44  void onTriggered() override;
45  void updateEnableState() override;
46 
47 protected: // NOLINT(readability-redundant-access-specifiers)
49  QPointer<QWidget> ParentWidget;
50 };
51 
52 #endif
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
QPointer< QWidget > ParentWidget
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46
Reaction for renaming a proxy.