src
paraview-5.12
Qt
ApplicationComponents
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
13
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqMacroReaction
:
public
pqMasterOnlyReaction
14
{
15
Q_OBJECT
16
typedef
pqMasterOnlyReaction
Superclass
;
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)
33
void
onTriggered
()
override
{
pqMacroReaction::createMacro
(); }
34
35
private
:
36
Q_DISABLE_COPY(
pqMacroReaction
)
37
};
38
39
#endif
pqMasterOnlyReaction
Definition:
pqMasterOnlyReaction.h:24
pqMacroReaction::onTriggered
void onTriggered() override
Called when the action is triggered.
Definition:
pqMacroReaction.h:33
pqMasterOnlyReaction.h
pqMacroReaction
Definition:
pqMacroReaction.h:13
pqMacroReaction::createMacro
static void createMacro()
define a python file as a macro and save it.
Generated by
1.8.17 on Wed Mar 27 2024