pqShaderReplacementsSelectorPropertyWidget.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 
5 #ifndef pqShaderReplacementsSelectorPropertyWidget_h
6 #define pqShaderReplacementsSelectorPropertyWidget_h
7 
8 #include "pqComponentsModule.h"
9 
10 #include "pqPropertyWidget.h"
11 
20 {
21  Q_OBJECT
22 public:
24  vtkSMProxy* proxy, vtkSMProperty* property, QWidget* parent = nullptr);
26 
27 protected Q_SLOTS:
28  void updateShaderReplacements();
29  void textChangedAndEditingFinished();
30  void onLoad();
31  void onDelete();
32  void onPresetChanged(int index);
33 
34 protected: // NOLINT(readability-redundant-access-specifiers)
35  bool loadShaderReplacements(const QString& filename);
36  void refreshView();
37 
38 private:
39  class pqInternal;
40  pqInternal* Internal;
41 };
42 
43 #endif
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
#define PQCOMPONENTS_EXPORT
superclass for all SM properties
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
Property widget for selecting the ShaderReplacements to apply to a geometry.
index