pqViewResolutionPropertyWidget.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 pqViewResolutionPropertyWidget_h
5 #define pqViewResolutionPropertyWidget_h
6 
7 #include "pqApplicationComponentsModule.h" // needed for exports
8 #include "pqPropertyWidget.h"
9 #include <QScopedPointer> // needed for ivar
10 
27 class PQAPPLICATIONCOMPONENTS_EXPORT pqViewResolutionPropertyWidget : public pqPropertyWidget
28 {
29  Q_OBJECT
31 
32 public:
34  vtkSMProxy* proxy, vtkSMProperty* smproperty, QWidget* parent = nullptr);
36 
38 
43  void apply() override;
44  void reset() override;
46 
47 Q_SIGNALS:
49 
52  void highlightResetButton();
53  void clearHighlight();
55 
56 private Q_SLOTS:
57  void resetButtonClicked();
58  void saveAllViewsModified();
59  void scale(double factor);
60  void applyPreset();
61  void applyRecent();
62  void widthTextEdited(const QString&);
63  void heightTextEdited(const QString&);
64  void lockAspectRatioToggled(bool);
65 
66 private: // NOLINT(readability-redundant-access-specifiers)
67  Q_DISABLE_COPY(pqViewResolutionPropertyWidget);
68  class pqInternals;
69  QScopedPointer<pqInternals> Internals;
70 };
71 
72 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
superclass for all SM properties
virtual void reset()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
scale
virtual void apply()