src
paraview-5.12
Qt
ApplicationComponents
pqDeleteReaction.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 pqDeleteReaction_h
5
#define pqDeleteReaction_h
6
7
#include "
pqReaction.h
"
8
9
class
pqPipelineSource
;
10
class
pqProxy
;
11
16
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqDeleteReaction
:
public
pqReaction
17
{
18
Q_OBJECT
19
typedef
pqReaction
Superclass
;
20
21
public
:
22
enum
DeleteModes
23
{
24
SELECTED
,
25
ALL
,
26
TREE
27
};
32
pqDeleteReaction
(QAction* parent, DeleteModes mode = SELECTED);
33
34
static
void
deleteAll();
35
static
void
deleteSelected();
36
static
bool
canDeleteSelected();
37
static
void
deleteTree();
38
static
bool
canDeleteTree();
39
48
static
void
deleteSources(
const
QSet<pqProxy*>& sources);
49
50
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
54
void
updateEnableState
()
override
;
55
59
void
deleteSource(
pqProxy
* source);
60
61
protected
:
65
void
onTriggered
()
override
;
66
67
private
:
68
Q_DISABLE_COPY(
pqDeleteReaction
)
69
DeleteModes DeleteMode;
70
75
static
void
aboutToDelete(
pqProxy
* source);
76
};
77
78
#endif
pqReaction.h
pqReaction::onTriggered
virtual void onTriggered()
Called when the action is triggered.
Definition:
pqReaction.h:46
pqDeleteReaction::SELECTED
@ SELECTED
Definition:
pqDeleteReaction.h:24
pqDeleteReaction
Definition:
pqDeleteReaction.h:16
pqDeleteReaction::ALL
@ ALL
Definition:
pqDeleteReaction.h:25
pqDeleteReaction::DeleteModes
DeleteModes
Definition:
pqDeleteReaction.h:22
pqPipelineSource
PQ representation for a vtkSMProxy that can be involved in a pipeline.
Definition:
pqPipelineSource.h:32
pqProxy
This class represents any registered Server Manager proxy.
Definition:
pqProxy.h:28
pqReaction::updateEnableState
virtual void updateEnableState()
Definition:
pqReaction.h:48
pqReaction
Definition:
pqReaction.h:25
Generated by
1.8.17 on Wed Mar 27 2024