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 
10 #include "pqTimer.h"
11 
12 class pqPipelineSource;
14 
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  {
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
static pqPipelineSource * createFilter(const QString &group, const QString &name)
Creates a filter of the given type.
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
virtual void onTriggered(const QString &group, const QString &name)
Called when the action is triggered.
#define PQAPPLICATIONCOMPONENTS_EXPORT
name
Reaction to handle creation of filters from the filters menu.
PQ representation for a vtkSMProxy that can be involved in a pipeline.