pqChangeFileNameReaction.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqChangeFileNameReaction_h
4 #define pqChangeFileNameReaction_h
5 
6 #include "pqReaction.h"
7 
13 {
14  Q_OBJECT
15  typedef pqReaction Superclass;
16 
17 public:
18  pqChangeFileNameReaction(QAction* parent = nullptr);
19  ~pqChangeFileNameReaction() override = default;
20 
24  static void changeFileName();
25 
26 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
31  void updateEnableState() override;
32 
33 protected:
38 
39 private:
40  Q_DISABLE_COPY(pqChangeFileNameReaction)
41 };
42 
43 #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
Reaction for change file of current active reader.
static void changeFileName()
Changes the input for the active source.
void onTriggered() override
Called when the action is triggered.