Qt
ApplicationComponents
pqSourcesMenuReaction.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 pqSourcesMenuReaction_h
5
#define pqSourcesMenuReaction_h
6
7
#include "
pqApplicationComponentsModule.h
"
8
#include <QObject>
9
10
class
pqPipelineSource
;
11
class
pqProxyGroupMenuManager
;
12
class
pqServer
;
17
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqSourcesMenuReaction
:
public
QObject
18
{
19
Q_OBJECT
20
typedef
QObject Superclass;
21
22
public
:
23
pqSourcesMenuReaction
(
pqProxyGroupMenuManager
* menuManager);
24
25
static
pqPipelineSource
* createSource(
const
QString& group,
const
QString&
name
);
26
35
static
bool
warnOnCreate(
const
QString& group,
const
QString& name,
pqServer
* server =
nullptr
);
36
37
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
41
virtual
void
updateEnableState();
42
void
updateEnableState(
bool
);
43
44
protected
Q_SLOTS:
48
virtual
void
onTriggered
(
const
QString& group,
const
QString& name)
49
{
50
pqSourcesMenuReaction::createSource
(group, name);
51
}
52
53
private
:
54
Q_DISABLE_COPY(
pqSourcesMenuReaction
)
55
};
56
57
#endif
pqSourcesMenuReaction::createSource
static pqPipelineSource * createSource(const QString &group, const QString &name)
pqProxyGroupMenuManager
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
Definition:
pqProxyGroupMenuManager.h:25
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
name
name
pqSourcesMenuReaction
Reaction to handle creation of sources from the sources menu.
Definition:
pqSourcesMenuReaction.h:17
pqApplicationComponentsModule.h
pqSourcesMenuReaction::onTriggered
virtual void onTriggered(const QString &group, const QString &name)
Called when the action is triggered.
Definition:
pqSourcesMenuReaction.h:48
pqPipelineSource
PQ representation for a vtkSMProxy that can be involved in a pipeline.
Definition:
pqPipelineSource.h:32
pqServer
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition:
pqServer.h:35
Generated by
1.8.13 on Fri Jan 10 2025