pqTextLocationWidget.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 pqTextLocationWidget_h
5 #define pqTextLocationWidget_h
6 
8 #include "pqPropertyWidget.h"
9 
10 class vtkSMPropertyGroup;
11 
17 {
18  Q_OBJECT
19  Q_PROPERTY(QString windowLocation READ windowLocation WRITE setWindowLocation)
20 
22 
23 public:
24  pqTextLocationWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
25  ~pqTextLocationWidget() override;
26 
27  QString windowLocation() const;
28 
29 Q_SIGNALS:
30  void windowLocationChanged(QString&);
31 
32 protected:
33  void setWindowLocation(QString&);
34 
35 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
36  void radioButtonLocationClicked();
37  void radioButtonPositionClicked();
38  void updateUI();
39 
40 private:
41  Q_DISABLE_COPY(pqTextLocationWidget)
42  class pqInternals;
43  pqInternals* Internals;
44 };
45 
46 #endif // pqTextLocationWidget_h
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
pqTextLocationWidget is a pqPropertyWidget that can be used to set the location of the a text represe...
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140