pqFontPropertyWidget.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 pqFontPropertyWidget_h
5 #define pqFontPropertyWidget_h
6 
9 
10 class QActionGroup;
11 class vtkSMPropertyGroup;
12 
21 {
22  Q_OBJECT
23  Q_PROPERTY(
24  QString HorizontalJustification READ HorizontalJustification WRITE setHorizontalJustification)
25  Q_PROPERTY(
26  QString VerticalJustification READ VerticalJustification WRITE setVerticalJustification)
27 
29 
30 public:
31  pqFontPropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
32  ~pqFontPropertyWidget() override;
33 
34  QString HorizontalJustification() const;
35  QString VerticalJustification() const;
36 Q_SIGNALS:
37  void horizontalJustificationChanged(QString&);
38  void verticalJustificationChanged(QString&);
39 
40 protected:
41  void setHorizontalJustification(QString&);
42  void setVerticalJustification(QString&);
43  void setupHorizontalJustificationButton();
44  void setupVerticalJustificationButton();
45  void UpdateToolButtonIcon(QString& str, QToolButton* justification);
46  QActionGroup* CreateFontActionGroup(QToolButton* justification);
47 
48 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
49  void changeHorizontalJustificationIcon(QAction*);
50  void changeVerticalJustificationIcon(QAction*);
51  void onFontFamilyChanged();
52 
53 private:
54  Q_DISABLE_COPY(pqFontPropertyWidget)
55 
56  class pqInternals;
57  pqInternals* Internals;
58 };
59 
60 #endif
pqFontPropertyWidget is a pqPropertyWidget that can be used to set properties relating to fonts...
pqPropertyGroupWidget is a (custom) widget created for a PropertyGroup.
#define PQAPPLICATIONCOMPONENTS_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140