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;
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:
47  virtual void onTriggered(const QString& group, const QString& name);
48  virtual void setEnableStateDirty();
49 
50 private:
51  Q_DISABLE_COPY(pqFiltersMenuReaction)
52 
53  pqTimer Timer;
54  bool IsDirty;
55  bool HideDisabledActions;
56 };
57 
58 #endif
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
name
Reaction to handle creation of filters from the filters menu.
PQ representation for a vtkSMProxy that can be involved in a pipeline.