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 
8 #include <QObject>
9 
10 class pqPipelineSource;
12 class pqServer;
18 {
19  Q_OBJECT
20  typedef QObject Superclass;
21 
22 public:
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  {
51  }
52 
53 private:
54  Q_DISABLE_COPY(pqSourcesMenuReaction)
55 };
56 
57 #endif
static pqPipelineSource * createSource(const QString &group, const QString &name)
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
#define PQAPPLICATIONCOMPONENTS_EXPORT
name
Reaction to handle creation of sources from the sources menu.
virtual void onTriggered(const QString &group, const QString &name)
Called when the action is triggered.
PQ representation for a vtkSMProxy that can be involved in a pipeline.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35