pqCalculatorWidget.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 pqCalculatorWidget_h
5 #define pqCalculatorWidget_h
6 
7 #include "pqPropertyWidget.h"
8 
21 {
22  Q_OBJECT
24 
25 public:
26  pqCalculatorWidget(vtkSMProxy* proxy, vtkSMProperty* property, QWidget* parent = nullptr);
27  ~pqCalculatorWidget() override;
28 
29 protected Q_SLOTS:
33  void variableChosen(QAction* action);
34 
38  void buttonPressed(const QString&);
39 
43  void updateVariableNames();
44  void updateVariables(const QString& mode);
45 
49  void updateButtons();
50 
51 private:
52  Q_DISABLE_COPY(pqCalculatorWidget)
53 
54  class pqInternals;
55  pqInternals* Internals;
56 };
57 
58 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
superclass for all SM properties
mode
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqCalculatorWidget is a property-widget that can shows a calculator-like UI for the property...