pqMacroReaction.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 pqMacroReaction_h
5 #define pqMacroReaction_h
6 
7 #include "pqMasterOnlyReaction.h"
8 
14 {
15  Q_OBJECT
17 
18 public:
19  pqMacroReaction(QAction* parent);
20 
24  static void createMacro();
25 
26 protected Q_SLOTS:
27  void enable(bool);
28 
29 protected: // NOLINT(readability-redundant-access-specifiers)
34 
35 private:
36  Q_DISABLE_COPY(pqMacroReaction)
37 };
38 
39 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
void onTriggered() override
Called when the action is triggered.
Reaction for creating or deleting a python macro.
static void createMacro()
define a python file as a macro and save it.