Qt
ApplicationComponents
pqFiltersMenuReaction.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 pqFiltersMenuReaction_h
5
#define pqFiltersMenuReaction_h
6
7
#include <QObject>
8
9
#include "
pqApplicationComponentsModule.h
"
10
#include "pqTimer.h"
11
12
class
pqPipelineSource
;
13
class
pqProxyGroupMenuManager
;
14
21
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqFiltersMenuReaction
:
public
QObject
22
{
23
Q_OBJECT
24
typedef
QObject Superclass;
25
26
public
:
27
pqFiltersMenuReaction
(
pqProxyGroupMenuManager
* menuManager,
bool
hideDisabledActions =
false
);
28
29
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
35
virtual
void
updateEnableState(
bool
updateOnlyToolbars =
false
);
36
40
static
pqPipelineSource
* createFilter(
const
QString& group,
const
QString&
name
);
41
42
protected
Q_SLOTS:
46
virtual
void
onTriggered
(
const
QString& group,
const
QString& name)
47
{
48
pqFiltersMenuReaction::createFilter
(group, name);
49
}
50
virtual
void
setEnableStateDirty();
51
52
private
:
53
Q_DISABLE_COPY(
pqFiltersMenuReaction
)
54
55
pqTimer Timer;
56
bool
IsDirty;
57
bool
HideDisabledActions;
58
};
59
60
#endif
pqFiltersMenuReaction::createFilter
static pqPipelineSource * createFilter(const QString &group, const QString &name)
Creates a filter of the given type.
pqProxyGroupMenuManager
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
Definition:
pqProxyGroupMenuManager.h:25
pqFiltersMenuReaction::onTriggered
virtual void onTriggered(const QString &group, const QString &name)
Called when the action is triggered.
Definition:
pqFiltersMenuReaction.h:46
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
name
name
pqFiltersMenuReaction
Reaction to handle creation of filters from the filters menu.
Definition:
pqFiltersMenuReaction.h:21
pqApplicationComponentsModule.h
pqPipelineSource
PQ representation for a vtkSMProxy that can be involved in a pipeline.
Definition:
pqPipelineSource.h:32
Generated by
1.8.13 on Mon Dec 23 2024