pqSpreadSheetViewDecorator.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 pqSpreadSheetViewDecorator_h
5 #define pqSpreadSheetViewDecorator_h
6 
8 #include <QObject>
9 #include <QScopedPointer> // for QScopedPointer
10 
11 class pqSpreadSheetView;
12 class pqOutputPort;
14 
22 {
23  Q_OBJECT
24  typedef QObject Superclass;
25  Q_PROPERTY(bool allowChangeOfSource READ allowChangeOfSource WRITE setAllowChangeOfSource);
26 
28 
32  Q_PROPERTY(
33  bool generateCellConnectivity READ generateCellConnectivity WRITE setGenerateCellConnectivity);
34  Q_PROPERTY(bool showFieldData READ showFieldData WRITE setShowFieldData);
35  Q_PROPERTY(
36  bool showSelectedElementsOnly READ showSelectedElementsOnly WRITE setShowSelectedElementsOnly);
37  Q_PROPERTY(int fieldAssociation READ fieldAssociation WRITE setFieldAssociation);
39 
40 public:
42  ~pqSpreadSheetViewDecorator() override;
43 
45 
49  bool generateCellConnectivity() const;
50  void setGenerateCellConnectivity(bool);
51  bool showFieldData() const;
52  void setShowFieldData(bool);
53  bool showSelectedElementsOnly() const;
54  void setShowSelectedElementsOnly(bool);
55  int fieldAssociation() const;
56  void setFieldAssociation(int);
58 
59  void setPrecision(int);
60  void setFixedRepresentation(bool);
61 
66  bool allowChangeOfSource() const;
67 
71  void setAllowChangeOfSource(bool val);
72 
76  bool eventFilter(QObject* object, QEvent* e) override;
77 
78 Q_SIGNALS:
79  void uiModified();
80 
81 protected Q_SLOTS:
86  void onCurrentAttributeChange(int);
87 
88  void currentIndexChanged(pqOutputPort*);
89  void showing(pqDataRepresentation*);
90  void displayPrecisionChanged(int);
91  void toggleFixedRepresentation(bool);
92  void copyToClipboard();
93 
94 protected: // NOLINT(readability-redundant-access-specifiers)
96 
97 private:
98  Q_DISABLE_COPY(pqSpreadSheetViewDecorator)
99 
100  class pqInternal;
101  QScopedPointer<pqInternal> Internal;
102 };
103 
104 #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
#define PQAPPLICATIONCOMPONENTS_EXPORT
View for spread-sheet view.
pqSpreadSheetViewDecorator adds decoration to a spread-sheet view.