pqSelectionEditor.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 pqSelectionEditor_h
5 #define pqSelectionEditor_h
6 
8 #include <QWidget>
9 
10 class QItemSelection;
12 class pqOutputPort;
13 class pqServer;
14 class pqPipelineSource;
15 class pqView;
16 
26 {
27  Q_OBJECT
28  using Superclass = QWidget;
29 
30 public:
31  pqSelectionEditor(QWidget* parent = nullptr);
32  ~pqSelectionEditor() override;
33 
34 private Q_SLOTS:
35  void onActiveServerChanged(pqServer* server);
36  void onActiveViewChanged(pqView*);
37  void onAboutToRemoveSource(pqPipelineSource*);
38  void onActiveSourceChanged(pqPipelineSource* source);
39  void onVisibilityChanged(pqPipelineSource*, pqDataRepresentation*);
40  void onSelectionChanged(pqOutputPort*);
41  void onExpressionChanged(const QString&);
42  void onTableSelectionChanged(const QItemSelection&, const QItemSelection&);
43  void onAddActiveSelection();
44  void onRemoveSelectedSelection();
45  void onRemoveAllSelections();
46  void onActivateCombinedSelections();
47 
48 private: // NOLINT(readability-redundant-access-specifiers)
49  Q_DISABLE_COPY(pqSelectionEditor);
50 
51  void removeAllSelections(int elementType);
52  void clearInteractiveSelection();
53  void showInteractiveSelection(unsigned int row);
54  void hideInteractiveSelection();
55 
56  class pqInternal;
57  pqInternal* Internal;
58 };
59 
60 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
Definition: pqOutputPort.h:29
pqSelectionEditor is a widget to combine multiple selections of different types.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
source
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