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 
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 scale(double factor);
59  void applyPreset();
60  void applyRecent();
61  void widthTextEdited(const QString&);
62  void heightTextEdited(const QString&);
63  void lockAspectRatioToggled(bool);
64 
65 private: // NOLINT(readability-redundant-access-specifiers)
66  Q_DISABLE_COPY(pqViewResolutionPropertyWidget);
67  class pqInternals;
68  QScopedPointer<pqInternals> Internals;
69 };
70 
71 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQAPPLICATIONCOMPONENTS_EXPORT
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()