pqXYChartViewBoundsPropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqXYChartViewBoundsPropertyWidget_h
4 #define pqXYChartViewBoundsPropertyWidget_h
5 
6 #include "pqComponentsModule.h"
7 #include "pqPropertyWidget.h"
8 
9 #include <QScopedPointer>
10 
24 {
25  Q_OBJECT
26  Q_PROPERTY(QList<QVariant> bounds READ bounds WRITE setBounds NOTIFY boundsChanged);
27  typedef pqPropertyWidget Superclass;
28 
29 public:
31  vtkSMProxy* proxy, vtkSMProperty* property, QWidget* parent = nullptr);
33 
35 
38  QList<QVariant> bounds();
39  void setBounds(const QList<QVariant>& bounds);
41 
42 Q_SIGNALS:
46  void boundsChanged();
47 
48 protected Q_SLOTS:
52  void resetBounds();
53 
58  void onTextChanged();
59 
64  void updateTextFromBounds();
65 
69  void showEvent(QShowEvent* event) override;
70 
77  void connectToView(pqView* view);
78 
79 private:
80  Q_DISABLE_COPY(pqXYChartViewBoundsPropertyWidget)
81 
82  struct pqInternals;
83  QScopedPointer<pqInternals> Internals;
84 };
85 
86 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
superclass for all SM properties
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
Extract bottom left axis range into a property.