pqApplyBehavior.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 pqApplyBehavior_h
5 #define pqApplyBehavior_h
6 
7 #include "pqApplicationComponentsModule.h"
8 #include <QObject>
9 #include <QScopedPointer>
10 
11 class pqPipelineFilter;
12 class pqPipelineSource;
13 class pqPropertiesPanel;
14 class pqProxy;
15 class pqView;
16 
35 class PQAPPLICATIONCOMPONENTS_EXPORT pqApplyBehavior : public QObject
36 {
37  Q_OBJECT
38  typedef QObject Superclass;
39 
40 public:
41  pqApplyBehavior(QObject* parent = nullptr);
42  ~pqApplyBehavior() override;
43 
45 
48  void registerPanel(pqPropertiesPanel* panel);
49  void unregisterPanel(pqPropertiesPanel* panel);
51 
52  static void hideInputIfRequired(pqPipelineFilter* filter, pqView* view);
53 
54 Q_SIGNALS:
55  void triggerApply();
56 
57 protected Q_SLOTS:
59 
64  virtual void applied(pqPropertiesPanel* panel, pqProxy* proxy);
65  virtual void applied(pqPropertiesPanel* panel = nullptr);
67 
68 private Q_SLOTS:
69  void onApplied(pqProxy*);
70  void onApplied();
71  void onModified();
72  void onResetDone();
73 
74 protected:
75  virtual void showData(pqPipelineSource* source, pqView* view);
76 
77 private:
78  Q_DISABLE_COPY(pqApplyBehavior)
79 
80 
83  void clearAbortFlags();
84 
85  class pqInternals;
86  const QScopedPointer<pqInternals> Internals;
87 };
88 
89 #endif
pqPropertiesPanel is the default panel used by paraview to edit source properties and display propert...
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
source
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
pqApplyBehavior collects the logic that needs to happen after the user hits "Apply" on the pqProperti...
PQ representation for a vtkSMProxy that can be involved in a pipeline.